graphql

package
v3.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const GetArtifacts_Operation = `
query GetArtifacts ($artifactId: ID!) {
	artifact(uuid: $artifactId) {
		uuid
		path
		downloadURL
	}
}
`

The query or mutation executed by GetArtifacts.

View Source
const GetClusterQueueAgent_Operation = `` /* 275-byte string literal not displayed */

The query or mutation executed by GetClusterQueueAgent.

View Source
const GetClusterQueues_Operation = `` /* 264-byte string literal not displayed */

The query or mutation executed by GetClusterQueues.

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

The query or mutation executed by GetOrganizationID.

View Source
const GetPipeline_Operation = `` /* 227-byte string literal not displayed */

The query or mutation executed by GetPipeline.

View Source
const InviteUser_Operation = `` /* 175-byte string literal not displayed */

The query or mutation executed by InviteUser.

View Source
const RetryJob_Operation = `
mutation RetryJob ($id: ID!) {
	jobTypeCommandRetry(input: {id:$id}) {
		jobTypeCommand {
			id
			state
			url
		}
	}
}
`

The query or mutation executed by RetryJob.

View Source
const UnblockJob_Operation = `` /* 186-byte string literal not displayed */

The query or mutation executed by UnblockJob.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetArtifactsArtifact added in v3.5.0

type GetArtifactsArtifact struct {
	// The public UUID for this artifact
	Uuid string `json:"uuid"`
	// The path of the uploaded artifact
	Path string `json:"path"`
	// The download URL for the artifact. Unless you've used your own artifact storage, the URL will be valid for only 10 minutes.
	DownloadURL string `json:"downloadURL"`
}

GetArtifactsArtifact includes the requested fields of the GraphQL type Artifact. The GraphQL type's documentation follows.

A file uploaded from the agent whilst running a job

func (*GetArtifactsArtifact) GetDownloadURL added in v3.5.0

func (v *GetArtifactsArtifact) GetDownloadURL() string

GetDownloadURL returns GetArtifactsArtifact.DownloadURL, and is useful for accessing the field via an interface.

func (*GetArtifactsArtifact) GetPath added in v3.5.0

func (v *GetArtifactsArtifact) GetPath() string

GetPath returns GetArtifactsArtifact.Path, and is useful for accessing the field via an interface.

func (*GetArtifactsArtifact) GetUuid added in v3.5.0

func (v *GetArtifactsArtifact) GetUuid() string

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

type GetArtifactsResponse added in v3.5.0

type GetArtifactsResponse struct {
	// Find an artifact by its UUID
	Artifact *GetArtifactsArtifact `json:"artifact"`
}

GetArtifactsResponse is returned by GetArtifacts on success.

func GetArtifacts added in v3.5.0

func GetArtifacts(
	ctx_ context.Context,
	client_ graphql.Client,
	artifactId string,
) (*GetArtifactsResponse, error)

func (*GetArtifactsResponse) GetArtifact added in v3.5.0

func (v *GetArtifactsResponse) GetArtifact() *GetArtifactsArtifact

GetArtifact returns GetArtifactsResponse.Artifact, and is useful for accessing the field via an interface.

type GetClusterQueueAgentOrganization

type GetClusterQueueAgentOrganization struct {
	Agents *GetClusterQueueAgentOrganizationAgentsAgentConnection `json:"agents"`
}

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

An organization

func (*GetClusterQueueAgentOrganization) GetAgents

GetAgents returns GetClusterQueueAgentOrganization.Agents, and is useful for accessing the field via an interface.

type GetClusterQueueAgentOrganizationAgentsAgentConnection

type GetClusterQueueAgentOrganizationAgentsAgentConnection struct {
	Edges []*GetClusterQueueAgentOrganizationAgentsAgentConnectionEdgesAgentEdge `json:"edges"`
}

GetClusterQueueAgentOrganizationAgentsAgentConnection includes the requested fields of the GraphQL type AgentConnection.

func (*GetClusterQueueAgentOrganizationAgentsAgentConnection) GetEdges

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

type GetClusterQueueAgentOrganizationAgentsAgentConnectionEdgesAgentEdge

