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.
Click to show internal directories.
Click to hide internal directories.