cnsfilevolumeclient

package
v3.2.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileVolumeClient

type FileVolumeClient interface {
	// GetClientVMsFromIPList returns the list of client vms associated
	// with a given External IP address and CnsFileVolumeClient instance name
	GetClientVMsFromIPList(ctx context.Context, fileVolumeName string, clientVMIP string) ([]string, error)
	// AddClientVMToIPList adds the input clientVMName to the list of
	// clientVMNames that expose the same external clientVMIP for a
	// given file volume. fileVolumeName is used to uniquely
	// identify CnsFileVolumeClient instances.
	AddClientVMToIPList(ctx context.Context, fileVolumeName, clientVMName, clientVMIP string) error
	// RemoveClientVMFromIPList removes the input clientVMName from
	// the list of clientVMNames that expose the same external
	// clientVMIP for a given file volume. fileVolumeName is used
	// to uniquely identify CnsFileVolumeClient instances.
	RemoveClientVMFromIPList(ctx context.Context, fileVolumeName, clientVMName, clientVMIP string) error
}

FileVolumeClient exposes an interface to support configuration of CNS file volume ACL's.

func GetFileVolumeClientInstance

func GetFileVolumeClientInstance(ctx context.Context) (FileVolumeClient, error)

GetFileVolumeClientInstance returns a singleton of type FileVolumeClient. Initializes the singleton if not already initialized.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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