cmd

package
v0.0.0-...-7bcb550 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2017 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GitSha string
View Source
var RootCmd = &cobra.Command{
	Use:   "kubicorn",
	Short: "Kubernetes cluster management, without any magic",
	Long: fmt.Sprintf(`
%s
`, Unicorn),
	Run: func(cmd *cobra.Command, args []string) {
		if logger.Fabulous {
			cmd.SetOutput(logger.FabulousWriter)
		}
		if os.Getenv("KUBICORN_TRUECOLOR") != "" {
			cmd.SetOutput(logger.FabulousTrueWriter)
		}
		cmd.Help()
	},
	BashCompletionFunction: bashCompletionFunc,
}

RootCmd represents the base command when called without any subcommands

View Source
var Unicorn = fmt.Sprintf(`-----------------------------------------------------------------------------------
                                                         ,/
                                                        //
                                                      ,//
                                          ___   /|   |//
                                       __/\_ --(/|___/-/
 The Kubicorn Authors               \|\_-\___ __-_ - /-/ \.
    Copyright 2017                |\_-___,-\_____--/_)' ) \
                                   \ -_ /     __ \(  ( __ \|
                                    \__|      |\)\ ) /(/|
           ,._____.,            ',--//-|      \  |  '   /
          /     __. \,          / /,---|       \       /
         / /    _. \  \         / _/ _,'        |     |
        |  | ( (  \   |      ,/\'__/'/          |     |
        |  \  \ --,  _/_------______/           \(   )/
        | | \  \_. \,                            \___/\
        | |  \_   \  \                                 \
        \ \    \_ \   \   /              Kubicorn       \
         \ \  \._  \__ \_|       |       v%s        \
          \ \___  \      \       |                        \
           \__ \__ \  \_ |       \                         |
           |  \_____ \  ____      |                        |
           | \  \__ ---' .__\     |        |               |
           \  \__ ---   /   )     |        \              /
            \   \____/ / ()(      \           ---_       /|
             \__________/(,--__    \_________.    |    ./ |
               |     \ \   ---_\--,           \   \_,./   |
               |      \  \_   \    / ---_______-\   \\    /
                \      \.___, |   /              \   \\   \
                 \     |  \_ \|   \              (   |:    |
                  \    \      \    |             /  / |    ;
                   \    \      \    \          (  _'   \  |
                    \.   \      \.   \           __/   |  |
                      \   \       \.  \                |  |
                       \   \        \  \               (  )
                        \   |        \  |              |  |
                         |  \         \ \              |  |  ----
                         ( __;        ( _;            ('-_';  --------
                         |___\        \___:            \___:   ---------------

----[ %s ]--------------------------------------------

Create, Manage, Image, and Scale Kubernetes infrastructure in the cloud.
`, Version, GitSha)
View Source
var Version string

Functions

func AdoptCmd

func AdoptCmd() *cobra.Command

AdoptCmd represents the adopt command

func ApplyCmd

func ApplyCmd() *cobra.Command

ApplyCmd represents the apply command

func CompletionCmd

func CompletionCmd() *cobra.Command

CompletionCmd represents the completion command

func CreateCmd

func CreateCmd() *cobra.Command

CreateCmd represents create command

func DeleteCmd

func DeleteCmd() *cobra.Command

DeleteCmd represents the delete command

func EditCmd

func EditCmd() *cobra.Command

EditCmd represents edit command

func Execute

func Execute()

func GetConfigCmd

func GetConfigCmd() *cobra.Command

GetConfigCmd represents the apply command

func ImageCmd

func ImageCmd() *cobra.Command

ImageCmd represents the image command

func ListCmd

func ListCmd() *cobra.Command

ListCmd represents the list command

func PromptCmd

func PromptCmd() *cobra.Command

PromptCmd represents the kubicorn interactive prompt.

func RunApply

func RunApply(options *ApplyOptions) error

func RunBashGeneration

func RunBashGeneration() error

func RunCreate

func RunCreate(options *CreateOptions) error

RunCreate is the starting point when a user runs the create command.

func RunDelete

func RunDelete(options *DeleteOptions) error

func RunEdit

func RunEdit(options *EditOptions) error

func RunGetConfig

func RunGetConfig(options *GetConfigOptions) error

func RunList

func RunList(options *ListOptions) error

func RunPrompt

func RunPrompt() error

func RunVersion

func RunVersion(vo *VersionOptions) error

RunVersion populates VersionOptions and prints to stdout

func RunZshGeneration

func RunZshGeneration() error

func VersionCmd

func VersionCmd() *cobra.Command

VersionCmd represents the version command

Types

type ApplyOptions

type ApplyOptions struct {
	Options
}

type CreateOptions

type CreateOptions struct {
	Options
	Profile string
}

type DeleteOptions

type DeleteOptions struct {
	Options
	Purge bool
}

type EditOptions

type EditOptions struct {
	Options
	Editor string
}

type GetConfigOptions

type GetConfigOptions struct {
	Options
}

type ListOptions

type ListOptions struct {
	Options
	Profile string
}

type Options

type Options struct {
	StateStore     string
	StateStorePath string
	Name           string
	CloudId        string
	Set            string
	AwsProfile     string
}

type VersionOptions

type VersionOptions struct {
	Version   string `json:"Version"`
	GitCommit string `json:"GitCommit"`
	BuildDate string `json:"BuildDate"`
	GOVersion string `json:"GOVersion"`
	GOARCH    string `json:"GOARCH"`
	GOOS      string `json:"GOOS"`
}

VersionOptions contains fields for version output

Jump to

Keyboard shortcuts

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