api

package
v2.0.0-...-04e5d85 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const BuildCancel_Operation = `
mutation BuildCancel ($input: BuildCancelInput!) {
	buildCancel(input: $input) {
		clientMutationId
	}
}
`

The query or mutation executed by BuildCancel.

View Source
const BuildCreate_Operation = `` /* 407-byte string literal not displayed */

The query or mutation executed by BuildCreate.

View Source
const CancelCommandJob_Operation = `` /* 129-byte string literal not displayed */

The query or mutation executed by CancelCommandJob.

View Source
const GetBuild_Operation = `` /* 363-byte string literal not displayed */

The query or mutation executed by GetBuild.

View Source
const GetBuilds_Operation = `` /* 485-byte string literal not displayed */

The query or mutation executed by GetBuilds.

View Source
const GetCommandJob_Operation = `
query GetCommandJob ($uuid: ID!) {
	job(uuid: $uuid) {
		__typename
		... on JobTypeCommand {
			id
			state
		}
	}
}
`

The query or mutation executed by GetCommandJob.

View Source
const GetOrganization_Operation = `
query GetOrganization ($slug: ID!) {
	organization(slug: $slug) {
		id
	}
}
`

The query or mutation executed by GetOrganization.

View Source
const GetScheduledJobsClustered_Operation = `` /* 505-byte string literal not displayed */

The query or mutation executed by GetScheduledJobsClustered.

View Source
const GetScheduledJobs_Operation = `` /* 480-byte string literal not displayed */

The query or mutation executed by GetScheduledJobs.

View Source
const PipelineDelete_Operation = `
mutation PipelineDelete ($input: PipelineDeleteInput!) {
	pipelineDelete(input: $input) {
		clientMutationId
	}
}
`

The query or mutation executed by PipelineDelete.

View Source
const SearchPipelines_Operation = `` /* 205-byte string literal not displayed */

The query or mutation executed by SearchPipelines.

Variables

This section is empty.

Functions

func NewClient

func NewClient(token string) graphql.Client

func NewLogger

func NewLogger(inner http.RoundTripper) http.RoundTripper

Types

type Build

type Build struct {
	// The UUID for the build
	Uuid string `json:"uuid"`
	Id   string `json:"id"`
	// The number of the build
	Number int `json:"number"`
	// The current state of the build
	State BuildStates            `json:"state"`
	Jobs  BuildJobsJobConnection `json:"jobs"`
}

Build includes the GraphQL fields of Build requested by the fragment Build. The GraphQL type's documentation follows.

A build from a pipeline

func (*Build) GetId

func (v *Build) GetId() string

GetId returns Build.Id, and is useful for accessing the field via an interface.

func (*Build) GetJobs

func (v *Build) GetJobs() BuildJobsJobConnection

GetJobs returns Build.Jobs, and is useful for accessing the field via an interface.

func (*Build) GetNumber

func (v *Build) GetNumber() int

GetNumber returns Build.Number, and is useful for accessing the field via an interface.

func (*Build) GetState

func (v *Build) GetState() BuildStates

GetState returns Build.State, and is useful for accessing the field via an interface.

func (*Build) GetUuid

func (v *Build) GetUuid() string

GetUuid returns Build.Uuid, and is useful for accessing the field via an interface.

type BuildAuthorInput

type BuildAuthorInput struct {
	// The email for the build author
	Email string `json:"email"`
	// The name for the build author
	Name string `json:"name"`
}

Author for a build

func (*BuildAuthorInput) GetEmail

func (v *BuildAuthorInput) GetEmail() string

GetEmail returns BuildAuthorInput.Email, and is useful for accessing the field via an interface.

func (*BuildAuthorInput) GetName

func (v *BuildAuthorInput) GetName() string

GetName returns BuildAuthorInput.Name, and is useful for accessing the field via an interface.

type BuildCancelBuildCancelBuildCancelPayload

type BuildCancelBuildCancelBuildCancelPayload struct {
	// A unique identifier for the client performing the mutation.
	ClientMutationId string `json:"clientMutationId"`
}

BuildCancelBuildCancelBuildCancelPayload includes the requested fields of the GraphQL type BuildCancelPayload. The GraphQL type's documentation follows.

Autogenerated return type of BuildCancel.

func (*BuildCancelBuildCancelBuildCancelPayload) GetClientMutationId

func (v *BuildCancelBuildCancelBuildCancelPayload) GetClientMutationId() string

GetClientMutationId returns BuildCancelBuildCancelBuildCancelPayload.ClientMutationId, and is useful for accessing the field via an interface.

type BuildCancelInput

type BuildCancelInput struct {
	// A unique identifier for the client performing the mutation.
	ClientMutationId string `json:"clientMutationId"`
	Id               string `json:"id"`
}

Autogenerated input type of BuildCancel

func (*BuildCancelInput) GetClientMutationId

func (v *BuildCancelInput) GetClientMutationId() string

GetClientMutationId returns BuildCancelInput.ClientMutationId, and is useful for accessing the field via an interface.

func (*BuildCancelInput) GetId

func (v *BuildCancelInput) GetId() string

GetId returns BuildCancelInput.Id, and is useful for accessing the field via an interface.

type BuildCancelResponse

type BuildCancelResponse struct {
	// Cancel a build.
	BuildCancel BuildCancelBuildCancelBuildCancelPayload `json:"buildCancel"`
}

BuildCancelResponse is returned by BuildCancel on success.

func BuildCancel

func BuildCancel(
	ctx_ context.Context,
	client_ graphql.Client,
	input BuildCancelInput,
) (*BuildCancelResponse, error)