type GetClusterQueueAgentOrganizationAgentsAgentConnectionEdgesAgentEdge struct {
	Node *GetClusterQueueAgentOrganizationAgentsAgentConnectionEdgesAgentEdgeNodeAgent `json:"node"`
}

GetClusterQueueAgentOrganizationAgentsAgentConnectionEdgesAgentEdge includes the requested fields of the GraphQL type AgentEdge.

func (*GetClusterQueueAgentOrganizationAgentsAgentConnectionEdgesAgentEdge) GetNode

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

type GetClusterQueueAgentOrganizationAgentsAgentConnectionEdgesAgentEdgeNodeAgent

type GetClusterQueueAgentOrganizationAgentsAgentConnectionEdgesAgentEdgeNodeAgent struct {
	// The name of the agent
	Name string `json:"name"`
	// The hostname of the machine running the agent
	Hostname *string `json:"hostname"`
	// The version of the agent
	Version      *string                                                                                   `json:"version"`
	Id           string                                                                                    `json:"id"`
	ClusterQueue *GetClusterQueueAgentOrganizationAgentsAgentConnectionEdgesAgentEdgeNodeAgentClusterQueue `json:"clusterQueue"`
}

GetClusterQueueAgentOrganizationAgentsAgentConnectionEdgesAgentEdgeNodeAgent includes the requested fields of the GraphQL type Agent. The GraphQL type's documentation follows.

An agent

func (*GetClusterQueueAgentOrganizationAgentsAgentConnectionEdgesAgentEdgeNodeAgent) GetClusterQueue

GetClusterQueue returns GetClusterQueueAgentOrganizationAgentsAgentConnectionEdgesAgentEdgeNodeAgent.ClusterQueue, and is useful for accessing the field via an interface.

func (*GetClusterQueueAgentOrganizationAgentsAgentConnectionEdgesAgentEdgeNodeAgent) GetHostname

GetHostname returns GetClusterQueueAgentOrganizationAgentsAgentConnectionEdgesAgentEdgeNodeAgent.Hostname, and is useful for accessing the field via an interface.

func (*GetClusterQueueAgentOrganizationAgentsAgentConnectionEdgesAgentEdgeNodeAgent) GetId

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

func (*GetClusterQueueAgentOrganizationAgentsAgentConnectionEdgesAgentEdgeNodeAgent) GetName

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

func (*GetClusterQueueAgentOrganizationAgentsAgentConnectionEdgesAgentEdgeNodeAgent) GetVersion

GetVersion returns GetClusterQueueAgentOrganizationAgentsAgentConnectionEdgesAgentEdgeNodeAgent.Version, and is useful for accessing the field via an interface.

type GetClusterQueueAgentOrganizationAgentsAgentConnectionEdgesAgentEdgeNodeAgentClusterQueue

type GetClusterQueueAgentOrganizationAgentsAgentConnectionEdgesAgentEdgeNodeAgentClusterQueue struct {
	Id string `json:"id"`
	// The public UUID for this cluster queue
	Uuid string `json:"uuid"`
}

GetClusterQueueAgentOrganizationAgentsAgentConnectionEdgesAgentEdgeNodeAgentClusterQueue includes the requested fields of the GraphQL type ClusterQueue.

func (*GetClusterQueueAgentOrganizationAgentsAgentConnectionEdgesAgentEdgeNodeAgentClusterQueue) GetId

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

func (*GetClusterQueueAgentOrganizationAgentsAgentConnectionEdgesAgentEdgeNodeAgentClusterQueue) GetUuid

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

type GetClusterQueueAgentResponse

type GetClusterQueueAgentResponse struct {
	// Find an organization
	Organization *GetClusterQueueAgentOrganization `json:"organization"`
}

GetClusterQueueAgentResponse is returned by GetClusterQueueAgent on success.

func GetClusterQueueAgent

func GetClusterQueueAgent(
	ctx_ context.Context,
	client_ graphql.Client,
	orgSlug string,
	queueId []string,
) (*GetClusterQueueAgentResponse, error)

func (*GetClusterQueueAgentResponse) GetOrganization

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

type GetClusterQueuesOrganization

