opctlutil

package
v0.0.0-...-e708cdf Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSshKey

func GenerateSshKey() ([]byte, string, error)

func GetPublicKeyFromPrivate

func GetPublicKeyFromPrivate(privateKey string) (string, error)

GetPublicKey from private key

Types

type AddNodePoolGroupInput

type AddNodePoolGroupInput struct {
	Credentials azurev1beta1.AzureCredentials
	ClusterName string
	Config      ClusterConfig
}

type AddNodePoolGroupOutput

type AddNodePoolGroupOutput struct {
	OpId string
}

type AgentPoolProfiles

type AgentPoolProfiles struct {
	Name                   string `json:"name"`
	Count                  int    `json:"count"`
	VMSize                 string `json:"vmSize"`
	EnableVMSSNodePublicIP bool   `json:"enableVMSSNodePublicIP"`
	AvailabilityProfile    string `json:"availabilityProfile"`
}

type ClusterConfig

type ClusterConfig struct {
	APIVersion string     `json:"apiVersion"`
	Properties Properties `json:"properties"`
}

ClusterConfig is used to create an aks-engine cluster in azure

type CreateClusterInput

type CreateClusterInput struct {
	Credentials azurev1beta1.AzureCredentials
	Location    string
	ClusterName string
	Config      ClusterConfig
}

type CreateClusterOutput

type CreateClusterOutput struct {
	OpId string
}

type DeleteClusterInput

type DeleteClusterInput struct {
	Credentials azurev1beta1.AzureCredentials
	Location    string
	ClusterName string
}

type DeleteClusterOutput

type DeleteClusterOutput struct {
	OpId string
}

type GetOpEventsInput

type GetOpEventsInput struct {
	OpId      string
	StartTime time.Time
}

type GetOpEventsOutput

type GetOpEventsOutput struct {
	Outcome string
}

type LinuxProfile

type LinuxProfile struct {
	AdminUsername string `json:"adminUsername"`
	SSH           SSH    `json:"ssh"`
}

type MasterProfile

type MasterProfile struct {
	Count     int    `json:"count"`
	DNSPrefix string `json:"dnsPrefix"`
	VMSize    string `json:"vmSize"`
}

type OPCTL

type OPCTL struct {
	Client nodeapi.Client
}

func New

func New(hostName string) *OPCTL

New creates a new opctl client

func (*OPCTL) AddNodePoolGroup

func (o *OPCTL) AddNodePoolGroup(input AddNodePoolGroupInput) (AddNodePoolGroupOutput, error)

AddNodePoolGroup adds a node pool group to the cluster

func (*OPCTL) CreateCluster

func (o *OPCTL) CreateCluster(input CreateClusterInput) (CreateClusterOutput, error)

func (*OPCTL) DeleteCluster

func (o *OPCTL) DeleteCluster(input DeleteClusterInput) (DeleteClusterOutput, error)

DeleteCluster deletes an aks-engine cluster

func (*OPCTL) GetOpEvents

func (o *OPCTL) GetOpEvents(input GetOpEventsInput) (GetOpEventsOutput, error)

GetOpEvents starts event loop while operation is running until completion

func (*OPCTL) RemoveNodePoolGroup

func (o *OPCTL) RemoveNodePoolGroup(input RemoveNodePoolGroupInput) (RemoveNodePoolGroupOutput, error)

RemoveNodePoolGroup removes a node pool group from the cluster

func (*OPCTL) ScaleNodePool

func (o *OPCTL) ScaleNodePool(input ScaleNodePoolInput) (ScaleNodePoolOutput, error)

ScaleNodePool increases/decreases the number of instances for a given node pool

func (*OPCTL) UpgradeCluster

func (o *OPCTL) UpgradeCluster(input UpgradeClusterInput) (UpgradeClusterOutput, error)

UpgradeCluster upgrade the kubernetes cluster to a later version of kubernetes

type OrchestratorProfile

type OrchestratorProfile struct {
	OrchestratorType    string `json:"orchestratorType"`
	OrchestratorRelease string `json:"orchestratorRelease"`
	OrchestratorVersion string `json:"orchestratorVersion"`
}

type Properties

type Properties struct {
	OrchestratorProfile     OrchestratorProfile     `json:"orchestratorProfile"`
	MasterProfile           MasterProfile           `json:"masterProfile"`
	AgentPoolProfiles       []AgentPoolProfiles     `json:"agentPoolProfiles"`
	LinuxProfile            LinuxProfile            `json:"linuxProfile"`
	ServicePrincipalProfile ServicePrincipalProfile `json:"servicePrincipalProfile"`
}

type PublicKeys

type PublicKeys struct {
	KeyData string `json:"keyData"`
}

type RemoveNodePoolGroupInput

type RemoveNodePoolGroupInput struct {
	Credentials azurev1beta1.AzureCredentials
	Location    string
	ClusterName string
	Config      ClusterConfig
}

type RemoveNodePoolGroupOutput

type RemoveNodePoolGroupOutput struct {
	OpId string
}

type SSH

type SSH struct {
	PublicKeys []PublicKeys `json:"publicKeys"`
}

type ScaleNodePoolInput

type ScaleNodePoolInput struct {
	Credentials  azurev1beta1.AzureCredentials
	Location     string
	ClusterName  string
	NodePoolName string
	Count        string
}

type ScaleNodePoolOutput

type ScaleNodePoolOutput struct {
	OpId string
}

type ServicePrincipalProfile

type ServicePrincipalProfile struct {
	ClientID string `json:"clientId"`
	Secret   string `json:"secret"`
}

type UpgradeClusterInput

type UpgradeClusterInput struct {
	Credentials    azurev1beta1.AzureCredentials
	Location       string
	ClusterName    string
	UpgradeVersion string
}

type UpgradeClusterOutput

type UpgradeClusterOutput struct {
	OpId string
}

Jump to

Keyboard shortcuts

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