func (*BuildCancelResponse) GetBuildCancel

GetBuildCancel returns BuildCancelResponse.BuildCancel, and is useful for accessing the field via an interface.

type BuildCreateBuildCreateBuildCreatePayload

type BuildCreateBuildCreateBuildCreatePayload struct {
	Build BuildCreateBuildCreateBuildCreatePayloadBuild `json:"build"`
}

BuildCreateBuildCreateBuildCreatePayload includes the requested fields of the GraphQL type BuildCreatePayload. The GraphQL type's documentation follows.

Autogenerated return type of BuildCreate.

func (*BuildCreateBuildCreateBuildCreatePayload) GetBuild

GetBuild returns BuildCreateBuildCreateBuildCreatePayload.Build, and is useful for accessing the field via an interface.

type BuildCreateBuildCreateBuildCreatePayloadBuild

type BuildCreateBuildCreateBuildCreatePayloadBuild struct {
	Build `json:"-"`
}

BuildCreateBuildCreateBuildCreatePayloadBuild includes the requested fields of the GraphQL type Build. The GraphQL type's documentation follows.

A build from a pipeline

func (*BuildCreateBuildCreateBuildCreatePayloadBuild) GetId

GetId returns BuildCreateBuildCreateBuildCreatePayloadBuild.Id, and is useful for accessing the field via an interface.

func (*BuildCreateBuildCreateBuildCreatePayloadBuild) GetJobs

GetJobs returns BuildCreateBuildCreateBuildCreatePayloadBuild.Jobs, and is useful for accessing the field via an interface.

func (*BuildCreateBuildCreateBuildCreatePayloadBuild) GetNumber

GetNumber returns BuildCreateBuildCreateBuildCreatePayloadBuild.Number, and is useful for accessing the field via an interface.

func (*BuildCreateBuildCreateBuildCreatePayloadBuild) GetState

GetState returns BuildCreateBuildCreateBuildCreatePayloadBuild.State, and is useful for accessing the field via an interface.

func (*BuildCreateBuildCreateBuildCreatePayloadBuild) GetUuid

GetUuid returns BuildCreateBuildCreateBuildCreatePayloadBuild.Uuid, and is useful for accessing the field via an interface.

func (*BuildCreateBuildCreateBuildCreatePayloadBuild) MarshalJSON

func (*BuildCreateBuildCreateBuildCreatePayloadBuild) UnmarshalJSON

type BuildCreateInput

type BuildCreateInput struct {
	Author BuildAuthorInput `json:"author"`
	// The branch for the build
	Branch string `json:"branch"`
	// A unique identifier for the client performing the mutation.
	ClientMutationId string `json:"clientMutationId"`
	// The commit for the build
	Commit string `json:"commit"`
	// Environment variables used for the build
	Env []string `json:"env"`
	// The message that is displayed on the build
	Message  string               `json:"message"`
	MetaData []BuildMetaDataInput `json:"metaData"`
	// The GraphQL ID of the pipeline you want to create a build on
	PipelineID string `json:"pipelineID"`
}

Autogenerated input type of BuildCreate

func (*BuildCreateInput) GetAuthor

func (v *BuildCreateInput) GetAuthor() BuildAuthorInput

GetAuthor returns BuildCreateInput.Author, and is useful for accessing the field via an interface.

func (*BuildCreateInput) GetBranch

func (v *BuildCreateInput) GetBranch() string

GetBranch returns BuildCreateInput.Branch, and is useful for accessing the field via an interface.

func (*BuildCreateInput) GetClientMutationId

func (v *BuildCreateInput) GetClientMutationId() string

GetClientMutationId returns BuildCreateInput.ClientMutationId, and is useful for accessing the field via an interface.

func (*BuildCreateInput) GetCommit

func (v *BuildCreateInput) GetCommit() string

GetCommit returns BuildCreateInput.Commit, and is useful for accessing the field via an interface.

func (*BuildCreateInput) GetEnv

func (v *BuildCreateInput) GetEnv() []string

GetEnv returns BuildCreateInput.Env, and is useful for accessing the field via an interface.

func (*BuildCreateInput) GetMessage

func (v *BuildCreateInput) GetMessage() string

GetMessage returns BuildCreateInput.Message, and is useful for accessing the field via an interface.

func (*BuildCreateInput) GetMetaData

func (v *BuildCreateInput) GetMetaData() []BuildMetaDataInput

GetMetaData returns BuildCreateInput.MetaData, and is useful for accessing the field via an interface.

func (*BuildCreateInput) GetPipelineID

func (v *BuildCreateInput) GetPipelineID() string

GetPipelineID returns BuildCreateInput.PipelineID, and is useful for accessing the field via an interface.

type BuildCreateResponse

type BuildCreateResponse struct {
	// Create a build.
	BuildCreate BuildCreateBuildCreateBuildCreatePayload `json:"buildCreate"`
}

BuildCreateResponse is returned by BuildCreate on success.

func BuildCreate

func BuildCreate(
	ctx_ context.Context,
	client_ graphql.Client,
	input BuildCreateInput,
) (*BuildCreateResponse, error)

func (*BuildCreateResponse) GetBuildCreate

GetBuildCreate returns BuildCreateResponse.BuildCreate, and is useful for accessing the field via an interface.

type BuildJobsJobConnection

type BuildJobsJobConnection struct {
	Edges []BuildJobsJobConnectionEdgesJobEdge `json:"edges"`
}

BuildJobsJobConnection includes the requested fields of the GraphQL type JobConnection.

func (*BuildJobsJobConnection) GetEdges