type GetClusterQueuesOrganization struct {
	// Return cluster in the Organization by UUID
	Cluster *GetClusterQueuesOrganizationCluster `json:"cluster"`
}

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

An organization

func (*GetClusterQueuesOrganization) GetCluster

GetCluster returns GetClusterQueuesOrganization.Cluster, and is useful for accessing the field via an interface.

type GetClusterQueuesOrganizationCluster

type GetClusterQueuesOrganizationCluster struct {
	// Name of the cluster
	Name string `json:"name"`
	// Description of the cluster
	Description *string                                                          `json:"description"`
	Queues      *GetClusterQueuesOrganizationClusterQueuesClusterQueueConnection `json:"queues"`
}

GetClusterQueuesOrganizationCluster includes the requested fields of the GraphQL type Cluster.

func (*GetClusterQueuesOrganizationCluster) GetDescription

func (v *GetClusterQueuesOrganizationCluster) GetDescription() *string

GetDescription returns GetClusterQueuesOrganizationCluster.Description, and is useful for accessing the field via an interface.

func (*GetClusterQueuesOrganizationCluster) GetName

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

func (*GetClusterQueuesOrganizationCluster) GetQueues

GetQueues returns GetClusterQueuesOrganizationCluster.Queues, and is useful for accessing the field via an interface.

type GetClusterQueuesOrganizationClusterQueuesClusterQueueConnection

type GetClusterQueuesOrganizationClusterQueuesClusterQueueConnection struct {
	Edges []*GetClusterQueuesOrganizationClusterQueuesClusterQueueConnectionEdgesClusterQueueEdge `json:"edges"`
}

GetClusterQueuesOrganizationClusterQueuesClusterQueueConnection includes the requested fields of the GraphQL type ClusterQueueConnection.

func (*GetClusterQueuesOrganizationClusterQueuesClusterQueueConnection) GetEdges

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

type GetClusterQueuesOrganizationClusterQueuesClusterQueueConnectionEdgesClusterQueueEdge

type GetClusterQueuesOrganizationClusterQueuesClusterQueueConnectionEdgesClusterQueueEdge struct {
	Node *GetClusterQueuesOrganizationClusterQueuesClusterQueueConnectionEdgesClusterQueueEdgeNodeClusterQueue `json:"node"`
}

GetClusterQueuesOrganizationClusterQueuesClusterQueueConnectionEdgesClusterQueueEdge includes the requested fields of the GraphQL type ClusterQueueEdge.

func (*GetClusterQueuesOrganizationClusterQueuesClusterQueueConnectionEdgesClusterQueueEdge) GetNode

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

type GetClusterQueuesOrganizationClusterQueuesClusterQueueConnectionEdgesClusterQueueEdgeNodeClusterQueue

type GetClusterQueuesOrganizationClusterQueuesClusterQueueConnectionEdgesClusterQueueEdgeNodeClusterQueue struct {
	Id string `json:"id"`
	// The public UUID for this cluster queue
	Uuid        string  `json:"uuid"`
	Key         string  `json:"key"`
	Description *string `json:"description"`
}

GetClusterQueuesOrganizationClusterQueuesClusterQueueConnectionEdgesClusterQueueEdgeNodeClusterQueue includes the requested fields of the GraphQL type ClusterQueue.

func (*GetClusterQueuesOrganizationClusterQueuesClusterQueueConnectionEdgesClusterQueueEdgeNodeClusterQueue) GetDescription

GetDescription returns GetClusterQueuesOrganizationClusterQueuesClusterQueueConnectionEdgesClusterQueueEdgeNodeClusterQueue.Description, and is useful for accessing the field via an interface.

func (*GetClusterQueuesOrganizationClusterQueuesClusterQueueConnectionEdgesClusterQueueEdgeNodeClusterQueue) GetId

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

func (*GetClusterQueuesOrganizationClusterQueuesClusterQueueConnectionEdgesClusterQueueEdgeNodeClusterQueue) GetKey

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

func (*GetClusterQueuesOrganizationClusterQueuesClusterQueueConnectionEdgesClusterQueueEdgeNodeClusterQueue) GetUuid

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

