Documentation ¶
Overview ¶
Package getters contains functions to get data from the system.
Index ¶
- func GetAllocationByClusterIDSpec(ctx context.Context, c client.Client, clusterID string) (nodecorev1alpha1.AllocationList, error)
- func GetAllocationByContractName(ctx context.Context, c client.Client, contractName string) (*nodecorev1alpha1.Allocation, error)
- func GetBlueprint(ctx context.Context, c client.Client, flavorName string) (*nodecorev1alpha1.ServiceBlueprint, error)
- func GetLiqoCredentials(ctx context.Context, cl client.Client) (*nodecorev1alpha1.LiqoCredentials, error)
- func GetLocalProviders(ctx context.Context, cl client.Client) []string
- func GetNodeIdentity(ctx context.Context, cl client.Client) *nodecorev1alpha1.NodeIdentity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllocationByClusterIDSpec ¶ added in v0.1.0
func GetAllocationByClusterIDSpec(ctx context.Context, c client.Client, clusterID string) (nodecorev1alpha1.AllocationList, error)
GetAllocationByClusterIDSpec retrieves the name of the allocation with the given in its Specs.
func GetAllocationByContractName ¶ added in v0.1.0
func GetAllocationByContractName(ctx context.Context, c client.Client, contractName string) (*nodecorev1alpha1.Allocation, error)
GetAllocationByContractName retrieves the Allocation with the given contract name.
func GetBlueprint ¶ added in v0.1.0
func GetBlueprint(ctx context.Context, c client.Client, flavorName string) (*nodecorev1alpha1.ServiceBlueprint, error)
GetBlueprint retrieves a ServiceBlueprint from the Flavor name.
func GetLiqoCredentials ¶ added in v0.0.2
func GetLiqoCredentials(ctx context.Context, cl client.Client) (*nodecorev1alpha1.LiqoCredentials, error)
GetLiqoCredentials retrieves the Liqo credentials from the local cluster.
func GetLocalProviders ¶
GetLocalProviders retrieves the list of local providers ip addresses from the KnownCluster CRs.
func GetNodeIdentity ¶
func GetNodeIdentity(ctx context.Context, cl client.Client) *nodecorev1alpha1.NodeIdentity
GetNodeIdentity retrieves the node identity from the local cluster.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.