GetEdges returns BuildJobsJobConnection.Edges, and is useful for accessing the field via an interface.

type BuildJobsJobConnectionEdgesJobEdge

type BuildJobsJobConnectionEdgesJobEdge struct {
	Node Job `json:"-"`
}

BuildJobsJobConnectionEdgesJobEdge includes the requested fields of the GraphQL type JobEdge.

func (*BuildJobsJobConnectionEdgesJobEdge) GetNode

GetNode returns BuildJobsJobConnectionEdgesJobEdge.Node, and is useful for accessing the field via an interface.

func (*BuildJobsJobConnectionEdgesJobEdge) MarshalJSON

func (v *BuildJobsJobConnectionEdgesJobEdge) MarshalJSON() ([]byte, error)

func (*BuildJobsJobConnectionEdgesJobEdge) UnmarshalJSON

func (v *BuildJobsJobConnectionEdgesJobEdge) UnmarshalJSON(b []byte) error

type BuildMetaDataInput

type BuildMetaDataInput struct {
	// The key for this meta-data item
	Key string `json:"key"`
	// The value for this meta-data item
	Value string `json:"value"`
}

Meta-data key/value pairs for a build

func (*BuildMetaDataInput) GetKey

func (v *BuildMetaDataInput) GetKey() string

GetKey returns BuildMetaDataInput.Key, and is useful for accessing the field via an interface.

func (*BuildMetaDataInput) GetValue

func (v *BuildMetaDataInput) GetValue() string

GetValue returns BuildMetaDataInput.Value, and is useful for accessing the field via an interface.

type BuildStates

type BuildStates string

All the possible states a build can be in

const (
	// The build is blocked
	BuildStatesBlocked BuildStates = "BLOCKED"
	// The build was canceled
	BuildStatesCanceled BuildStates = "CANCELED"
	// The build is currently being canceled
	BuildStatesCanceling BuildStates = "CANCELING"
	// The build is currently being created
	BuildStatesCreating BuildStates = "CREATING"
	// The build failed
	BuildStatesFailed BuildStates = "FAILED"
	// The build is failing
	BuildStatesFailing BuildStates = "FAILING"
	// The build wasn't run
	BuildStatesNotRun BuildStates = "NOT_RUN"
	// The build passed
	BuildStatesPassed BuildStates = "PASSED"
	// The build is currently running jobs
	BuildStatesRunning BuildStates = "RUNNING"
	// The build has yet to start running jobs
	BuildStatesScheduled BuildStates = "SCHEDULED"
	// The build was skipped
	BuildStatesSkipped BuildStates = "SKIPPED"
)

type CancelCommandJobJobTypeCommandCancelJobTypeCommandCancelPayload

type CancelCommandJobJobTypeCommandCancelJobTypeCommandCancelPayload struct {
	// A unique identifier for the client performing the mutation.
	ClientMutationId string `json:"clientMutationId"`
}

CancelCommandJobJobTypeCommandCancelJobTypeCommandCancelPayload includes the requested fields of the GraphQL type JobTypeCommandCancelPayload. The GraphQL type's documentation follows.

Autogenerated return type of JobTypeCommandCancel.

func (*CancelCommandJobJobTypeCommandCancelJobTypeCommandCancelPayload) GetClientMutationId

GetClientMutationId returns CancelCommandJobJobTypeCommandCancelJobTypeCommandCancelPayload.ClientMutationId, and is useful for accessing the field via an interface.

type CancelCommandJobResponse

type CancelCommandJobResponse struct {
	// Cancel a job.
	JobTypeCommandCancel CancelCommandJobJobTypeCommandCancelJobTypeCommandCancelPayload `json:"jobTypeCommandCancel"`
}

CancelCommandJobResponse is returned by CancelCommandJob on success.

func CancelCommandJob

func CancelCommandJob(
	ctx_ context.Context,
	client_ graphql.Client,
	input JobTypeCommandCancelInput,
) (*CancelCommandJobResponse, error)

func (*CancelCommandJobResponse) GetJobTypeCommandCancel

GetJobTypeCommandCancel returns CancelCommandJobResponse.JobTypeCommandCancel, and is useful for accessing the field via an interface.

type CommandJob

type CommandJob struct {
	// The UUID for this job
	Uuid string `json:"uuid"`
	// Environment variables for this job
	Env []string `json:"env"`
	// The time when the job became scheduled for running
	ScheduledAt time.Time `json:"scheduledAt"`
	// The ruleset used to find an agent to run this job
	AgentQueryRules []string `json:"agentQueryRules"`
	// The command the job will run
	Command string `json:"command"`
}

CommandJob includes the GraphQL fields of JobTypeCommand requested by the fragment CommandJob. The GraphQL type's documentation follows.

A type of job that runs a command on an agent

func (*CommandJob) GetAgentQueryRules

func (v *CommandJob) GetAgentQueryRules() []string

GetAgentQueryRules returns CommandJob.AgentQueryRules, and is useful for accessing the field via an interface.

func (*CommandJob) GetCommand

func (v *CommandJob) GetCommand() string

GetCommand returns CommandJob.Command, and is useful for accessing the field via an interface.

func (*CommandJob) GetEnv

func (v *CommandJob) GetEnv() []string

GetEnv returns CommandJob.Env, and is useful for accessing the field via an interface.

func (*CommandJob) GetScheduledAt

func (v *CommandJob) GetScheduledAt() time.Time

GetScheduledAt returns CommandJob.ScheduledAt, and is useful for accessing the field via an interface.

func (*CommandJob) GetUuid

func (v *CommandJob) GetUuid() string

