library

package
v0.23.3 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 13 Imported by: 80

Documentation

Overview

Package library provides the defined library types for Vela.

Usage:

import "github.com/go-vela/types/library"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildWithContext

func BuildWithContext(c context.Context, b *Build) context.Context

BuildWithContext inserts the Build type to the context.

func LogWithContext

func LogWithContext(c context.Context, l *Log) context.Context

LogWithContext inserts the Log type to the context.

func RepoWithContext

func RepoWithContext(c context.Context, r *Repo) context.Context

RepoWithContext inserts the library Repo type to the context.

func SecretWithContext

func SecretWithContext(c context.Context, s *Secret) context.Context

SecretWithContext inserts the Secret type to the context.

func StepWithContext

func StepWithContext(c context.Context, s *Step) context.Context

StepWithContext inserts the Step type to the context.

func ToString added in v0.4.0

func ToString(v interface{}) string

ToString is a helper function to convert the provided interface value to a string.

func UserWithContext

func UserWithContext(c context.Context, u *User) context.Context

UserWithContext inserts the User type to the context.

Types

type Build

type Build struct {
	ID            *int64              `json:"id,omitempty"`
	RepoID        *int64              `json:"repo_id,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"`
	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 library representation of a build for a pipeline.

swagger:model Build

func BuildFromContext

func BuildFromContext(c context.Context) *Build

BuildFromContext retrieves the Build type from the context.

func (*Build) Duration added in v0.12.0

func (b *Build) Duration() string

Duration calculates and returns the total amount of time the build ran for in a human-readable format.

func (*Build) Environment added in v0.4.0

func (b *Build) Environment(workspace, channel string) map[string]string

Environment returns a list of environment variables provided from the fields of the Build type.

func (*Build) GetApprovedAt added in v0.23.0

func (b *Build) GetApprovedAt() int64

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 added in v0.23.0

func (b *Build) GetApprovedBy() string

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

func (b *Build) GetAuthor() string

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

func (b *Build) GetBaseRef() string

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

func (b *Build) GetBranch() string

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

func (b *Build) GetClone() string

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

func (b *Build) GetCommit() string

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

func (b *Build) GetCreated() int64

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

func (b *Build) GetDeploy() string

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 added in v0.23.0

func (b *Build) GetDeployNumber() int64

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 added in v0.7.0

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

func (b *Build) GetDistribution() string

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 added in v0.2.0

func (b *Build) GetEmail() string

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

func (b *Build) GetEnqueued() int64

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

func (b *Build) GetError() string

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

func (b *Build) GetEvent() string

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 added in v0.14.0

func (b *Build) GetEventAction() string

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

func (b *Build) GetFinished() int64

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 added in v0.5.0

func (b *Build) GetHeadRef() string

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

func (b *Build) GetHost() string

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

func (b *Build) GetID() int64

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 (b *Build) GetLink() string

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

func (b *Build) GetMessage() string

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

func (b *Build) GetNumber() int

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

func (b *Build) GetParent() int

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 added in v0.14.0

func (b *Build) GetPipelineID() int64

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

func (b *Build) GetRef() string

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) GetRepoID

func (b *Build) GetRepoID() int64

GetRepoID returns the RepoID 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

func (b *Build) GetRuntime() string

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

func (b *Build) GetSender() string

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) GetSource

func (b *Build) GetSource() string

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

func (b *Build) GetStarted() int64

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

func (b *Build) GetStatus() string

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

func (b *Build) GetTitle() string

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 added in v0.23.0

func (b *Build) SetApprovedAt(v int64)

SetApprovedAt sets the ApprovedAt field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetApprovedBy added in v0.23.0

func (b *Build) SetApprovedBy(v string)

SetApprovedBy sets the ApprovedBy field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetAuthor

func (b *Build) SetAuthor(v string)

SetAuthor sets the Author field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetBaseRef

func (b *Build) SetBaseRef(v string)

SetBaseRef sets the BaseRef field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetBranch

func (b *Build) SetBranch(v string)

SetBranch sets the Branch field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetClone

func (b *Build) SetClone(v string)

SetClone sets the Clone field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetCommit

func (b *Build) SetCommit(v string)

SetCommit sets the Commit field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetCreated

func (b *Build) SetCreated(v int64)

SetCreated sets the Created field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetDeploy

func (b *Build) SetDeploy(v string)

SetDeploy sets the Deploy field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetDeployNumber added in v0.23.0

func (b *Build) SetDeployNumber(v int64)

SetDeployNumber sets the DeployNumber field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetDeployPayload added in v0.7.0

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

func (b *Build) SetDistribution(v string)

SetDistribution sets the Distribution field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetEmail added in v0.2.0

func (b *Build) SetEmail(v string)

SetEmail sets the Email field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetEnqueued

func (b *Build) SetEnqueued(v int64)

SetEnqueued sets the Enqueued field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetError

func (b *Build) SetError(v string)

SetError sets the Error field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetEvent

func (b *Build) SetEvent(v string)

SetEvent sets the Event field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetEventAction added in v0.14.0

func (b *Build) SetEventAction(v string)

SetEventAction sets the EventAction field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetFinished

func (b *Build) SetFinished(v int64)

SetFinished sets the Finished field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetHeadRef added in v0.5.0

func (b *Build) SetHeadRef(v string)

SetHeadRef sets the HeadRef field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetHost

func (b *Build) SetHost(v string)

SetHost sets the Host field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetID

func (b *Build) SetID(v int64)

SetID sets the ID field.

When the provided Build type is nil, it will set nothing and immediately return.

func (b *Build) SetLink(v string)

SetLink sets the Link field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetMessage

func (b *Build) SetMessage(v string)

SetMessage sets the Message field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetNumber

func (b *Build) SetNumber(v int)

SetNumber sets the Number field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetParent

func (b *Build) SetParent(v int)

SetParent sets the Parent field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetPipelineID added in v0.14.0

func (b *Build) SetPipelineID(v int64)

SetPipelineID sets the PipelineID field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetRef

func (b *Build) SetRef(v string)

SetRef sets the Ref field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetRepoID

func (b *Build) SetRepoID(v int64)

SetRepoID sets the RepoID field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetRuntime

func (b *Build) SetRuntime(v string)

SetRuntime sets the Runtime field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetSender

func (b *Build) SetSender(v string)

SetSender sets the Sender field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetSource

func (b *Build) SetSource(v string)

SetSource sets the Source field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetStarted

func (b *Build) SetStarted(v int64)

SetStarted sets the Started field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetStatus

func (b *Build) SetStatus(v string)

SetStatus sets the Status field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) SetTitle

func (b *Build) SetTitle(v string)

SetTitle sets the Title field.

When the provided Build type is nil, it will set nothing and immediately return.

func (*Build) String

func (b *Build) String() string

String implements the Stringer interface for the Build type.

type BuildExecutable added in v0.21.0

type BuildExecutable struct {
	ID      *int64 `json:"id,omitempty"`
	BuildID *int64 `json:"build_id,omitempty"`
	// swagger:strfmt base64
	Data *[]byte `json:"data,omitempty"`
}

BuildExecutable is the library representation of a BuildExecutable.

swagger:model BuildExecutable

func (*BuildExecutable) GetBuildID added in v0.21.0

func (b *BuildExecutable) GetBuildID() int64

GetBuildID returns the BuildID field.

When the provided BuildExecutable type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*BuildExecutable) GetData added in v0.21.0

func (b *BuildExecutable) GetData() []byte

GetData returns the Data field.

When the provided BuildExecutable type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*BuildExecutable) GetID added in v0.21.0

func (b *BuildExecutable) GetID() int64

GetID returns the ID field.

When the provided BuildExecutable type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*BuildExecutable) SetBuildID added in v0.21.0

func (b *BuildExecutable) SetBuildID(v int64)

SetBuildID sets the BuildID field.

When the provided BuildExecutable type is nil, it will set nothing and immediately return.

func (*BuildExecutable) SetData added in v0.21.0

func (b *BuildExecutable) SetData(v []byte)

SetData sets the Data field.

When the provided BuildExecutable type is nil, it will set nothing and immediately return.

func (*BuildExecutable) SetID added in v0.21.0

func (b *BuildExecutable) SetID(v int64)

SetID sets the ID field.

When the provided BuildExecutable type is nil, it will set nothing and immediately return.

func (*BuildExecutable) String added in v0.21.0

func (b *BuildExecutable) String() string

String implements the Stringer interface for the BuildExecutable type.

type BuildQueue added in v0.8.0

type BuildQueue struct {
	Status   *string `json:"status,omitempty"`
	Number   *int32  `json:"number,omitempty"`
	Created  *int64  `json:"created,omitempty"`
	FullName *string `json:"full_name,omitempty"`
}

BuildQueue is the library representation of the builds in the queue.

swagger:model BuildQueue

func (*BuildQueue) GetCreated added in v0.8.0

func (b *BuildQueue) GetCreated() int64

GetCreated returns the Created field.

When the provided BuildQueue type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*BuildQueue) GetFullName added in v0.8.0

func (b *BuildQueue) GetFullName() string

GetFullName returns the FullName field.

When the provided BuildQueue type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*BuildQueue) GetNumber added in v0.8.0

func (b *BuildQueue) GetNumber() int32

GetNumber returns the Number field.

When the provided BuildQueue type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*BuildQueue) GetStatus added in v0.8.0

func (b *BuildQueue) GetStatus() string

GetStatus returns the Status field.

When the provided BuildQueue type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*BuildQueue) SetCreated added in v0.8.0

func (b *BuildQueue) SetCreated(v int64)

SetCreated sets the Created field.

When the provided BuildQueue type is nil, it will set nothing and immediately return.

func (*BuildQueue) SetFullName added in v0.8.0

func (b *BuildQueue) SetFullName(v string)

SetFullName sets the FullName field.

When the provided BuildQueue type is nil, it will set nothing and immediately return.

func (*BuildQueue) SetNumber added in v0.8.0

func (b *BuildQueue) SetNumber(v int32)

SetNumber sets the Number field.

When the provided BuildQueue type is nil, it will set nothing and immediately return.

func (*BuildQueue) SetStatus added in v0.8.0

func (b *BuildQueue) SetStatus(v string)

SetStatus sets the Status field.

When the provided BuildQueue type is nil, it will set nothing and immediately return.

func (*BuildQueue) String added in v0.8.0

func (b *BuildQueue) String() string

String implements the Stringer interface for the BuildQueue type.

type Deployment added in v0.4.0

type Deployment struct {
	ID          *int64              `json:"id,omitempty"`
	Number      *int64              `json:"number,omitempty"`
	RepoID      *int64              `json:"repo_id,omitempty"`
	URL         *string             `json:"url,omitempty"`
	Commit      *string             `json:"commit,omitempty"`
	Ref         *string             `json:"ref,omitempty"`
	Task        *string             `json:"task,omitempty"`
	Target      *string             `json:"target,omitempty"`
	Description *string             `json:"description,omitempty"`
	Payload     *raw.StringSliceMap `json:"payload,omitempty"`
	CreatedAt   *int64              `json:"created_at,omitempty"`
	CreatedBy   *string             `json:"created_by,omitempty"`
	Builds      []*Build            `json:"builds,omitempty"`
}

Deployment is the library representation of a deployment.

swagger:model Deployment

func (*Deployment) GetBuilds added in v0.10.0

func (d *Deployment) GetBuilds() []*Build

GetBuilds returns the Builds field.

When the provided Deployment type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Deployment) GetCommit added in v0.4.0

func (d *Deployment) GetCommit() string

GetCommit returns the Commit field.

When the provided Deployment type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Deployment) GetCreatedAt added in v0.23.0

func (d *Deployment) GetCreatedAt() int64

GetCreatedAt returns the CreatedAt field.

When the provided Deployment type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Deployment) GetCreatedBy added in v0.23.0

func (d *Deployment) GetCreatedBy() string

GetCreatedBy returns the CreatedBy field.

When the provided Deployment type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Deployment) GetDescription added in v0.4.0

func (d *Deployment) GetDescription() string

GetDescription returns the Description field.

When the provided Deployment type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Deployment) GetID added in v0.4.0

func (d *Deployment) GetID() int64

GetID returns the ID field.

When the provided Deployment type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Deployment) GetNumber added in v0.23.0

func (d *Deployment) GetNumber() int64

GetNumber returns the Number field.

When the provided Deployment type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Deployment) GetPayload added in v0.7.0

func (d *Deployment) GetPayload() map[string]string

GetPayload returns the Payload field.

When the provided Deployment type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Deployment) GetRef added in v0.4.0

func (d *Deployment) GetRef() string

GetRef returns the Ref field.

When the provided Deployment type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Deployment) GetRepoID added in v0.4.0

func (d *Deployment) GetRepoID() int64

GetRepoID returns the RepoID field.

When the provided Deployment type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Deployment) GetTarget added in v0.4.0

func (d *Deployment) GetTarget() string

GetTarget returns the Target field.

When the provided Deployment type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Deployment) GetTask added in v0.4.0

func (d *Deployment) GetTask() string

GetTask returns the Task field.

When the provided Deployment type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Deployment) GetURL added in v0.4.0

func (d *Deployment) GetURL() string

GetURL returns the URL field.

When the provided Deployment type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Deployment) SetBuilds added in v0.10.0

func (d *Deployment) SetBuilds(b []*Build)

SetBuilds sets the Builds field.

When the provided Deployment type is nil, it will set nothing and immediately return.

func (*Deployment) SetCommit added in v0.4.0

func (d *Deployment) SetCommit(v string)

SetCommit sets the Commit field.

When the provided Deployment type is nil, it will set nothing and immediately return.

func (*Deployment) SetCreatedAt added in v0.23.0

func (d *Deployment) SetCreatedAt(v int64)

SetCreatedAt sets the CreatedAt field.

When the provided Deployment type is nil, it will set nothing and immediately return.

func (*Deployment) SetCreatedBy added in v0.23.0

func (d *Deployment) SetCreatedBy(v string)

SetCreatedBy sets the CreatedBy field.

When the provided Deployment type is nil, it will set nothing and immediately return.

func (*Deployment) SetDescription added in v0.4.0

func (d *Deployment) SetDescription(v string)

SetDescription sets the Description field.

When the provided Deployment type is nil, it will set nothing and immediately return.

func (*Deployment) SetID added in v0.4.0

func (d *Deployment) SetID(v int64)

SetID sets the ID field.

When the provided Deployment type is nil, it will set nothing and immediately return.

func (*Deployment) SetNumber added in v0.23.0

func (d *Deployment) SetNumber(v int64)

SetNumber sets the Number field.

When the provided Deployment type is nil, it will set nothing and immediately return.

func (*Deployment) SetPayload added in v0.7.0

func (d *Deployment) SetPayload(v raw.StringSliceMap)

SetPayload sets the Payload field.

When the provided Deployment type is nil, it will set nothing and immediately return.

func (*Deployment) SetRef added in v0.4.0

func (d *Deployment) SetRef(v string)

SetRef sets the Ref field.

When the provided Deployment type is nil, it will set nothing and immediately return.

func (*Deployment) SetRepoID added in v0.4.0

func (d *Deployment) SetRepoID(v int64)

SetRepoID sets the RepoID field.

When the provided Deployment type is nil, it will set nothing and immediately return.

func (*Deployment) SetTarget added in v0.4.0

func (d *Deployment) SetTarget(v string)

SetTarget sets the Target field.

When the provided Deployment type is nil, it will set nothing and immediately return.

func (*Deployment) SetTask added in v0.4.0

func (d *Deployment) SetTask(v string)

SetTask sets the Task field.

When the provided Deployment type is nil, it will set nothing and immediately return.

func (*Deployment) SetURL added in v0.4.0

func (d *Deployment) SetURL(v string)

SetURL sets the URL field.

When the provided Deployment type is nil, it will set nothing and immediately return.

func (*Deployment) String added in v0.4.0

func (d *Deployment) String() string

String implements the Stringer interface for the Deployment type.

type Events added in v0.23.0

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 library representation of the various events that generate a webhook from the SCM.

func NewEventsFromMask added in v0.23.0

func NewEventsFromMask(mask int64) *Events

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 added in v0.23.3

func NewEventsFromSlice(events []string) *Events

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 added in v0.23.0

func (e *Events) Allowed(event, action string) bool

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 added in v0.23.0

func (e *Events) GetComment() *actions.Comment

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 added in v0.23.0

func (e *Events) GetDeployment() *actions.Deploy

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 added in v0.23.0

func (e *Events) GetPullRequest() *actions.Pull

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 added in v0.23.0

func (e *Events) GetPush() *actions.Push

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 added in v0.23.0

func (e *Events) GetSchedule() *actions.Schedule

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 added in v0.23.0

func (e *Events) List() []string

List is an Events method that generates a comma-separated list of event:action combinations that are allowed for the repo.

func (*Events) SetComment added in v0.23.0

func (e *Events) SetComment(v *actions.Comment)

SetComment sets the Events Comment field.

When the provided Events type is nil, it will set nothing and immediately return.

func (*Events) SetDeployment added in v0.23.0

func (e *Events) SetDeployment(v *actions.Deploy)

SetDeployment sets the Events Deployment field.

When the provided Events type is nil, it will set nothing and immediately return.

func (*Events) SetPullRequest added in v0.23.0

func (e *Events) SetPullRequest(v *actions.Pull)

SetPullRequest sets the Events PullRequest field.

When the provided Events type is nil, it will set nothing and immediately return.

func (*Events) SetPush added in v0.23.0

func (e *Events) SetPush(v *actions.Push)

SetPush sets the Events Push field.

When the provided Events type is nil, it will set nothing and immediately return.

func (*Events) SetSchedule added in v0.23.0

func (e *Events) SetSchedule(v *actions.Schedule)

SetSchedule sets the Events Schedule field.

When the provided Events type is nil, it will set nothing and immediately return.

func (*Events) ToDatabase added in v0.23.0

func (e *Events) ToDatabase() int64

ToDatabase is an Events method that converts a nested Events struct into an integer event mask.

type Executor added in v0.2.0

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"`
	Repo         *Repo           `json:"repo,omitempty"`
	Pipeline     *pipeline.Build `json:"pipeline,omitempty"`
}

