s3

package
v0.0.307 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_library_storage_s3_api_proto protoreflect.FileDescriptor

Functions

func CreateBucket added in v0.0.79

func CreateBucket(ctx context.Context, cfg aws.Config, name string) error

Types

type BucketInstance

type BucketInstance 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"`
	Url                string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`                                                           // XXX This will be removed in favor of `endpoint_url` which has clearer semantics.
	PrivateEndpointUrl string `protobuf:"bytes,6,opt,name=private_endpoint_url,json=privateEndpointUrl,proto3" json:"private_endpoint_url,omitempty"` // The private network endpoint that provides access to this bucket. The bucket name is not part of the URL.
	PublicUrl          string `protobuf:"bytes,7,opt,name=public_url,json=publicUrl,proto3" json:"public_url,omitempty"`                              // If set, a fully qualified URL that provides internet-facing access to this bucket. The bucket name is part of the URL.
	// These are currently embedded for simplicity. They'll be moved to an
	// access credential profile that is attached to users of this resource.
	AccessKey       string `protobuf:"bytes,4,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"`                     // TODO export as secret reference
	SecretAccessKey string `protobuf:"bytes,5,opt,name=secret_access_key,json=secretAccessKey,proto3" json:"secret_access_key,omitempty"` // TODO export as secret reference
	// contains filtered or unexported fields
}

func (*BucketInstance) Descriptor deprecated

func (*BucketInstance) Descriptor() ([]byte, []int)

Deprecated: Use BucketInstance.ProtoReflect.Descriptor instead.

func (*BucketInstance) GetAccessKey

func (x *BucketInstance) GetAccessKey() string

func (*BucketInstance) GetBucketName

func (x *BucketInstance) GetBucketName() string

func (*BucketInstance) GetPrivateEndpointUrl added in v0.0.117

func (x *BucketInstance) GetPrivateEndpointUrl() string

func (*BucketInstance) GetPublicUrl added in v0.0.117

func (x *BucketInstance) GetPublicUrl() string

func (*BucketInstance) GetRegion

func (x *BucketInstance) GetRegion() string

func (*BucketInstance) GetSecretAccessKey

func (x *BucketInstance) GetSecretAccessKey() string

func (*BucketInstance) GetUrl

func (x *BucketInstance) GetUrl() string

func (*BucketInstance) ProtoMessage

func (*BucketInstance) ProtoMessage()

func (*BucketInstance) ProtoReflect

func (x *BucketInstance) ProtoReflect() protoreflect.Message

func (*BucketInstance) Reset

func (x *BucketInstance) Reset()

func (*BucketInstance) String

func (x *BucketInstance) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL