squashctl

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func App

func App(version string) (*cobra.Command, error)

func RandKubeNameBytes

func RandKubeNameBytes(n int) string

TODO(mitchdraft) - merge this with go-utils

func RandStringBytes

func RandStringBytes(n int, basis string) string

RandStringBytes produces a random string of length n using the characters present in the basis string

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

type DebugContainer

type DebugContainer struct {
	Name         string
	Namespace    string
	Image        string
	Pod          string
	Container    string
	ProcessName  string
	DebuggerType string
}

type DemoOptions

type DemoOptions struct {
	Namespace1 string
	Namespace2 string
	DemoId     string
}

type DeployOptions

type DeployOptions struct {
	DemoOptions          DemoOptions
	SquashProcessOptions SquashProcessOptions
}

type Error

type Error struct {
	Type string
	Info string
}

type Internal

type Internal struct {
	// ConfigLoaded should be set once the config has been loaded
	ConfigLoaded bool
	// ConfigRead should be set once the config has been read
	ConfigRead bool
}

type Options

type Options struct {
	Url            string
	Json           bool
	DebugContainer DebugContainer
	// Debug Container is a superset of DebugRequest so we can use the same struct
	// TODO(mitchdraft) - refactor
	DebugRequest DebugContainer

	Wait Wait

	Squash      config.Squash
	DebugTarget config.DebugTarget

	DeployOptions DeployOptions

	// Internal contains cli-specific metadata
	Internal Internal

	// Config may be blended into other options
	Config Config
	// contains filtered or unexported fields
}

func NewOptions

func NewOptions() *Options

func (*Options) DeployCmd

func (o *Options) DeployCmd() *cobra.Command

func (*Options) SquashCmd

func (o *Options) SquashCmd() *cobra.Command

func (*Options) UtilsCmd

func (o *Options) UtilsCmd() *cobra.Command

type SquashProcessOptions

type SquashProcessOptions struct {
	Namespace string
	// Preview, if set prints a yaml description of the Squash installation without creating installing Squash
	Preview bool
}

type Wait

type Wait struct {
	Timeout float64
}

Jump to

Keyboard shortcuts

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