Executor is the library representation of an executor for a worker.

swagger:model Executor

func (*Executor) GetBuild added in v0.2.0

func (e *Executor) GetBuild() Build

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 added in v0.2.0

func (e *Executor) GetDistribution() string

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 added in v0.2.0

func (e *Executor) GetHost() string

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 added in v0.2.0

func (e *Executor) GetID() int64

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 added in v0.2.0

func (e *Executor) GetPipeline() pipeline.Build

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) GetRepo added in v0.2.0

func (e *Executor) GetRepo() Repo

GetRepo returns the Repo 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 added in v0.2.0

func (e *Executor) GetRuntime() string

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 added in v0.2.0

func (e *Executor) SetBuild(v Build)

SetBuild sets the Build field.

When the provided Executor type is nil, it will set nothing and immediately return.

func (*Executor) SetDistribution added in v0.2.0

func (e *Executor) SetDistribution(v string)

SetDistribution sets the Distribution field.

When the provided Executor type is nil, it will set nothing and immediately return.

func (*Executor) SetHost added in v0.2.0

func (e *Executor) SetHost(v string)

SetHost sets the Host field.

When the provided Executor type is nil, it will set nothing and immediately return.

func (*Executor) SetID added in v0.2.0

func (e *Executor) SetID(v int64)

SetID sets the ID field.

When the provided Executor type is nil, it will set nothing and immediately return.

func (*Executor) SetPipeline added in v0.2.0

func (e *Executor) SetPipeline(v pipeline.Build)

SetPipeline sets the pipeline Build field.

When the provided Executor type is nil, it will set nothing and immediately return.

func (*Executor) SetRepo added in v0.2.0

func (e *Executor) SetRepo(v Repo)

SetRepo sets the Repo field.

When the provided Executor type is nil, it will set nothing and immediately return.

func (*Executor) SetRuntime added in v0.2.0

func (e *Executor) SetRuntime(v string)

SetRuntime sets the Runtime field.

When the provided Executor type is nil, it will set nothing and immediately return.

func (*Executor) String added in v0.2.0

func (e *Executor) String() string

String implements the Stringer interface for the Executor type.

type Hook added in v0.2.0