type GetClusterQueuesResponse

type GetClusterQueuesResponse struct {
	// Find an organization
	Organization *GetClusterQueuesOrganization `json:"organization"`
}

GetClusterQueuesResponse is returned by GetClusterQueues on success.

func GetClusterQueues

func GetClusterQueues(
	ctx_ context.Context,
	client_ graphql.Client,
	orgSlug string,
	clusterId string,
) (*GetClusterQueuesResponse, error)

func (*GetClusterQueuesResponse) GetOrganization

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

type GetOrganizationIDOrganization added in v3.2.0

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

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

An organization

func (*GetOrganizationIDOrganization) GetId added in v3.2.0

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

type GetOrganizationIDResponse added in v3.2.0

type GetOrganizationIDResponse struct {
	// Find an organization
	Organization *GetOrganizationIDOrganization `json:"organization"`
}

GetOrganizationIDResponse is returned by GetOrganizationID on success.

func GetOrganizationID added in v3.2.0

func GetOrganizationID(
	ctx_ context.Context,
	client_ graphql.Client,
	slug string,
) (*GetOrganizationIDResponse, error)

func (*GetOrganizationIDResponse) GetOrganization added in v3.2.0

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

type GetPipelinePipeline

type GetPipelinePipeline struct {
	// The name of the pipeline
	Name string `json:"name"`
	// The short description of the pipeline
	Description *string `json:"description"`
	// The emoji of the pipeline
	Emoji *string `json:"emoji"`
	// The color of the pipeline
	Color *string `json:"color"`
	// Returns true if the viewer has favorited this pipeline
	Favorite bool                                                `json:"favorite"`
	Steps    *GetPipelinePipelineSteps                           `json:"steps"`
	Metrics  *GetPipelinePipelineMetricsPipelineMetricConnection `json:"metrics"`
	// Tags that have been given to this pipeline
	Tags []GetPipelinePipelineTagsPipelineTag `json:"tags"`
}

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

A pipeline

func (*GetPipelinePipeline) GetColor

func (v *GetPipelinePipeline) GetColor() *string

GetColor returns GetPipelinePipeline.Color, and is useful for accessing the field via an interface.

func (*GetPipelinePipeline) GetDescription

func (v *GetPipelinePipeline) GetDescription() *string

GetDescription returns GetPipelinePipeline.Description, and is useful for accessing the field via an interface.

func (*GetPipelinePipeline) GetEmoji

func (v *GetPipelinePipeline) GetEmoji() *string

GetEmoji returns GetPipelinePipeline.Emoji, and is useful for accessing the field via an interface.

func (*GetPipelinePipeline) GetFavorite

func (v *GetPipelinePipeline) GetFavorite() bool

GetFavorite returns GetPipelinePipeline.Favorite, and is useful for accessing the field via an interface.

func (*GetPipelinePipeline) GetMetrics

GetMetrics returns GetPipelinePipeline.Metrics, and is useful for accessing the field via an interface.

func (*GetPipelinePipeline) GetName

func (v *GetPipelinePipeline) GetName() string

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

func (*GetPipelinePipeline) GetSteps

GetSteps returns GetPipelinePipeline.Steps, and is useful for accessing the field via an interface.

func (*GetPipelinePipeline) GetTags

GetTags returns GetPipelinePipeline.Tags, and is useful for accessing the field via an interface.

type GetPipelinePipelineMetricsPipelineMetricConnection

type GetPipelinePipelineMetricsPipelineMetricConnection struct {
	Edges []*GetPipelinePipelineMetricsPipelineMetricConnectionEdgesPipelineMetricEdge `json:"edges"`
}

GetPipelinePipelineMetricsPipelineMetricConnection includes the requested fields of the GraphQL type PipelineMetricConnection.

func (*GetPipelinePipelineMetricsPipelineMetricConnection) GetEdges

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

type GetPipelinePipelineMetricsPipelineMetricConnectionEdgesPipelineMetricEdge

type GetPipelinePipelineMetricsPipelineMetricConnectionEdgesPipelineMetricEdge struct {
	Node *GetPipelinePipelineMetricsPipelineMetricConnectionEdgesPipelineMetricEdgeNodePipelineMetric `json:"node"`
}

