Options

struct Options

Options to adjust the behavior of this request, including plugin-options

  • The default amount of time before the URL expires is 18000 seconds, or 5 hours.

    Declaration

    Swift

    public static let defaultExpireInSeconds: Int
  • Access level of the storage system. Defaults to public

    Declaration

    Swift

    public let accessLevel: StorageAccessLevel
  • Target user to apply the action on.

    Declaration

    Swift

    public let targetIdentityId: String?
  • Number of seconds before the URL expires. Defaults to defaultExpireInSeconds

    Declaration

    Swift

    public let expires: Int
  • Extra plugin specific options, only used in special circumstances when the existing options do not provide a way to utilize the underlying storage system’s functionality. See plugin documentation for expected key/values

    Declaration

    Swift

    public let pluginOptions: Any?
  • Declaration

    Swift

    public init(accessLevel: StorageAccessLevel = .guest,
                targetIdentityId: String? = nil,
                expires: Int = Options.defaultExpireInSeconds,
                pluginOptions: Any? = nil)