type Hook struct {
	ID          *int64  `json:"id,omitempty"`
	RepoID      *int64  `json:"repo_id,omitempty"`
	BuildID     *int64  `json:"build_id,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 library representation of a webhook for a repo.

swagger:model Webhook

func (*Hook) GetBranch added in v0.2.0

func (h *Hook) GetBranch() string

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) GetBuildID added in v0.2.0

func (h *Hook) GetBuildID() int64

GetBuildID returns the BuildID 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.2.0

func (h *Hook) GetCreated() int64

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.2.0

func (h *Hook) GetError() string

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.2.0

func (h *Hook) GetEvent() string

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.14.0

func (h *Hook) GetEventAction() string

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.2.0

func (h *Hook) GetHost() string

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.2.0

func (h *Hook) GetID() int64

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 (h *Hook) GetLink() string

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.2.0

func (h *Hook) GetNumber() int

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) GetRepoID added in v0.2.0

func (h *Hook) GetRepoID() int64

GetRepoID returns the RepoID 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.2.0

func (h *Hook) GetSourceID() string

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.2.0

func (h *Hook) GetStatus() string

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.14.0

func (h *Hook) GetWebhookID() int64

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.2.0

func (h *Hook) SetBranch(v string)

SetBranch sets the Branch field.

When the provided Hook type is nil, it will set nothing and immediately return.

func (*Hook) SetBuildID added in v0.2.0

func (h *Hook) SetBuildID(v int64)

SetBuildID sets the BuildID field.

When the provided Hook type is nil, it will set nothing and immediately return.

func (*Hook) SetCreated added in v0.2.0

func (h *Hook) SetCreated(v int64)

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.2.0

func (h *Hook) SetError(v string)

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.2.0

func (h *Hook) SetEvent(v string)

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.14.0

func (h *Hook) SetEventAction(v string)

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.2.0

func (h *Hook) SetHost(v string)

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.2.0

func (h *Hook) SetID(v int64)

SetID sets the ID field.

When the provided Hook type is nil, it will set nothing and immediately return.

func (h *Hook) SetLink(v string)

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.2.0

func (h *Hook) SetNumber(v int)

SetNumber sets the Number field.

When the provided Hook type is nil, it will set nothing and immediately return.

func (*Hook) SetRepoID added in v0.2.0

func (h *Hook) SetRepoID(v int64)

SetRepoID sets the RepoID field.

When the provided Hook type is nil, it will set nothing and immediately return.

func (*Hook) SetSourceID added in v0.2.0

func (h *Hook) SetSourceID(v string)

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.2.0

func (h *Hook) SetStatus(v string)

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.14.0

func (h *Hook) SetWebhookID(v int64)

SetWebhookID sets the WebhookID field.

When the provided Hook type is nil, it will set nothing and immediately return.

func (*Hook) String added in v0.2.0

func (h *Hook) String() string

String implements the Stringer interface for the Hook type.

type Log

type Log struct {
	ID        *int64 `json:"id,omitempty"`
	BuildID   *int64 `json:"build_id,omitempty"`
	RepoID    *int64 `json:"repo_id,omitempty"`
	ServiceID *int64 `json:"service_id,omitempty"`
	StepID    *int64 `json:"step_id,omitempty"`
	// swagger:strfmt base64
	Data *[]byte `json:"data,omitempty"`
}

Log is the library representation of a log for a step in a build.

swagger:model Log

func LogFromContext

func LogFromContext(c context.Context) *Log

LogFromContext retrieves the Log type from the context.

func (*Log) AppendData added in v0.4.0

func (l *Log) AppendData(data []byte)

AppendData adds the provided data to the end of the Data field for the Log type. If the Data field is empty, then the function overwrites the entire Data field.

func (*Log) GetBuildID

func (l *Log) GetBuildID() int64

GetBuildID returns the BuildID field.

When the provided Log type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Log) GetData

func (l *Log) GetData() []byte

GetData returns the Data field.

When the provided Log type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Log) GetID

func (l *Log) GetID() int64

GetID returns the ID field.

When the provided Log type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Log) GetRepoID

func (l *Log) GetRepoID() int64

GetRepoID returns the RepoID field.

When the provided Log type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Log) GetServiceID

func (l *Log) GetServiceID() int64

GetServiceID returns the ServiceID field.

When the provided Log type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Log) GetStepID

func (l *Log) GetStepID() int64

GetStepID returns the StepID field.

When the provided Log type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Log) MaskData added in v0.12.0

func (l *Log) MaskData(secrets []string)

MaskData reads through the log data and masks all values provided in the string slice. If the log is empty, we do nothing.

func (*Log) SetBuildID

func (l *Log) SetBuildID(v int64)

SetBuildID sets the BuildID field.

When the provided Log type is nil, it will set nothing and immediately return.

func (*Log) SetData

func (l *Log) SetData(v []byte)

SetData sets the Data field.

When the provided Log type is nil, it will set nothing and immediately return.

func (*Log) SetID

func (l *Log) SetID(v int64)

SetID sets the ID field.

When the provided Log type is nil, it will set nothing and immediately return.

func (*Log) SetRepoID

func (l *Log) SetRepoID(v int64)

SetRepoID sets the RepoID field.

When the provided Log type is nil, it will set nothing and immediately return.

func (*Log) SetServiceID added in v0.1.2

func (l *Log) SetServiceID(v int64)

SetServiceID sets the ServiceID field.

When the provided Log type is nil, it will set nothing and immediately return.

func (*Log) SetStepID

func (l *Log) SetStepID(v int64)

SetStepID sets the StepID field.

When the provided Log type is nil, it will set nothing and immediately return.

func (*Log) String

func (l *Log) String() string

String implements the Stringer interface for the Log type.

type Pipeline added in v0.14.0

type Pipeline struct {
	ID              *int64  `json:"id,omitempty"`
	RepoID          *int64  `json:"repo_id,omitempty"`
	Commit          *string `json:"commit,omitempty"`
	Flavor          *string `json:"flavor,omitempty"`
	Platform        *string `json:"platform,omitempty"`
	Ref             *string `json:"ref,omitempty"`
	Type            *string `json:"type,omitempty"`
	Version         *string `json:"version,omitempty"`
	ExternalSecrets *bool   `json:"external_secrets,omitempty"`
	InternalSecrets *bool   `json:"internal_secrets,omitempty"`
	Services        *bool   `json:"services,omitempty"`
	Stages          *bool   `json:"stages,omitempty"`
	Steps           *bool   `json:"steps,omitempty"`
	Templates       *bool   `json:"templates,omitempty"`
	// swagger:strfmt base64
	Data *[]byte `json:"data,omitempty"`
}

Pipeline is the library representation of a Pipeline.

swagger:model Pipeline

func (*Pipeline) GetCommit added in v0.14.0

func (p *Pipeline) GetCommit() string

GetCommit returns the Commit field.

When the provided Pipeline type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Pipeline) GetData added in v0.14.0

func (p *Pipeline) GetData() []byte

GetData returns the Data field.

When the provided Pipeline type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Pipeline) GetExternalSecrets added in v0.14.0

func (p *Pipeline) GetExternalSecrets() bool

GetExternalSecrets returns the ExternalSecrets field.

When the provided Pipeline type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Pipeline) GetFlavor added in v0.14.0

func (p *Pipeline) GetFlavor() string

GetFlavor returns the Flavor field.

When the provided Pipeline type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Pipeline) GetID added in v0.14.0

func (p *Pipeline) GetID() int64

GetID returns the ID field.

When the provided Pipeline type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Pipeline) GetInternalSecrets added in v0.14.0

func (p *Pipeline) GetInternalSecrets() bool

GetInternalSecrets returns the InternalSecrets field.

When the provided Pipeline type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Pipeline) GetPlatform added in v0.14.0

func (p *Pipeline) GetPlatform() string

GetPlatform returns the Platform field.

When the provided Pipeline type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Pipeline) GetRef added in v0.14.0

func (p *Pipeline) GetRef() string

GetRef returns the Ref field.

When the provided Pipeline type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Pipeline) GetRepoID added in v0.14.0

func (p *Pipeline) GetRepoID() int64

GetRepoID returns the RepoID field.

When the provided Pipeline type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Pipeline) GetServices added in v0.14.0

func (p *Pipeline) GetServices() bool

GetServices returns the Services field.

When the provided Pipeline type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Pipeline) GetStages added in v0.14.0

func (p *Pipeline) GetStages() bool

GetStages returns the Stages field.

When the provided Pipeline type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Pipeline) GetSteps added in v0.14.0

func (p *Pipeline) GetSteps() bool

GetSteps returns the Steps field.

When the provided Pipeline type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Pipeline) GetTemplates added in v0.14.0

func (p *Pipeline) GetTemplates() bool

GetTemplates returns the Templates field.

When the provided Pipeline type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Pipeline) GetType added in v0.14.0

func (p *Pipeline) GetType() string

GetType returns the Type field.

When the provided Pipeline type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Pipeline) GetVersion added in v0.14.0

func (p *Pipeline) GetVersion() string

GetVersion returns the Version field.

When the provided Pipeline type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Pipeline) SetCommit added in v0.14.0

func (p *Pipeline) SetCommit(v string)

SetCommit sets the Commit field.

When the provided Pipeline type is nil, it will set nothing and immediately return.

func (*Pipeline) SetData added in v0.14.0

func (p *Pipeline) SetData(v []byte)

SetData sets the Data field.

When the provided Pipeline type is nil, it will set nothing and immediately return.

func (*Pipeline) SetExternalSecrets added in v0.14.0

func (p *Pipeline) SetExternalSecrets(v bool)

SetExternalSecrets sets the ExternalSecrets field.

When the provided Pipeline type is nil, it will set nothing and immediately return.

func (*Pipeline) SetFlavor added in v0.14.0

func (p *Pipeline) SetFlavor(v string)

SetFlavor sets the Flavor field.

When the provided Pipeline type is nil, it will set nothing and immediately return.

func (*Pipeline) SetID added in v0.14.0

func (p *Pipeline) SetID(v int64)

SetID sets the ID field.

When the provided Pipeline type is nil, it will set nothing and immediately return.

func (*Pipeline) SetInternalSecrets added in v0.14.0

func (p *Pipeline) SetInternalSecrets(v bool)

SetInternalSecrets sets the InternalSecrets field.

When the provided Pipeline type is nil, it will set nothing and immediately return.

func (*Pipeline) SetPlatform added in v0.14.0

func (p *Pipeline) SetPlatform(v string)

SetPlatform sets the Platform field.

When the provided Pipeline type is nil, it will set nothing and immediately return.

func (*Pipeline) SetRef added in v0.14.0

func (p *Pipeline) SetRef(v string)

SetRef sets the Ref field.

When the provided Pipeline type is nil, it will set nothing and immediately return.

func (*Pipeline) SetRepoID added in v0.14.0

func (p *Pipeline) SetRepoID(v int64)

SetRepoID sets the RepoID field.

When the provided Pipeline type is nil, it will set nothing and immediately return.

func (*Pipeline) SetServices added in v0.14.0

func (p *Pipeline) SetServices(v bool)

SetServices sets the Services field.

When the provided Pipeline type is nil, it will set nothing and immediately return.

func (*Pipeline) SetStages added in v0.14.0

func (p *Pipeline) SetStages(v bool)

SetStages sets the Stages field.

When the provided Pipeline type is nil, it will set nothing and immediately return.

func (*Pipeline) SetSteps added in v0.14.0

func (p *Pipeline) SetSteps(v bool)

SetSteps sets the Steps field.

When the provided Pipeline type is nil, it will set nothing and immediately return.

func (*Pipeline) SetTemplates added in v0.14.0

func (p *Pipeline) SetTemplates(v bool)

SetTemplates sets the Templates field.

When the provided Pipeline type is nil, it will set nothing and immediately return.

func (*Pipeline) SetType added in v0.14.0

func (p *Pipeline) SetType(v string)

SetType sets the Type field.

When the provided Pipeline type is nil, it will set nothing and immediately return.

func (*Pipeline) SetVersion added in v0.14.0

func (p *Pipeline) SetVersion(v string)

SetVersion sets the Version field.

When the provided Pipeline type is nil, it will set nothing and immediately return.

func (*Pipeline) String added in v0.14.0

func (p *Pipeline) String() string

String implements the Stringer interface for the Pipeline type.

type QueueInfo added in v0.21.0

type QueueInfo struct {
	QueuePublicKey *string `json:"queue_public_key,omitempty"`
	QueueAddress   *string `json:"queue_address,omitempty"`
}

QueueInfo is the library representation of a QueueInfo.

swagger:model QueueInfo

func (*QueueInfo) GetPublicKey added in v0.21.0

func (w *QueueInfo) GetPublicKey() string

GetPublicKey returns the QueuePublicKey field.

When the provided QueueInfo type is nil, or the field within the type is nil, it returns an empty string for the field.

func (*QueueInfo) GetQueueAddress added in v0.21.0

func (w *QueueInfo) GetQueueAddress() string

GetQueueAddress returns the QueueAddress field.

When the provided QueueInfo type is nil, or the field within the type is nil, it returns an empty string for the field.

func (*QueueInfo) SetPublicKey added in v0.21.0

func (w *QueueInfo) SetPublicKey(v string)

SetPublicKey sets the QueuePublicKey field.

When the provided QueueInfo type is nil, it will set nothing and immediately return.

func (*QueueInfo) SetQueueAddress added in v0.21.0

func (w *QueueInfo) SetQueueAddress(v string)

SetQueueAddress sets the QueueAddress field.

When the provided QueueInfo type is nil, it will set nothing and immediately return.

type Repo

type Repo struct {
	ID           *int64    `json:"id,omitempty"`
	UserID       *int64    `json:"user_id,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"`
	AllowPull    *bool     `json:"allow_pull,omitempty"`
	AllowPush    *bool     `json:"allow_push,omitempty"`
	AllowDeploy  *bool     `json:"allow_deploy,omitempty"`
	AllowTag     *bool     `json:"allow_tag,omitempty"`
	AllowComment *bool     `json:"allow_comment,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 library representation of a repo.

swagger:model Repo

func RepoFromContext

func RepoFromContext(c context.Context) *Repo

RepoFromContext retrieves the Repo type from the context.

func (*Repo) Environment added in v0.4.0

func (r *Repo) Environment() map[string]string

Environment returns a list of environment variables provided from the fields of the Repo type.

func (*Repo) GetActive

func (r *Repo) GetActive() bool

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) GetAllowComment added in v0.4.0

func (r *Repo) GetAllowComment() bool

GetAllowComment returns the AllowComment 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) GetAllowDeploy

func (r *Repo) GetAllowDeploy() bool

GetAllowDeploy returns the AllowDeploy 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 added in v0.23.0

func (r *Repo) GetAllowEvents() *Events

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) GetAllowPull

func (r *Repo) GetAllowPull() bool

GetAllowPull returns the AllowPull 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) GetAllowPush

func (r *Repo) GetAllowPush() bool

GetAllowPush returns the AllowPush 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) GetAllowTag

func (r *Repo) GetAllowTag() bool

GetAllowTag returns the AllowTag 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 added in v0.23.0

func (r *Repo) GetApproveBuild() string

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

func (r *Repo) GetBranch() string

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 added in v0.12.0

func (r *Repo) GetBuildLimit() int64

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

func (r *Repo) GetClone() string

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 added in v0.8.0

func (r *Repo) GetCounter() int

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

func (r *Repo) GetFullName() string

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 added in v0.3.0

func (r *Repo) GetHash() string

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

func (r *Repo) GetID() int64

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 (r *Repo) GetLink() string

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

func (r *Repo) GetName() string

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

func (r *Repo) GetOrg() string

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) GetPipelineType added in v0.9.0

func (r *Repo) GetPipelineType() string

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 added in v0.12.0

func (r *Repo) GetPreviousName() string

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

func (r *Repo) GetPrivate() bool

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

func (r *Repo) GetTimeout() int64

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 added in v0.19.0

