oss

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConnectionDetails

func GetConnectionDetails(cr *v1alpha1.Bucket) managed.ConnectionDetails

GetConnectionDetails generates connection details

func SetupBucket

func SetupBucket(mgr ctrl.Manager, l logging.Logger) error

SetupBucket adds a controller that reconciles Bucket.

Types

type Connector

type Connector struct {
	Client      client.Client
	Usage       resource.Tracker
	NewClientFn func(ctx context.Context, endpoint, accessKeyID, accessKeySecret, stsToken string) (*ossclient.SDKClient, error)
}

Connector stores Kubernetes client and oss client

func (*Connector) Connect

Connect initials cloud resource client

type External

type External struct {
	ExternalClient ossclient.ClientInterface
}

External includes external OSS client

func (*External) Create

Create managed resource OSS bucket

func (*External) Delete

func (e *External) Delete(ctx context.Context, mg resource.Managed) error

Delete managed resource OSS bucket

func (*External) Observe

Observe managed resource OSS bucket

func (*External) Update

Update managed resource OSS bucket

Jump to

Keyboard shortcuts

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