flags

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildOutput added in v0.29.0

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

BuildOutput is the output of `skaffold build`.

func ParseBuildOutput added in v0.29.0

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

ParseBuildOutput parses BuildOutput from bytes

type BuildOutputFileFlag added in v0.29.0

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

BuildOutputFileFlag describes a flag which contains a BuildOutput.

func NewBuildOutputFileFlag added in v0.29.0

func NewBuildOutputFileFlag(value string) *BuildOutputFileFlag

NewBuildOutputFileFlag returns a new BuildOutputFile without any validation

func (*BuildOutputFileFlag) BuildArtifacts added in v0.29.0

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

BuildArtifacts returns the Build Artifacts in the BuildOutputFileFlag

func (*BuildOutputFileFlag) Set added in v0.29.0

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

Set Implements Set() method for pflag interface

func (*BuildOutputFileFlag) String added in v0.29.0

func (t *BuildOutputFileFlag) String() string

func (*BuildOutputFileFlag) Type added in v0.29.0

func (t *BuildOutputFileFlag) Type() string

Type Implements Type() method for pflag interface

func (*BuildOutputFileFlag) Usage added in v0.29.0

func (t *BuildOutputFileFlag) Usage() string

Usage Implements Usage() method for pflag interface

type Images added in v0.29.0

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

Images describes a flag which contains a list of image names

func NewEmptyImages added in v0.29.0

func NewEmptyImages(usage string) *Images

NewEmptyImages returns a new nil Images list.

func (*Images) Artifacts added in v0.29.0

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

Artifacts returns an artifact representation for the corresponding image

func (*Images) Set added in v0.29.0

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

Set Implements Set() method for pflag interface

func (*Images) String added in v0.29.0

func (i *Images) String() string

String Implements String() method for pflag interface and returns a comma separated list of images.

func (*Images) Type added in v0.29.0

func (i *Images) Type() string

Type Implements Type() method for pflag interface

func (*Images) Usage added in v0.29.0

func (i *Images) Usage() string

Usage Implements Usage() 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