GetUuid returns CommandJob.Uuid, and is useful for accessing the field via an interface.

type GetBuildBuild

type GetBuildBuild struct {
	Build `json:"-"`
}

GetBuildBuild includes the requested fields of the GraphQL type Build. The GraphQL type's documentation follows.

A build from a pipeline

func (*GetBuildBuild) GetId

func (v *GetBuildBuild) GetId() string

GetId returns GetBuildBuild.Id, and is useful for accessing the field via an interface.

func (*GetBuildBuild) GetJobs

GetJobs returns GetBuildBuild.Jobs, and is useful for accessing the field via an interface.

func (*GetBuildBuild) GetNumber

func (v *GetBuildBuild) GetNumber() int

GetNumber returns GetBuildBuild.Number, and is useful for accessing the field via an interface.

func (*GetBuildBuild) GetState

func (v *GetBuildBuild) GetState() BuildStates

GetState returns GetBuildBuild.State, and is useful for accessing the field via an interface.

func (*GetBuildBuild) GetUuid

func (v *GetBuildBuild) GetUuid() string

GetUuid returns GetBuildBuild.Uuid, and is useful for accessing the field via an interface.

func (*GetBuildBuild) MarshalJSON

func (v *GetBuildBuild) MarshalJSON() ([]byte, error)

func (*GetBuildBuild) UnmarshalJSON

func (v *GetBuildBuild) UnmarshalJSON(b []byte) error

type GetBuildResponse

type GetBuildResponse struct {
	// Find a build
	Build GetBuildBuild `json:"build"`
}

GetBuildResponse is returned by GetBuild on success.

func GetBuild

func GetBuild(
	ctx_ context.Context,
	client_ graphql.Client,
	uuid string,
) (*GetBuildResponse, error)

func (*GetBuildResponse) GetBuild

func (v *GetBuildResponse) GetBuild() GetBuildBuild

GetBuild returns GetBuildResponse.Build, and is useful for accessing the field via an interface.

type GetBuildsPipeline

type GetBuildsPipeline struct {
	// Returns the builds for this pipeline
	Builds GetBuildsPipelineBuildsBuildConnection `json:"builds"`
}

GetBuildsPipeline includes the requested fields of the GraphQL type Pipeline. The GraphQL type's documentation follows.

A pipeline

func (*GetBuildsPipeline) GetBuilds

GetBuilds returns GetBuildsPipeline.Builds, and is useful for accessing the field via an interface.

type GetBuildsPipelineBuildsBuildConnection

type GetBuildsPipelineBuildsBuildConnection struct {
	Edges []GetBuildsPipelineBuildsBuildConnectionEdgesBuildEdge `json:"edges"`
}

GetBuildsPipelineBuildsBuildConnection includes the requested fields of the GraphQL type BuildConnection.

func (*GetBuildsPipelineBuildsBuildConnection) GetEdges

GetEdges returns GetBuildsPipelineBuildsBuildConnection.Edges, and is useful for accessing the field via an interface.

type GetBuildsPipelineBuildsBuildConnectionEdgesBuildEdge

type GetBuildsPipelineBuildsBuildConnectionEdgesBuildEdge struct {
	Node GetBuildsPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild `json:"node"`
}

GetBuildsPipelineBuildsBuildConnectionEdgesBuildEdge includes the requested fields of the GraphQL type BuildEdge.

func (*GetBuildsPipelineBuildsBuildConnectionEdgesBuildEdge) GetNode

GetNode returns GetBuildsPipelineBuildsBuildConnectionEdgesBuildEdge.Node, and is useful for accessing the field via an interface.

type GetBuildsPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild

type GetBuildsPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild struct {
	Build `json:"-"`
}

GetBuildsPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild includes the requested fields of the GraphQL type Build. The GraphQL type's documentation follows.

A build from a pipeline

func (*GetBuildsPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild) GetId

GetId returns GetBuildsPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild.Id, and is useful for accessing the field via an interface.

func (*GetBuildsPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild) GetJobs

GetJobs returns GetBuildsPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild.Jobs, and is useful for accessing the field via an interface.

func (*GetBuildsPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild) GetNumber

GetNumber returns GetBuildsPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild.Number, and is useful for accessing the field via an interface.

func (*GetBuildsPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild) GetState

GetState returns GetBuildsPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild.State, and is useful for accessing the field via an interface.

func (*GetBuildsPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild) GetUuid

GetUuid returns GetBuildsPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild.Uuid, and is useful for accessing the field via an interface.

func (*GetBuildsPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild) MarshalJSON

func (*GetBuildsPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild) UnmarshalJSON

type GetBuildsResponse

type GetBuildsResponse struct {
	// Find a pipeline
	Pipeline GetBuildsPipeline `json:"pipeline"`
}

GetBuildsResponse is returned by GetBuilds on success.

func GetBuilds

func GetBuilds(
	ctx_ context.Context,
	client_ graphql.Client,
	slug string,
	state []BuildStates,
	first int,
) (*GetBuildsResponse, error)

func (*GetBuildsResponse) GetPipeline

func (v *GetBuildsResponse) GetPipeline() GetBuildsPipeline

GetPipeline returns GetBuildsResponse.Pipeline, and is useful for accessing the field via an interface.

type GetCommandJobJob

type GetCommandJobJob interface {

	// GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values).
	GetTypename() string
	// contains filtered or unexported methods
}

GetCommandJobJob includes the requested fields of the GraphQL interface Job.

