commands

package
v0.0.0-...-28dcc06 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, stateDir string, cfg *UserConfig) *cobra.Command

Create creates the `create` subcommand.

func Defaults

func Defaults() *cobra.Command

Defaults creates the `generate-defaults` subcommand. Use this to generate a default API model.

func Inspect

func Inspect(ctx context.Context, stateDir string) *cobra.Command

Inspect runs the command to inspect a cluster

func KubeConfig

func KubeConfig(ctx context.Context, stateDir string) *cobra.Command

KubeConfig creates a a command to get the kubeconfig for a cluster

func List

func List(ctx context.Context, stateDir string) *cobra.Command

List returns a command to list the existing clusters. Note that this lists from the local state, which may differ from state in Azure.

func Remove

func Remove(ctx context.Context, stateDir string, cfg *UserConfig) *cobra.Command

Remove creates a command to remove a cluster Note that this will remove the entire resource group!

func SSH

func SSH(ctx context.Context, stateDir string) *cobra.Command

SSH creates the command to ssh into the cluster

Types

type AgentNodeConfig

type AgentNodeConfig struct {
	SKU   string
	Count *int
}

AgentNodeConfig is used to configure an agent node pool. It's used by UserConfig

type UserConfig

type UserConfig struct {
	Subscription string
	Location     string

	Profile struct {
		KubernetesVersion string
		Leader            struct {
			Linux struct {
				SKU   string
				Count *int
			}
		}
		Agent struct {
			Linux   AgentNodeConfig
			Windows AgentNodeConfig
		}
		Auth struct {
			Linux struct {
				User          string
				PublicKeyFile string
			}
			Windows struct {
				User         string
				PasswordFile string
			}
		}
	}
}

UserConfig represents the user configuration read from a config file

func ReadUserConfig

func ReadUserConfig(configPath string) (UserConfig, error)

ReadUserConfig reads the config from the provided path If

Jump to

Keyboard shortcuts

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