cookflags

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CookFlags

type CookFlags struct {
	CheckoutDir string `json:"checkout_dir"`

	RecipeResultByteLimit int `json:"recipe_result_byte_limit"`

	Properties     PropertyFlag `json:"properties"`
	PropertiesFile string       `json:"properties_file"`
	CacheDir       string       `json:"cache_dir"`
	TempDir        string       `json:"temp_dir"`
	BuildURL       string       `json:"build_url"`

	OutputResultJSONPath string `json:"output_result_json"`

	RecipeName string `json:"recipe_name"`

	SystemAccount string `json:"system_account"`

	KnownGerritHost stringlistflag.Flag `json:"known_gerrit_host"`

	// Buildbucket flags.
	BuildbucketBuildID  int64  `json:"buildbucket_build_id"`
	BuildbucketHostname string `json:"buildbucket_hostname"`
	CallUpdateBuild     bool   `json:"call_update_build"`

	// LogDog flags.
	AnnotationURL    types.StreamAddr   `json:"annotation_url"`
	GlobalLogDogTags streamproto.TagMap `json:"global_tags"`
	NullOutput       bool               `json:"null_output"`
}

CookFlags are all of the flags necessary for the kitchen 'cook' command.

func (*CookFlags) Dump

func (c *CookFlags) Dump() []string

Dump returns a []string command line argument which matches this CookFlags.

func (*CookFlags) Normalize

func (c *CookFlags) Normalize() error

Normalize normalizes the contents of CookFlags, returning non-nil if there is an error.

func (*CookFlags) Register

func (c *CookFlags) Register(fs *flag.FlagSet)

Register the CookFlags with the provided FlagSet.

type PropertyFlag

type PropertyFlag map[string]interface{}

PropertyFlag is parsed JSON supplied to -property flag.

func (*PropertyFlag) Set

func (p *PropertyFlag) Set(v string) error

Set implements flag.Value.

func (PropertyFlag) String

func (p PropertyFlag) String() string

Jump to

Keyboard shortcuts

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