Skip to content

STRUCT

Cloud ​

Contents

swift
public struct Cloud: Codable, Hashable

A cloud configuration, used for remote caching.

Properties ​

url ​

swift
public let url: String

The base URL that points to the s3 server.

bucket ​

swift
public let bucket: String

The bucket unique identifier.

Methods ​

cloud(bucket:url:) ​

swift
public static func cloud(bucket: String, url: String) -> Cloud

Returns a generic cloud configuration.

  • Parameters:
    • projectId: Project unique identifier.
    • url: Base URL to the Cloud server.
  • Returns: A Cloud instance.

Parameters ​

NameDescription
projectIdProject unique identifier.
urlBase URL to the Cloud server.