Documentation
¶
Index ¶
- func ToString(v interface{}) string
- type Build
- func (b *Build) Duration() string
- func (b *Build) Environment(workspace, channel string) map[string]string
- func (b *Build) GetApprovedAt() int64
- func (b *Build) GetApprovedBy() string
- func (b *Build) GetAuthor() string
- func (b *Build) GetBaseRef() string
- func (b *Build) GetBranch() string
- func (b *Build) GetClone() string
- func (b *Build) GetCommit() string
- func (b *Build) GetCreated() int64
- func (b *Build) GetDeploy() string
- func (b *Build) GetDeployNumber() int64
- func (b *Build) GetDeployPayload() raw.StringSliceMap
- func (b *Build) GetDistribution() string
- func (b *Build) GetEmail() string
- func (b *Build) GetEnqueued() int64
- func (b *Build) GetError() string
- func (b *Build) GetEvent() string
- func (b *Build) GetEventAction() string
- func (b *Build) GetFinished() int64
- func (b *Build) GetHeadRef() string
- func (b *Build) GetHost() string
- func (b *Build) GetID() int64
- func (b *Build) GetLink() string
- func (b *Build) GetMessage() string
- func (b *Build) GetNumber() int
- func (b *Build) GetParent() int
- func (b *Build) GetPipelineID() int64
- func (b *Build) GetRef() string
- func (b *Build) GetRepo() *Repo
- func (b *Build) GetRuntime() string
- func (b *Build) GetSender() string
- func (b *Build) GetSenderSCMID() string
- func (b *Build) GetSource() string
- func (b *Build) GetStarted() int64
- func (b *Build) GetStatus() string
- func (b *Build) GetTitle() string
- func (b *Build) SetApprovedAt(v int64)
- func (b *Build) SetApprovedBy(v string)
- func (b *Build) SetAuthor(v string)
- func (b *Build) SetBaseRef(v string)
- func (b *Build) SetBranch(v string)
- func (b *Build) SetClone(v string)
- func (b *Build) SetCommit(v string)
- func (b *Build) SetCreated(v int64)
- func (b *Build) SetDeploy(v string)
- func (b *Build) SetDeployNumber(v int64)
- func (b *Build) SetDeployPayload(v raw.StringSliceMap)
- func (b *Build) SetDistribution(v string)
- func (b *Build) SetEmail(v string)
- func (b *Build) SetEnqueued(v int64)
- func (b *Build) SetError(v string)
- func (b *Build) SetEvent(v string)
- func (b *Build) SetEventAction(v string)
- func (b *Build) SetFinished(v int64)
- func (b *Build) SetHeadRef(v string)
- func (b *Build) SetHost(v string)
- func (b *Build) SetID(v int64)
- func (b *Build) SetLink(v string)
- func (b *Build) SetMessage(v string)
- func (b *Build) SetNumber(v int)
- func (b *Build) SetParent(v int)
- func (b *Build) SetPipelineID(v int64)
- func (b *Build) SetRef(v string)
- func (b *Build) SetRepo(v *Repo)
- func (b *Build) SetRuntime(v string)
- func (b *Build) SetSender(v string)
- func (b *Build) SetSenderSCMID(v string)
- func (b *Build) SetSource(v string)
- func (b *Build) SetStarted(v int64)
- func (b *Build) SetStatus(v string)
- func (b *Build) SetTitle(v string)
- func (b *Build) String() string
- func (b *Build) ToLibrary() *library.Build
- type BuildPartial
- type DashCard
- type Dashboard
- func (d *Dashboard) GetAdmins() []*User
- func (d *Dashboard) GetCreatedAt() int64
- func (d *Dashboard) GetCreatedBy() string
- func (d *Dashboard) GetID() string
- func (d *Dashboard) GetName() string
- func (d *Dashboard) GetRepos() []*DashboardRepo
- func (d *Dashboard) GetUpdatedAt() int64
- func (d *Dashboard) GetUpdatedBy() string
- func (d *Dashboard) SetAdmins(v []*User)
- func (d *Dashboard) SetCreatedAt(v int64)
- func (d *Dashboard) SetCreatedBy(v string)
- func (d *Dashboard) SetID(v string)
- func (d *Dashboard) SetName(v string)
- func (d *Dashboard) SetRepos(v []*DashboardRepo)
- func (d *Dashboard) SetUpdatedAt(v int64)
- func (d *Dashboard) SetUpdatedBy(v string)
- func (d *Dashboard) String() string
- type DashboardRepo
- func (d *DashboardRepo) GetBranches() []string
- func (d *DashboardRepo) GetEvents() []string
- func (d *DashboardRepo) GetID() int64
- func (d *DashboardRepo) GetName() string
- func (d *DashboardRepo) SetBranches(v []string)
- func (d *DashboardRepo) SetEvents(v []string)
- func (d *DashboardRepo) SetID(v int64)
- func (d *DashboardRepo) SetName(v string)
- func (d *DashboardRepo) String() string
- type Events
- func (e *Events) Allowed(event, action string) bool
- func (e *Events) GetComment() *actions.Comment
- func (e *Events) GetDeployment() *actions.Deploy
- func (e *Events) GetPullRequest() *actions.Pull
- func (e *Events) GetPush() *actions.Push
- func (e *Events) GetSchedule() *actions.Schedule
- func (e *Events) List() []string
- func (e *Events) SetComment(v *actions.Comment)
- func (e *Events) SetDeployment(v *actions.Deploy)
- func (e *Events) SetPullRequest(v *actions.Pull)
- func (e *Events) SetPush(v *actions.Push)
- func (e *Events) SetSchedule(v *actions.Schedule)
- func (e *Events) ToDatabase() int64
- type Executor
- func (e *Executor) GetBuild() Build
- func (e *Executor) GetDistribution() string
- func (e *Executor) GetHost() string
- func (e *Executor) GetID() int64
- func (e *Executor) GetPipeline() pipeline.Build
- func (e *Executor) GetRuntime() string
- func (e *Executor) SetBuild(v Build)
- func (e *Executor) SetDistribution(v string)
- func (e *Executor) SetHost(v string)
- func (e *Executor) SetID(v int64)
- func (e *Executor) SetPipeline(v pipeline.Build)
- func (e *Executor) SetRuntime(v string)
- func (e *Executor) String() string
- type Hook
- func (h *Hook) GetBranch() string
- func (h *Hook) GetBuild() *Build
- func (h *Hook) GetCreated() int64
- func (h *Hook) GetError() string
- func (h *Hook) GetEvent() string
- func (h *Hook) GetEventAction() string
- func (h *Hook) GetHost() string
- func (h *Hook) GetID() int64
- func (h *Hook) GetLink() string
- func (h *Hook) GetNumber() int
- func (h *Hook) GetRepo() *Repo
- func (h *Hook) GetSourceID() string
- func (h *Hook) GetStatus() string
- func (h *Hook) GetWebhookID() int64
- func (h *Hook) SetBranch(v string)
- func (h *Hook) SetBuild(v *Build)
- func (h *Hook) SetCreated(v int64)
- func (h *Hook) SetError(v string)
- func (h *Hook) SetEvent(v string)
- func (h *Hook) SetEventAction(v string)
- func (h *Hook) SetHost(v string)
- func (h *Hook) SetID(v int64)
- func (h *Hook) SetLink(v string)
- func (h *Hook) SetNumber(v int)
- func (h *Hook) SetRepo(v *Repo)
- func (h *Hook) SetSourceID(v string)
- func (h *Hook) SetStatus(v string)
- func (h *Hook) SetWebhookID(v int64)
- func (h *Hook) String() string
- type JWK
- type JWKSet
- type OpenIDClaims
- type OpenIDConfig
- type QueueBuild
- func (b *QueueBuild) GetCreated() int64
- func (b *QueueBuild) GetFullName() string
- func (b *QueueBuild) GetNumber() int32
- func (b *QueueBuild) GetStatus() string
- func (b *QueueBuild) SetCreated(v int64)
- func (b *QueueBuild) SetFullName(v string)
- func (b *QueueBuild) SetNumber(v int32)
- func (b *QueueBuild) SetStatus(v string)
- func (b *QueueBuild) String() string
- type Repo
- func (r *Repo) Environment() map[string]string
- func (r *Repo) GetActive() bool
- func (r *Repo) GetAllowEvents() *Events
- func (r *Repo) GetApproveBuild() string
- func (r *Repo) GetBranch() string
- func (r *Repo) GetBuildLimit() int64
- func (r *Repo) GetClone() string
- func (r *Repo) GetCounter() int
- func (r *Repo) GetFullName() string
- func (r *Repo) GetHash() string
- func (r *Repo) GetID() int64
- func (r *Repo) GetLink() string
- func (r *Repo) GetName() string
- func (r *Repo) GetOrg() string
- func (r *Repo) GetOwner() *User
- func (r *Repo) GetPipelineType() string
- func (r *Repo) GetPreviousName() string
- func (r *Repo) GetPrivate() bool
- func (r *Repo) GetTimeout() int64
- func (r *Repo) GetTopics() []string
- func (r *Repo) GetTrusted() bool
- func (r *Repo) GetVisibility() string
- func (r *Repo) SetActive(v bool)
- func (r *Repo) SetAllowEvents(v *Events)
- func (r *Repo) SetApproveBuild(v string)
- func (r *Repo) SetBranch(v string)
- func (r *Repo) SetBuildLimit(v int64)
- func (r *Repo) SetClone(v string)
- func (r *Repo) SetCounter(v int)
- func (r *Repo) SetFullName(v string)
- func (r *Repo) SetHash(v string)
- func (r *Repo) SetID(v int64)
- func (r *Repo) SetLink(v string)
- func (r *Repo) SetName(v string)
- func (r *Repo) SetOrg(v string)
- func (r *Repo) SetOwner(v *User)
- func (r *Repo) SetPipelineType(v string)
- func (r *Repo) SetPreviousName(v string)
- func (r *Repo) SetPrivate(v bool)
- func (r *Repo) SetTimeout(v int64)
- func (r *Repo) SetTopics(v []string)
- func (r *Repo) SetTrusted(v bool)
- func (r *Repo) SetVisibility(v string)
- func (r *Repo) String() string
- type RepoPartial
- type Schedule
- func (s *Schedule) GetActive() bool
- func (s *Schedule) GetBranch() string
- func (s *Schedule) GetCreatedAt() int64
- func (s *Schedule) GetCreatedBy() string
- func (s *Schedule) GetEntry() string
- func (s *Schedule) GetError() string
- func (s *Schedule) GetID() int64
- func (s *Schedule) GetName() string
- func (s *Schedule) GetNextRun() int64
- func (s *Schedule) GetRepo() *Repo
- func (s *Schedule) GetScheduledAt() int64
- func (s *Schedule) GetUpdatedAt() int64
- func (s *Schedule) GetUpdatedBy() string
- func (s *Schedule) SetActive(active bool)
- func (s *Schedule) SetBranch(branch string)
- func (s *Schedule) SetCreatedAt(createdAt int64)
- func (s *Schedule) SetCreatedBy(createdBy string)
- func (s *Schedule) SetEntry(entry string)
- func (s *Schedule) SetError(err string)
- func (s *Schedule) SetID(id int64)
- func (s *Schedule) SetName(name string)
- func (s *Schedule) SetNextRun(nextRun int64)
- func (s *Schedule) SetRepo(v *Repo)
- func (s *Schedule) SetScheduledAt(scheduledAt int64)
- func (s *Schedule) SetUpdatedAt(updatedAt int64)
- func (s *Schedule) SetUpdatedBy(updatedBy string)
- func (s *Schedule) String() string
- type User
- func (u *User) Crop() *User
- func (u *User) Environment() map[string]string
- func (u *User) GetActive() bool
- func (u *User) GetAdmin() bool
- func (u *User) GetDashboards() []string
- func (u *User) GetFavorites() []string
- func (u *User) GetID() int64
- func (u *User) GetName() string
- func (u *User) GetRefreshToken() string
- func (u *User) GetToken() string
- func (u *User) SetActive(v bool)
- func (u *User) SetAdmin(v bool)
- func (u *User) SetDashboards(v []string)
- func (u *User) SetFavorites(v []string)
- func (u *User) SetID(v int64)
- func (u *User) SetName(v string)
- func (u *User) SetRefreshToken(v string)
- func (u *User) SetToken(v string)
- func (u *User) String() string
- type Worker
- func (w *Worker) GetActive() bool
- func (w *Worker) GetAddress() string
- func (w *Worker) GetBuildLimit() int64
- func (w *Worker) GetHostname() string
- func (w *Worker) GetID() int64
- func (w *Worker) GetLastBuildFinishedAt() int64
- func (w *Worker) GetLastBuildStartedAt() int64
- func (w *Worker) GetLastCheckedIn() int64
- func (w *Worker) GetLastStatusUpdateAt() int64
- func (w *Worker) GetRoutes() []string
- func (w *Worker) GetRunningBuilds() []*Build
- func (w *Worker) GetStatus() string
- func (w *Worker) SetActive(v bool)
- func (w *Worker) SetAddress(v string)
- func (w *Worker) SetBuildLimit(v int64)
- func (w *Worker) SetHostname(v string)
- func (w *Worker) SetID(v int64)
- func (w *Worker) SetLastBuildFinishedAt(v int64)
- func (w *Worker) SetLastBuildStartedAt(v int64)
- func (w *Worker) SetLastCheckedIn(v int64)
- func (w *Worker) SetLastStatusUpdateAt(v int64)
- func (w *Worker) SetRoutes(v []string)
- func (w *Worker) SetRunningBuilds(builds []*Build)
- func (w *Worker) SetStatus(v string)
- func (w *Worker) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Build ¶
type Build struct { ID *int64 `json:"id,omitempty"` Repo *Repo `json:"repo,omitempty"` PipelineID *int64 `json:"pipeline_id,omitempty"` Number *int `json:"number,omitempty"` Parent *int `json:"parent,omitempty"` Event *string `json:"event,omitempty"` EventAction *string `json:"event_action,omitempty"` Status *string `json:"status,omitempty"` Error *string `json:"error,omitempty"` Enqueued *int64 `json:"enqueued,omitempty"` Created *int64 `json:"created,omitempty"` Started *int64 `json:"started,omitempty"` Finished *int64 `json:"finished,omitempty"` Deploy *string `json:"deploy,omitempty"` DeployNumber *int64 `json:"deploy_number,omitempty"` DeployPayload *raw.StringSliceMap `json:"deploy_payload,omitempty"` Clone *string `json:"clone,omitempty"` Source *string `json:"source,omitempty"` Title *string `json:"title,omitempty"` Message *string `json:"message,omitempty"` Commit *string `json:"commit,omitempty"` Sender *string `json:"sender,omitempty"` SenderSCMID *string `json:"sender_scm_id,omitempty"` Author *string `json:"author,omitempty"` Email *string `json:"email,omitempty"` Link *string `json:"link,omitempty"` Branch *string `json:"branch,omitempty"` Ref *string `json:"ref,omitempty"` BaseRef *string `json:"base_ref,omitempty"` HeadRef *string `json:"head_ref,omitempty"` Host *string `json:"host,omitempty"` Runtime *string `json:"runtime,omitempty"` Distribution *string `json:"distribution,omitempty"` ApprovedAt *int64 `json:"approved_at,omitempty"` ApprovedBy *string `json:"approved_by,omitempty"` }
Build is the API types representation of a build for a pipeline.
swagger:model Build
func (*Build) Duration ¶
Duration calculates and returns the total amount of time the build ran for in a human-readable format.
func (*Build) Environment ¶
Environment returns a list of environment variables provided from the fields of the Build type.
func (*Build) GetApprovedAt ¶
GetApprovedAt returns the ApprovedAt field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetApprovedBy ¶
GetApprovedBy returns the ApprovedBy field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetAuthor ¶
GetAuthor returns the Author field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetBaseRef ¶
GetBaseRef returns the BaseRef field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetBranch ¶
GetBranch returns the Branch field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetClone ¶
GetClone returns the Clone field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetCommit ¶
GetCommit returns the Commit field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetCreated ¶
GetCreated returns the Created field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetDeploy ¶
GetDeploy returns the Deploy field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetDeployNumber ¶
GetDeployNumber returns the DeployNumber field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetDeployPayload ¶
func (b *Build) GetDeployPayload() raw.StringSliceMap
GetDeployPayload returns the DeployPayload field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetDistribution ¶
GetDistribution returns the Distribution field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetEmail ¶
GetEmail returns the Email field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetEnqueued ¶
GetEnqueued returns the Enqueued field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetError ¶
GetError returns the Error field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetEvent ¶
GetEvent returns the Event field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetEventAction ¶
GetEventAction returns the EventAction field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetFinished ¶
GetFinished returns the Finished field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetHeadRef ¶
GetHeadRef returns the HeadRef field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetHost ¶
GetHost returns the Host field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetID ¶
GetID returns the ID field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetLink ¶
GetLink returns the Link field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetMessage ¶
GetMessage returns the Message field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetNumber ¶
GetNumber returns the Number field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetParent ¶
GetParent returns the Parent field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetPipelineID ¶
GetPipelineID returns the PipelineID field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetRef ¶
GetRef returns the Ref field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetRepo ¶
GetRepo returns the Repo field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetRuntime ¶
GetRuntime returns the Runtime field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetSender ¶
GetSender returns the Sender field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetSenderSCMID ¶
GetSenderSCMID returns the SenderSCMID field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetSource ¶
GetSource returns the Source field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetStarted ¶
GetStarted returns the Started field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetStatus ¶
GetStatus returns the Status field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) GetTitle ¶
GetTitle returns the Title field.
When the provided Build type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Build) SetApprovedAt ¶
SetApprovedAt sets the ApprovedAt field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetApprovedBy ¶
SetApprovedBy sets the ApprovedBy field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetAuthor ¶
SetAuthor sets the Author field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetBaseRef ¶
SetBaseRef sets the BaseRef field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetBranch ¶
SetBranch sets the Branch field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetClone ¶
SetClone sets the Clone field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetCommit ¶
SetCommit sets the Commit field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetCreated ¶
SetCreated sets the Created field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetDeploy ¶
SetDeploy sets the Deploy field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetDeployNumber ¶
SetDeployNumber sets the DeployNumber field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetDeployPayload ¶
func (b *Build) SetDeployPayload(v raw.StringSliceMap)
SetDeployPayload sets the DeployPayload field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetDistribution ¶
SetDistribution sets the Distribution field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetEmail ¶
SetEmail sets the Email field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetEnqueued ¶
SetEnqueued sets the Enqueued field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetError ¶
SetError sets the Error field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetEvent ¶
SetEvent sets the Event field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetEventAction ¶
SetEventAction sets the EventAction field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetFinished ¶
SetFinished sets the Finished field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetHeadRef ¶
SetHeadRef sets the HeadRef field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetHost ¶
SetHost sets the Host field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetID ¶
SetID sets the ID field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetLink ¶
SetLink sets the Link field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetMessage ¶
SetMessage sets the Message field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetNumber ¶
SetNumber sets the Number field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetParent ¶
SetParent sets the Parent field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetPipelineID ¶
SetPipelineID sets the PipelineID field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetRef ¶
SetRef sets the Ref field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetRepo ¶
SetRepo sets the Repo field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetRuntime ¶
SetRuntime sets the Runtime field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetSender ¶
SetSender sets the Sender field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetSenderSCMID ¶
SetSenderSCMID sets the SenderSCMID field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetSource ¶
SetSource sets the Source field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetStarted ¶
SetStarted sets the Started field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetStatus ¶
SetStatus sets the Status field.
When the provided Build type is nil, it will set nothing and immediately return.
func (*Build) SetTitle ¶
SetTitle sets the Title field.
When the provided Build type is nil, it will set nothing and immediately return.
type BuildPartial ¶
type BuildPartial struct { Number int `json:"number,omitempty"` Started int64 `json:"started,omitempty"` Finished int64 `json:"finished,omitempty"` Sender string `json:"sender,omitempty"` Ref string `json:"ref,omitempty"` Status string `json:"status,omitempty"` Event string `json:"event,omitempty"` Branch string `json:"branch,omitempty"` Link string `json:"link,omitempty"` }
BuildPartial is an API type that holds all relevant information for a build attached to a RepoPartial.
type DashCard ¶
type DashCard struct { Dashboard *Dashboard `json:"dashboard,omitempty"` Repos []RepoPartial `json:"repos,omitempty"` }
DashCard is an API type that holds the dashboard information as well as a list of RepoPartials attached to the dashboard.
swagger:model DashCard
type Dashboard ¶
type Dashboard struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` CreatedAt *int64 `json:"created_at,omitempty"` CreatedBy *string `json:"created_by,omitempty"` UpdatedAt *int64 `json:"updated_at,omitempty"` UpdatedBy *string `json:"updated_by,omitempty"` Admins *[]*User `json:"admins,omitempty"` Repos *[]*DashboardRepo `json:"repos,omitempty"` }
Dashboard is the API representation of a dashboard.
swagger:model Dashboard
func (*Dashboard) GetAdmins ¶
GetAdmins returns the Admins field.
When the provided Dashboard type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Dashboard) GetCreatedAt ¶
GetCreatedAt returns the CreatedAt field.
When the provided Dashboard type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Dashboard) GetCreatedBy ¶
GetCreatedBy returns the CreatedBy field.
When the provided Dashboard type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Dashboard) GetID ¶
GetID returns the ID field.
When the provided Dashboard type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Dashboard) GetName ¶
GetName returns the Name field.
When the provided Dashboard type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Dashboard) GetRepos ¶
func (d *Dashboard) GetRepos() []*DashboardRepo
GetRepos returns the Repos field.
When the provided Dashboard type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Dashboard) GetUpdatedAt ¶
GetUpdatedAt returns the UpdatedAt field.
When the provided Dashboard type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Dashboard) GetUpdatedBy ¶
GetUpdatedBy returns the UpdatedBy field.
When the provided Dashboard type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Dashboard) SetAdmins ¶
SetAdmins sets the Admins field.
When the provided Dashboard type is nil, it will set nothing and immediately return.
func (*Dashboard) SetCreatedAt ¶
SetCreatedAt sets the CreatedAt field.
When the provided Dashboard type is nil, it will set nothing and immediately return.
func (*Dashboard) SetCreatedBy ¶
SetCreatedBy sets the CreatedBy field.
When the provided Dashboard type is nil, it will set nothing and immediately return.
func (*Dashboard) SetID ¶
SetID sets the ID field.
When the provided Dashboard type is nil, it will set nothing and immediately return.
func (*Dashboard) SetName ¶
SetName sets the Name field.
When the provided Dashboard type is nil, it will set nothing and immediately return.
func (*Dashboard) SetRepos ¶
func (d *Dashboard) SetRepos(v []*DashboardRepo)
SetRepos sets the Repos field.
When the provided Dashboard type is nil, it will set nothing and immediately return.
func (*Dashboard) SetUpdatedAt ¶
SetUpdatedAt sets the UpdatedAt field.
When the provided Dashboard type is nil, it will set nothing and immediately return.
func (*Dashboard) SetUpdatedBy ¶
SetUpdatedBy sets the UpdatedBy field.
When the provided Dashboard type is nil, it will set nothing and immediately return.
type DashboardRepo ¶
type DashboardRepo struct { ID *int64 `json:"id,omitempty"` Name *string `json:"name,omitempty"` Branches *[]string `json:"branches,omitempty"` Events *[]string `json:"events,omitempty"` }
DashboardRepo is the API representation of a repo belonging to a Dashboard.
swagger:model DashboardRepo
func (*DashboardRepo) GetBranches ¶
func (d *DashboardRepo) GetBranches() []string
GetBranches returns the Branches field.
When the provided Dashboard type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*DashboardRepo) GetEvents ¶
func (d *DashboardRepo) GetEvents() []string
GetEvents returns the Events field.
When the provided Dashboard type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*DashboardRepo) GetID ¶
func (d *DashboardRepo) GetID() int64
GetID returns the ID field.
When the provided Dashboard type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*DashboardRepo) GetName ¶
func (d *DashboardRepo) GetName() string
GetName returns the Name field.
When the provided Dashboard type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*DashboardRepo) SetBranches ¶
func (d *DashboardRepo) SetBranches(v []string)
SetBranches sets the Branches field.
When the provided Dashboard type is nil, it will set nothing and immediately return.
func (*DashboardRepo) SetEvents ¶
func (d *DashboardRepo) SetEvents(v []string)
SetEvents sets the Events field.
When the provided Dashboard type is nil, it will set nothing and immediately return.
func (*DashboardRepo) SetID ¶
func (d *DashboardRepo) SetID(v int64)
SetID sets the ID field.
When the provided Dashboard type is nil, it will set nothing and immediately return.
func (*DashboardRepo) SetName ¶
func (d *DashboardRepo) SetName(v string)
SetName sets the Name field.
When the provided Dashboard type is nil, it will set nothing and immediately return.
func (*DashboardRepo) String ¶
func (d *DashboardRepo) String() string
String implements the Stringer interface for the Dashboard type.
type Events ¶
type Events struct { Push *actions.Push `json:"push"` PullRequest *actions.Pull `json:"pull_request"` Deployment *actions.Deploy `json:"deployment"` Comment *actions.Comment `json:"comment"` Schedule *actions.Schedule `json:"schedule"` }
Events is the API representation of the various events that generate a webhook from the SCM.
func NewEventsFromMask ¶
NewEventsFromMask is an instatiation function for the Events type that takes in an event mask integer value and populates the nested Events struct.
func NewEventsFromSlice ¶
NewEventsFromSlice is an instantiation function for the Events type that takes in a slice of event strings and populates the nested Events struct.
func (*Events) Allowed ¶
Allowed determines whether or not an event + action is allowed based on whether its event:action is set to true in the Events struct.
func (*Events) GetComment ¶
GetComment returns the Comment field from the provided Events. If the object is nil, or the field within the object is nil, it returns the zero value instead.
func (*Events) GetDeployment ¶
GetDeployment returns the Deployment field from the provided Events. If the object is nil, or the field within the object is nil, it returns the zero value instead.
func (*Events) GetPullRequest ¶
GetPullRequest returns the PullRequest field from the provided Events. If the object is nil, or the field within the object is nil, it returns the zero value instead.
func (*Events) GetPush ¶
GetPush returns the Push field from the provided Events. If the object is nil, or the field within the object is nil, it returns the zero value instead.
func (*Events) GetSchedule ¶
GetSchedule returns the Schedule field from the provided Events. If the object is nil, or the field within the object is nil, it returns the zero value instead.
func (*Events) List ¶
List is an Events method that generates a comma-separated list of event:action combinations that are allowed for the repo.
func (*Events) SetComment ¶
SetComment sets the Events Comment field.
When the provided Events type is nil, it will set nothing and immediately return.
func (*Events) SetDeployment ¶
SetDeployment sets the Events Deployment field.
When the provided Events type is nil, it will set nothing and immediately return.
func (*Events) SetPullRequest ¶
SetPullRequest sets the Events PullRequest field.
When the provided Events type is nil, it will set nothing and immediately return.
func (*Events) SetPush ¶
SetPush sets the Events Push field.
When the provided Events type is nil, it will set nothing and immediately return.
func (*Events) SetSchedule ¶
SetSchedule sets the Events Schedule field.
When the provided Events type is nil, it will set nothing and immediately return.
func (*Events) ToDatabase ¶
ToDatabase is an Events method that converts a nested Events struct into an integer event mask.
type Executor ¶
type Executor struct { ID *int64 `json:"id,omitempty"` Host *string `json:"host,omitempty"` Runtime *string `json:"runtime,omitempty"` Distribution *string `json:"distribution,omitempty"` Build *Build `json:"build,omitempty"` Pipeline *pipeline.Build `json:"pipeline,omitempty"` }
Executor is the API representation of an executor for a worker.
swagger:model Executor
func (*Executor) GetBuild ¶
GetBuild returns the Build field.
When the provided Executor type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Executor) GetDistribution ¶
GetDistribution returns the Distribution field.
When the provided Executor type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Executor) GetHost ¶
GetHost returns the Host field.
When the provided Executor type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Executor) GetID ¶
GetID returns the ID field.
When the provided Executor type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Executor) GetPipeline ¶
GetPipeline returns the Pipeline field.
When the provided Executor type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Executor) GetRuntime ¶
GetRuntime returns the Runtime field.
When the provided Executor type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Executor) SetBuild ¶
SetBuild sets the Build field.
When the provided Executor type is nil, it will set nothing and immediately return.
func (*Executor) SetDistribution ¶
SetDistribution sets the Distribution field.
When the provided Executor type is nil, it will set nothing and immediately return.
func (*Executor) SetHost ¶
SetHost sets the Host field.
When the provided Executor type is nil, it will set nothing and immediately return.
func (*Executor) SetID ¶
SetID sets the ID field.
When the provided Executor type is nil, it will set nothing and immediately return.
func (*Executor) SetPipeline ¶
SetPipeline sets the pipeline Build field.
When the provided Executor type is nil, it will set nothing and immediately return.
func (*Executor) SetRuntime ¶
SetRuntime sets the Runtime field.
When the provided Executor type is nil, it will set nothing and immediately return.
type Hook ¶ added in v0.25.0
type Hook struct { ID *int64 `json:"id,omitempty"` Repo *Repo `json:"repo,omitempty"` Build *Build `json:"build,omitempty"` Number *int `json:"number,omitempty"` SourceID *string `json:"source_id,omitempty"` Created *int64 `json:"created,omitempty"` Host *string `json:"host,omitempty"` Event *string `json:"event,omitempty"` EventAction *string `json:"event_action,omitempty"` Branch *string `json:"branch,omitempty"` Error *string `json:"error,omitempty"` Status *string `json:"status,omitempty"` Link *string `json:"link,omitempty"` WebhookID *int64 `json:"webhook_id,omitempty"` }
Hook is the API representation of a webhook.
swagger:model Webhook
func (*Hook) GetBranch ¶ added in v0.25.0
GetBranch returns the Branch field.
When the provided Hook type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Hook) GetBuild ¶ added in v0.25.0
GetBuild returns the Build field.
When the provided Hook type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Hook) GetCreated ¶ added in v0.25.0
GetCreated returns the Created field.
When the provided Hook type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Hook) GetError ¶ added in v0.25.0
GetError returns the Error field.
When the provided Hook type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Hook) GetEvent ¶ added in v0.25.0
GetEvent returns the Event field.
When the provided Hook type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Hook) GetEventAction ¶ added in v0.25.0
GetEventAction returns the EventAction field.
When the provided Hook type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Hook) GetHost ¶ added in v0.25.0
GetHost returns the Host field.
When the provided Hook type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Hook) GetID ¶ added in v0.25.0
GetID returns the ID field.
When the provided Hook type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Hook) GetLink ¶ added in v0.25.0
GetLink returns the Link field.
When the provided Hook type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Hook) GetNumber ¶ added in v0.25.0
GetNumber returns the Number field.
When the provided Hook type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Hook) GetRepo ¶ added in v0.25.0
GetRepo returns the Repo field.
When the provided Hook type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Hook) GetSourceID ¶ added in v0.25.0
GetSourceID returns the SourceID field.
When the provided Hook type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Hook) GetStatus ¶ added in v0.25.0
GetStatus returns the Status field.
When the provided Hook type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Hook) GetWebhookID ¶ added in v0.25.0
GetWebhookID returns the WebhookID field.
When the provided Hook type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Hook) SetBranch ¶ added in v0.25.0
SetBranch sets the Branch field.
When the provided Hook type is nil, it will set nothing and immediately return.
func (*Hook) SetBuild ¶ added in v0.25.0
SetBuild sets the Build field.
When the provided Hook type is nil, it will set nothing and immediately return.
func (*Hook) SetCreated ¶ added in v0.25.0
SetCreated sets the Created field.
When the provided Hook type is nil, it will set nothing and immediately return.
func (*Hook) SetError ¶ added in v0.25.0
SetError sets the Error field.
When the provided Hook type is nil, it will set nothing and immediately return.
func (*Hook) SetEvent ¶ added in v0.25.0
SetEvent sets the Event field.
When the provided Hook type is nil, it will set nothing and immediately return.
func (*Hook) SetEventAction ¶ added in v0.25.0
SetEventAction sets the EventAction field.
When the provided Hook type is nil, it will set nothing and immediately return.
func (*Hook) SetHost ¶ added in v0.25.0
SetHost sets the Host field.
When the provided Hook type is nil, it will set nothing and immediately return.
func (*Hook) SetID ¶ added in v0.25.0
SetID sets the ID field.
When the provided Hook type is nil, it will set nothing and immediately return.
func (*Hook) SetLink ¶ added in v0.25.0
SetLink sets the Link field.
When the provided Hook type is nil, it will set nothing and immediately return.
func (*Hook) SetNumber ¶ added in v0.25.0
SetNumber sets the Number field.
When the provided Hook type is nil, it will set nothing and immediately return.
func (*Hook) SetRepo ¶ added in v0.25.0
SetRepo sets the Repo field.
When the provided Hook type is nil, it will set nothing and immediately return.
func (*Hook) SetSourceID ¶ added in v0.25.0
SetSourceID sets the SourceID field.
When the provided Hook type is nil, it will set nothing and immediately return.
func (*Hook) SetStatus ¶ added in v0.25.0
SetStatus sets the Status field.
When the provided Hook type is nil, it will set nothing and immediately return.
func (*Hook) SetWebhookID ¶ added in v0.25.0
SetWebhookID sets the WebhookID field.
When the provided Hook type is nil, it will set nothing and immediately return.
type JWKSet ¶
type JWKSet struct {
Keys []JWK `json:"keys"`
}
JWKSet exists solely to provide proper swagger documentation. It is not otherwise used in code.
swagger:model JWKSet
type OpenIDClaims ¶
type OpenIDClaims struct { Actor string `json:"actor,omitempty"` ActorSCMID string `json:"actor_scm_id,omitempty"` Branch string `json:"branch,omitempty"` BuildID int64 `json:"build_id,omitempty"` BuildNumber int `json:"build_number,omitempty"` Commands bool `json:"commands,omitempty"` Event string `json:"event,omitempty"` Image string `json:"image,omitempty"` ImageName string `json:"image_name,omitempty"` ImageTag string `json:"image_tag,omitempty"` Ref string `json:"ref,omitempty"` Repo string `json:"repo,omitempty"` Request string `json:"request,omitempty"` SHA string `json:"sha,omitempty"` TokenType string `json:"token_type,omitempty"` jwt.RegisteredClaims }
OpenIDClaims struct is an extension of the JWT standard claims. It includes information relevant to OIDC services.
type OpenIDConfig ¶
type OpenIDConfig struct { Issuer string `json:"issuer"` JWKSAddress string `json:"jwks_uri"` ClaimsSupported []string `json:"claims_supported"` Algorithms []string `json:"id_token_signing_alg_values_supported"` ResponseTypesSupported []string `json:"response_types_supported"` SubjectTypesSupported []string `json:"subject_types_supported"` }
OpenIDConfig is a struct that represents the OpenID Connect configuration.
swagger:model OpenIDConfig
type QueueBuild ¶
type QueueBuild struct { Status *string `json:"status,omitempty"` Number *int32 `json:"number,omitempty"` Created *int64 `json:"created,omitempty"` FullName *string `json:"full_name,omitempty"` }
QueueBuild is the API representation of the builds in the queue.
swagger:model QueueBuild
func (*QueueBuild) GetCreated ¶
func (b *QueueBuild) GetCreated() int64
GetCreated returns the Created field.
When the provided QueueBuild type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*QueueBuild) GetFullName ¶
func (b *QueueBuild) GetFullName() string
GetFullName returns the FullName field.
When the provided QueueBuild type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*QueueBuild) GetNumber ¶
func (b *QueueBuild) GetNumber() int32
GetNumber returns the Number field.
When the provided QueueBuild type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*QueueBuild) GetStatus ¶
func (b *QueueBuild) GetStatus() string
GetStatus returns the Status field.
When the provided QueueBuild type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*QueueBuild) SetCreated ¶
func (b *QueueBuild) SetCreated(v int64)
SetCreated sets the Created field.
When the provided QueueBuild type is nil, it will set nothing and immediately return.
func (*QueueBuild) SetFullName ¶
func (b *QueueBuild) SetFullName(v string)
SetFullName sets the FullName field.
When the provided QueueBuild type is nil, it will set nothing and immediately return.
func (*QueueBuild) SetNumber ¶
func (b *QueueBuild) SetNumber(v int32)
SetNumber sets the Number field.
When the provided QueueBuild type is nil, it will set nothing and immediately return.
func (*QueueBuild) SetStatus ¶
func (b *QueueBuild) SetStatus(v string)
SetStatus sets the Status field.
When the provided QueueBuild type is nil, it will set nothing and immediately return.
func (*QueueBuild) String ¶
func (b *QueueBuild) String() string
String implements the Stringer interface for the QueueBuild type.
type Repo ¶
type Repo struct { ID *int64 `json:"id,omitempty"` Owner *User `json:"owner,omitempty"` Hash *string `json:"-"` Org *string `json:"org,omitempty"` Name *string `json:"name,omitempty"` FullName *string `json:"full_name,omitempty"` Link *string `json:"link,omitempty"` Clone *string `json:"clone,omitempty"` Branch *string `json:"branch,omitempty"` Topics *[]string `json:"topics,omitempty"` BuildLimit *int64 `json:"build_limit,omitempty"` Timeout *int64 `json:"timeout,omitempty"` Counter *int `json:"counter,omitempty"` Visibility *string `json:"visibility,omitempty"` Private *bool `json:"private,omitempty"` Trusted *bool `json:"trusted,omitempty"` Active *bool `json:"active,omitempty"` AllowEvents *Events `json:"allow_events,omitempty"` PipelineType *string `json:"pipeline_type,omitempty"` PreviousName *string `json:"previous_name,omitempty"` ApproveBuild *string `json:"approve_build,omitempty"` }
Repo is the API representation of a repo.
swagger:model Repo
func (*Repo) Environment ¶
Environment returns a list of environment variables provided from the fields of the Repo type.
func (*Repo) GetActive ¶
GetActive returns the Active field.
When the provided Repo type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Repo) GetAllowEvents ¶
GetAllowEvents returns the AllowEvents field.
When the provided Repo type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Repo) GetApproveBuild ¶
GetApproveBuild returns the ApproveBuild field.
When the provided Repo type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Repo) GetBranch ¶
GetBranch returns the Branch field.
When the provided Repo type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Repo) GetBuildLimit ¶
GetBuildLimit returns the BuildLimit field.
When the provided Repo type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Repo) GetClone ¶
GetClone returns the Clone field.
When the provided Repo type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Repo) GetCounter ¶
GetCounter returns the Counter field.
When the provided Repo type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Repo) GetFullName ¶
GetFullName returns the FullName field.
When the provided Repo type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Repo) GetHash ¶
GetHash returns the Hash field.
When the provided Repo type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Repo) GetID ¶
GetID returns the ID field.
When the provided Repo type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Repo) GetLink ¶
GetLink returns the Link field.
When the provided Repo type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Repo) GetName ¶
GetName returns the Name field.
When the provided Repo type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Repo) GetOrg ¶
GetOrg returns the Org field.
When the provided Repo type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Repo) GetOwner ¶
GetOwner returns the Owner field.
When the provided Repo type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Repo) GetPipelineType ¶
GetPipelineType returns the PipelineType field.
When the provided Repo type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Repo) GetPreviousName ¶
GetPreviousName returns the PreviousName field.
When the provided Repo type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Repo) GetPrivate ¶
GetPrivate returns the Private field.
When the provided Repo type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Repo) GetTimeout ¶
GetTimeout returns the Timeout field.
When the provided Repo type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Repo) GetTopics ¶
GetTopics returns the Topics field.
When the provided Repo type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Repo) GetTrusted ¶
GetTrusted returns the Trusted field.
When the provided Repo type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Repo) GetVisibility ¶
GetVisibility returns the Visibility field.
When the provided Repo type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Repo) SetActive ¶
SetActive sets the Active field.
When the provided Repo type is nil, it will set nothing and immediately return.
func (*Repo) SetAllowEvents ¶
SetAllowEvents sets the AllowEvents field.
When the provided Repo type is nil, it will set nothing and immediately return.
func (*Repo) SetApproveBuild ¶
SetApproveBuild sets the ApproveBuild field.
When the provided Repo type is nil, it will set nothing and immediately return.
func (*Repo) SetBranch ¶
SetBranch sets the Branch field.
When the provided Repo type is nil, it will set nothing and immediately return.
func (*Repo) SetBuildLimit ¶
SetBuildLimit sets the BuildLimit field.
When the provided Repo type is nil, it will set nothing and immediately return.
func (*Repo) SetClone ¶
SetClone sets the Clone field.
When the provided Repo type is nil, it will set nothing and immediately return.
func (*Repo) SetCounter ¶
SetCounter sets the Counter field.
When the provided Repo type is nil, it will set nothing and immediately return.
func (*Repo) SetFullName ¶
SetFullName sets the FullName field.
When the provided Repo type is nil, it will set nothing and immediately return.
func (*Repo) SetHash ¶
SetHash sets the Hash field.
When the provided Repo type is nil, it will set nothing and immediately return.
func (*Repo) SetID ¶
SetID sets the ID field.
When the provided Repo type is nil, it will set nothing and immediately return.
func (*Repo) SetLink ¶
SetLink sets the Link field.
When the provided Repo type is nil, it will set nothing and immediately return.
func (*Repo) SetName ¶
SetName sets the Name field.
When the provided Repo type is nil, it will set nothing and immediately return.
func (*Repo) SetOrg ¶
SetOrg sets the Org field.
When the provided Repo type is nil, it will set nothing and immediately return.
func (*Repo) SetOwner ¶
SetOwner sets the Owner field.
When the provided Repo type is nil, it will set nothing and immediately return.
func (*Repo) SetPipelineType ¶
SetPipelineType sets the PipelineType field.
When the provided Repo type is nil, it will set nothing and immediately return.
func (*Repo) SetPreviousName ¶
SetPreviousName sets the PreviousName field.
When the provided Repo type is nil, it will set nothing and immediately return.
func (*Repo) SetPrivate ¶
SetPrivate sets the Private field.
When the provided Repo type is nil, it will set nothing and immediately return.
func (*Repo) SetTimeout ¶
SetTimeout sets the Timeout field.
When the provided Repo type is nil, it will set nothing and immediately return.
func (*Repo) SetTopics ¶
SetTopics sets the Topics field.
When the provided Repo type is nil, it will set nothing and immediately return.
func (*Repo) SetTrusted ¶
SetTrusted sets the Trusted field.
When the provided Repo type is nil, it will set nothing and immediately return.
func (*Repo) SetVisibility ¶
SetVisibility sets the Visibility field.
When the provided Repo type is nil, it will set nothing and immediately return.
type RepoPartial ¶
type RepoPartial struct { Org string `json:"org,omitempty"` Name string `json:"name,omitempty"` Counter int `json:"counter,omitempty"` Active bool `json:"active,omitempty"` Builds []BuildPartial `json:"builds,omitempty"` }
RepoPartial is an API type that holds all relevant information for a repository attached to a dashboard.
type Schedule ¶
type Schedule struct { ID *int64 `json:"id,omitempty"` Repo *Repo `json:"repo,omitempty"` Active *bool `json:"active,omitempty"` Name *string `json:"name,omitempty"` Entry *string `json:"entry,omitempty"` CreatedAt *int64 `json:"created_at,omitempty"` CreatedBy *string `json:"created_by,omitempty"` UpdatedAt *int64 `json:"updated_at,omitempty"` UpdatedBy *string `json:"updated_by,omitempty"` ScheduledAt *int64 `json:"scheduled_at,omitempty"` Branch *string `json:"branch,omitempty"` Error *string `json:"error,omitempty"` NextRun *int64 `json:"next_run,omitempty"` }
Schedule is the API representation of a schedule for a repo.
swagger:model Schedule
func (*Schedule) GetActive ¶
GetActive returns the Active field.
When the provided Schedule type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Schedule) GetBranch ¶
GetBranch returns the Branch field.
When the provided Schedule type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Schedule) GetCreatedAt ¶
GetCreatedAt returns the CreatedAt field.
When the provided Schedule type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Schedule) GetCreatedBy ¶
GetCreatedBy returns the CreatedBy field.
When the provided Schedule type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Schedule) GetEntry ¶
GetEntry returns the Entry field.
When the provided Schedule type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Schedule) GetError ¶
GetError returns the Error field.
When the provided Schedule type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Schedule) GetID ¶
GetID returns the ID field.
When the provided Schedule type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Schedule) GetName ¶
GetName returns the Name field.
When the provided Schedule type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Schedule) GetNextRun ¶
GetNextRun returns the NextRun field.
When the provided Schedule type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Schedule) GetRepo ¶
GetRepo returns the Repo field.
When the provided Schedule type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Schedule) GetScheduledAt ¶
GetScheduledAt returns the ScheduledAt field.
When the provided Schedule type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Schedule) GetUpdatedAt ¶
GetUpdatedAt returns the UpdatedAt field.
When the provided Schedule type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Schedule) GetUpdatedBy ¶
GetUpdatedBy returns the UpdatedBy field.
When the provided Schedule type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Schedule) SetActive ¶
SetActive sets the Active field.
When the provided Schedule type is nil, it will set nothing and immediately return.
func (*Schedule) SetBranch ¶
SetBranch sets the Branch field.
When the provided Schedule type is nil, it will set nothing and immediately return.
func (*Schedule) SetCreatedAt ¶
SetCreatedAt sets the CreatedAt field.
When the provided Schedule type is nil, it will set nothing and immediately return.
func (*Schedule) SetCreatedBy ¶
SetCreatedBy sets the CreatedBy field.
When the provided Schedule type is nil, it will set nothing and immediately return.
func (*Schedule) SetEntry ¶
SetEntry sets the Entry field.
When the provided Schedule type is nil, it will set nothing and immediately return.
func (*Schedule) SetError ¶
SetError sets the Error field.
When the provided Schedule type is nil, it will set nothing and immediately return.
func (*Schedule) SetID ¶
SetID sets the ID field.
When the provided Schedule type is nil, it will set nothing and immediately return.
func (*Schedule) SetName ¶
SetName sets the Name field.
When the provided Schedule type is nil, it will set nothing and immediately return.
func (*Schedule) SetNextRun ¶
SetNextRun sets the NextRun field.
When the provided Schedule type is nil, it will set nothing and immediately return.
func (*Schedule) SetRepo ¶
SetRepo sets the Repo field.
When the provided Schedule type is nil, it will set nothing and immediately return.
func (*Schedule) SetScheduledAt ¶
SetScheduledAt sets the ScheduledAt field.
When the provided Schedule type is nil, it will set nothing and immediately return.
func (*Schedule) SetUpdatedAt ¶
SetUpdatedAt sets the UpdatedAt field.
When the provided Schedule type is nil, it will set nothing and immediately return.
func (*Schedule) SetUpdatedBy ¶
SetUpdatedBy sets the UpdatedBy field.
When the provided Schedule type is nil, it will set nothing and immediately return.
type User ¶
type User struct { ID *int64 `json:"id,omitempty"` Name *string `json:"name,omitempty"` RefreshToken *string `json:"-"` Token *string `json:"-"` Favorites *[]string `json:"favorites,omitempty"` Active *bool `json:"active,omitempty"` Admin *bool `json:"admin,omitempty"` Dashboards *[]string `json:"dashboards,omitempty"` }
User is the API representation of a user.
swagger:model User
func (*User) Crop ¶
Crop creates a duplicate of the User with certain fields cropped.
Generally used for cropping large fields that aren't useful for all API calls like favorites and dashboards.
func (*User) Environment ¶
Environment returns a list of environment variables provided from the fields of the User type.
func (*User) GetActive ¶
GetActive returns the Active field.
When the provided User type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*User) GetAdmin ¶
GetAdmin returns the Admin field.
When the provided User type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*User) GetDashboards ¶
GetDashboards returns the Dashboards field.
When the provided User type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*User) GetFavorites ¶
GetFavorites returns the Favorites field.
When the provided User type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*User) GetID ¶
GetID returns the ID field.
When the provided User type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*User) GetName ¶
GetName returns the Name field.
When the provided User type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*User) GetRefreshToken ¶
GetRefreshToken returns the RefreshToken field.
When the provided User type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*User) GetToken ¶
GetToken returns the Token field.
When the provided User type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*User) SetActive ¶
SetActive sets the Active field.
When the provided User type is nil, it will set nothing and immediately return.
func (*User) SetAdmin ¶
SetAdmin sets the Admin field.
When the provided User type is nil, it will set nothing and immediately return.
func (*User) SetDashboards ¶
SetDashboard sets the Dashboard field.
When the provided User type is nil, it will set nothing and immediately return.
func (*User) SetFavorites ¶
SetFavorites sets the Favorites field.
When the provided User type is nil, it will set nothing and immediately return.
func (*User) SetID ¶
SetID sets the ID field.
When the provided User type is nil, it will set nothing and immediately return.
func (*User) SetName ¶
SetName sets the Name field.
When the provided User type is nil, it will set nothing and immediately return.
func (*User) SetRefreshToken ¶
SetRefreshToken sets the RefreshToken field.
When the provided User type is nil, it will set nothing and immediately return.
type Worker ¶
type Worker struct { ID *int64 `json:"id,omitempty"` Hostname *string `json:"hostname,omitempty"` Address *string `json:"address,omitempty"` Routes *[]string `json:"routes,omitempty"` Active *bool `json:"active,omitempty"` Status *string `json:"status,omitempty"` LastStatusUpdateAt *int64 `json:"last_status_update_at,omitempty"` RunningBuilds *[]*Build `json:"running_builds,omitempty"` LastBuildStartedAt *int64 `json:"last_build_started_at,omitempty"` LastBuildFinishedAt *int64 `json:"last_build_finished_at,omitempty"` LastCheckedIn *int64 `json:"last_checked_in,omitempty"` BuildLimit *int64 `json:"build_limit,omitempty"` }
Worker is the API representation of a worker.
swagger:model Worker
func (*Worker) GetActive ¶
GetActive returns the Active field.
When the provided Worker type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Worker) GetAddress ¶
GetAddress returns the Address field.
When the provided Worker type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Worker) GetBuildLimit ¶
GetBuildLimit returns the BuildLimit field.
When the provided Worker type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Worker) GetHostname ¶
GetHostname returns the Hostname field.
When the provided Worker type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Worker) GetID ¶
GetID returns the ID field.
When the provided Worker type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Worker) GetLastBuildFinishedAt ¶
GetLastBuildFinishedAt returns the LastBuildFinishedAt field.
When the provided Worker type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Worker) GetLastBuildStartedAt ¶
GetLastBuildStartedAt returns the LastBuildStartedAt field.
When the provided Worker type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Worker) GetLastCheckedIn ¶
GetLastCheckedIn returns the LastCheckedIn field.
When the provided Worker type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Worker) GetLastStatusUpdateAt ¶
GetLastStatusUpdateAt returns the LastStatusUpdateAt field.
When the provided Worker type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Worker) GetRoutes ¶
GetRoutes returns the Routes field.
When the provided Worker type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Worker) GetRunningBuilds ¶
GetRunningBuilds returns the RunningBuilds field.
When the provided Worker type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Worker) GetStatus ¶
GetStatus returns the Status field.
When the provided Worker type is nil, or the field within the type is nil, it returns the zero value for the field.
func (*Worker) SetActive ¶
SetActive sets the Active field.
When the provided Worker type is nil, it will set nothing and immediately return.
func (*Worker) SetAddress ¶
SetAddress sets the Address field.
When the provided Worker type is nil, it will set nothing and immediately return.
func (*Worker) SetBuildLimit ¶
SetBuildLimit sets the LastBuildLimit field.
When the provided Worker type is nil, it will set nothing and immediately return.
func (*Worker) SetHostname ¶
SetHostname sets the Hostname field.
When the provided Worker type is nil, it will set nothing and immediately return.
func (*Worker) SetID ¶
SetID sets the ID field.
When the provided Worker type is nil, it will set nothing and immediately return.
func (*Worker) SetLastBuildFinishedAt ¶
SetLastBuildFinishedAt sets the LastBuildFinishedAt field.
When the provided Worker type is nil, it will set nothing and immediately return.
func (*Worker) SetLastBuildStartedAt ¶
SetLastBuildStartedAt sets the LastBuildStartedAt field.
When the provided Worker type is nil, it will set nothing and immediately return.
func (*Worker) SetLastCheckedIn ¶
SetLastCheckedIn sets the LastCheckedIn field.
When the provided Worker type is nil, it will set nothing and immediately return.
func (*Worker) SetLastStatusUpdateAt ¶
SetLastStatusUpdateAt sets the LastStatusUpdateAt field.
When the provided Worker type is nil, it will set nothing and immediately return.
func (*Worker) SetRoutes ¶
SetRoutes sets the Routes field.
When the provided Worker type is nil, it will set nothing and immediately return.
func (*Worker) SetRunningBuilds ¶
SetRunningBuilds sets the RunningBuilds field.
When the provided Worker type is nil, it will set nothing and immediately return.