commands

package
v0.0.0-...-8a8b58e Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2018 License: Apache-2.0 Imports: 25 Imported by: 4

Documentation

Index

Constants

View Source
const (
	UsageHeader = `` /* 495-byte string literal not displayed */

	CommandUsage = `
[%s command options]
  %s`
)
View Source
const GlobalUsage = `` /* 518-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyDeployment

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

func NewApplyDeployment

func NewApplyDeployment(
	stateStore storage.Store,
) ApplyDeployment

func (ApplyDeployment) CheckFastFails

func (p ApplyDeployment) CheckFastFails(args []string, state storage.State) error

func (ApplyDeployment) Execute

func (p ApplyDeployment) Execute(args []string, state storage.State) error

func (ApplyDeployment) Usage

func (ApplyDeployment) Usage() string

type ApplyInfra

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

func NewApplyInfra

func NewApplyInfra(
	stateStore storage.Store,
	fs fileio.Fs,
) ApplyInfra

func (ApplyInfra) CheckFastFails

func (p ApplyInfra) CheckFastFails(args []string, state storage.State) error

func (ApplyInfra) Execute

func (p ApplyInfra) Execute(args []string, state storage.State) error

func (ApplyInfra) Usage

func (ApplyInfra) Usage() string

type Command

type Command interface {
	CheckFastFails(subcommandFlags []string, state storage.State) error
	Execute(subcommandFlags []string, state storage.State) error
	Usage() string
}

type CommandSet

type CommandSet map[string]Command

type DiegestConfig

type DiegestConfig struct {
	Name string
}

type Digest

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

func NewDigest

func NewDigest(
	stateStore storage.Store,
	envIDManager helpers.EnvIDManager,
	fs fileio.Fs,
	ui *ui.UI,
) Digest

func (Digest) CheckFastFails

func (p Digest) CheckFastFails(args []string, state storage.State) error

func (Digest) Execute

func (p Digest) Execute(args []string, state storage.State) error

func (Digest) ParseArgs

func (p Digest) ParseArgs(args []string, state storage.State) (DiegestConfig, error)

func (Digest) Usage

func (Digest) Usage() string

type Interop

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

func NewInterop

func NewInterop(
	stateStore storage.Store,
) Interop

func (Interop) CheckFastFails

func (p Interop) CheckFastFails(args []string, state storage.State) error

func (Interop) Execute

func (p Interop) Execute(args []string, state storage.State) error

func (Interop) Usage

func (Interop) Usage() string

type PlanDeployment

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

func NewPlanDeployment

func NewPlanDeployment(
	stateStore storage.Store,
	fs fileio.Fs,
	ui *ui.UI,
) PlanDeployment

func (PlanDeployment) CheckFastFails

func (p PlanDeployment) CheckFastFails(args []string, state storage.State) error

func (PlanDeployment) Execute

func (p PlanDeployment) Execute(args []string, state storage.State) error

func (PlanDeployment) Usage

func (PlanDeployment) Usage() string

type PlanInfra

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

func NewPlanInfra

func NewPlanInfra(
	stateStore storage.Store,
	fs fileio.Fs,
	ui *ui.UI,
) PlanInfra

func (PlanInfra) CheckFastFails

func (p PlanInfra) CheckFastFails(args []string, state storage.State) error

func (PlanInfra) Execute

func (p PlanInfra) Execute(args []string, state storage.State) error

func (PlanInfra) Usage

func (PlanInfra) Usage() string

type Promote

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

func NewPromote

func NewPromote(
	stateStore storage.Store,
) Promote

func (Promote) CheckFastFails

func (p Promote) CheckFastFails(args []string, state storage.State) error

func (Promote) Execute

func (p Promote) Execute(args []string, state storage.State) error

func (Promote) Usage

func (Promote) Usage() string

type SSH

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

func NewSSH

func NewSSH(
	stateStore storage.Store,
	fs fileio.Fs,
	ui *ui.UI,
) SSH

func (SSH) CheckFastFails

func (s SSH) CheckFastFails(args []string, state storage.State) error

func (SSH) Execute

func (s SSH) Execute(args []string, state storage.State) error

func (SSH) Usage

func (SSH) Usage() string

type StateStore

type StateStore interface {
	Set(state storage.State) error
	GetVarsDir() (string, error)
	GetArtifactsDir() (string, error)
}

type Usage

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

func NewUsage

func NewUsage(ui *ui.UI) Usage

func (Usage) CheckFastFails

func (u Usage) CheckFastFails(subcommandFlags []string, state storage.State) error

func (Usage) Execute

func (u Usage) Execute(subcommandFlags []string, state storage.State) error

func (Usage) Print

func (u Usage) Print()

func (Usage) PrintCommandUsage

func (u Usage) PrintCommandUsage(command, message string)

func (Usage) Usage

func (Usage) Usage() string

Jump to

Keyboard shortcuts

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