Documentation
¶
Index ¶
- Variables
- func GetAvailabilityZone(ctx context.Context, client ctrlclient.Client, availabilityZoneName string) (topologyv1.AvailabilityZone, error)
- func GetAvailabilityZones(ctx context.Context, client ctrlclient.Client) ([]topologyv1.AvailabilityZone, error)
- func GetNamespaceFolderAndRPMoID(ctx context.Context, client ctrlclient.Client, ...) (string, string, error)
- func GetNamespaceFolderAndRPMoIDs(ctx context.Context, client ctrlclient.Client, namespace string) (string, []string, error)
- func GetNamespaceFolderMoID(ctx context.Context, client ctrlclient.Client, namespace string) (string, error)
- func GetZone(ctx context.Context, client ctrlclient.Client, zoneName string, ...) (topologyv1.Zone, error)
- func GetZones(ctx context.Context, client ctrlclient.Client, namespace string) ([]topologyv1.Zone, error)
- func LookupZoneForClusterMoID(ctx context.Context, client ctrlclient.Client, clusterMoID string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoAvailabilityZones occurs when no availability zones are detected. ErrNoAvailabilityZones = errors.New("no availability zones") ErrNoZones = errors.New("no zones in specified namespace") )
Functions ¶
func GetAvailabilityZone ¶
func GetAvailabilityZone( ctx context.Context, client ctrlclient.Client, availabilityZoneName string) (topologyv1.AvailabilityZone, error)
GetAvailabilityZone returns a named AvailabilityZone resource.
func GetAvailabilityZones ¶
func GetAvailabilityZones( ctx context.Context, client ctrlclient.Client) ([]topologyv1.AvailabilityZone, error)
GetAvailabilityZones returns a list of the AvailabilityZone resources.
func GetNamespaceFolderAndRPMoID ¶
func GetNamespaceFolderAndRPMoID( ctx context.Context, client ctrlclient.Client, availabilityZoneName, namespace string) (string, string, error)
GetNamespaceFolderAndRPMoID returns the Folder and ResourcePool MoID for the zone and namespace.
func GetNamespaceFolderAndRPMoIDs ¶
func GetNamespaceFolderAndRPMoIDs( ctx context.Context, client ctrlclient.Client, namespace string) (string, []string, error)
GetNamespaceFolderAndRPMoIDs returns the Folder and ResourcePool MoIDs for the namespace, across all zones.
func GetNamespaceFolderMoID ¶
func GetNamespaceFolderMoID( ctx context.Context, client ctrlclient.Client, namespace string) (string, error)
GetNamespaceFolderMoID returns the FolderMoID for the namespace.
func GetZone ¶ added in v1.9.0
func GetZone( ctx context.Context, client ctrlclient.Client, zoneName string, namespace string) (topologyv1.Zone, error)
GetZone returns a namespaced Zone resource.
func GetZones ¶ added in v1.9.0
func GetZones( ctx context.Context, client ctrlclient.Client, namespace string) ([]topologyv1.Zone, error)
GetZones returns a list of the Zone resources in a namespace.
func LookupZoneForClusterMoID ¶
func LookupZoneForClusterMoID( ctx context.Context, client ctrlclient.Client, clusterMoID string) (string, error)
LookupZoneForClusterMoID returns the zone for the given Cluster MoID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.