cmd

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2020 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReleaseTypeAlpha    = "alpha"
	ReleaseTypeBeta     = "beta"
	ReleaseTypeRC       = "rc"
	ReleaseTypeOfficial = "official"
)

Variables

View Source
var BuildListJobs = build.ListJobs

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func RunGcbmgr added in v0.3.0

func RunGcbmgr(opts *GcbmgrOptions) error

RunGcbmgr is the function invoked by 'krel gcbmgr', responsible for submitting release jobs to GCB

func SetGCBSubstitutions added in v0.3.0

func SetGCBSubstitutions(o *GcbmgrOptions, toolOrg, toolRepo, toolBranch string) (map[string]string, error)

SetGCBSubstitutions takes a set of GcbmgrOptions and returns a map of GCB substitutions

Types

type Changelog added in v0.3.2

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

type GcbmgrOptions added in v0.3.0

type GcbmgrOptions struct {
	Stage        bool
	Release      bool
	Stream       bool
	Branch       string
	ReleaseType  string
	BuildVersion string
	GcpUser      string
	LastJobs     int64
	Repo         Repository
	Version      Version
}

func (*GcbmgrOptions) Validate added in v0.3.2

func (o *GcbmgrOptions) Validate() error

type Repository added in v0.3.0

type Repository interface {
	Open() error
	CheckState(string, string, string) error
	GetTag() (string, error)
}

type Version added in v0.3.0

type Version interface {
	GetKubeVersionForBranch(release.VersionType, string) (string, error)
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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