graphql

package
v3.0.0-beta.20240904 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

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 GetPipeline_Operation = `` /* 227-byte string literal not displayed */

The query or mutation executed by GetPipeline.

View Source
const RecentBuildsForBranch_Operation = `` /* 237-byte string literal not displayed */

The query or mutation executed by RecentBuildsForBranch.

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 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 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 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 RecentBuildsForBranchPipeline

type RecentBuildsForBranchPipeline struct {
	// Returns the builds for this pipeline
	Builds *RecentBuildsForBranchPipelineBuildsBuildConnection `json:"builds"`
}

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

A pipeline

func (*RecentBuildsForBranchPipeline) GetBuilds

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

type RecentBuildsForBranchPipelineBuildsBuildConnection

type RecentBuildsForBranchPipelineBuildsBuildConnection struct {
	Edges []*RecentBuildsForBranchPipelineBuildsBuildConnectionEdgesBuildEdge `json:"edges"`
}

RecentBuildsForBranchPipelineBuildsBuildConnection includes the requested fields of the GraphQL type BuildConnection.

func (*RecentBuildsForBranchPipelineBuildsBuildConnection) GetEdges

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

type RecentBuildsForBranchPipelineBuildsBuildConnectionEdgesBuildEdge

type RecentBuildsForBranchPipelineBuildsBuildConnectionEdgesBuildEdge struct {
	Node *RecentBuildsForBranchPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild `json:"node"`
}

RecentBuildsForBranchPipelineBuildsBuildConnectionEdgesBuildEdge includes the requested fields of the GraphQL type BuildEdge.

func (*RecentBuildsForBranchPipelineBuildsBuildConnectionEdgesBuildEdge) GetNode

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

type RecentBuildsForBranchPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild

type RecentBuildsForBranchPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild struct {
	Id string `json:"id"`
	// The message for the build
	Message *string `json:"message"`
	// The number of the build
	Number int `json:"number"`
	// The URL for the build
	Url string `json:"url"`
	// The UUID for the build
	Uuid string `json:"uuid"`
}

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

A build from a pipeline

func (*RecentBuildsForBranchPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild) GetId

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

func (*RecentBuildsForBranchPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild) GetMessage

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

func (*RecentBuildsForBranchPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild) GetNumber

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

func (*RecentBuildsForBranchPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild) GetUrl

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

func (*RecentBuildsForBranchPipelineBuildsBuildConnectionEdgesBuildEdgeNodeBuild) GetUuid

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

type RecentBuildsForBranchResponse

type RecentBuildsForBranchResponse struct {
	// Find a pipeline
	Pipeline *RecentBuildsForBranchPipeline `json:"pipeline"`
}

RecentBuildsForBranchResponse is returned by RecentBuildsForBranch on success.

func RecentBuildsForBranch

func RecentBuildsForBranch(
	ctx_ context.Context,
	client_ graphql.Client,
	branch string,
	pipelineSlug string,
) (*RecentBuildsForBranchResponse, error)

func (*RecentBuildsForBranchResponse) GetPipeline

GetPipeline returns RecentBuildsForBranchResponse.Pipeline, 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