action

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: MIT Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"
)
View Source
const (
	ROOT_PREFIX = "HELMTIDE_"

	// LegacyPrefix keeps the environment variables of helmwave, which helmtide
	// was forked from, working. urfave/cli takes the first name that is set, so
	// HELMTIDE_ wins where both are present.
	LegacyPrefix = "HELMWAVE_"
)

Variables

This section is empty.

Functions

func EnvVars

func EnvVars(names ...string) []string

EnvVars helper function for HELMTIDE environment variables. Every name is also offered under the legacy HELMWAVE_ prefix so an existing setup keeps working unchanged.

func GlobalFlags

func GlobalFlags() (r []cli.Flag)

GlobalFlags is a set of global flags.

Types

type Action

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

func (d *Diff) FixFields()

FixFields initializes struct for diff action.

type DiffLive

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

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

func (*DiffLive) Cmd

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

Cmd returns 'diff live' *cli.Command.

func (*DiffLive) Run

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

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

type DiffLocal

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

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

func (*DiffLocal) Cmd

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

Cmd returns 'diff plan' *cli.Command.

func (*DiffLocal) Run

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

type GenSchema struct{}

GenSchema is a struct for running 'GenSchema' command.

func (*GenSchema) Cmd

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

Cmd returns 'GenSchema' *cli.Command.

func (*GenSchema) Run

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

Run is the main function for 'GenSchema' command.

type Graph

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

Graph is a struct for running 'graph' command.

func (*Graph) Cmd

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

Cmd returns 'status' *cli.Command.

func (*Graph) Run

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 Manifests

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

Manifests is a struct for running 'Manifests' command.

func (*Manifests) Cmd

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

Cmd returns 'status' *cli.Command.

func (*Manifests) Run

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

Run is the main function for 'status' 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