Documentation ¶
Index ¶
- type GCB
- func (g *GCB) SetGCBSubstitutions(toolOrg, toolRepo, toolRef 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 ¶
This section is empty.
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 ¶
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 NoMock bool Stage bool Release bool FastForward bool Stream bool BuildAtHead bool Branch string ReleaseType string BuildVersion string GcpUser string LogLevel string LastJobs int64 }
func NewDefaultOptions ¶
func NewDefaultOptions() *Options
NewDefaultOptions returns a new default `*Options` instance.