s3

package
v0.0.96 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 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"`
	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) 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

type BucketIntent

type BucketIntent 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 (*BucketIntent) Descriptor deprecated

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

Deprecated: Use BucketIntent.ProtoReflect.Descriptor instead.

func (*BucketIntent) GetBucketName

func (x *BucketIntent) GetBucketName() string

func (*BucketIntent) GetRegion

func (x *BucketIntent) GetRegion() string

func (*BucketIntent) ProtoMessage

func (*BucketIntent) ProtoMessage()

func (*BucketIntent) ProtoReflect

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

func (*BucketIntent) Reset

func (x *BucketIntent) Reset()

func (*BucketIntent) String

func (x *BucketIntent) String() string

Jump to

Keyboard shortcuts

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