action

package
v0.35.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Step0 = "TEMPLATE"
	Step1 = "BUILD"
	Step2 = "DEPLOY"
	Step_ = "SUPPORT"
)
View Source
const (
	// DiffModeLive is a subcommand name for diffing manifests in plan with actually running manifests in k8s.
	DiffModeLive = "live"

	// DiffModeLocal is a subcommand name for diffing manifests in two plans.
	DiffModeLocal = "local"

	// DiffModeNone is a subcommand name for skipping diffing.
	DiffModeNone = "none"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action added in v0.16.6

type Action interface {
	Run(context.Context) error
	Cmd() *cli.Command
	// contains filtered or unexported methods
}

Action is an interface for all actions.

type Build

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

Build is a struct for running 'build' CLI command.

func (*Build) Cmd

func (i *Build) Cmd() *cli.Command

Cmd returns 'build' *cli.Command.

func (*Build) Run

func (i *Build) Run(ctx context.Context) (err error)

Run is the main function for 'build' CLI command.

type Diff

type Diff struct {
	*diff.Options

	ThreeWayMerge bool // maybe it should move to DiffLive?
	// contains filtered or unexported fields
}

Diff is a struct for running 'diff' commands.

func (*Diff) Cmd

func (d *Diff) Cmd() *cli.Command

Cmd returns 'diff' *cli.Command.

func (*Diff) FixFields added in v0.35.0

func (d *Diff) FixFields()

type DiffLive added in v0.16.0

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

DiffLive is a struct for running 'diff live' command.

func (*DiffLive) Cmd added in v0.16.0

func (d *DiffLive) Cmd() *cli.Command

Cmd returns 'diff live' *cli.Command.

func (*DiffLive) Run added in v0.16.0

func (d *DiffLive) Run(ctx context.Context) error

Run is the main function for 'diff live' command.

type DiffLocal added in v0.28.1

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

DiffLocal is a struct for running 'diff plan' command.

func (*DiffLocal) Cmd added in v0.28.1

func (d *DiffLocal) Cmd() *cli.Command

Cmd returns 'diff plan' *cli.Command.

func (*DiffLocal) Run added in v0.28.1

func (d *DiffLocal) Run(ctx context.Context) error

Run is the main function for 'diff plan' command.

type Down

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

Down is a struct for running 'down' command.

func (*Down) Cmd

func (i *Down) Cmd() *cli.Command

Cmd returns 'down' *cli.Command.

func (*Down) Run

func (i *Down) Run(ctx context.Context) error

Run is the main function for 'down' command.

type GenSchema added in v0.23.0

type GenSchema struct{}

GenSchema is a struct for running 'GenSchema' command.

func (*GenSchema) Cmd added in v0.23.0

func (i *GenSchema) Cmd() *cli.Command

Cmd returns 'GenSchema' *cli.Command.

func (*GenSchema) Run added in v0.23.0

func (i *GenSchema) Run(_ context.Context) error

Run is the main function for 'GenSchema' command.

type Graph added in v0.27.2

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

Graph is a struct for running 'graph' command.

func (*Graph) Cmd added in v0.27.2

func (l *Graph) Cmd() *cli.Command

Cmd returns 'status' *cli.Command.

func (*Graph) Run added in v0.27.2

func (l *Graph) Run(ctx context.Context) error

Run is the main function for 'status' command.

type List

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

List is a struct for running 'list' command.

func (*List) Cmd

func (l *List) Cmd() *cli.Command

Cmd returns 'list' *cli.Command.

func (*List) Run

func (l *List) Run(ctx context.Context) error

Run is the main function for 'list' command.

type Rollback

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

Rollback is a struct for running 'rollback' command.

func (*Rollback) Cmd

func (i *Rollback) Cmd() *cli.Command

Cmd returns 'rollback' *cli.Command.

func (*Rollback) Run

func (i *Rollback) Run(ctx context.Context) error

Run is the main function for 'rollback' command.

type Status

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

Status is a struct for running 'status' command.

func (*Status) Cmd

func (l *Status) Cmd() *cli.Command

Cmd returns 'status' *cli.Command.

func (*Status) Run

func (l *Status) Run(ctx context.Context) error

Run is the main function for 'status' command.

type Up

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

Up is a struct for running 'up' command.

func (*Up) Cmd

func (i *Up) Cmd() *cli.Command

Cmd returns 'up' *cli.Command.

func (*Up) Run

func (i *Up) Run(ctx context.Context) error

Run is the main function for 'up' command.

type Validate

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

Validate is a struct for running 'validate' command.

func (*Validate) Cmd

func (l *Validate) Cmd() *cli.Command

Cmd returns 'validate' *cli.Command.

func (*Validate) Run

func (l *Validate) Run(ctx context.Context) error

Run is the main function for 'validate' command.

type Yml

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

Yml is a struct for running 'yml' command.

func (*Yml) Cmd

func (i *Yml) Cmd() *cli.Command

Cmd returns 'yml' *cli.Command.

func (*Yml) Run

func (i *Yml) Run(ctx context.Context) error

Run is the main function for 'yml' command.

Jump to

Keyboard shortcuts

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