package
2.0.0-alpha7+incompatible
Repository: https://github.com/abcxyz/guardian.git
Documentation: pkg.go.dev

# Functions

NewFilesystemStorage creates a new FilesystemStorage client.
NewGoogleCloudStorage creates a new GoogleCloudStorage client.
NewStorageClient creates a new storage client based on the provided type.
Parse creates a new storage client by parsing a storage url.
SplitObjectURI splits a bucket URI into bucket name and object name or returns an error.
WithAllowOverwrite sets the overwrite flag to allow overwriting the destination object.
WithCacheMaxAgeSeconds configures the cache-control header the object upload.
WithChunkSize configures the chunk size for the object upload.
WithContentType sets the content type for the object upload.
WithMetadata sets the metadata for the object upload.

# Constants

1 MiB.
The types of storage clients available.
The types of storage clients available.

# Variables

No description provided by the author
SortedStorageTypes are the sorted Storage types for printing messages and prediction.

# Structs

No description provided by the author
Config is the configuration for the Google Cloud Storage Client.
FilesystemStorage implements the Storage interface for a local filesystem.
GoogleCloudStorage implements the Storage interface for Google Cloud Storage.
No description provided by the author
No description provided by the author

# Interfaces

Storage defines the minimum interface for a blob storage system.

# Type aliases

CreateOption is an optional config value for the Google Cloud Storage CreateObject function.