Container
public class Container : Codable
extension Container : Equatable, Hashable
This is the decrypted version of a SecuredContainer. It has the content, header and metadata. The content and header are not encrypted.
-
The User’s access to a Container.
Declaration
Swift
public private(set) var accessLevels: [UUID : AccessLevel]? { get } -
The metadata of the container.
Declaration
Swift
public internal(set) var containerMetadata: ContainerMetadata? { get } -
The decrypted content of the container.
Declaration
Swift
public private(set) var content: Data? { get } -
The decrypted custom header of the container
Declaration
Swift
public private(set) var header: Header? { get } -
Declaration
Swift
public init(accessLevels: [UUID : AccessLevel]?, container: ContainerMetadata?)Parameters
accessLevelsOptional. The User’s access to a Container.
containerOptional. Container metadata which associated with current container
-
Returns a Boolean indicating whether the Containers are identical.
Declaration
Swift
public static func == (lhs: Container, rhs: Container) -> Bool -
Hash value
Declaration
Swift
public func hash(into hasher: inout Hasher)
View on GitHub
Container Class Reference