Documentation ¶
Index ¶
- Constants
- type GCB
- func (g *GCB) SetGCBSubstitutions(toolOrg, toolRepo, toolRef, gcsBucket, forceBuildKrel string) (map[string]string, error)
- func (g *GCB) SetListJobsClient(client ListJobs)
- func (g *GCB) SetReleaseClient(client Release)
- func (g *GCB) SetRepoClient(client Repository)
- func (g *GCB) SetVersionClient(client Version)
- func (g *GCB) Submit() error
- type History
- type HistoryOptions
- type ListJobs
- type Options
- type Release
- type Repository
- type Version
Constants ¶
const StringSliceSeparator = "..."
StringSliceSeparator is the separator used for passing string slices as GCB substitutions.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCB ¶
type GCB struct {
// contains filtered or unexported fields
}
GCB is the main structure of this package.
func (*GCB) SetGCBSubstitutions ¶
func (g *GCB) SetGCBSubstitutions(toolOrg, toolRepo, toolRef, gcsBucket, forceBuildKrel string) (map[string]string, error)
SetGCBSubstitutions takes a set of `Options` and returns a map of GCB substitutions.
func (*GCB) SetListJobsClient ¶
SetListJobsClient can be used to set the internal `ListJobs` client.
func (*GCB) SetReleaseClient ¶
SetReleaseClient can be used to set the internal `Release` client.
func (*GCB) SetRepoClient ¶
func (g *GCB) SetRepoClient(client Repository)
SetRepoClient can be used to set the internal `Repository` client.
func (*GCB) SetVersionClient ¶
SetVersionClient can be used to set the internal `Version` client.
type History ¶
type History struct {
// contains filtered or unexported fields
}
History is the main structure for retrieving the GCB history output.
func NewHistory ¶
func NewHistory(opts *HistoryOptions) *History
NewHistory creates a new `History` instance.
type HistoryOptions ¶
type HistoryOptions struct { // Branch is the release branch for filtering the jobs. Branch string // Project is the GCB project to be used. Project string // DateFrom is the string date for selecting the start of the range. DateFrom string // DateTo is the string date for selecting the end of the range. DateTo string }
HistoryOptions are the main settings for the `History`.
func NewHistoryOptions ¶
func NewHistoryOptions() *HistoryOptions
NewHistoryOptions creates a new default HistoryOptions instance.
type Options ¶
type Options struct { build.Options // NonInteractive does not ask any questions if set to true. NonInteractive bool NoMock bool Stage bool Release bool FastForward bool Stream bool BuildAtHead bool Branch string ReleaseType string BuildVersion string GcpUser string LogLevel string CustomK8SRepo string CustomK8sOrg string LastJobs int64 // OpenBuildService parameters OBSStage bool OBSRelease bool SpecTemplatePath string Packages []string Version string Architectures []string OBSProject string PackageSource string OBSWait bool }
func NewDefaultOptions ¶
func NewDefaultOptions() *Options
NewDefaultOptions returns a new default `*Options` instance.