GetPipelinePipelineMetricsPipelineMetricConnectionEdgesPipelineMetricEdge includes the requested fields of the GraphQL type PipelineMetricEdge.

func (*GetPipelinePipelineMetricsPipelineMetricConnectionEdgesPipelineMetricEdge) GetNode

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

type GetPipelinePipelineMetricsPipelineMetricConnectionEdgesPipelineMetricEdgeNodePipelineMetric

type GetPipelinePipelineMetricsPipelineMetricConnectionEdgesPipelineMetricEdgeNodePipelineMetric struct {
	// The label of this metric
	Label string `json:"label"`
	// The value for this metric
	Value *string `json:"value"`
}

GetPipelinePipelineMetricsPipelineMetricConnectionEdgesPipelineMetricEdgeNodePipelineMetric includes the requested fields of the GraphQL type PipelineMetric. The GraphQL type's documentation follows.

A metric for a pipeline

func (*GetPipelinePipelineMetricsPipelineMetricConnectionEdgesPipelineMetricEdgeNodePipelineMetric) GetLabel

GetLabel returns GetPipelinePipelineMetricsPipelineMetricConnectionEdgesPipelineMetricEdgeNodePipelineMetric.Label, and is useful for accessing the field via an interface.

func (*GetPipelinePipelineMetricsPipelineMetricConnectionEdgesPipelineMetricEdgeNodePipelineMetric) GetValue

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

type GetPipelinePipelineSteps

type GetPipelinePipelineSteps struct {
	// A YAML representation of the pipeline steps
	Yaml *string `json:"yaml"`
}

GetPipelinePipelineSteps includes the requested fields of the GraphQL type PipelineSteps. The GraphQL type's documentation follows.

Steps defined on a pipeline

func (*GetPipelinePipelineSteps) GetYaml

func (v *GetPipelinePipelineSteps) GetYaml() *string

GetYaml returns GetPipelinePipelineSteps.Yaml, and is useful for accessing the field via an interface.

type GetPipelinePipelineTagsPipelineTag

type GetPipelinePipelineTagsPipelineTag struct {
	// The label for this tag
	Label string `json:"label"`
}

GetPipelinePipelineTagsPipelineTag includes the requested fields of the GraphQL type PipelineTag. The GraphQL type's documentation follows.

A tag associated with a pipeline

func (*GetPipelinePipelineTagsPipelineTag) GetLabel

GetLabel returns GetPipelinePipelineTagsPipelineTag.Label, and is useful for accessing the field via an interface.

type GetPipelineResponse

type GetPipelineResponse struct {
	// Find a pipeline
	Pipeline *GetPipelinePipeline `json:"pipeline"`
}

GetPipelineResponse is returned by GetPipeline on success.

func GetPipeline

func GetPipeline(
	ctx_ context.Context,
	client_ graphql.Client,
	slug string,
) (*GetPipelineResponse, error)

func (*GetPipelineResponse) GetPipeline

func (v *GetPipelineResponse) GetPipeline() *GetPipelinePipeline

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

type InviteUserOrganizationInvitationCreateOrganizationInvitationCreatePayload added in v3.2.0

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

InviteUserOrganizationInvitationCreateOrganizationInvitationCreatePayload includes the requested fields of the GraphQL type OrganizationInvitationCreatePayload. The GraphQL type's documentation follows.

Autogenerated return type of OrganizationInvitationCreate.

func (*InviteUserOrganizationInvitationCreateOrganizationInvitationCreatePayload) GetClientMutationId added in v3.2.0

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

type InviteUserResponse added in v3.2.0

type InviteUserResponse struct {
	// Send email invitations to this organization.
	OrganizationInvitationCreate *InviteUserOrganizationInvitationCreateOrganizationInvitationCreatePayload `json:"organizationInvitationCreate"`
}

InviteUserResponse is returned by InviteUser on success.

func InviteUser added in v3.2.0

func InviteUser(
	ctx_ context.Context,
	client_ graphql.Client,
	organization string,
	emails []string,
) (*InviteUserResponse, error)

