Documentation ¶
Index ¶
- func CreateAzureConfig(account string, key string) stow.ConfigMap
- func CreateS3Config(accessKeyID string, secretKey string, region string, endpoint string) stow.ConfigMap
- func Init(cloudStorageConfig *types.CloudStorageConfig) (stow.ConfigMap, string, string, error)
- func InitBlobStorage(cloudStorageConfig *types.CloudStorageConfig) (stow.ConfigMap, string)
- func InitS3(cloudStorageConfig *types.CloudStorageConfig) (stow.ConfigMap, string)
- func PutItem(name string, content string, container stow.Container) error
- func ReadObject(item stow.Item) (string, error)
- type API
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAzureConfig ¶
CreateAzureConfig create azure configuration
func CreateS3Config ¶
func CreateS3Config(accessKeyID string, secretKey string, region string, endpoint string) stow.ConfigMap
CreateS3Config create S3 configuration
func InitBlobStorage ¶
func InitBlobStorage(cloudStorageConfig *types.CloudStorageConfig) (stow.ConfigMap, string)
InitBlobStorage inits the storage with the supplied credentials
func InitS3 ¶
func InitS3(cloudStorageConfig *types.CloudStorageConfig) (stow.ConfigMap, string)
InitS3 inits the storage with the supplied credentials
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API storage
func New ¶
New initialize a new storage instance. Kind is the storage kind: s3/blob storage/ google cloud. config holds the storage connection string concurrencyLimit is the limit for how many item needs to be scanned at once.
func (*API) CreateContainer ¶
CreateContainer create a container/bucket or return a reference if already exists
func (*API) RemoveContainer ¶
RemoveContainer removes a container/bucket from the storage
Click to show internal directories.
Click to hide internal directories.