func (r *Repo) GetTopics() []string

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

func (r *Repo) GetTrusted() bool

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) GetUserID

func (r *Repo) GetUserID() int64

GetUserID returns the UserID 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

func (r *Repo) GetVisibility() string

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

func (r *Repo) SetActive(v bool)

SetActive sets the Active field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetAllowComment added in v0.4.0

func (r *Repo) SetAllowComment(v bool)

SetAllowComment sets the AllowComment field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetAllowDeploy

func (r *Repo) SetAllowDeploy(v bool)

SetAllowDeploy sets the AllowDeploy field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetAllowEvents added in v0.23.0

func (r *Repo) SetAllowEvents(v *Events)

SetAllowEvents sets the AllowEvents field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetAllowPull

func (r *Repo) SetAllowPull(v bool)

SetAllowPull sets the AllowPull field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetAllowPush

func (r *Repo) SetAllowPush(v bool)

SetAllowPush sets the AllowPush field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetAllowTag

func (r *Repo) SetAllowTag(v bool)

SetAllowTag sets the AllowTag field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetApproveBuild added in v0.23.0

func (r *Repo) SetApproveBuild(v string)

SetApproveBuild sets the ApproveBuild field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetBranch

func (r *Repo) SetBranch(v string)

SetBranch sets the Branch field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetBuildLimit added in v0.12.0

func (r *Repo) SetBuildLimit(v int64)

SetBuildLimit sets the BuildLimit field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetClone

func (r *Repo) SetClone(v string)

SetClone sets the Clone field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetCounter added in v0.8.0

func (r *Repo) SetCounter(v int)

SetCounter sets the Counter field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetFullName

func (r *Repo) SetFullName(v string)

SetFullName sets the FullName field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetHash added in v0.3.0

func (r *Repo) SetHash(v string)

SetHash sets the Hash field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetID

func (r *Repo) SetID(v int64)

SetID sets the ID field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (r *Repo) SetLink(v string)

SetLink sets the Link field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetName

func (r *Repo) SetName(v string)

SetName sets the Name field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetOrg

func (r *Repo) SetOrg(v string)

SetOrg sets the Org field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetPipelineType added in v0.9.0

func (r *Repo) SetPipelineType(v string)

SetPipelineType sets the PipelineType field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetPreviousName added in v0.12.0

func (r *Repo) SetPreviousName(v string)

SetPreviousName sets the PreviousName field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetPrivate

func (r *Repo) SetPrivate(v bool)

SetPrivate sets the Private field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetTimeout

func (r *Repo) SetTimeout(v int64)

SetTimeout sets the Timeout field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetTopics added in v0.19.0

func (r *Repo) SetTopics(v []string)

SetTopics sets the Topics field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetTrusted

func (r *Repo) SetTrusted(v bool)

SetTrusted sets the Trusted field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetUserID

func (r *Repo) SetUserID(v int64)

SetUserID sets the UserID field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) SetVisibility

func (r *Repo) SetVisibility(v string)

SetVisibility sets the Visibility field.

When the provided Repo type is nil, it will set nothing and immediately return.

func (*Repo) String

func (r *Repo) String() string

String implements the Stringer interface for the Repo type.

type Schedule added in v0.20.0

type Schedule struct {
	ID          *int64  `json:"id,omitempty"`
	RepoID      *int64  `json:"repo_id,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"`
}

Schedule is the API representation of a schedule for a repo.

swagger:model Schedule

func (*Schedule) GetActive added in v0.20.0

func (s *Schedule) GetActive() bool

GetActive returns the Active field from the provided Schedule. If the object is nil, or the field within the object is nil, it returns the zero value instead.

func (*Schedule) GetBranch added in v0.21.0

func (s *Schedule) GetBranch() string

GetBranch returns the Branch field from the provided Schedule. If the object is nil, or the field within the object is nil, it returns the zero value instead.

func (*Schedule) GetCreatedAt added in v0.20.0

func (s *Schedule) GetCreatedAt() int64

GetCreatedAt returns the CreatedAt field from the provided Schedule. If the object is nil, or the field within the object is nil, it returns the zero value instead.

func (*Schedule) GetCreatedBy added in v0.20.0

func (s *Schedule) GetCreatedBy() string

GetCreatedBy returns the CreatedBy field from the provided Schedule. If the object is nil, or the field within the object is nil, it returns the zero value instead.

func (*Schedule) GetEntry added in v0.20.0

func (s *Schedule) GetEntry() string

GetEntry returns the Entry field from the provided Schedule. If the object is nil, or the field within the object is nil, it returns the zero value instead.

func (*Schedule) GetID added in v0.20.0

func (s *Schedule) GetID() int64

GetID returns the ID field from the provided Schedule. If the object is nil, or the field within the object is nil, it returns the zero value instead.

func (*Schedule) GetName added in v0.20.0

func (s *Schedule) GetName() string

GetName returns the Name field from the provided Schedule. If the object is nil, or the field within the object is nil, it returns the zero value instead.

func (*Schedule) GetRepoID added in v0.20.0

func (s *Schedule) GetRepoID() int64

GetRepoID returns the RepoID field from the provided Schedule. If the object is nil, or the field within the object is nil, it returns the zero value instead.

func (*Schedule) GetScheduledAt added in v0.20.0

func (s *Schedule) GetScheduledAt() int64

GetScheduledAt returns the ScheduledAt field from the provided Schedule. If the object is nil, or the field within the object is nil, it returns the zero value instead.

func (*Schedule) GetUpdatedAt added in v0.20.0

func (s *Schedule) GetUpdatedAt() int64

GetUpdatedAt returns the UpdatedAt field from the provided Schedule. If the object is nil, or the field within the object is nil, it returns the zero value instead.

func (*Schedule) GetUpdatedBy added in v0.20.0

func (s *Schedule) GetUpdatedBy() string

GetUpdatedBy returns the UpdatedBy field from the provided Schedule. If the object is nil, or the field within the object is nil, it returns the zero value instead.

func (*Schedule) SetActive added in v0.20.0

func (s *Schedule) SetActive(active bool)

SetActive sets the Active field in the provided Schedule. If the object is nil, it will set nothing and immediately return making this a no-op.

func (*Schedule) SetBranch added in v0.21.0

func (s *Schedule) SetBranch(branch string)

SetBranch sets the Branch field in the provided Schedule. If the object is nil, it will set nothing and immediately return making this a no-op.

func (*Schedule) SetCreatedAt added in v0.20.0

func (s *Schedule) SetCreatedAt(createdAt int64)

SetCreatedAt sets the CreatedAt field in the provided Schedule. If the object is nil, it will set nothing and immediately return making this a no-op.

func (*Schedule) SetCreatedBy added in v0.20.0

func (s *Schedule) SetCreatedBy(createdBy string)

SetCreatedBy sets the CreatedBy field in the provided Schedule. If the object is nil, it will set nothing and immediately return making this a no-op.

func (*Schedule) SetEntry added in v0.20.0

func (s *Schedule) SetEntry(entry string)

SetEntry sets the Entry field in the provided Schedule. If the object is nil, it will set nothing and immediately return making this a no-op.

func (*Schedule) SetID added in v0.20.0

func (s *Schedule) SetID(id int64)

SetID sets the ID field in the provided Schedule. If the object is nil, it will set nothing and immediately return making this a no-op.

func (*Schedule) SetName added in v0.20.0

func (s *Schedule) SetName(name string)

SetName sets the Name field in the provided Schedule. If the object is nil, it will set nothing and immediately return making this a no-op.

func (*Schedule) SetRepoID added in v0.20.0

func (s *Schedule) SetRepoID(repoID int64)

SetRepoID sets the RepoID field in the provided Schedule. If the object is nil, it will set nothing and immediately return making this a no-op.

func (*Schedule) SetScheduledAt added in v0.20.0

func (s *Schedule) SetScheduledAt(scheduledAt int64)

SetScheduledAt sets the ScheduledAt field in the provided Schedule. If the object is nil, it will set nothing and immediately return making this a no-op.

func (*Schedule) SetUpdatedAt added in v0.20.0

func (s *Schedule) SetUpdatedAt(updatedAt int64)

SetUpdatedAt sets the UpdatedAt field in the provided Schedule. If the object is nil, it will set nothing and immediately return making this a no-op.

func (*Schedule) SetUpdatedBy added in v0.20.0

func (s *Schedule) SetUpdatedBy(updatedBy string)

SetUpdatedBy sets the UpdatedBy field in the provided Schedule. If the object is nil, it will set nothing and immediately return making this a no-op.

func (*Schedule) String added in v0.20.0

func (s *Schedule) String() string

String implements the Stringer interface for the Schedule type.

type Secret

type Secret struct {
	ID                *int64    `json:"id,omitempty"`
	Org               *string   `json:"org,omitempty"`
	Repo              *string   `json:"repo,omitempty"`
	Team              *string   `json:"team,omitempty"`
	Name              *string   `json:"name,omitempty"`
	Value             *string   `json:"value,omitempty"`
	Type              *string   `json:"type,omitempty"`
	Images            *[]string `json:"images,omitempty"`
	Events            *[]string `json:"events,omitempty"`
	AllowEvents       *Events   `json:"allow_events,omitempty"`
	AllowCommand      *bool     `json:"allow_command,omitempty"`
	AllowSubstitution *bool     `json:"allow_substitution,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"`
}

