Documentation ¶
Index ¶
- func GetConnectionDetails(fileSystemID *string, cr *v1alpha1.NASFileSystem) managed.ConnectionDetails
- func GetMountTargetConnectionDetails(cr *v1alpha1.NASMountTarget) managed.ConnectionDetails
- func SetupNASFileSystem(mgr ctrl.Manager, l logging.Logger) error
- func SetupNASMountTarget(mgr ctrl.Manager, l logging.Logger) error
- type Connector
- type External
- func (e *External) Create(ctx context.Context, mg resource.Managed) (managed.ExternalCreation, error)
- func (e *External) Delete(ctx context.Context, mg resource.Managed) error
- func (e *External) Observe(ctx context.Context, mg resource.Managed) (managed.ExternalObservation, error)
- func (e *External) Update(ctx context.Context, mg resource.Managed) (managed.ExternalUpdate, error)
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 ¶
SetupNASFileSystem adds a controller that reconciles NASFileSystem.
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
type External ¶
type External struct {
ExternalClient nasclient.ClientInterface
}
External includes external NAS client
func (*External) Create ¶
func (e *External) Create(ctx context.Context, mg resource.Managed) (managed.ExternalCreation, error)
Create managed resource NASFilesystem
Click to show internal directories.
Click to hide internal directories.