cmavmware

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VMWareProvider = "VMWare"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AdjustClusterInput

type AdjustClusterInput struct {
	Name        string
	AddNodes    []MachineSpec
	RemoveNodes []RemoveMachineSpec
}

type AdjustClusterOutput

type AdjustClusterOutput struct {
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) AdjustCluster

func (a *Client) AdjustCluster(input AdjustClusterInput) (AdjustClusterOutput, error)

func (*Client) Close

func (a *Client) Close() error

func (*Client) ClusterUpgrade

func (a *Client) ClusterUpgrade(input ClusterUpgradeInput) (ClusterUpgradeOutput, error)

func (*Client) CreateCluster

func (a *Client) CreateCluster(input CreateClusterInput) (CreateClusterOutput, error)

func (*Client) CreateNewClient

func (a *Client) CreateNewClient(hostname string, insecure bool) error

func (*Client) DeleteCluster

func (a *Client) DeleteCluster(input DeleteClusterInput) (DeleteClusterOutput, error)

func (*Client) GetCluster

func (a *Client) GetCluster(input GetClusterInput) (GetClusterOutput, error)

func (*Client) GetClusterUpgrades

func (a *Client) GetClusterUpgrades(input GetClusterUpgradesInput) (GetClusterUpgradesOutput, error)

func (*Client) ListClusters

func (a *Client) ListClusters(input ListClusterInput) (ListClusterOutput, error)

func (*Client) SetClient

func (a *Client) SetClient(client pb.ClusterClient)

type ClientInterface

type ClientInterface interface {
	CreateCluster(CreateClusterInput) (CreateClusterOutput, error)
	GetCluster(GetClusterInput) (GetClusterOutput, error)
	DeleteCluster(DeleteClusterInput) (DeleteClusterOutput, error)
	ListClusters(ListClusterInput) (ListClusterOutput, error)
	AdjustCluster(AdjustClusterInput) (AdjustClusterOutput, error)
	GetClusterUpgrades(input GetClusterUpgradesInput) (GetClusterUpgradesOutput, error)
	ClusterUpgrade(input ClusterUpgradeInput) (ClusterUpgradeOutput, error)

	CreateNewClient(string, bool) error
	Close() error
}

func CreateNewClient

func CreateNewClient(hostname string, insecure bool) (ClientInterface, error)

type ClusterDetailItem

type ClusterDetailItem struct {
	ID         string
	Name       string
	Status     string
	Kubeconfig string
}

type ClusterItem

type ClusterItem struct {
	ID     string
	Name   string
	Status string
}

type ClusterUpgradeInput

type ClusterUpgradeInput struct {
	Name    string
	Version string
}

type ClusterUpgradeOutput

type ClusterUpgradeOutput struct{}

type CreateClusterInput

type CreateClusterInput struct {
	Name              string
	K8SVersion        string
	ControlPlaneNodes []MachineSpec
	WorkerNodes       []MachineSpec
	APIEndpoint       string
	HighAvailability  bool
	NetworkFabric     string
}

type CreateClusterOutput

type CreateClusterOutput struct {
	Cluster ClusterItem
}

type DeleteClusterInput

type DeleteClusterInput struct {
	Name string
}

type DeleteClusterOutput

type DeleteClusterOutput struct {
	Status string
}

type GetClusterInput

type GetClusterInput struct {
	Name string
}

type GetClusterOutput

type GetClusterOutput struct {
	Cluster ClusterDetailItem
}

type GetClusterUpgradesInput

type GetClusterUpgradesInput struct {
	Name string
}

type GetClusterUpgradesOutput

type GetClusterUpgradesOutput struct {
	Versions []string
}

type KubernetesLabel

type KubernetesLabel struct {
	Name  string
	Value string
}

type ListClusterInput

type ListClusterInput struct{}

type ListClusterOutput

type ListClusterOutput struct {
	Clusters []ClusterItem
}

type MachineSpec

type MachineSpec struct {
	Username string
	Host     string
	Port     int
	Password string
	Labels   []KubernetesLabel
}

type RemoveMachineSpec

type RemoveMachineSpec struct {
	Host string
}

Jump to

Keyboard shortcuts

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