s3

package
v0.0.368 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Package__4pkegf = &core.Package{
		PackageName:         "namespacelabs.dev/foundation/universe/storage/s3",
		PackageDependencies: []string{"namespacelabs.dev/foundation/universe/aws/client"},
	}

	Provider__4pkegf = core.Provider{
		Package:     Package__4pkegf,
		Instantiate: makeDeps__4pkegf,
	}
)
View Source
var File_universe_storage_s3_types_proto protoreflect.FileDescriptor

Functions

func ProvideBucket

func ProvideBucket(ctx context.Context, args *BucketArgs, deps ExtensionDeps) (*fns3.Bucket, error)

func ProvideBucketWithFactory

func ProvideBucketWithFactory(ctx context.Context, args *BucketArgs, factory client.ClientFactory, minioCreds *minio.Creds) (*fns3.Bucket, error)

Types

type BucketArgs

type BucketArgs struct {
	BucketName string `protobuf:"bytes,1,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
	// Optional. If not specified, and the cluster is deployed in a single
	// AWS region, create the bucket in the same region as the cluster.
	Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"`
	// contains filtered or unexported fields
}

func (*BucketArgs) Descriptor deprecated

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

Deprecated: Use BucketArgs.ProtoReflect.Descriptor instead.

func (*BucketArgs) GetBucketName

func (x *BucketArgs) GetBucketName() string

func (*BucketArgs) GetRegion

func (x *BucketArgs) GetRegion() string

func (*BucketArgs) ProtoMessage

func (*BucketArgs) ProtoMessage()

func (*BucketArgs) ProtoReflect

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

func (*BucketArgs) Reset

func (x *BucketArgs) Reset()

func (*BucketArgs) String

func (x *BucketArgs) String() string

type ExtensionDeps

type ExtensionDeps struct {
	ClientFactory client.ClientFactory
	MinioCreds    *creds.Creds
}

Dependencies that are instantiated once for the lifetime of the extension.

type MultipleBucketArgs

type MultipleBucketArgs struct {
	Bucket []*BucketArgs `protobuf:"bytes,1,rep,name=bucket,proto3" json:"bucket,omitempty"`
	// contains filtered or unexported fields
}

func ProvidedConfiguration

func ProvidedConfiguration() (*MultipleBucketArgs, error)

func (*MultipleBucketArgs) Descriptor deprecated

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

Deprecated: Use MultipleBucketArgs.ProtoReflect.Descriptor instead.

func (*MultipleBucketArgs) GetBucket

func (x *MultipleBucketArgs) GetBucket() []*BucketArgs

func (*MultipleBucketArgs) ProtoMessage

func (*MultipleBucketArgs) ProtoMessage()

func (*MultipleBucketArgs) ProtoReflect

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

func (*MultipleBucketArgs) Reset

func (x *MultipleBucketArgs) Reset()

func (*MultipleBucketArgs) String

func (x *MultipleBucketArgs) String() string

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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