Documentation ¶
Index ¶
- Variables
- func EnsureBucketExists(ctx context.Context, client *s3.Client, bc *BucketConfig) error
- func EnsureBucketExistsByName(ctx context.Context, client *s3.Client, name, region string) error
- type Bucket
- type BucketConfig
- func (*BucketConfig) Descriptor() ([]byte, []int)deprecated
- func (x *BucketConfig) GetBucketName() string
- func (x *BucketConfig) GetRegion() string
- func (*BucketConfig) ProtoMessage()
- func (x *BucketConfig) ProtoReflect() protoreflect.Message
- func (x *BucketConfig) Reset()
- func (x *BucketConfig) String() string
- type PutObjectOpt
Constants ¶
This section is empty.
Variables ¶
View Source
var File_universe_aws_s3_provider_proto protoreflect.FileDescriptor
Functions ¶
func EnsureBucketExists ¶
EnsureBucketExists creates the requested bucket before it is used.
Types ¶
type BucketConfig ¶
type BucketConfig struct { Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` BucketName string `protobuf:"bytes,2,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"` // contains filtered or unexported fields }
func (*BucketConfig) Descriptor
deprecated
func (*BucketConfig) Descriptor() ([]byte, []int)
Deprecated: Use BucketConfig.ProtoReflect.Descriptor instead.
func (*BucketConfig) GetBucketName ¶
func (x *BucketConfig) GetBucketName() string
func (*BucketConfig) GetRegion ¶
func (x *BucketConfig) GetRegion() string
func (*BucketConfig) ProtoMessage ¶
func (*BucketConfig) ProtoMessage()
func (*BucketConfig) ProtoReflect ¶
func (x *BucketConfig) ProtoReflect() protoreflect.Message
func (*BucketConfig) Reset ¶
func (x *BucketConfig) Reset()
func (*BucketConfig) String ¶
func (x *BucketConfig) String() string
type PutObjectOpt ¶
type PutObjectOpt func(*s3.PutObjectInput)
func WithExpiration ¶
func WithExpiration(expiration time.Time) PutObjectOpt
Click to show internal directories.
Click to hide internal directories.