GetCommandJobJob is implemented by the following types: GetCommandJobJobJobTypeBlock GetCommandJobJobJobTypeCommand GetCommandJobJobJobTypeTrigger GetCommandJobJobJobTypeWait The GraphQL type's documentation follows.

Kinds of jobs that can exist on a build

type GetCommandJobJobJobTypeBlock

type GetCommandJobJobJobTypeBlock struct {
	Typename string `json:"__typename"`
}

GetCommandJobJobJobTypeBlock includes the requested fields of the GraphQL type JobTypeBlock. The GraphQL type's documentation follows.

A type of job that requires a user to unblock it before proceeding in a build pipeline

func (*GetCommandJobJobJobTypeBlock) GetTypename

func (v *GetCommandJobJobJobTypeBlock) GetTypename() string

GetTypename returns GetCommandJobJobJobTypeBlock.Typename, and is useful for accessing the field via an interface.

type GetCommandJobJobJobTypeCommand

type GetCommandJobJobJobTypeCommand struct {
	Typename string `json:"__typename"`
	Id       string `json:"id"`
	// The state of the job
	State JobStates `json:"state"`
}

GetCommandJobJobJobTypeCommand includes the requested fields of the GraphQL type JobTypeCommand. The GraphQL type's documentation follows.

A type of job that runs a command on an agent

func (*GetCommandJobJobJobTypeCommand) GetId

GetId returns GetCommandJobJobJobTypeCommand.Id, and is useful for accessing the field via an interface.

func (*GetCommandJobJobJobTypeCommand) GetState

GetState returns GetCommandJobJobJobTypeCommand.State, and is useful for accessing the field via an interface.

func (*GetCommandJobJobJobTypeCommand) GetTypename

func (v *GetCommandJobJobJobTypeCommand) GetTypename() string

GetTypename returns GetCommandJobJobJobTypeCommand.Typename, and is useful for accessing the field via an interface.

type GetCommandJobJobJobTypeTrigger

type GetCommandJobJobJobTypeTrigger struct {
	Typename string `json:"__typename"`
}

GetCommandJobJobJobTypeTrigger includes the requested fields of the GraphQL type JobTypeTrigger. The GraphQL type's documentation follows.

A type of job that triggers another build on a pipeline

func (*GetCommandJobJobJobTypeTrigger) GetTypename

func (v *GetCommandJobJobJobTypeTrigger) GetTypename() string

GetTypename returns GetCommandJobJobJobTypeTrigger.Typename, and is useful for accessing the field via an interface.

type GetCommandJobJobJobTypeWait

type GetCommandJobJobJobTypeWait struct {
	Typename string `json:"__typename"`
}

GetCommandJobJobJobTypeWait includes the requested fields of the GraphQL type JobTypeWait. The GraphQL type's documentation follows.

A type of job that waits for all previous jobs to pass before proceeding the build pipeline

func (*GetCommandJobJobJobTypeWait) GetTypename

func (v *GetCommandJobJobJobTypeWait) GetTypename() string

GetTypename returns GetCommandJobJobJobTypeWait.Typename, and is useful for accessing the field via an interface.

type GetCommandJobResponse

type GetCommandJobResponse struct {
	// Find a build job
	Job GetCommandJobJob `json:"-"`
}

GetCommandJobResponse is returned by GetCommandJob on success.

func GetCommandJob

func GetCommandJob(
	ctx_ context.Context,
	client_ graphql.Client,
	uuid string,
) (*GetCommandJobResponse, error)

func (*GetCommandJobResponse) GetJob

GetJob returns GetCommandJobResponse.Job, and is useful for accessing the field via an interface.

func (*GetCommandJobResponse) MarshalJSON

func (v *GetCommandJobResponse) MarshalJSON() ([]byte, error)

func (*GetCommandJobResponse) UnmarshalJSON

func (v *GetCommandJobResponse) UnmarshalJSON(b []byte) error

type GetOrganizationOrganization

type GetOrganizationOrganization struct {
	Id string `json:"id"`
}

GetOrganizationOrganization includes the requested fields of the GraphQL type Organization. The GraphQL type's documentation follows.

An organization

func (*GetOrganizationOrganization) GetId

GetId returns GetOrganizationOrganization.Id, and is useful for accessing the field via an interface.

type GetOrganizationResponse

type GetOrganizationResponse struct {
	// Find an organization
	Organization GetOrganizationOrganization `json:"organization"`
}

GetOrganizationResponse is returned by GetOrganization on success.

func GetOrganization

func GetOrganization(
	ctx_ context.Context,
	client_ graphql.Client,
	slug string,
) (*GetOrganizationResponse, error)

func (*GetOrganizationResponse) GetOrganization

GetOrganization returns GetOrganizationResponse.Organization, and is useful for accessing the field via an interface.

type GetScheduledJobsClusteredOrganization

type GetScheduledJobsClusteredOrganization struct {
	Id   *string                                                `json:"id"`
	Jobs GetScheduledJobsClusteredOrganizationJobsJobConnection `json:"jobs"`
}

GetScheduledJobsClusteredOrganization includes the requested fields of the GraphQL type Organization. The GraphQL type's documentation follows.

An organization

func (*GetScheduledJobsClusteredOrganization) GetId

GetId returns GetScheduledJobsClusteredOrganization.Id, and is useful for accessing the field via an interface.

func (*GetScheduledJobsClusteredOrganization) GetJobs

GetJobs returns GetScheduledJobsClusteredOrganization.Jobs, and is useful for accessing the field via an interface.

type GetScheduledJobsClusteredOrganizationJobsJobConnection

