Documentation
¶
Overview ¶
Package s3 contains a client for interacting with S3 compatible object storage.
Index ¶
Constants ¶
View Source
const ( AWSSecretNameKeyID = "AWS_ACCESS_KEY_ID" AWSSecretNameSecretKey = "AWS_SECRET_ACCESS_KEY" AWSSecretNameRegion = "AWS_REGION" )
Constants for keys in secret generated for OPAs
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
UserExists(ctx context.Context, accessKey string) (bool, error)
CreateSystemBundleUser(ctx context.Context, accessKey, bucketName string, uniqueName string) (string, error)
SetNewUserSecretKey(ctx context.Context, accessKey string) (string, error)
}
Client is an interface for clients interacting with S3 compatible object storage.
type Config ¶
type Config struct {
Endpoint string
AccessKeyID string
SecretAccessKey string
Region string
UseSSL bool
PathStyle bool // Required for MinIO and some S3-compatible storage
}
Config defines the configuration for a S3 client.
type Credentials ¶
type Credentials struct {
AccessKeyID string `json:"accessKeyID"`
SecretAccessKey string `json:"secretAccessKey"`
Region string `json:"region"`
}
Credentials represents S3 credentials.
Click to show internal directories.
Click to hide internal directories.