Secret is the library representation of a secret.

swagger:model Secret

func SecretFromContext

func SecretFromContext(c context.Context) *Secret

SecretFromContext retrieves the Secret type from the context.

func (*Secret) GetAllowCommand added in v0.1.3

func (s *Secret) GetAllowCommand() bool

GetAllowCommand returns the AllowCommand field.

When the provided Secret type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Secret) GetAllowEvents added in v0.23.0

func (s *Secret) GetAllowEvents() *Events

GetAllowEvents returns the AllowEvents field.

When the provided Secret type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Secret) GetAllowSubstitution added in v0.23.2

func (s *Secret) GetAllowSubstitution() bool

GetAllowSubstitution returns the AllowSubstitution field.

When the provided Secret type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Secret) GetCreatedAt added in v0.12.0

func (s *Secret) GetCreatedAt() int64

GetCreatedAt returns the CreatedAt field.

When the provided Secret type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Secret) GetCreatedBy added in v0.12.0

func (s *Secret) GetCreatedBy() string

GetCreatedBy returns the CreatedBy field.

When the provided Secret type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Secret) GetEvents

func (s *Secret) GetEvents() []string

GetEvents returns the Events field.

When the provided Secret type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Secret) GetID

func (s *Secret) GetID() int64

GetID returns the ID field.

When the provided Secret type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Secret) GetImages

func (s *Secret) GetImages() []string

GetImages returns the Images field.

When the provided Secret type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Secret) GetName

func (s *Secret) GetName() string

GetName returns the Name field.

When the provided Secret type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Secret) GetOrg

func (s *Secret) GetOrg() string

GetOrg returns the Org field.

When the provided Secret type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Secret) GetRepo

func (s *Secret) GetRepo() string

GetRepo returns the Repo field.

When the provided Secret type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Secret) GetTeam

func (s *Secret) GetTeam() string

GetTeam returns the Team field.

When the provided Secret type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Secret) GetType

func (s *Secret) GetType() string

GetType returns the Type field.

When the provided Secret type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Secret) GetUpdatedAt added in v0.12.0

func (s *Secret) GetUpdatedAt() int64

GetUpdatedAt returns the UpdatedAt field.

When the provided Secret type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Secret) GetUpdatedBy added in v0.12.0

func (s *Secret) GetUpdatedBy() string

GetUpdatedBy returns the UpdatedBy field.

When the provided Secret type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Secret) GetValue

func (s *Secret) GetValue() string

GetValue returns the Value field.

When the provided Secret type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Secret) Match

func (s *Secret) Match(from *pipeline.Container) bool

Match returns true when the provided container matches the conditions to inject a secret into a pipeline container resource.

func (*Secret) Sanitize

func (s *Secret) Sanitize() *Secret

Sanitize creates a duplicate of the Secret without the value.

func (*Secret) SetAllowCommand added in v0.1.3

func (s *Secret) SetAllowCommand(v bool)

SetAllowCommand sets the AllowCommand field.

When the provided Secret type is nil, it will set nothing and immediately return.

func (*Secret) SetAllowEvents added in v0.23.0

func (s *Secret) SetAllowEvents(v *Events)

SetAllowEvents sets the AllowEvents field.

When the provided Secret type is nil, it will set nothing and immediately return.

func (*Secret) SetAllowSubstitution added in v0.23.2

func (s *Secret) SetAllowSubstitution(v bool)

SetAllowSubstitution sets the AllowSubstitution field.

When the provided Secret type is nil, it will set nothing and immediately return.

func (*Secret) SetCreatedAt added in v0.12.0

func (s *Secret) SetCreatedAt(v int64)

SetCreatedAt sets the CreatedAt field.

When the provided Secret type is nil, it will set nothing and immediately return.

func (*Secret) SetCreatedBy added in v0.12.0

func (s *Secret) SetCreatedBy(v string)

SetCreatedBy sets the CreatedBy field.

When the provided Secret type is nil, it will set nothing and immediately return.

func (*Secret) SetEvents

func (s *Secret) SetEvents(v []string)

SetEvents sets the Events field.

When the provided Secret type is nil, it will set nothing and immediately return.

func (*Secret) SetID

func (s *Secret) SetID(v int64)

SetID sets the ID field.

When the provided Secret type is nil, it will set nothing and immediately return.

func (*Secret) SetImages

func (s *Secret) SetImages(v []string)

SetImages sets the Images field.

When the provided Secret type is nil, it will set nothing and immediately return.

func (*Secret) SetName

func (s *Secret) SetName(v string)

SetName sets the Name field.

When the provided Secret type is nil, it will set nothing and immediately return.

func (*Secret) SetOrg

func (s *Secret) SetOrg(v string)

SetOrg sets the Org field.

When the provided Secret type is nil, it will set nothing and immediately return.

func (*Secret) SetRepo

func (s *Secret) SetRepo(v string)

SetRepo sets the Repo field.

When the provided Secret type is nil, it will set nothing and immediately return.

func (*Secret) SetTeam

func (s *Secret) SetTeam(v string)

SetTeam sets the Team field.

When the provided Secret type is nil, it will set nothing and immediately return.

func (*Secret) SetType

func (s *Secret) SetType(v string)

SetType sets the Type field.

When the provided Secret type is nil, it will set nothing and immediately return.

func (*Secret) SetUpdatedAt added in v0.12.0

func (s *Secret) SetUpdatedAt(v int64)

SetUpdatedAt sets the UpdatedAt field.

When the provided Secret type is nil, it will set nothing and immediately return.

func (*Secret) SetUpdatedBy added in v0.12.0

func (s *Secret) SetUpdatedBy(v string)

SetUpdatedBy sets the UpdatedBy field.

When the provided Secret type is nil, it will set nothing and immediately return.

func (*Secret) SetValue

func (s *Secret) SetValue(v string)

SetValue sets the Value field.

When the provided Secret type is nil, it will set nothing and immediately return.

func (*Secret) String

func (s *Secret) String() string

String implements the Stringer interface for the Secret type.

type Service

type Service struct {
	ID           *int64  `json:"id,omitempty"`
	BuildID      *int64  `json:"build_id,omitempty"`
	RepoID       *int64  `json:"repo_id,omitempty"`
	Number       *int    `json:"number,omitempty"`
	Name         *string `json:"name,omitempty"`
	Image        *string `json:"image,omitempty"`
	Status       *string `json:"status,omitempty"`
	Error        *string `json:"error,omitempty"`
	ExitCode     *int    `json:"exit_code,omitempty"`
	Created      *int64  `json:"created,omitempty"`
	Started      *int64  `json:"started,omitempty"`
	Finished     *int64  `json:"finished,omitempty"`
	Host         *string `json:"host,omitempty"`
	Runtime      *string `json:"runtime,omitempty"`
	Distribution *string `json:"distribution,omitempty"`
}

Service is the library representation of a service in a build.

swagger:model Service

func ServiceFromBuildContainer added in v0.12.0

func ServiceFromBuildContainer(build *Build, ctn *pipeline.Container) *Service

ServiceFromBuildContainer creates a new Service based on a Build and pipeline Container.

func ServiceFromContainerEnvironment added in v0.12.0

func ServiceFromContainerEnvironment(ctn *pipeline.Container) *Service

ServiceFromContainerEnvironment converts the pipeline Container to a library Service using the container's Environment.

func (*Service) Duration added in v0.12.0

func (s *Service) Duration() string

Duration calculates and returns the total amount of time the service ran for in a human-readable format.

func (*Service) Environment added in v0.4.0

func (s *Service) Environment() map[string]string

Environment returns a list of environment variables provided from the fields of the Service type.

func (*Service) GetBuildID

func (s *Service) GetBuildID() int64

GetBuildID returns the BuildID field.

When the provided Service type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Service) GetCreated

func (s *Service) GetCreated() int64

GetCreated returns the Created field.

When the provided Service type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Service) GetDistribution added in v0.4.0

func (s *Service) GetDistribution() string

GetDistribution returns the Runtime field.

When the provided Service type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Service) GetError

func (s *Service) GetError() string

GetError returns the Error field.

When the provided Service type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Service) GetExitCode

func (s *Service) GetExitCode() int

GetExitCode returns the ExitCode field.

When the provided Service type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Service) GetFinished

func (s *Service) GetFinished() int64

GetFinished returns the Finished field.

When the provided Service type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Service) GetHost added in v0.4.0

func (s *Service) GetHost() string

GetHost returns the Host field.

When the provided Service type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Service) GetID

func (s *Service) GetID() int64

GetID returns the ID field.

When the provided Service type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Service) GetImage added in v0.2.0

func (s *Service) GetImage() string

GetImage returns the Image field.

When the provided Service type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Service) GetName

func (s *Service) GetName() string

GetName returns the Name field.

When the provided Service type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Service) GetNumber

func (s *Service) GetNumber() int

GetNumber returns the Number field.

When the provided Service type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Service) GetRepoID

func (s *Service) GetRepoID() int64

