cmaaks

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 (
	AKSProvider = "AKS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureSpec

type AzureSpec struct {
	Location              string
	Credentials           Credentials
	ClusterServiceAccount ClusterServiceAccount
	InstanceGroups        []InstanceGroup
}

type Client

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

func (*Client) Close

func (a *Client) Close() error

func (*Client) ClusterUpgrade

func (a *Client) ClusterUpgrade(input ClusterUpgradeInput) (output ClusterUpgradeOutput, err 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) GetClusterNodeCount

func (a *Client) GetClusterNodeCount(input GetClusterNodeCountInput) (output GetClusterNodeCountOutput, err error)

func (*Client) GetClusterUpgrades

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

func (*Client) ListClusters

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

func (*Client) ScaleCluster

func (a *Client) ScaleCluster(input ScaleClusterInput) (output ScaleClusterOutput, err 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)
	GetClusterUpgrades(input GetClusterUpgradesInput) (GetClusterUpgradesOutput, error)
	ClusterUpgrade(input ClusterUpgradeInput) (ClusterUpgradeOutput, error)
	GetClusterNodeCount(input GetClusterNodeCountInput) (GetClusterNodeCountOutput, error)
	ScaleCluster(input ScaleClusterInput) (ScaleClusterOutput, 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 ClusterServiceAccount

type ClusterServiceAccount struct {
	ClientID     string
	ClientSecret string
}

type ClusterUpgradeInput

type ClusterUpgradeInput struct {
	Name        string
	Credentials Credentials
	Version     string
}

type ClusterUpgradeOutput

type ClusterUpgradeOutput struct{}

type CreateClusterInput

type CreateClusterInput struct {
	Name             string
	K8SVersion       string
	Azure            AzureSpec
	HighAvailability bool
	NetworkFabric    string
}

type CreateClusterOutput

type CreateClusterOutput struct {
	Cluster ClusterItem
}

type Credentials

type Credentials struct {
	AppID          string
	Tenant         string
	Password       string
	SubscriptionID string
}

type DeleteClusterInput

type DeleteClusterInput struct {
	Name        string
	Credentials Credentials
}

type DeleteClusterOutput

type DeleteClusterOutput struct {
	Status string
}

type GetClusterInput

type GetClusterInput struct {
	Name        string
	Credentials Credentials
}

type GetClusterNodeCountInput

type GetClusterNodeCountInput struct {
	Name        string
	Credentials Credentials
}

type GetClusterNodeCountOutput

type GetClusterNodeCountOutput struct {
	Name  string
	Count int32
}

type GetClusterOutput

type GetClusterOutput struct {
	Cluster ClusterDetailItem
}

type GetClusterUpgradesInput

type GetClusterUpgradesInput struct {
	Name        string
	Credentials Credentials
}

type GetClusterUpgradesOutput

type GetClusterUpgradesOutput struct {
	Versions []string
}

type InstanceGroup

type InstanceGroup struct {
	Name        string
	Type        string
	MinQuantity int
	MaxQuantity int
}

type ListClusterInput

type ListClusterInput struct {
	Credentials Credentials
}

type ListClusterOutput

type ListClusterOutput struct {
	Clusters []ClusterItem
}

type ScaleClusterInput

type ScaleClusterInput struct {
	Name        string
	Credentials Credentials
	NodePool    string
	Count       int32
}

type ScaleClusterOutput

type ScaleClusterOutput struct{}

Jump to

Keyboard shortcuts

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