func (*InviteUserResponse) GetOrganizationInvitationCreate added in v3.2.0

GetOrganizationInvitationCreate returns InviteUserResponse.OrganizationInvitationCreate, and is useful for accessing the field via an interface.

type JobStates

type JobStates string

All the possible states a job can be in

const (
	// The job has just been created and doesn't have a state yet
	JobStatesPending JobStates = "PENDING"
	// 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"
	// 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"
	// 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 concurrency group check before becoming either `LIMITED` or `SCHEDULED`
	JobStatesLimiting JobStates = "LIMITING"
	// The job is waiting for jobs with the same concurrency group to finish
	JobStatesLimited JobStates = "LIMITED"
	// The job is scheduled and waiting for an agent
	JobStatesScheduled JobStates = "SCHEDULED"
	// The job has been assigned to an agent, and it's waiting for it to accept
	JobStatesAssigned JobStates = "ASSIGNED"
	// The job was accepted by the agent, and now it's waiting to start running
	JobStatesAccepted JobStates = "ACCEPTED"
	// The job is running
	JobStatesRunning JobStates = "RUNNING"
	// The job has finished
	JobStatesFinished JobStates = "FINISHED"
	// The job is currently canceling
	JobStatesCanceling JobStates = "CANCELING"
	// The job was canceled
	JobStatesCanceled JobStates = "CANCELED"
	// The job is timing out for taking too long
	JobStatesTimingOut JobStates = "TIMING_OUT"
	// The job timed out
	JobStatesTimedOut JobStates = "TIMED_OUT"
	// The job was skipped
	JobStatesSkipped JobStates = "SKIPPED"
	// The jobs configuration means that it can't be run
	JobStatesBroken JobStates = "BROKEN"
	// The job expired before it was started on an agent
	JobStatesExpired JobStates = "EXPIRED"
)

type RetryJobJobTypeCommandRetryJobTypeCommandRetryPayload added in v3.4.0

type RetryJobJobTypeCommandRetryJobTypeCommandRetryPayload struct {
	JobTypeCommand RetryJobJobTypeCommandRetryJobTypeCommandRetryPayloadJobTypeCommand `json:"jobTypeCommand"`
}

RetryJobJobTypeCommandRetryJobTypeCommandRetryPayload includes the requested fields of the GraphQL type JobTypeCommandRetryPayload. The GraphQL type's documentation follows.

Autogenerated return type of JobTypeCommandRetry.

func (*RetryJobJobTypeCommandRetryJobTypeCommandRetryPayload) GetJobTypeCommand added in v3.4.0

GetJobTypeCommand returns RetryJobJobTypeCommandRetryJobTypeCommandRetryPayload.JobTypeCommand, and is useful for accessing the field via an interface.

type RetryJobJobTypeCommandRetryJobTypeCommandRetryPayloadJobTypeCommand added in v3.4.0

type RetryJobJobTypeCommandRetryJobTypeCommandRetryPayloadJobTypeCommand struct {
	Id string `json:"id"`
	// The state of the job
	State JobStates `json:"state"`
	// The URL for the job
	Url string `json:"url"`
}

RetryJobJobTypeCommandRetryJobTypeCommandRetryPayloadJobTypeCommand 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 (*RetryJobJobTypeCommandRetryJobTypeCommandRetryPayloadJobTypeCommand) GetId added in v3.4.0

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

func (*RetryJobJobTypeCommandRetryJobTypeCommandRetryPayloadJobTypeCommand) GetState added in v3.4.0

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

func (*RetryJobJobTypeCommandRetryJobTypeCommandRetryPayloadJobTypeCommand) GetUrl added in v3.4.0

GetUrl returns RetryJobJobTypeCommandRetryJobTypeCommandRetryPayloadJobTypeCommand.Url, and is useful for accessing the field via an interface.

type RetryJobResponse added in v3.4.0

type RetryJobResponse struct {
	// Retry a job.
	JobTypeCommandRetry *RetryJobJobTypeCommandRetryJobTypeCommandRetryPayload `json:"jobTypeCommandRetry"`
}

RetryJobResponse is returned by RetryJob on success.

