Documentation ¶
Index ¶
- Variables
- type BindParams
- type BucketCredentials
- type Client
- type Config
- type ProvisionParams
- type S3Client
- func (s *S3Client) AddUserToBucket(bindData provider.BindData) (BucketCredentials, error)
- func (s *S3Client) CreateBucket(provisionData provider.ProvisionData) error
- func (s *S3Client) DeleteBucket(name string) error
- func (s *S3Client) RemoveUserFromBucketAndDeleteUser(bindingID, bucketName string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoSuchResources = errors.New("no such resources found")
)
Functions ¶
This section is empty.
Types ¶
type BindParams ¶
type BucketCredentials ¶
type Config ¶
type Config struct { AWSRegion string `json:"aws_region"` ResourcePrefix string `json:"resource_prefix"` IAMUserPath string `json:"iam_user_path"` DeployEnvironment string `json:"deploy_env"` IpRestrictionPolicyARN string `json:"iam_ip_restriction_policy_arn"` Timeout time.Duration }
func NewS3ClientConfig ¶
type ProvisionParams ¶
type ProvisionParams struct {
PublicBucket bool `json:"public_bucket"`
}
type S3Client ¶
type S3Client struct {
// contains filtered or unexported fields
}
func NewS3Client ¶
func (*S3Client) AddUserToBucket ¶
func (s *S3Client) AddUserToBucket(bindData provider.BindData) (BucketCredentials, error)
func (*S3Client) CreateBucket ¶
func (s *S3Client) CreateBucket(provisionData provider.ProvisionData) error
func (*S3Client) DeleteBucket ¶
func (*S3Client) RemoveUserFromBucketAndDeleteUser ¶
Click to show internal directories.
Click to hide internal directories.