type GetScheduledJobsClusteredOrganizationJobsJobConnection struct {
	Count int                                                                  `json:"count"`
	Edges []GetScheduledJobsClusteredOrganizationJobsJobConnectionEdgesJobEdge `json:"edges"`
}

GetScheduledJobsClusteredOrganizationJobsJobConnection includes the requested fields of the GraphQL type JobConnection.

func (*GetScheduledJobsClusteredOrganizationJobsJobConnection) GetCount

GetCount returns GetScheduledJobsClusteredOrganizationJobsJobConnection.Count, and is useful for accessing the field via an interface.

func (*GetScheduledJobsClusteredOrganizationJobsJobConnection) GetEdges

GetEdges returns GetScheduledJobsClusteredOrganizationJobsJobConnection.Edges, and is useful for accessing the field via an interface.

type GetScheduledJobsClusteredOrganizationJobsJobConnectionEdgesJobEdge

type GetScheduledJobsClusteredOrganizationJobsJobConnectionEdgesJobEdge struct {
	Node Job `json:"-"`
}

GetScheduledJobsClusteredOrganizationJobsJobConnectionEdgesJobEdge includes the requested fields of the GraphQL type JobEdge.

func (*GetScheduledJobsClusteredOrganizationJobsJobConnectionEdgesJobEdge) GetNode

GetNode returns GetScheduledJobsClusteredOrganizationJobsJobConnectionEdgesJobEdge.Node, and is useful for accessing the field via an interface.

func (*GetScheduledJobsClusteredOrganizationJobsJobConnectionEdgesJobEdge) MarshalJSON

func (*GetScheduledJobsClusteredOrganizationJobsJobConnectionEdgesJobEdge) UnmarshalJSON

type GetScheduledJobsClusteredResponse

type GetScheduledJobsClusteredResponse struct {
	// Find an organization
	Organization GetScheduledJobsClusteredOrganization `json:"organization"`
}

GetScheduledJobsClusteredResponse is returned by GetScheduledJobsClustered on success.

func GetScheduledJobsClustered

func GetScheduledJobsClustered(
	ctx_ context.Context,
	client_ graphql.Client,
	slug string,
	agentQueryRules []string,
	cluster string,
) (*GetScheduledJobsClusteredResponse, error)

func (*GetScheduledJobsClusteredResponse) GetOrganization

GetOrganization returns GetScheduledJobsClusteredResponse.Organization, and is useful for accessing the field via an interface.

type GetScheduledJobsOrganization

type GetScheduledJobsOrganization struct {
	Id   *string                                       `json:"id"`
	Jobs GetScheduledJobsOrganizationJobsJobConnection `json:"jobs"`
}

GetScheduledJobsOrganization includes the requested fields of the GraphQL type Organization. The GraphQL type's documentation follows.

An organization

func (*GetScheduledJobsOrganization) GetId

GetId returns GetScheduledJobsOrganization.Id, and is useful for accessing the field via an interface.

func (*GetScheduledJobsOrganization) GetJobs

GetJobs returns GetScheduledJobsOrganization.Jobs, and is useful for accessing the field via an interface.

type GetScheduledJobsOrganizationJobsJobConnection

type GetScheduledJobsOrganizationJobsJobConnection struct {
	Count int                                                         `json:"count"`
	Edges []GetScheduledJobsOrganizationJobsJobConnectionEdgesJobEdge `json:"edges"`
}

GetScheduledJobsOrganizationJobsJobConnection includes the requested fields of the GraphQL type JobConnection.

func (*GetScheduledJobsOrganizationJobsJobConnection) GetCount

GetCount returns GetScheduledJobsOrganizationJobsJobConnection.Count, and is useful for accessing the field via an interface.

func (*GetScheduledJobsOrganizationJobsJobConnection) GetEdges

GetEdges returns GetScheduledJobsOrganizationJobsJobConnection.Edges, and is useful for accessing the field via an interface.

type GetScheduledJobsOrganizationJobsJobConnectionEdgesJobEdge

type GetScheduledJobsOrganizationJobsJobConnectionEdgesJobEdge struct {
	Node Job `json:"-"`
}

GetScheduledJobsOrganizationJobsJobConnectionEdgesJobEdge includes the requested fields of the GraphQL type JobEdge.

func (*GetScheduledJobsOrganizationJobsJobConnectionEdgesJobEdge) GetNode

GetNode returns GetScheduledJobsOrganizationJobsJobConnectionEdgesJobEdge.Node, and is useful for accessing the field via an interface.

func (*GetScheduledJobsOrganizationJobsJobConnectionEdgesJobEdge) MarshalJSON

func (*GetScheduledJobsOrganizationJobsJobConnectionEdgesJobEdge) UnmarshalJSON

type GetScheduledJobsResponse

type GetScheduledJobsResponse struct {
	// Find an organization
	Organization GetScheduledJobsOrganization `json:"organization"`
}

GetScheduledJobsResponse is returned by GetScheduledJobs on success.

func GetScheduledJobs

func GetScheduledJobs(
	ctx_ context.Context,
	client_ graphql.Client,
	slug string,
	agentQueryRules []string,
) (*GetScheduledJobsResponse, error)

func (*GetScheduledJobsResponse) GetOrganization

GetOrganization returns GetScheduledJobsResponse.Organization, and is useful for accessing the field via an interface.

type Job

type Job interface {
	// contains filtered or unexported methods
}

Job includes the GraphQL fields of Job requested by the fragment Job. The GraphQL type's documentation follows.

Kinds of jobs that can exist on a build

Job is implemented by the following types: JobJobTypeBlock JobJobTypeCommand JobJobTypeTrigger JobJobTypeWait

