Documentation ¶
Index ¶
- func CreateBucketInput(bucket *v1alpha2.S3Bucket) *s3.CreateBucketInput
- func GenerateBucketUsername(bucket *v1alpha2.S3Bucket) string
- type Bucket
- type Client
- func (c *Client) CreateOrUpdateBucket(bucket *v1alpha2.S3Bucket) error
- func (c *Client) CreateUser(username string, bucket *v1alpha2.S3Bucket) (*iam.AccessKey, string, error)
- func (c *Client) DeleteBucket(bucket *v1alpha2.S3Bucket) error
- func (c *Client) GetBucketInfo(username string, bucket *v1alpha2.S3Bucket) (*Bucket, error)
- func (c *Client) UpdateBucketACL(bucket *v1alpha2.S3Bucket) error
- func (c *Client) UpdatePolicyDocument(username string, bucket *v1alpha2.S3Bucket) (string, error)
- func (c *Client) UpdateVersioning(bucket *v1alpha2.S3Bucket) error
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBucketInput ¶
func CreateBucketInput(bucket *v1alpha2.S3Bucket) *s3.CreateBucketInput
CreateBucketInput returns a CreateBucketInput from the supplied S3Bucket.
func GenerateBucketUsername ¶
GenerateBucketUsername - Genereates a username that is within AWS size specifications, and adds a random suffix
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements S3 Client
func (*Client) CreateOrUpdateBucket ¶
CreateOrUpdateBucket creates or updates the supplied S3 bucket with provided specification, and returns access keys with permissions of localPermission
func (*Client) CreateUser ¶
func (c *Client) CreateUser(username string, bucket *v1alpha2.S3Bucket) (*iam.AccessKey, string, error)
CreateUser - Create as user to access bucket per permissions in BucketSpec returing access key and policy version
func (*Client) DeleteBucket ¶
DeleteBucket deletes s3 bucket, and related IAM
func (*Client) GetBucketInfo ¶
GetBucketInfo returns the status of key bucket settings including user's policy version for permission status
func (*Client) UpdateBucketACL ¶
UpdateBucketACL - Updated CannedACL on Bucket
func (*Client) UpdatePolicyDocument ¶
UpdatePolicyDocument based on localPermissions
type Service ¶
type Service interface { CreateOrUpdateBucket(bucket *v1alpha2.S3Bucket) error GetBucketInfo(username string, bucket *v1alpha2.S3Bucket) (*Bucket, error) CreateUser(username string, bucket *v1alpha2.S3Bucket) (*iam.AccessKey, string, error) UpdateBucketACL(bucket *v1alpha2.S3Bucket) error UpdateVersioning(bucket *v1alpha2.S3Bucket) error UpdatePolicyDocument(username string, bucket *v1alpha2.S3Bucket) (string, error) DeleteBucket(bucket *v1alpha2.S3Bucket) error }
Service defines S3 Client operations