selector

package
v1.1.32 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ReleasesFlagName = "release"

ReleasesFlagName constant used for the --release flag name (public because the render package creates an alias for this flag)

Variables

This section is empty.

Functions

This section is empty.

Types

type RenderSelection added in v1.0.76

type RenderSelection struct {
	// IsReleaseScoped true if the user supplied the names of releases (like "agora", "cromwell"), false if they supplied "ALL"
	IsReleaseScoped bool
	// Releases is the set of matching releases
	Releases []terra.Release
	// SingleChart true if we're using a single release name
	SingleChart bool
	// AppReleasesOnly true if all matched releases are application releases
	AppReleasesOnly bool
}

RenderSelection describes the set of releases that match user-supplied CLI flags for a render selector

type RenderSelector added in v1.0.76

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

func NewRenderSelector added in v1.0.76

func NewRenderSelector() *RenderSelector

func (*RenderSelector) AddFlags added in v1.0.76

func (s *RenderSelector) AddFlags(cobraCommand *cobra.Command)

AddFlags adds selector CLI flags to cobra command

func (*RenderSelector) GetSelection added in v1.0.76

func (s *RenderSelector) GetSelection(state terra.State, chartsDir source.ChartsDir, pflags *pflag.FlagSet, args []string) (*RenderSelection, error)

type Selector

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

func NewSelector

func NewSelector() *Selector

func (*Selector) AddFlags

func (s *Selector) AddFlags(cobraCommand *cobra.Command)

AddFlags adds selector CLI flags to cobra command

func (*Selector) GetSelection

func (s *Selector) GetSelection(state terra.State, pflags *pflag.FlagSet, args []string) ([]terra.Release, error)

Jump to

Keyboard shortcuts

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