nas

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(fileSystemID *string, cr *v1alpha1.NASFileSystem) managed.ConnectionDetails

GetConnectionDetails generates connection details

func GetMountTargetConnectionDetails

func GetMountTargetConnectionDetails(cr *v1alpha1.NASMountTarget) managed.ConnectionDetails

GetMountTargetConnectionDetails generates connection details

func SetupNASFileSystem

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

SetupNASFileSystem adds a controller that reconciles NASFileSystem.

func SetupNASMountTarget

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

SetupNASMountTarget adds a controller that reconciles NASMountTarget.

Types

type Connector

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

Connector stores Kubernetes client and NAS client

func (*Connector) Connect

Connect initials cloud resource client

type External

type External struct {
	ExternalClient nasclient.ClientInterface
}

External includes external NAS client

func (*External) Create

Create managed resource NASFilesystem

func (*External) Delete

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

Delete managed resource NASFilesystem

func (*External) Observe

Observe managed resource NAS filesystem

func (*External) Update

Update managed resource NASFilesystem

Jump to

Keyboard shortcuts

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