GetRepoID returns the RepoID field.

When the provided Service type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Service) GetRuntime added in v0.4.0

func (s *Service) GetRuntime() string

GetRuntime returns the Runtime field.

When the provided Service type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Service) GetStarted

func (s *Service) GetStarted() int64

GetStarted returns the Started field.

When the provided Service type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Service) GetStatus

func (s *Service) GetStatus() string

GetStatus returns the Status field.

When the provided Service type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Service) SetBuildID

func (s *Service) SetBuildID(v int64)

SetBuildID sets the BuildID field.

When the provided Service type is nil, it will set nothing and immediately return.

func (*Service) SetCreated

func (s *Service) SetCreated(v int64)

SetCreated sets the Created field.

When the provided Service type is nil, it will set nothing and immediately return.

func (*Service) SetDistribution added in v0.4.0

func (s *Service) SetDistribution(v string)

SetDistribution sets the Runtime field.

When the provided Service type is nil, it will set nothing and immediately return.

func (*Service) SetError

func (s *Service) SetError(v string)

SetError sets the Error field.

When the provided Service type is nil, it will set nothing and immediately return.

func (*Service) SetExitCode

func (s *Service) SetExitCode(v int)

SetExitCode sets the ExitCode field.

When the provided Service type is nil, it will set nothing and immediately return.

func (*Service) SetFinished

func (s *Service) SetFinished(v int64)

SetFinished sets the Finished field.

When the provided Service type is nil, it will set nothing and immediately return.

func (*Service) SetHost added in v0.4.0

func (s *Service) SetHost(v string)

SetHost sets the Host field.

When the provided Service type is nil, it will set nothing and immediately return.

func (*Service) SetID

func (s *Service) SetID(v int64)

SetID sets the ID field.

When the provided Service type is nil, it will set nothing and immediately return.

func (*Service) SetImage added in v0.2.0

func (s *Service) SetImage(v string)

SetImage sets the Image field.

When the provided Service type is nil, it will set nothing and immediately return.

func (*Service) SetName

func (s *Service) SetName(v string)

SetName sets the Name field.

When the provided Service type is nil, it will set nothing and immediately return.

func (*Service) SetNumber

func (s *Service) SetNumber(v int)

SetNumber sets the Number field.

When the provided Service type is nil, it will set nothing and immediately return.

func (*Service) SetRepoID

func (s *Service) SetRepoID(v int64)

SetRepoID sets the RepoID field.

When the provided Service type is nil, it will set nothing and immediately return.

func (*Service) SetRuntime added in v0.4.0

func (s *Service) SetRuntime(v string)

SetRuntime sets the Runtime field.

When the provided Service type is nil, it will set nothing and immediately return.

func (*Service) SetStarted

func (s *Service) SetStarted(v int64)

SetStarted sets the Started field.

When the provided Service type is nil, it will set nothing and immediately return.

func (*Service) SetStatus

func (s *Service) SetStatus(v string)

SetStatus sets the Status field.

When the provided Service type is nil, it will set nothing and immediately return.

func (*Service) String

func (s *Service) String() string

String implements the Stringer interface for the Service type.

type Step

type Step struct {
	ID           *int64  `json:"id,omitempty"`
	BuildID      *int64  `json:"build_id,omitempty"`
	RepoID       *int64  `json:"repo_id,omitempty"`
	Number       *int    `json:"number,omitempty"`
	Name         *string `json:"name,omitempty"`
	Image        *string `json:"image,omitempty"`
	Stage        *string `json:"stage,omitempty"`
	Status       *string `json:"status,omitempty"`
	Error        *string `json:"error,omitempty"`
	ExitCode     *int    `json:"exit_code,omitempty"`
	Created      *int64  `json:"created,omitempty"`
	Started      *int64  `json:"started,omitempty"`
	Finished     *int64  `json:"finished,omitempty"`
	Host         *string `json:"host,omitempty"`
	Runtime      *string `json:"runtime,omitempty"`
	Distribution *string `json:"distribution,omitempty"`
}

Step is the library representation of a step in a build.

swagger:model Step

func StepFromBuildContainer added in v0.12.0

func StepFromBuildContainer(build *Build, ctn *pipeline.Container) *Step

StepFromBuildContainer creates a new Step based on a Build and pipeline Container.

func StepFromContainerEnvironment added in v0.12.0

func StepFromContainerEnvironment(ctn *pipeline.Container) *Step

StepFromContainerEnvironment converts the pipeline Container to a library Step using the container's Environment.

func StepFromContext

func StepFromContext(c context.Context) *Step

StepFromContext retrieves the Step type from the context.

func (*Step) Duration added in v0.12.0

func (s *Step) Duration() string

Duration calculates and returns the total amount of time the step ran for in a human-readable format.

func (*Step) Environment added in v0.4.0

func (s *Step) Environment() map[string]string

Environment returns a list of environment variables provided from the fields of the Step type.

func (*Step) GetBuildID

func (s *Step) GetBuildID() int64

GetBuildID returns the BuildID field.

When the provided Step type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Step) GetCreated

func (s *Step) GetCreated() int64

GetCreated returns the Created field.

When the provided Step type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Step) GetDistribution

func (s *Step) GetDistribution() string

GetDistribution returns the Runtime field.

When the provided Step type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Step) GetError

func (s *Step) GetError() string

GetError returns the Error field.

When the provided Step type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Step) GetExitCode

func (s *Step) GetExitCode() int

GetExitCode returns the ExitCode field.

When the provided Step type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Step) GetFinished

func (s *Step) GetFinished() int64

GetFinished returns the Finished field.

When the provided Step type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Step) GetHost

func (s *Step) GetHost() string

GetHost returns the Host field.

When the provided Step type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Step) GetID

func (s *Step) GetID() int64

GetID returns the ID field.

When the provided Step type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Step) GetImage added in v0.2.0

func (s *Step) GetImage() string

GetImage returns the Image field.

When the provided Step type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Step) GetName

func (s *Step) GetName() string

GetName returns the Name field.

When the provided Step type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Step) GetNumber

func (s *Step) GetNumber() int

GetNumber returns the Number field.

When the provided Step type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Step) GetRepoID

func (s *Step) GetRepoID() int64

GetRepoID returns the RepoID field.

When the provided Step type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Step) GetRuntime

func (s *Step) GetRuntime() string

GetRuntime returns the Runtime field.

When the provided Step type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Step) GetStage

func (s *Step) GetStage() string

GetStage returns the Stage field.

When the provided Step type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Step) GetStarted

func (s *Step) GetStarted() int64

GetStarted returns the Started field.

When the provided Step type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Step) GetStatus

func (s *Step) GetStatus() string

GetStatus returns the Status field.

When the provided Step type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Step) SetBuildID

func (s *Step) SetBuildID(v int64)

SetBuildID sets the BuildID field.

When the provided Step type is nil, it will set nothing and immediately return.

func (*Step) SetCreated

func (s *Step) SetCreated(v int64)

SetCreated sets the Created field.

When the provided Step type is nil, it will set nothing and immediately return.

func (*Step) SetDistribution

func (s *Step) SetDistribution(v string)

SetDistribution sets the Runtime field.

When the provided Step type is nil, it will set nothing and immediately return.

func (*Step) SetError

func (s *Step) SetError(v string)

SetError sets the Error field.

When the provided Step type is nil, it will set nothing and immediately return.

func (*Step) SetExitCode

func (s *Step) SetExitCode(v int)

SetExitCode sets the ExitCode field.

When the provided Step type is nil, it will set nothing and immediately return.

func (*Step) SetFinished

func (s *Step) SetFinished(v int64)

SetFinished sets the Finished field.

When the provided Step type is nil, it will set nothing and immediately return.

func (*Step) SetHost

func (s *Step) SetHost(v string)

SetHost sets the Host field.

When the provided Step type is nil, it will set nothing and immediately return.

func (*Step) SetID

func (s *Step) SetID(v int64)

SetID sets the ID field.

When the provided Step type is nil, it will set nothing and immediately return.

func (*Step) SetImage added in v0.2.0

func (s *Step) SetImage(v string)

SetImage sets the Image field.

When the provided Step type is nil, it will set nothing and immediately return.

func (*Step) SetName

func (s *Step) SetName(v string)

SetName sets the Name field.

When the provided Step type is nil, it will set nothing and immediately return.

func (*Step) SetNumber

func (s *Step) SetNumber(v int)

SetNumber sets the Number field.

When the provided Step type is nil, it will set nothing and immediately return.

func (*Step) SetRepoID

func (s *Step) SetRepoID(v int64)

SetRepoID sets the RepoID field.

When the provided Step type is nil, it will set nothing and immediately return.

func (*Step) SetRuntime

func (s *Step) SetRuntime(v string)

SetRuntime sets the Runtime field.

When the provided Step type is nil, it will set nothing and immediately return.

func (*Step) SetStage

func (s *Step) SetStage(v string)

SetStage sets the Stage field.

When the provided Step type is nil, it will set nothing and immediately return.

func (*Step) SetStarted

func (s *Step) SetStarted(v int64)

SetStarted sets the Started field.

When the provided Step type is nil, it will set nothing and immediately return.

