commands

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Copyright © 2022 Symbiosis

Copyright © 2022 Symbiosis

Index

Constants

This section is empty.

Variables

View Source
var (
	EnableBetaCommands bool

	OutputFormat string
)
View Source
var InfoCommands = []string{"node-types", "regions", "roles"}
View Source
var RootCmd = &cobra.Command{
	Use:          "sym <command> <subcommand>",
	Short:        "Easily manage your Symbiosis resources using this CLI application.",
	Long:         ``,
	SilenceUsage: true,
	PersistentPreRunE: func(command *cobra.Command, args []string) error {

		err := symcommand.Initialise(commands, command)

		if err != nil {
			return err
		}

		return nil
	},
}

RootCmd represents the base command when called without any subcommands

View Source
var (
	Version = "dev"
)

Functions

func ConfirmPreRunE

func ConfirmPreRunE(prompt string) error

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type ApiKeysCommand

type ApiKeysCommand struct {
	Client      *symbiosis.Client
	CommandOpts *symcommand.CommandOpts
}

func (*ApiKeysCommand) Command

func (n *ApiKeysCommand) Command() *cobra.Command

func (*ApiKeysCommand) Execute

func (n *ApiKeysCommand) Execute(command *cobra.Command, args []string)

func (*ApiKeysCommand) Init

func (c *ApiKeysCommand) Init(client *symbiosis.Client, opts *symcommand.CommandOpts)

type ApplyCommand

type ApplyCommand struct {
	Client      *symbiosis.Client
	CommandOpts *symcommand.CommandOpts
}

func (*ApplyCommand) Command

func (c *ApplyCommand) Command() *cobra.Command

func (*ApplyCommand) Execute

func (c *ApplyCommand) Execute(command *cobra.Command, args []string) error

func (*ApplyCommand) Init

func (c *ApplyCommand) Init(client *symbiosis.Client, opts *symcommand.CommandOpts)

type ClusterCommand

type ClusterCommand struct {
	Client      *symbiosis.Client
	CommandOpts *symcommand.CommandOpts
}

func (*ClusterCommand) Command

func (c *ClusterCommand) Command() *cobra.Command

func (*ClusterCommand) Init

func (c *ClusterCommand) Init(client *symbiosis.Client, opts *symcommand.CommandOpts)

type CompletionCommand added in v0.0.10

type CompletionCommand struct {
	Client      *symbiosis.Client
	CommandOpts *symcommand.CommandOpts
}

func (*CompletionCommand) Command added in v0.0.10

func (c *CompletionCommand) Command() *cobra.Command

func (*CompletionCommand) Execute added in v0.0.10

func (c *CompletionCommand) Execute(command *cobra.Command, args []string)

func (*CompletionCommand) Init added in v0.0.10

func (c *CompletionCommand) Init(client *symbiosis.Client, opts *symcommand.CommandOpts)

type InfoCommand

type InfoCommand struct {
	Client      *symbiosis.Client
	CommandOpts *symcommand.CommandOpts
}

func (*InfoCommand) Command

func (c *InfoCommand) Command() *cobra.Command

func (*InfoCommand) Execute

func (c *InfoCommand) Execute(command *cobra.Command, args []string) error

func (*InfoCommand) Init

func (c *InfoCommand) Init(client *symbiosis.Client, opts *symcommand.CommandOpts)

type LoginCommand

type LoginCommand struct {
	Client      *symbiosis.Client
	CommandOpts *symcommand.CommandOpts
}

func (*LoginCommand) Command

func (c *LoginCommand) Command() *cobra.Command

func (*LoginCommand) Init

func (c *LoginCommand) Init(client *symbiosis.Client, opts *symcommand.CommandOpts)

type NodePoolCommand

type NodePoolCommand struct {
	Client      *symbiosis.Client
	CommandOpts *symcommand.CommandOpts
}

func (*NodePoolCommand) Command

func (n *NodePoolCommand) Command() *cobra.Command

func (*NodePoolCommand) Execute

func (n *NodePoolCommand) Execute(command *cobra.Command, args []string)

func (*NodePoolCommand) Init

func (c *NodePoolCommand) Init(client *symbiosis.Client, opts *symcommand.CommandOpts)

type RunCommand

type RunCommand struct {
	Client      *symbiosis.Client
	CommandOpts *symcommand.CommandOpts
}

func (*RunCommand) Command

func (c *RunCommand) Command() *cobra.Command

func (*RunCommand) CreateCluster added in v0.0.7

func (c *RunCommand) CreateCluster(clusterName string, region string, outputPath string) error

func (*RunCommand) Execute

func (c *RunCommand) Execute(command *cobra.Command, args []string) error

func (*RunCommand) Init

func (c *RunCommand) Init(client *symbiosis.Client, opts *symcommand.CommandOpts)

type RunState

type RunState struct {
	ID      string `json:"id"`
	Cluster string `json:"cluster"`
	State   string `json:"state"`
}

TODO: WRITE STATE

type TestCommand added in v0.0.4

type TestCommand struct {
	Client      *symbiosis.Client
	CommandOpts *symcommand.CommandOpts
}

func (*TestCommand) Command added in v0.0.4

func (c *TestCommand) Command() *cobra.Command

func (*TestCommand) Execute added in v0.0.4

func (c *TestCommand) Execute(command *cobra.Command, args []string) error

func (*TestCommand) Init added in v0.0.4

func (c *TestCommand) Init(client *symbiosis.Client, opts *symcommand.CommandOpts)

type VersionCommand

type VersionCommand struct {
	Client      *symbiosis.Client
	CommandOpts *symcommand.CommandOpts
}

func (*VersionCommand) Command

func (n *VersionCommand) Command() *cobra.Command

func (*VersionCommand) Execute

func (v *VersionCommand) Execute(command *cobra.Command, args []string)

func (*VersionCommand) GetVersion added in v0.0.3

func (v *VersionCommand) GetVersion() string

func (*VersionCommand) Init

func (v *VersionCommand) Init(client *symbiosis.Client, opts *symcommand.CommandOpts)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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