manifests

package
v0.0.0-...-9516177 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RetrieveClusters

func RetrieveClusters(manifests string) cluster.Map

RetrieveClusters returns a cluster list from the given manifests

func RetrieveComponents

func RetrieveComponents(manifests string) component.List

RetrieveComponents returns a component list from the given manifests

func RetrieveHypervisors

func RetrieveHypervisors(manifests string) infra.HypervisorMap

RetrieveHypervisors returns an hypervisor map from the given manifests

func WithNamedCluster

func WithNamedCluster(clusterName string, clusters cluster.Map, withCluster func(*cluster.Cluster) error) error

WithNamedCluster will retrieve the cluster with clusterName, or retrieve the only cluster available if clusterName is empty and clusters has only one registered cluster

func WithStdinResources

func WithStdinResources(resourceActuator ResourceActuator) error

WithStdinResources is a function that will take hypervisors, clusters and components from stdin and call to a resource actuator with them, printing all resulting resources at the end on stdout

func WithStdinResourcesSilent

func WithStdinResourcesSilent(silentResourceActuator SilentResourceActuator) error

WithStdinResourcesSilent is similar to WithStdinResources, only that it won't print the resulting resources after calling to the actuator

Types

type ResourceActuator

type ResourceActuator func(infra.HypervisorMap, cluster.Map, component.List) (component.List, error)

ResourceActuator represents a function that takes an hypervisor map, a cluster map and a component list and performs some kind of logic with them, potentially modifying any of the resources

type SilentResourceActuator

type SilentResourceActuator func(infra.HypervisorMap, cluster.Map, component.List) error

SilentResourceActuator represents a function that takes an hypervisor map, a cluster map and a component list and performs some kind of logic with them

Jump to

Keyboard shortcuts

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