func RetryJob added in v3.4.0

func RetryJob(
	ctx_ context.Context,
	client_ graphql.Client,
	id string,
) (*RetryJobResponse, error)

func (*RetryJobResponse) GetJobTypeCommandRetry added in v3.4.0

GetJobTypeCommandRetry returns RetryJobResponse.JobTypeCommandRetry, and is useful for accessing the field via an interface.

type UnblockJobJobTypeBlockUnblockJobTypeBlockUnblockPayload

type UnblockJobJobTypeBlockUnblockJobTypeBlockUnblockPayload struct {
	JobTypeBlock UnblockJobJobTypeBlockUnblockJobTypeBlockUnblockPayloadJobTypeBlock `json:"jobTypeBlock"`
}

UnblockJobJobTypeBlockUnblockJobTypeBlockUnblockPayload includes the requested fields of the GraphQL type JobTypeBlockUnblockPayload. The GraphQL type's documentation follows.

Autogenerated return type of JobTypeBlockUnblock.

func (*UnblockJobJobTypeBlockUnblockJobTypeBlockUnblockPayload) GetJobTypeBlock

GetJobTypeBlock returns UnblockJobJobTypeBlockUnblockJobTypeBlockUnblockPayload.JobTypeBlock, and is useful for accessing the field via an interface.

type UnblockJobJobTypeBlockUnblockJobTypeBlockUnblockPayloadJobTypeBlock

type UnblockJobJobTypeBlockUnblockJobTypeBlockUnblockPayloadJobTypeBlock struct {
	Id string `json:"id"`
	// The state of the job
	State JobStates `json:"state"`
	// Whether or not this job can be unblocked yet (may be waiting on another job to finish)
	IsUnblockable *bool `json:"isUnblockable"`
	// The build that this job is a part of
	Build *UnblockJobJobTypeBlockUnblockJobTypeBlockUnblockPayloadJobTypeBlockBuild `json:"build"`
}

UnblockJobJobTypeBlockUnblockJobTypeBlockUnblockPayloadJobTypeBlock 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 (*UnblockJobJobTypeBlockUnblockJobTypeBlockUnblockPayloadJobTypeBlock) GetBuild

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

func (*UnblockJobJobTypeBlockUnblockJobTypeBlockUnblockPayloadJobTypeBlock) GetId

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

func (*UnblockJobJobTypeBlockUnblockJobTypeBlockUnblockPayloadJobTypeBlock) GetIsUnblockable

GetIsUnblockable returns UnblockJobJobTypeBlockUnblockJobTypeBlockUnblockPayloadJobTypeBlock.IsUnblockable, and is useful for accessing the field via an interface.

func (*UnblockJobJobTypeBlockUnblockJobTypeBlockUnblockPayloadJobTypeBlock) GetState

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

type UnblockJobJobTypeBlockUnblockJobTypeBlockUnblockPayloadJobTypeBlockBuild

type UnblockJobJobTypeBlockUnblockJobTypeBlockUnblockPayloadJobTypeBlockBuild struct {
	// The URL for the build
	Url string `json:"url"`
}

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

A build from a pipeline

func (*UnblockJobJobTypeBlockUnblockJobTypeBlockUnblockPayloadJobTypeBlockBuild) GetUrl

GetUrl returns UnblockJobJobTypeBlockUnblockJobTypeBlockUnblockPayloadJobTypeBlockBuild.Url, and is useful for accessing the field via an interface.

type UnblockJobResponse

type UnblockJobResponse struct {
	// Unblocks a build's "Block pipeline" job.
	JobTypeBlockUnblock *UnblockJobJobTypeBlockUnblockJobTypeBlockUnblockPayload `json:"jobTypeBlockUnblock"`
}

UnblockJobResponse is returned by UnblockJob on success.

func UnblockJob

func UnblockJob(
	ctx_ context.Context,
	client_ graphql.Client,
	id string,
	fields *string,
) (*UnblockJobResponse, error)

func (*UnblockJobResponse) GetJobTypeBlockUnblock

GetJobTypeBlockUnblock returns UnblockJobResponse.JobTypeBlockUnblock, 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