type JobJobTypeBlock

type JobJobTypeBlock struct {
}

Job includes the GraphQL fields of JobTypeBlock requested by the fragment Job. The GraphQL type's documentation follows.

Kinds of jobs that can exist on a build

type JobJobTypeCommand

type JobJobTypeCommand struct {
	CommandJob `json:"-"`
}

Job includes the GraphQL fields of JobTypeCommand requested by the fragment Job. The GraphQL type's documentation follows.

Kinds of jobs that can exist on a build

func (*JobJobTypeCommand) GetAgentQueryRules

func (v *JobJobTypeCommand) GetAgentQueryRules() []string

GetAgentQueryRules returns JobJobTypeCommand.AgentQueryRules, and is useful for accessing the field via an interface.

func (*JobJobTypeCommand) GetCommand

func (v *JobJobTypeCommand) GetCommand() string

GetCommand returns JobJobTypeCommand.Command, and is useful for accessing the field via an interface.

func (*JobJobTypeCommand) GetEnv

func (v *JobJobTypeCommand) GetEnv() []string

GetEnv returns JobJobTypeCommand.Env, and is useful for accessing the field via an interface.

func (*JobJobTypeCommand) GetScheduledAt

func (v *JobJobTypeCommand) GetScheduledAt() time.Time

GetScheduledAt returns JobJobTypeCommand.ScheduledAt, and is useful for accessing the field via an interface.

func (*JobJobTypeCommand) GetUuid

func (v *JobJobTypeCommand) GetUuid() string

GetUuid returns JobJobTypeCommand.Uuid, and is useful for accessing the field via an interface.

func (*JobJobTypeCommand) MarshalJSON

func (v *JobJobTypeCommand) MarshalJSON() ([]byte, error)

func (*JobJobTypeCommand) UnmarshalJSON

func (v *JobJobTypeCommand) UnmarshalJSON(b []byte) error

type JobJobTypeTrigger

type JobJobTypeTrigger struct {
}

Job includes the GraphQL fields of JobTypeTrigger requested by the fragment Job. The GraphQL type's documentation follows.

Kinds of jobs that can exist on a build

type JobJobTypeWait

type JobJobTypeWait struct {
}

Job includes the GraphQL fields of JobTypeWait requested by the fragment Job. The GraphQL type's documentation follows.

Kinds of jobs that can exist on a build

type JobStates

type JobStates string

All the possible states a job can be in

const (
	// The job was accepted by the agent, and now it's waiting to start running
	JobStatesAccepted JobStates = "ACCEPTED"
	// The job has been assigned to an agent, and it's waiting for it to accept
	JobStatesAssigned JobStates = "ASSIGNED"
	// The job is waiting on a `block` step to finish
	JobStatesBlocked JobStates = "BLOCKED"
	// The job was in a `BLOCKED` state when the build failed
	JobStatesBlockedFailed JobStates = "BLOCKED_FAILED"
	// The jobs configuration means that it can't be run
	JobStatesBroken JobStates = "BROKEN"
	// The job was canceled
	JobStatesCanceled JobStates = "CANCELED"
	// The job is currently canceling
	JobStatesCanceling JobStates = "CANCELING"
	// The job expired before it was started on an agent
	JobStatesExpired JobStates = "EXPIRED"
	// The job has finished
	JobStatesFinished JobStates = "FINISHED"
	// The job is waiting for jobs with the same concurrency group to finish
	JobStatesLimited JobStates = "LIMITED"
	// The job is waiting on a concurrency group check before becoming either `LIMITED` or `SCHEDULED`
	JobStatesLimiting JobStates = "LIMITING"
	// The job has just been created and doesn't have a state yet
	JobStatesPending JobStates = "PENDING"
	// The job is running
	JobStatesRunning JobStates = "RUNNING"
	// The job is scheduled and waiting for an agent
	JobStatesScheduled JobStates = "SCHEDULED"
	// The job was skipped
	JobStatesSkipped JobStates = "SKIPPED"
	// The job timed out
	JobStatesTimedOut JobStates = "TIMED_OUT"
	// The job is timing out for taking too long
	JobStatesTimingOut JobStates = "TIMING_OUT"
	// This `block` job has been manually unblocked
	JobStatesUnblocked JobStates = "UNBLOCKED"
	// This `block` job was in an `UNBLOCKED` state when the build failed
	JobStatesUnblockedFailed JobStates = "UNBLOCKED_FAILED"
	// The job is waiting on a `wait` step to finish
	JobStatesWaiting JobStates = "WAITING"
	// The job was in a `WAITING` state when the build failed
	JobStatesWaitingFailed JobStates = "WAITING_FAILED"
)

type JobTypeCommandCancelInput

type JobTypeCommandCancelInput struct {
	// A unique identifier for the client performing the mutation.
	ClientMutationId string `json:"clientMutationId"`
	Id               string `json:"id"`
}

Autogenerated input type of JobTypeCommandCancel

func (*JobTypeCommandCancelInput) GetClientMutationId

func (v *JobTypeCommandCancelInput) GetClientMutationId() string

GetClientMutationId returns JobTypeCommandCancelInput.ClientMutationId, and is useful for accessing the field via an interface.

func (*JobTypeCommandCancelInput) GetId

func (v *JobTypeCommandCancelInput) GetId() string

GetId returns JobTypeCommandCancelInput.Id, and is useful for accessing the field via an interface.

type PipelineDeleteInput

type PipelineDeleteInput struct {
	// A unique identifier for the client performing the mutation.
	ClientMutationId string `json:"clientMutationId"`
	Id               string `json:"id"`
}

