cmd

package
v0.0.0-...-2db79e0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2017 License: Apache-2.0 Imports: 28 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(&lol.Writer{Output: os.Stdout, ColorMode: lol.ColorModeTrueColor})
		}
		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 Execute

func Execute()

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 RunVersion

func RunVersion(vo *VersionOptions) error

RunVersion populates VersionOptions and prints to stdout

func RunZshGeneration

func RunZshGeneration() error

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
}

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