flags

package
v2.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildOutput

type BuildOutput struct {
	Builds []graph.Artifact `json:"builds"`
}

BuildOutput is the output of `skaffold build`.

func ParseBuildOutput

func ParseBuildOutput(b []byte) (*BuildOutput, error)

ParseBuildOutput parses BuildOutput from bytes

type BuildOutputFileFlag

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

BuildOutputFileFlag describes a flag which contains a BuildOutput.

func NewBuildOutputFileFlag

func NewBuildOutputFileFlag(value string) *BuildOutputFileFlag

NewBuildOutputFileFlag returns a new BuildOutputFile without any validation

func (*BuildOutputFileFlag) BuildArtifacts

func (t *BuildOutputFileFlag) BuildArtifacts() []graph.Artifact

BuildArtifacts returns the Build Artifacts in the BuildOutputFileFlag

func (*BuildOutputFileFlag) Set

func (t *BuildOutputFileFlag) Set(value string) error

Set Implements Set() method for pflag interface

func (*BuildOutputFileFlag) String

func (t *BuildOutputFileFlag) String() string

func (*BuildOutputFileFlag) Type

func (t *BuildOutputFileFlag) Type() string

Type Implements Type() method for pflag interface

func (*BuildOutputFileFlag) Usage

func (t *BuildOutputFileFlag) Usage() string

Usage Implements Usage() method for pflag interface

type Images

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

Images describes a flag which contains a list of image names

func NewEmptyImages

func NewEmptyImages(usage string) *Images

NewEmptyImages returns a new nil Images list.

func (*Images) Append

func (i *Images) Append(value string) error

Append Implements Append() method for pflag SliceValue interface

func (*Images) Artifacts

func (i *Images) Artifacts() []graph.Artifact

Artifacts returns an artifact representation for the corresponding image

func (*Images) GetSlice

func (i *Images) GetSlice() []string

GetSlice Implements GetSlice() method for pflag SliceValue interface and returns a slice of image names.

func (*Images) Replace

func (i *Images) Replace(images []string) error

Replace Implements Replace() method for pflag SliceValue interface

func (*Images) Set

func (i *Images) Set(csv string) error

Set Implements Set() method for pflag interface. We append values to preserve compatibility with previous behaviour where each image required a separate `-i` flag.

func (*Images) SetNil

func (i *Images) SetNil() error

SetNil Implements SetNil() method for our Nillable interface

func (*Images) String

func (i *Images) String() string

String Implements String() method for pflag interface and returns a placeholder for the help text.

func (*Images) Type

func (i *Images) Type() string

Type Implements Type() method for pflag interface

type TemplateFlag

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

func NewTemplateFlag

func NewTemplateFlag(value string, context interface{}) *TemplateFlag

func (*TemplateFlag) Set

func (t *TemplateFlag) Set(value string) error

func (*TemplateFlag) String

func (t *TemplateFlag) String() string

func (*TemplateFlag) Template

func (t *TemplateFlag) Template() *template.Template

func (*TemplateFlag) Type

func (t *TemplateFlag) Type() string

func (*TemplateFlag) Usage

func (t *TemplateFlag) Usage() string

Jump to

Keyboard shortcuts

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