Autogenerated input type of PipelineDelete

func (*PipelineDeleteInput) GetClientMutationId

func (v *PipelineDeleteInput) GetClientMutationId() string

GetClientMutationId returns PipelineDeleteInput.ClientMutationId, and is useful for accessing the field via an interface.

func (*PipelineDeleteInput) GetId

func (v *PipelineDeleteInput) GetId() string

GetId returns PipelineDeleteInput.Id, and is useful for accessing the field via an interface.

type PipelineDeletePipelineDeletePipelineDeletePayload

type PipelineDeletePipelineDeletePipelineDeletePayload struct {
	// A unique identifier for the client performing the mutation.
	ClientMutationId string `json:"clientMutationId"`
}

PipelineDeletePipelineDeletePipelineDeletePayload includes the requested fields of the GraphQL type PipelineDeletePayload. The GraphQL type's documentation follows.

Autogenerated return type of PipelineDelete.

func (*PipelineDeletePipelineDeletePipelineDeletePayload) GetClientMutationId

GetClientMutationId returns PipelineDeletePipelineDeletePipelineDeletePayload.ClientMutationId, and is useful for accessing the field via an interface.

type PipelineDeleteResponse

type PipelineDeleteResponse struct {
	// Delete a pipeline.
	PipelineDelete PipelineDeletePipelineDeletePipelineDeletePayload `json:"pipelineDelete"`
}

PipelineDeleteResponse is returned by PipelineDelete on success.

func PipelineDelete

func PipelineDelete(
	ctx_ context.Context,
	client_ graphql.Client,
	input PipelineDeleteInput,
) (*PipelineDeleteResponse, error)

## The following are used in the cleanup integration "test"

func (*PipelineDeleteResponse) GetPipelineDelete

GetPipelineDelete returns PipelineDeleteResponse.PipelineDelete, and is useful for accessing the field via an interface.

type SearchPipelinesOrganization

type SearchPipelinesOrganization struct {
	// Return all the pipelines the current user has access to for this organization
	Pipelines SearchPipelinesOrganizationPipelinesPipelineConnection `json:"pipelines"`
}

SearchPipelinesOrganization includes the requested fields of the GraphQL type Organization. The GraphQL type's documentation follows.

An organization

func (*SearchPipelinesOrganization) GetPipelines

GetPipelines returns SearchPipelinesOrganization.Pipelines, and is useful for accessing the field via an interface.

type SearchPipelinesOrganizationPipelinesPipelineConnection

type SearchPipelinesOrganizationPipelinesPipelineConnection struct {
	Edges []SearchPipelinesOrganizationPipelinesPipelineConnectionEdgesPipelineEdge `json:"edges"`
}

SearchPipelinesOrganizationPipelinesPipelineConnection includes the requested fields of the GraphQL type PipelineConnection.

func (*SearchPipelinesOrganizationPipelinesPipelineConnection) GetEdges

GetEdges returns SearchPipelinesOrganizationPipelinesPipelineConnection.Edges, and is useful for accessing the field via an interface.

type SearchPipelinesOrganizationPipelinesPipelineConnectionEdgesPipelineEdge

type SearchPipelinesOrganizationPipelinesPipelineConnectionEdgesPipelineEdge struct {
	Node SearchPipelinesOrganizationPipelinesPipelineConnectionEdgesPipelineEdgeNodePipeline `json:"node"`
}

SearchPipelinesOrganizationPipelinesPipelineConnectionEdgesPipelineEdge includes the requested fields of the GraphQL type PipelineEdge.

func (*SearchPipelinesOrganizationPipelinesPipelineConnectionEdgesPipelineEdge) GetNode

GetNode returns SearchPipelinesOrganizationPipelinesPipelineConnectionEdgesPipelineEdge.Node, and is useful for accessing the field via an interface.

type SearchPipelinesOrganizationPipelinesPipelineConnectionEdgesPipelineEdgeNodePipeline

type SearchPipelinesOrganizationPipelinesPipelineConnectionEdgesPipelineEdgeNodePipeline struct {
	Id string `json:"id"`
	// The name of the pipeline
	Name string `json:"name"`
}

SearchPipelinesOrganizationPipelinesPipelineConnectionEdgesPipelineEdgeNodePipeline includes the requested fields of the GraphQL type Pipeline. The GraphQL type's documentation follows.

A pipeline

func (*SearchPipelinesOrganizationPipelinesPipelineConnectionEdgesPipelineEdgeNodePipeline) GetId

GetId returns SearchPipelinesOrganizationPipelinesPipelineConnectionEdgesPipelineEdgeNodePipeline.Id, and is useful for accessing the field via an interface.

func (*SearchPipelinesOrganizationPipelinesPipelineConnectionEdgesPipelineEdgeNodePipeline) GetName

GetName returns SearchPipelinesOrganizationPipelinesPipelineConnectionEdgesPipelineEdgeNodePipeline.Name, and is useful for accessing the field via an interface.

type SearchPipelinesResponse

type SearchPipelinesResponse struct {
	// Find an organization
	Organization SearchPipelinesOrganization `json:"organization"`
}

SearchPipelinesResponse is returned by SearchPipelines on success.

func SearchPipelines

func SearchPipelines(
	ctx_ context.Context,
	client_ graphql.Client,
	slug string,
	search string,
	first int,
) (*SearchPipelinesResponse, error)

func (*SearchPipelinesResponse) GetOrganization

GetOrganization returns SearchPipelinesResponse.Organization, and is useful for accessing the field via an interface.

Jump to

Keyboard shortcuts

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