placementengine

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllAccessibleDSInTopology added in v3.2.0

func GetAllAccessibleDSInTopology(ctx context.Context,
	topologyArr []map[string]string, vcenter *cnsvsphere.VirtualCenter) ([]*cnsvsphere.DatastoreInfo,
	error)

GetAllAccessibleDSInTopology returns a list of accessible datastores for requested topology.

func GetSharedDatastores

func GetSharedDatastores(ctx context.Context, reqParams interface{}) (
	[]*cnsvsphere.DatastoreInfo, error)

GetSharedDatastores retrieves the shared accessible datastores for hosts associated with the topology segments requested by user.

func GetTopologyInfoFromNodes

func GetTopologyInfoFromNodes(ctx context.Context, reqParams interface{}) (
	[]map[string]string, error)

GetTopologyInfoFromNodes retrieves the topology information of the given list of node names using the information from CSINodeTopology instances.

Types

type VanillaRetrieveTopologyInfoParams

type VanillaRetrieveTopologyInfoParams struct {
	// VCHost is the vCenter IP/FQDN in which volume
	// provisioning is being attempted.
	VCHost string
	// NodeNames is the list of node names which have
	// access to the selected datastore.
	NodeNames []string
	// DatastoreURL is the selected datastore for which the topology
	// information needs to be retrieved.
	DatastoreURL string
	// RequestedTopologySegments represents the topology segments
	// which need to be satisfied during volume provisioning for a particular VC.
	RequestedTopologySegments []map[string]string
	// IsTopologyPreferentialDatastoresFSSEnabled determines the
	// state of topology-preferential-datastores FSS.
	IsTopologyPreferentialDatastoresFSSEnabled bool
}

VanillaRetrieveTopologyInfoParams represents the params required to be able to call GetTopologyInfoFromNodes in vanilla cluster.

type VanillaSharedDatastoresParams

type VanillaSharedDatastoresParams struct {
	// Vcenter holds the client connection to the VC on
	// which volume provisioning is being attempted.
	Vcenter *cnsvsphere.VirtualCenter
	// TopologySegmentsList is the list of topology segments
	// which represent the accessibility requirements for the volume provisioning request.
	TopologySegmentsList []map[string]string
	// StoragePolicyID represents the unique ID of the storage policy
	// name given in the Storage Class on the attempted VC.
	StoragePolicyID string
}

VanillaSharedDatastoresParams represents the params required to be able to call GetSharedDatastores function.

Jump to

Keyboard shortcuts

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