ContainerMetadata
public struct ContainerMetadata : Codable
extension ContainerMetadata : Equatable, Hashable
Descriptive information about a SecuredContainer/IContainer, including access, timestamps, length, categorical type and the ID. NOTE: while Absio typically thinks of the type field as a categorical descriptor of the container, it can take on any value desired. It is stored in the encrypted database in the OfsProvider and on the Absio Broker™ application’s database for the ServerProvider. It can be used to help access data or used for quick access to rules/control/etc associated with the container.
-
The date and time the container was created.
Declaration
Swift
public private(set) var createdAt: Date? { get }
-
The ID of the user who created the container.
Declaration
Swift
public private(set) var createdBy: UUID? { get }
-
The length of the SecuredContainer in bytes (as it would be on disk).
Declaration
Swift
public private(set) var length: Int? { get }
-
The date and time the container was last modified. This will be null if the container has never been modified.
Declaration
Swift
public private(set) var modifiedAt: Date? { get }
-
The ID of the user who last modified the container. This will be null if the container has never been modified.
Declaration
Swift
public private(set) var modifiedBy: UUID? { get }
-
A string used to categorize the container.
Declaration
Swift
public private(set) var type: String? { get }
-
The ID of the container.
Declaration
Swift
public private(set) var containerId: UUID? { get }
-
Declaration
Swift
public func getMetadataWithType(type: String?) -> ContainerMetadata
Parameters
type
A string used to categorize the Container.
Return Value
ContainerMetadata
-
Declaration
Swift
public func getModifiedMetadata(modifiedAt: Date, modifiedBy: UUID) -> ContainerMetadata
Parameters
modifiedAt
The last modified date of the container.
modifiedBy
The ID of the last user to modify this container.
Return Value
ContainerMetadata
-
Declaration
Swift
public func getCreatedMetadata(createdAt: Date, createdBy: UUID) -> ContainerMetadata
Parameters
createdAt
The creation date of the container.
createdBy
The ID of the user that created the container.
Return Value
ContainerMetadata