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 AwsConfig
- 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 ExtensionDeps
- type PutObjectOpt
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Package__eoj2dq = &core.Package{ PackageName: "namespacelabs.dev/foundation/universe/aws/s3", } Provider__eoj2dq = core.Provider{ Package: Package__eoj2dq, Instantiate: makeDeps__eoj2dq, } )
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 Bucket ¶
func ProvideBucket ¶
func ProvideBucket(ctx context.Context, bc *BucketConfig, deps ExtensionDeps) (*Bucket, error)
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 ExtensionDeps ¶
type ExtensionDeps struct { ClientFactory client.ClientFactory ReadinessCheck core.Check }
Dependencies that are instantiated once for the lifetime of the extension.
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.