func (*Step) SetStatus

func (s *Step) SetStatus(v string)

SetStatus sets the Status field.

When the provided Step type is nil, it will set nothing and immediately return.

func (*Step) String

func (s *Step) String() string

String implements the Stringer interface for the Step type.

type Template added in v0.7.0

type Template struct {
	Link   *string `json:"link,omitempty"`
	Name   *string `json:"name,omitempty"`
	Source *string `json:"source,omitempty"`
	Type   *string `json:"type,omitempty"`
}

Template is the library representation of a template for a pipeline.

swagger:model Template

func (t *Template) GetLink() string

GetLink returns the Link field.

When the provided Template type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Template) GetName added in v0.7.0

func (t *Template) GetName() string

GetName returns the Name field.

When the provided Template type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Template) GetSource added in v0.7.0

func (t *Template) GetSource() string

GetSource returns the Source field.

When the provided Template type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Template) GetType added in v0.7.0

func (t *Template) GetType() string

GetType returns the Type field.

When the provided Template type is nil, or the field within the type is nil, it returns the zero value for the field.

func (t *Template) SetLink(v string)

SetLink sets the Link field.

When the provided Template type is nil, it will set nothing and immediately return.

func (*Template) SetName added in v0.7.0

func (t *Template) SetName(v string)

SetName sets the Name field.

When the provided Template type is nil, it will set nothing and immediately return.

func (*Template) SetSource added in v0.7.0

func (t *Template) SetSource(v string)

SetSource sets the Source field.

When the provided Template type is nil, it will set nothing and immediately return.

func (*Template) SetType added in v0.7.0

func (t *Template) SetType(v string)

SetType sets the Type field.

When the provided Template type is nil, it will set nothing and immediately return.

func (*Template) String added in v0.7.0

func (t *Template) String() string

String implements the Stringer interface for the Template type.

type Token added in v0.18.0

type Token struct {
	Token *string `json:"token,omitempty"`
}

Token is the library representation of a token response from server.

swagger:model Token

func (*Token) GetToken added in v0.18.0

func (l *Token) GetToken() string

GetToken returns the Token field.

When the provided Token type is nil, or the field within the type is nil, it returns the zero value for the field.

func (*Token) SetToken added in v0.18.0

func (l *Token) SetToken(v string)

SetToken sets the Token field.

When the provided Token type is nil, it will set nothing and immediately return.

func (*Token) String added in v0.18.0

func (l *Token) String() string

String implements the Stringer interface for the Token type.

type User

type User struct {
	ID           *int64    `json:"id,omitempty"`
	Name         *string   `json:"name,omitempty"`
	RefreshToken *string   `json:"-"`
	Token        *string   `json:"-"`
	Hash         *string   `json:"-"` // deprecated
	Favorites    *[]string `json:"favorites,omitempty"`
	Active       *bool     `json:"active,omitempty"`
	Admin        *bool     `json:"admin,omitempty"`
}

User is the library representation of a user.

swagger:model User

func UserFromContext

func UserFromContext(c context.Context) *User

UserFromContext retrieves the User type from the context.

func (*User) Environment added in v0.4.0

func (u *User) Environment() map[string]string

Environment returns a list of environment variables provided from the fields of the User type.

func (*User) GetActive

func (u *User) GetActive() bool

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

func (u *User) GetAdmin() bool

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) GetFavorites added in v0.3.0

func (u *User) GetFavorites() []string

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) GetHash

func (u *User) GetHash() string

GetHash returns the Hash 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

func (u *User) GetID() int64

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

func (u *User) GetName() string

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 added in v0.7.0

func (u *User) GetRefreshToken() string

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

func (u *User) GetToken() string

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) Sanitize added in v0.7.0

func (u *User) Sanitize() *User

Sanitize creates a duplicate of the User without the token values.

func (*User) SetActive

func (u *User) SetActive(v bool)

SetActive sets the Active field.

When the provided User type is nil, it will set nothing and immediately return.

func (*User) SetAdmin

func (u *User) SetAdmin(v bool)

SetAdmin sets the Admin field.

When the provided User type is nil, it will set nothing and immediately return.

func (*User) SetFavorites added in v0.3.0

func (u *User) SetFavorites(v []string)

SetFavorites sets the Favorites field.

When the provided User type is nil, it will set nothing and immediately return.

func (*User) SetHash

func (u *User) SetHash(v string)

SetHash sets the Hash field.

When the provided User type is nil, it will set nothing and immediately return.

func (*User) SetID

func (u *User) SetID(v int64)

SetID sets the ID field.

When the provided User type is nil, it will set nothing and immediately return.

func (*User) SetName

func (u *User) SetName(v string)

SetName sets the Name field.

When the provided User type is nil, it will set nothing and immediately return.

func (*User) SetRefreshToken added in v0.7.0

func (u *User) SetRefreshToken(v string)

SetRefreshToken sets the RefreshToken field.

When the provided User type is nil, it will set nothing and immediately return.

func (*User) SetToken

func (u *User) SetToken(v string)

SetToken sets the Token field.

When the provided User type is nil, it will set nothing and immediately return.

func (*User) String

func (u *User) String() string

String implements the Stringer interface for the User type.

type Worker added in v0.6.0

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"`
	RunningBuildIDs     *[]string `json:"running_build_ids,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 library representation of a worker.

swagger:model Worker

func (*Worker) GetActive added in v0.6.0

func (w *Worker) GetActive() bool

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 added in v0.6.0

func (w *Worker) GetAddress() string

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 added in v0.7.0

func (w *Worker) GetBuildLimit() int64

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 added in v0.6.0

func (w *Worker) GetHostname() string

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 added in v0.6.0

func (w *Worker) GetID() int64

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 added in v0.20.0

func (w *Worker) GetLastBuildFinishedAt() int64

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 added in v0.20.0

func (w *Worker) GetLastBuildStartedAt() int64

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 added in v0.6.0

func (w *Worker) GetLastCheckedIn() int64

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 added in v0.20.0

func (w *Worker) GetLastStatusUpdateAt() int64

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 added in v0.6.0

func (w *Worker) GetRoutes() []string

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) GetRunningBuildIDs added in v0.20.0

func (w *Worker) GetRunningBuildIDs() []string

GetRunningBuildIDs returns the RunningBuildIDs 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 added in v0.20.0

func (w *Worker) GetStatus() string

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 added in v0.6.0

func (w *Worker) SetActive(v bool)

SetActive sets the Active field.

When the provided Worker type is nil, it will set nothing and immediately return.

func (*Worker) SetAddress added in v0.6.0

func (w *Worker) SetAddress(v string)

SetAddress sets the Address field.

When the provided Worker type is nil, it will set nothing and immediately return.

func (*Worker) SetBuildLimit added in v0.7.0

func (w *Worker) SetBuildLimit(v int64)

SetBuildLimit sets the LastBuildLimit field.

When the provided Worker type is nil, it will set nothing and immediately return.

func (*Worker) SetHostname added in v0.6.0

func (w *Worker) SetHostname(v string)

SetHostname sets the Hostname field.

When the provided Worker type is nil, it will set nothing and immediately return.

func (*Worker) SetID added in v0.6.0

func (w *Worker) SetID(v int64)

SetID sets the ID field.

When the provided Worker type is nil, it will set nothing and immediately return.

func (*Worker) SetLastBuildFinishedAt added in v0.20.0

func (w *Worker) SetLastBuildFinishedAt(v int64)

SetLastBuildFinishedAt sets the LastBuildFinishedAt field.

When the provided Worker type is nil, it will set nothing and immediately return.

func (*Worker) SetLastBuildStartedAt added in v0.20.0

func (w *Worker) SetLastBuildStartedAt(v int64)

SetLastBuildStartedAt sets the LastBuildStartedAt field.

When the provided Worker type is nil, it will set nothing and immediately return.

func (*Worker) SetLastCheckedIn added in v0.6.0

func (w *Worker) SetLastCheckedIn(v int64)

SetLastCheckedIn sets the LastCheckedIn field.

When the provided Worker type is nil, it will set nothing and immediately return.

func (*Worker) SetLastStatusUpdateAt added in v0.20.0

func (w *Worker) SetLastStatusUpdateAt(v int64)

SetLastStatusUpdateAt sets the LastStatusUpdateAt field.

When the provided Worker type is nil, it will set nothing and immediately return.

func (*Worker) SetRoutes added in v0.6.0

func (w *Worker) SetRoutes(v []string)

SetRoutes sets the Routes field.

When the provided Worker type is nil, it will set nothing and immediately return.

func (*Worker) SetRunningBuildIDs added in v0.20.0

func (w *Worker) SetRunningBuildIDs(v []string)

SetRunningBuildIDs sets the RunningBuildIDs field.

When the provided Worker type is nil, it will set nothing and immediately return.

func (*Worker) SetStatus added in v0.20.0

func (w *Worker) SetStatus(v string)

SetStatus sets the Status field.

When the provided Worker type is nil, it will set nothing and immediately return.

func (*Worker) String added in v0.6.0

func (w *Worker) String() string

String implements the Stringer interface for the Worker type.

Directories

Path Synopsis
SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0

Jump to

Keyboard shortcuts

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