buildkite

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 44 Imported by: 2

Documentation

Index

Constants

View Source
const (
	SchemaKeyOrganization = "organization"
	SchemaKeyAPIToken     = "api_token"
	SchemaKeyGraphqlURL   = "graphql_url"
	SchemaKeyRestURL      = "rest_url"
)
View Source
const (
	DefaultTimeout = 30 * time.Second
)
View Source
const GetTeamFromSlug_Operation = `` /* 218-byte string literal not displayed */

The query or mutation executed by GetTeamFromSlug.

Variables

This section is empty.

Functions

func GetOrganizationID

func GetOrganizationID(slug string, client *graphql.Client) (string, error)

GetOrganizationID retrieves the Buildkite organization ID associated with the supplied slug

func GetTeamID

func GetTeamID(slug string, client *Client) (string, error)

GetTeamID retrieves the Buildkite team ID associated with the supplied team slug

func New added in v0.19.1

func New(version string) provider.Provider

New is a helper function to simplify provider server and testing implementation.

Types

type AgentTokenNode

type AgentTokenNode struct {
	Description graphql.String
	ID          graphql.String
	Token       graphql.String
	UUID        graphql.String
	RevokedAt   graphql.String
}

AgentTokenNode represents a pipeline as returned from the GraphQL API

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client can be used to interact with the Buildkite API

func NewClient

func NewClient(config *clientConfig) *Client

NewClient creates a client to use for interacting with the Buildkite API

func (Client) GetOrganizationID added in v1.2.0

func (client Client) GetOrganizationID() (*string, error)

type Cluster added in v0.19.0

type Cluster struct {
	ID graphql.String
}

PipelineNode represents a pipeline as returned from the GraphQL API

type ClusterAgentTokenValues added in v0.20.0

type ClusterAgentTokenValues struct {
	// A list of CIDR-notation IPv4 addresses from which agents can use this token. Please note that this feature is not yet available to all organizations
	AllowedIpAddresses string                         `json:"allowedIpAddresses"`
	Cluster            ClusterAgentTokenValuesCluster `json:"cluster"`
	// A description about what this cluster agent token is used for
	Description string `json:"description"`
	Id          string `json:"id"`
	// The public UUID for this cluster token
	Uuid string `json:"uuid"`
}

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

A token used to connect an agent in cluster to Buildkite

func (*ClusterAgentTokenValues) GetAllowedIpAddresses added in v1.2.0

func (v *ClusterAgentTokenValues) GetAllowedIpAddresses() string

GetAllowedIpAddresses returns ClusterAgentTokenValues.AllowedIpAddresses, and is useful for accessing the field via an interface.

func (*ClusterAgentTokenValues) GetCluster added in v0.20.0

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

func (*ClusterAgentTokenValues) GetDescription added in v0.20.0

func (v *ClusterAgentTokenValues) GetDescription() string

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

func (*ClusterAgentTokenValues) GetId added in v0.20.0

func (v *ClusterAgentTokenValues) GetId() string

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

func (*ClusterAgentTokenValues) GetUuid added in v0.20.0

func (v *ClusterAgentTokenValues) GetUuid() string

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

type ClusterAgentTokenValuesCluster added in v0.20.0

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

ClusterAgentTokenValuesCluster includes the requested fields of the GraphQL type Cluster.

func (*ClusterAgentTokenValuesCluster) GetId added in v0.20.0

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

func (*ClusterAgentTokenValuesCluster) GetUuid added in v0.20.0

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

type ClusterFields added in v0.20.0

type ClusterFields struct {
	Id string `json:"id"`
	// The public UUID for this cluster
	Uuid string `json:"uuid"`
	// Name of the cluster
	Name string `json:"name"`
	// Description of the cluster
	Description *string `json:"description"`
	// Emoji for the cluster using Buildkite emoji syntax
	Emoji *string `json:"emoji"`
	// Color hex code for the cluster
	Color *string `json:"color"`
	// The default queue that agents connecting to the cluster without specifying a queue will accept jobs from
	DefaultQueue *ClusterFieldsDefaultQueueClusterQueue `json:"defaultQueue"`
}

ClusterFields includes the GraphQL fields of Cluster requested by the fragment ClusterFields.

func (*ClusterFields) GetColor added in v0.20.0

func (v *ClusterFields) GetColor() *string

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

func (*ClusterFields) GetDefaultQueue added in v1.0.0

GetDefaultQueue returns ClusterFields.DefaultQueue, and is useful for accessing the field via an interface.

func (*ClusterFields) GetDescription added in v0.20.0

func (v *ClusterFields) GetDescription() *string

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

func (*ClusterFields) GetEmoji added in v0.20.0

func (v *ClusterFields) GetEmoji() *string

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

func (*ClusterFields) GetId added in v0.20.0

func (v *ClusterFields) GetId() string

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

func (*ClusterFields) GetName added in v0.20.0

func (v *ClusterFields) GetName() string

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

func (*ClusterFields) GetUuid added in v0.20.0

func (v *ClusterFields) GetUuid() string

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

type ClusterFieldsDefaultQueueClusterQueue added in v1.0.0

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

ClusterFieldsDefaultQueueClusterQueue includes the requested fields of the GraphQL type ClusterQueue.

func (*ClusterFieldsDefaultQueueClusterQueue) GetDescription added in v1.0.0

func (v *ClusterFieldsDefaultQueueClusterQueue) GetDescription() *string

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

func (*ClusterFieldsDefaultQueueClusterQueue) GetId added in v1.0.0

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

func (*ClusterFieldsDefaultQueueClusterQueue) GetKey added in v1.0.0

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

func (*ClusterFieldsDefaultQueueClusterQueue) GetUuid added in v1.0.0

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

type ClusterQueueValues added in v0.20.0

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

ClusterQueueValues includes the GraphQL fields of ClusterQueue requested by the fragment ClusterQueueValues.

func (*ClusterQueueValues) GetCluster added in v0.20.0

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

func (*ClusterQueueValues) GetDescription added in v0.20.0

func (v *ClusterQueueValues) GetDescription() *string

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

func (*ClusterQueueValues) GetId added in v0.20.0

func (v *ClusterQueueValues) GetId() string

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

func (*ClusterQueueValues) GetKey added in v0.20.0

func (v *ClusterQueueValues) GetKey() string

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

func (*ClusterQueueValues) GetUuid added in v0.20.0

func (v *ClusterQueueValues) GetUuid() string

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

type ClusterQueueValuesCluster added in v0.20.0

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

ClusterQueueValuesCluster includes the requested fields of the GraphQL type Cluster.

func (*ClusterQueueValuesCluster) GetId added in v0.20.0

func (v *ClusterQueueValuesCluster) GetId() string

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

func (*ClusterQueueValuesCluster) GetUuid added in v0.20.0

func (v *ClusterQueueValuesCluster) GetUuid() string

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

type GetTeamFromSlugResponse added in v0.21.0

type GetTeamFromSlugResponse struct {
	// Find a team
	Team GetTeamFromSlugTeam `json:"team"`
}

GetTeamFromSlugResponse is returned by GetTeamFromSlug on success.

func GetTeamFromSlug added in v0.21.0

func GetTeamFromSlug(
	ctx context.Context,
	client graphql.Client,
	slug string,
) (*GetTeamFromSlugResponse, error)

func (*GetTeamFromSlugResponse) GetTeam added in v0.21.0

GetTeam returns GetTeamFromSlugResponse.Team, and is useful for accessing the field via an interface.

type GetTeamFromSlugTeam added in v0.21.0

type GetTeamFromSlugTeam struct {
	TeamFields `json:"-"`
}

GetTeamFromSlugTeam includes the requested fields of the GraphQL type Team. The GraphQL type's documentation follows.

An organization team

func (*GetTeamFromSlugTeam) GetDefaultMemberRole added in v0.21.0

func (v *GetTeamFromSlugTeam) GetDefaultMemberRole() string

GetDefaultMemberRole returns GetTeamFromSlugTeam.DefaultMemberRole, and is useful for accessing the field via an interface.

func (*GetTeamFromSlugTeam) GetDescription added in v0.21.0

func (v *GetTeamFromSlugTeam) GetDescription() *string

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

func (*GetTeamFromSlugTeam) GetId added in v0.21.0

func (v *GetTeamFromSlugTeam) GetId() string

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

func (*GetTeamFromSlugTeam) GetIsDefaultTeam added in v0.21.0

func (v *GetTeamFromSlugTeam) GetIsDefaultTeam() bool

GetIsDefaultTeam returns GetTeamFromSlugTeam.IsDefaultTeam, and is useful for accessing the field via an interface.

func (*GetTeamFromSlugTeam) GetMembersCanCreatePipelines added in v0.21.0

func (v *GetTeamFromSlugTeam) GetMembersCanCreatePipelines() bool

GetMembersCanCreatePipelines returns GetTeamFromSlugTeam.MembersCanCreatePipelines, and is useful for accessing the field via an interface.

func (*GetTeamFromSlugTeam) GetName added in v0.21.0

func (v *GetTeamFromSlugTeam) GetName() string

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

func (*GetTeamFromSlugTeam) GetPrivacy added in v0.21.0

func (v *GetTeamFromSlugTeam) GetPrivacy() string

GetPrivacy returns GetTeamFromSlugTeam.Privacy, and is useful for accessing the field via an interface.

func (*GetTeamFromSlugTeam) GetSlug added in v0.21.0

func (v *GetTeamFromSlugTeam) GetSlug() string

GetSlug returns GetTeamFromSlugTeam.Slug, and is useful for accessing the field via an interface.

func (*GetTeamFromSlugTeam) GetUuid added in v0.21.0

func (v *GetTeamFromSlugTeam) GetUuid() string

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

func (*GetTeamFromSlugTeam) MarshalJSON added in v0.21.0

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

func (*GetTeamFromSlugTeam) UnmarshalJSON added in v0.21.0

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

type MetaResponse added in v0.4.0

type MetaResponse struct {
	WebhookIps []string `json:"webhook_ips"`
}

type OrganizationBannerFields added in v1.1.0

type OrganizationBannerFields struct {
	Id string `json:"id"`
	// The UUID of the organization banner
	Uuid string `json:"uuid"`
	// The banner message
	Message string `json:"message"`
}

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

System banner of an organization

func (*OrganizationBannerFields) GetId added in v1.1.0

func (v *OrganizationBannerFields) GetId() string

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

func (*OrganizationBannerFields) GetMessage added in v1.1.0

func (v *OrganizationBannerFields) GetMessage() string

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

func (*OrganizationBannerFields) GetUuid added in v1.1.0

func (v *OrganizationBannerFields) GetUuid() string

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

type PipelineAccessLevels

type PipelineAccessLevels string

The access levels that can be assigned to a pipeline

const (
	// Allows edits, builds and reads
	PipelineAccessLevelsManageBuildAndRead PipelineAccessLevels = "MANAGE_BUILD_AND_READ"
	// Allows builds and read only
	PipelineAccessLevelsBuildAndRead PipelineAccessLevels = "BUILD_AND_READ"
	// Read only - no builds or edits
	PipelineAccessLevelsReadOnly PipelineAccessLevels = "READ_ONLY"
)

type PipelineCreateInput added in v0.22.0

type PipelineCreateInput struct {
	// Autogenerated input type of PipelineCreate
	ClientMutationId string `json:"clientMutationId"`
	// Autogenerated input type of PipelineCreate
	OrganizationId string `json:"organizationId"`
	// Autogenerated input type of PipelineCreate
	Name string `json:"name"`
	// Autogenerated input type of PipelineCreate
	Description string `json:"description"`
	// Autogenerated input type of PipelineCreate
	Emoji *string `json:"emoji"`
	// Autogenerated input type of PipelineCreate
	Color *string `json:"color"`
	// Autogenerated input type of PipelineCreate
	Visibility PipelineVisibility `json:"visibility,omitempty"`
	// Autogenerated input type of PipelineCreate
	Repository PipelineRepositoryInput `json:"repository"`
	// Autogenerated input type of PipelineCreate
	Steps PipelineStepsInput `json:"steps"`
	// Autogenerated input type of PipelineCreate
	SkipIntermediateBuilds bool `json:"skipIntermediateBuilds"`
	// Autogenerated input type of PipelineCreate
	SkipIntermediateBuildsBranchFilter string `json:"skipIntermediateBuildsBranchFilter"`
	// Autogenerated input type of PipelineCreate
	CancelIntermediateBuilds bool `json:"cancelIntermediateBuilds"`
	// Autogenerated input type of PipelineCreate
	CancelIntermediateBuildsBranchFilter string `json:"cancelIntermediateBuildsBranchFilter"`
	// Autogenerated input type of PipelineCreate
	AllowRebuilds bool `json:"allowRebuilds"`
	// Autogenerated input type of PipelineCreate
	DefaultTimeoutInMinutes *int `json:"defaultTimeoutInMinutes"`
	// Autogenerated input type of PipelineCreate
	MaximumTimeoutInMinutes *int `json:"maximumTimeoutInMinutes"`
	// Autogenerated input type of PipelineCreate
	Teams []PipelineTeamAssignmentInput `json:"teams"`
	// Autogenerated input type of PipelineCreate
	DefaultBranch string `json:"defaultBranch"`
	// Autogenerated input type of PipelineCreate
	NextBuildNumber int `json:"nextBuildNumber,omitempty"`
	// Autogenerated input type of PipelineCreate
	ClusterId *string `json:"clusterId"`
	// Autogenerated input type of PipelineCreate
	PipelineTemplateId string `json:"pipelineTemplateId,omitempty"`
	// Autogenerated input type of PipelineCreate
	Tags []PipelineTagInput `json:"tags"`
	// Autogenerated input type of PipelineCreate
	BranchConfiguration *string `json:"branchConfiguration"`
}

Autogenerated input type of PipelineCreate

func (*PipelineCreateInput) GetAllowRebuilds added in v0.22.0

func (v *PipelineCreateInput) GetAllowRebuilds() bool

GetAllowRebuilds returns PipelineCreateInput.AllowRebuilds, and is useful for accessing the field via an interface.

func (*PipelineCreateInput) GetBranchConfiguration added in v0.22.0

func (v *PipelineCreateInput) GetBranchConfiguration() *string

GetBranchConfiguration returns PipelineCreateInput.BranchConfiguration, and is useful for accessing the field via an interface.

func (*PipelineCreateInput) GetCancelIntermediateBuilds added in v0.22.0

func (v *PipelineCreateInput) GetCancelIntermediateBuilds() bool

GetCancelIntermediateBuilds returns PipelineCreateInput.CancelIntermediateBuilds, and is useful for accessing the field via an interface.

func (*PipelineCreateInput) GetCancelIntermediateBuildsBranchFilter added in v0.22.0

func (v *PipelineCreateInput) GetCancelIntermediateBuildsBranchFilter() string

GetCancelIntermediateBuildsBranchFilter returns PipelineCreateInput.CancelIntermediateBuildsBranchFilter, and is useful for accessing the field via an interface.

func (*PipelineCreateInput) GetClientMutationId added in v0.22.0

func (v *PipelineCreateInput) GetClientMutationId() string

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

func (*PipelineCreateInput) GetClusterId added in v0.22.0

func (v *PipelineCreateInput) GetClusterId() *string

GetClusterId returns PipelineCreateInput.ClusterId, and is useful for accessing the field via an interface.

func (*PipelineCreateInput) GetColor added in v0.22.0

func (v *PipelineCreateInput) GetColor() *string

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

func (*PipelineCreateInput) GetDefaultBranch added in v0.22.0

func (v *PipelineCreateInput) GetDefaultBranch() string

GetDefaultBranch returns PipelineCreateInput.DefaultBranch, and is useful for accessing the field via an interface.

func (*PipelineCreateInput) GetDefaultTimeoutInMinutes added in v0.22.0

func (v *PipelineCreateInput) GetDefaultTimeoutInMinutes() *int

GetDefaultTimeoutInMinutes returns PipelineCreateInput.DefaultTimeoutInMinutes, and is useful for accessing the field via an interface.

func (*PipelineCreateInput) GetDescription added in v0.22.0

func (v *PipelineCreateInput) GetDescription() string

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

func (*PipelineCreateInput) GetEmoji added in v0.22.0

func (v *PipelineCreateInput) GetEmoji() *string

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

func (*PipelineCreateInput) GetMaximumTimeoutInMinutes added in v0.22.0

func (v *PipelineCreateInput) GetMaximumTimeoutInMinutes() *int

GetMaximumTimeoutInMinutes returns PipelineCreateInput.MaximumTimeoutInMinutes, and is useful for accessing the field via an interface.

func (*PipelineCreateInput) GetName added in v0.22.0

func (v *PipelineCreateInput) GetName() string

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

func (*PipelineCreateInput) GetNextBuildNumber added in v0.22.0

func (v *PipelineCreateInput) GetNextBuildNumber() int

GetNextBuildNumber returns PipelineCreateInput.NextBuildNumber, and is useful for accessing the field via an interface.

func (*PipelineCreateInput) GetOrganizationId added in v0.22.0

func (v *PipelineCreateInput) GetOrganizationId() string

GetOrganizationId returns PipelineCreateInput.OrganizationId, and is useful for accessing the field via an interface.

func (*PipelineCreateInput) GetPipelineTemplateId added in v0.22.0

func (v *PipelineCreateInput) GetPipelineTemplateId() string

GetPipelineTemplateId returns PipelineCreateInput.PipelineTemplateId, and is useful for accessing the field via an interface.

func (*PipelineCreateInput) GetRepository added in v0.22.0

func (v *PipelineCreateInput) GetRepository() PipelineRepositoryInput

GetRepository returns PipelineCreateInput.Repository, and is useful for accessing the field via an interface.

func (*PipelineCreateInput) GetSkipIntermediateBuilds added in v0.22.0

func (v *PipelineCreateInput) GetSkipIntermediateBuilds() bool

GetSkipIntermediateBuilds returns PipelineCreateInput.SkipIntermediateBuilds, and is useful for accessing the field via an interface.

func (*PipelineCreateInput) GetSkipIntermediateBuildsBranchFilter added in v0.22.0

func (v *PipelineCreateInput) GetSkipIntermediateBuildsBranchFilter() string

GetSkipIntermediateBuildsBranchFilter returns PipelineCreateInput.SkipIntermediateBuildsBranchFilter, and is useful for accessing the field via an interface.

func (*PipelineCreateInput) GetSteps added in v0.22.0

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

func (*PipelineCreateInput) GetTags added in v0.22.0

func (v *PipelineCreateInput) GetTags() []PipelineTagInput

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

func (*PipelineCreateInput) GetTeams added in v0.22.0

GetTeams returns PipelineCreateInput.Teams, and is useful for accessing the field via an interface.

func (*PipelineCreateInput) GetVisibility added in v0.22.0

func (v *PipelineCreateInput) GetVisibility() PipelineVisibility

GetVisibility returns PipelineCreateInput.Visibility, and is useful for accessing the field via an interface.

type PipelineExtraInfo added in v0.3.0

type PipelineExtraInfo struct {
	BadgeUrl string `json:"badge_url"`
	Provider struct {
		WebhookUrl string                `json:"webhook_url"`
		Settings   PipelineExtraSettings `json:"settings"`
	} `json:"provider"`
}

PipelineExtraInfo is used to manage pipeline attributes that are not exposed via GraphQL API.

type PipelineExtraSettings added in v0.24.0

type PipelineExtraSettings struct {
	TriggerMode                             *string `json:"trigger_mode,omitempty"`
	BuildPullRequests                       *bool   `json:"build_pull_requests,omitempty"`
	PullRequestBranchFilterEnabled          *bool   `json:"pull_request_branch_filter_enabled,omitempty"`
	PullRequestBranchFilterConfiguration    *string `json:"pull_request_branch_filter_configuration,omitempty"`
	SkipBuildsForExistingCommits            *bool   `json:"skip_builds_for_existing_commits,omitempty"`
	SkipPullRequestBuildsForExistingCommits *bool   `json:"skip_pull_request_builds_for_existing_commits,omitempty"`
	BuildPullRequestReadyForReview          *bool   `json:"build_pull_request_ready_for_review,omitempty"`
	BuildPullRequestLabelsChanged           *bool   `json:"build_pull_request_labels_changed,omitempty"`
	BuildPullRequestForks                   *bool   `json:"build_pull_request_forks,omitempty"`
	PrefixPullRequestForkBranchNames        *bool   `json:"prefix_pull_request_fork_branch_names,omitempty"`
	BuildBranches                           *bool   `json:"build_branches,omitempty"`
	BuildTags                               *bool   `json:"build_tags,omitempty"`
	CancelDeletedBranchBuilds               *bool   `json:"cancel_deleted_branch_builds,omitempty"`
	FilterEnabled                           *bool   `json:"filter_enabled,omitempty"`
	FilterCondition                         *string `json:"filter_condition,omitempty"`
	PublishCommitStatus                     *bool   `json:"publish_commit_status,omitempty"`
	PublishBlockedAsPending                 *bool   `json:"publish_blocked_as_pending,omitempty"`
	PublishCommitStatusPerStep              *bool   `json:"publish_commit_status_per_step,omitempty"`
	SeparatePullRequestStatuses             *bool   `json:"separate_pull_request_statuses,omitempty"`
}

type PipelineFields added in v1.1.0

type PipelineFields struct {
	Id string `json:"id"`
	// The UUID of the pipeline
	PipelineUuid string `json:"pipelineUuid"`
	// Whether existing builds can be rebuilt as new builds.
	AllowRebuilds bool `json:"allowRebuilds"`
	// A branch filter pattern to limit which pushed branches trigger builds on this pipeline.
	BranchConfiguration *string `json:"branchConfiguration"`
	// When a new build is created on a branch, any previous builds that are running on the same branch will be automatically cancelled
	CancelIntermediateBuilds bool `json:"cancelIntermediateBuilds"`
	// Limit which branches build cancelling applies to, for example `!main` will ensure that the main branch won't have it's builds automatically cancelled.
	CancelIntermediateBuildsBranchFilter string                `json:"cancelIntermediateBuildsBranchFilter"`
	Cluster                              PipelineFieldsCluster `json:"cluster"`
	// The color of the pipeline
	Color *string `json:"color"`
	// The default branch for this pipeline
	DefaultBranch string `json:"defaultBranch"`
	// The default timeout in minutes for all command steps in this pipeline. This can still be overridden in any command step
	DefaultTimeoutInMinutes *int `json:"defaultTimeoutInMinutes"`
	// The emoji of the pipeline
	Emoji *string `json:"emoji"`
	// The maximum timeout in minutes for all command steps in this pipeline. Any command step without a timeout or with a timeout greater than this value will be set to this value.
	MaximumTimeoutInMinutes *int `json:"maximumTimeoutInMinutes"`
	// The short description of the pipeline
	Description string `json:"description"`
	// The name of the pipeline
	Name string `json:"name"`
	// The repository for this pipeline
	Repository       PipelineFieldsRepository       `json:"repository"`
	PipelineTemplate PipelineFieldsPipelineTemplate `json:"pipelineTemplate"`
	// When a new build is created on a branch, any previous builds that haven't yet started on the same branch will be automatically marked as skipped.
	SkipIntermediateBuilds bool `json:"skipIntermediateBuilds"`
	// Limit which branches build skipping applies to, for example `!main` will ensure that the main branch won't have it's builds automatically skipped.
	SkipIntermediateBuildsBranchFilter string `json:"skipIntermediateBuildsBranchFilter"`
	// The slug of the pipeline
	Slug  string                           `json:"slug"`
	Steps PipelineFieldsStepsPipelineSteps `json:"steps"`
	// Tags that have been given to this pipeline
	Tags []PipelineFieldsTagsPipelineTag `json:"tags"`
	// Teams associated with this pipeline
	Teams PipelineFieldsTeamsTeamPipelineConnection `json:"teams"`
}

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

A pipeline

func (*PipelineFields) GetAllowRebuilds added in v1.1.0

func (v *PipelineFields) GetAllowRebuilds() bool

GetAllowRebuilds returns PipelineFields.AllowRebuilds, and is useful for accessing the field via an interface.

func (*PipelineFields) GetBranchConfiguration added in v1.1.0

func (v *PipelineFields) GetBranchConfiguration() *string

GetBranchConfiguration returns PipelineFields.BranchConfiguration, and is useful for accessing the field via an interface.

func (*PipelineFields) GetCancelIntermediateBuilds added in v1.1.0

func (v *PipelineFields) GetCancelIntermediateBuilds() bool

GetCancelIntermediateBuilds returns PipelineFields.CancelIntermediateBuilds, and is useful for accessing the field via an interface.

func (*PipelineFields) GetCancelIntermediateBuildsBranchFilter added in v1.1.0

func (v *PipelineFields) GetCancelIntermediateBuildsBranchFilter() string

GetCancelIntermediateBuildsBranchFilter returns PipelineFields.CancelIntermediateBuildsBranchFilter, and is useful for accessing the field via an interface.

func (*PipelineFields) GetCluster added in v1.1.0

func (v *PipelineFields) GetCluster() PipelineFieldsCluster

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

func (*PipelineFields) GetColor added in v1.1.0

func (v *PipelineFields) GetColor() *string

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

func (*PipelineFields) GetDefaultBranch added in v1.1.0

func (v *PipelineFields) GetDefaultBranch() string

GetDefaultBranch returns PipelineFields.DefaultBranch, and is useful for accessing the field via an interface.

func (*PipelineFields) GetDefaultTimeoutInMinutes added in v1.1.0

func (v *PipelineFields) GetDefaultTimeoutInMinutes() *int

GetDefaultTimeoutInMinutes returns PipelineFields.DefaultTimeoutInMinutes, and is useful for accessing the field via an interface.

func (*PipelineFields) GetDescription added in v1.1.0

func (v *PipelineFields) GetDescription() string

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

func (*PipelineFields) GetEmoji added in v1.1.0

func (v *PipelineFields) GetEmoji() *string

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

func (*PipelineFields) GetId added in v1.1.0

func (v *PipelineFields) GetId() string

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

func (*PipelineFields) GetMaximumTimeoutInMinutes added in v1.1.0

func (v *PipelineFields) GetMaximumTimeoutInMinutes() *int

GetMaximumTimeoutInMinutes returns PipelineFields.MaximumTimeoutInMinutes, and is useful for accessing the field via an interface.

func (*PipelineFields) GetName added in v1.1.0

func (v *PipelineFields) GetName() string

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

func (*PipelineFields) GetPipelineTemplate added in v1.4.0

func (v *PipelineFields) GetPipelineTemplate() PipelineFieldsPipelineTemplate

GetPipelineTemplate returns PipelineFields.PipelineTemplate, and is useful for accessing the field via an interface.

func (*PipelineFields) GetPipelineUuid added in v1.4.0

func (v *PipelineFields) GetPipelineUuid() string

GetPipelineUuid returns PipelineFields.PipelineUuid, and is useful for accessing the field via an interface.

func (*PipelineFields) GetRepository added in v1.1.0

func (v *PipelineFields) GetRepository() PipelineFieldsRepository

GetRepository returns PipelineFields.Repository, and is useful for accessing the field via an interface.

func (*PipelineFields) GetSkipIntermediateBuilds added in v1.1.0

func (v *PipelineFields) GetSkipIntermediateBuilds() bool

GetSkipIntermediateBuilds returns PipelineFields.SkipIntermediateBuilds, and is useful for accessing the field via an interface.

func (*PipelineFields) GetSkipIntermediateBuildsBranchFilter added in v1.1.0

func (v *PipelineFields) GetSkipIntermediateBuildsBranchFilter() string

GetSkipIntermediateBuildsBranchFilter returns PipelineFields.SkipIntermediateBuildsBranchFilter, and is useful for accessing the field via an interface.

func (*PipelineFields) GetSlug added in v1.1.0

func (v *PipelineFields) GetSlug() string

GetSlug returns PipelineFields.Slug, and is useful for accessing the field via an interface.

func (*PipelineFields) GetSteps added in v1.1.0

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

func (*PipelineFields) GetTags added in v1.1.0

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

func (*PipelineFields) GetTeams added in v1.4.1

GetTeams returns PipelineFields.Teams, and is useful for accessing the field via an interface.

type PipelineFieldsCluster added in v1.1.0

type PipelineFieldsCluster struct {
	Id *string `json:"id"`
}

PipelineFieldsCluster includes the requested fields of the GraphQL type Cluster.

func (*PipelineFieldsCluster) GetId added in v1.1.0

func (v *PipelineFieldsCluster) GetId() *string

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

type PipelineFieldsPipelineTemplate added in v1.4.0

type PipelineFieldsPipelineTemplate struct {
	Id *string `json:"id"`
}

PipelineFieldsPipelineTemplate includes the requested fields of the GraphQL type PipelineTemplate. The GraphQL type's documentation follows.

A template defining a fixed step configuration for a pipeline

func (*PipelineFieldsPipelineTemplate) GetId added in v1.4.0

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

type PipelineFieldsRepository added in v1.1.0

type PipelineFieldsRepository struct {
	// The git URL for this repository
	Url string `json:"url"`
}

PipelineFieldsRepository includes the requested fields of the GraphQL type Repository. The GraphQL type's documentation follows.

A repository associated with a pipeline

func (*PipelineFieldsRepository) GetUrl added in v1.1.0

func (v *PipelineFieldsRepository) GetUrl() string

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

type PipelineFieldsStepsPipelineSteps added in v1.1.0

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

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

Steps defined on a pipeline

func (*PipelineFieldsStepsPipelineSteps) GetYaml added in v1.1.0

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

type PipelineFieldsTagsPipelineTag added in v1.1.0

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

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

A tag associated with a pipeline

func (*PipelineFieldsTagsPipelineTag) GetLabel added in v1.1.0

func (v *PipelineFieldsTagsPipelineTag) GetLabel() string

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

type PipelineFieldsTeamsTeamPipelineConnection added in v1.4.1

type PipelineFieldsTeamsTeamPipelineConnection struct {
	PipelineTeam `json:"-"`
}

PipelineFieldsTeamsTeamPipelineConnection includes the requested fields of the GraphQL type TeamPipelineConnection. The GraphQL type's documentation follows.

A collection of TeamPipeline records

func (*PipelineFieldsTeamsTeamPipelineConnection) GetCount added in v1.4.1

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

func (*PipelineFieldsTeamsTeamPipelineConnection) GetEdges added in v1.4.1

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

func (*PipelineFieldsTeamsTeamPipelineConnection) GetPageInfo added in v1.4.1

GetPageInfo returns PipelineFieldsTeamsTeamPipelineConnection.PageInfo, and is useful for accessing the field via an interface.

func (*PipelineFieldsTeamsTeamPipelineConnection) MarshalJSON added in v1.4.1

func (*PipelineFieldsTeamsTeamPipelineConnection) UnmarshalJSON added in v1.4.1

type PipelineNode

type PipelineNode struct {
	AllowRebuilds                        graphql.Boolean
	BranchConfiguration                  graphql.String
	CancelIntermediateBuilds             graphql.Boolean
	CancelIntermediateBuildsBranchFilter graphql.String
	Cluster                              Cluster
	DefaultBranch                        graphql.String
	DefaultTimeoutInMinutes              graphql.Int
	MaximumTimeoutInMinutes              graphql.Int
	Description                          graphql.String
	ID                                   graphql.String
	Name                                 graphql.String
	Repository                           Repository
	PipelineUuid                         graphql.String
	SkipIntermediateBuilds               graphql.Boolean
	SkipIntermediateBuildsBranchFilter   graphql.String
	Slug                                 graphql.String
	Steps                                Steps
	Tags                                 []PipelineTag
	WebhookURL                           graphql.String `graphql:"webhookURL"`
}

type PipelineRepositoryInput added in v0.19.0

type PipelineRepositoryInput struct {
	// Repository information for a pipeline
	Url string `json:"url"`
}

Repository information for a pipeline

func (*PipelineRepositoryInput) GetUrl added in v0.19.0

func (v *PipelineRepositoryInput) GetUrl() string

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

type PipelineScheduleUpdateInput added in v0.21.0

type PipelineScheduleUpdateInput struct {
	// Autogenerated input type of PipelineScheduleUpdate
	ClientMutationId string `json:"clientMutationId"`
	// Autogenerated input type of PipelineScheduleUpdate
	Id string `json:"id"`
	// Autogenerated input type of PipelineScheduleUpdate
	Label *string `json:"label"`
	// Autogenerated input type of PipelineScheduleUpdate
	Cronline *string `json:"cronline"`
	// Autogenerated input type of PipelineScheduleUpdate
	Message *string `json:"message"`
	// Autogenerated input type of PipelineScheduleUpdate
	Commit *string `json:"commit"`
	// Autogenerated input type of PipelineScheduleUpdate
	Branch *string `json:"branch"`
	// Autogenerated input type of PipelineScheduleUpdate
	Env *string `json:"env"`
	// Autogenerated input type of PipelineScheduleUpdate
	Enabled *bool `json:"enabled"`
}

Autogenerated input type of PipelineScheduleUpdate

func (*PipelineScheduleUpdateInput) GetBranch added in v0.21.0

func (v *PipelineScheduleUpdateInput) GetBranch() *string

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

func (*PipelineScheduleUpdateInput) GetClientMutationId added in v0.21.0

func (v *PipelineScheduleUpdateInput) GetClientMutationId() string

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

func (*PipelineScheduleUpdateInput) GetCommit added in v0.21.0

func (v *PipelineScheduleUpdateInput) GetCommit() *string

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

func (*PipelineScheduleUpdateInput) GetCronline added in v0.21.0

func (v *PipelineScheduleUpdateInput) GetCronline() *string

GetCronline returns PipelineScheduleUpdateInput.Cronline, and is useful for accessing the field via an interface.

func (*PipelineScheduleUpdateInput) GetEnabled added in v0.21.0

func (v *PipelineScheduleUpdateInput) GetEnabled() *bool

GetEnabled returns PipelineScheduleUpdateInput.Enabled, and is useful for accessing the field via an interface.

func (*PipelineScheduleUpdateInput) GetEnv added in v0.21.0

func (v *PipelineScheduleUpdateInput) GetEnv() *string

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

func (*PipelineScheduleUpdateInput) GetId added in v0.21.0

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

func (*PipelineScheduleUpdateInput) GetLabel added in v0.21.0

func (v *PipelineScheduleUpdateInput) GetLabel() *string

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

func (*PipelineScheduleUpdateInput) GetMessage added in v0.21.0

func (v *PipelineScheduleUpdateInput) GetMessage() *string

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

type PipelineScheduleValues added in v0.21.0

type PipelineScheduleValues struct {
	Id string `json:"id"`
	// The UUID of the Pipeline schedule
	Uuid string `json:"uuid"`
	// A short description of the Pipeline schedule
	Label *string `json:"label"`
	// A definition of the trigger build schedule in cron syntax
	Cronline *string `json:"cronline"`
	// The message to use for builds that this schedule triggers
	Message *string `json:"message"`
	// The commit to use for builds that this schedule triggers. Defaults to `HEAD`
	Commit *string `json:"commit"`
	// The branch to use for builds that this schedule triggers. Defaults to to the default branch in the Pipeline
	Branch *string `json:"branch"`
	// Environment variables passed to any triggered builds
	Env []*string `json:"env"`
	// If this Pipeline schedule is currently enabled
	Enabled  bool                           `json:"enabled"`
	Pipeline PipelineScheduleValuesPipeline `json:"pipeline"`
}

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

A schedule of when a build should automatically triggered for a Pipeline

func (*PipelineScheduleValues) GetBranch added in v0.21.0

func (v *PipelineScheduleValues) GetBranch() *string

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

func (*PipelineScheduleValues) GetCommit added in v0.21.0

func (v *PipelineScheduleValues) GetCommit() *string

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

func (*PipelineScheduleValues) GetCronline added in v0.21.0

func (v *PipelineScheduleValues) GetCronline() *string

GetCronline returns PipelineScheduleValues.Cronline, and is useful for accessing the field via an interface.

func (*PipelineScheduleValues) GetEnabled added in v0.21.0

func (v *PipelineScheduleValues) GetEnabled() bool

GetEnabled returns PipelineScheduleValues.Enabled, and is useful for accessing the field via an interface.

func (*PipelineScheduleValues) GetEnv added in v0.21.0

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

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

func (*PipelineScheduleValues) GetId added in v0.21.0

func (v *PipelineScheduleValues) GetId() string

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

func (*PipelineScheduleValues) GetLabel added in v0.21.0

func (v *PipelineScheduleValues) GetLabel() *string

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

func (*PipelineScheduleValues) GetMessage added in v0.21.0

func (v *PipelineScheduleValues) GetMessage() *string

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

func (*PipelineScheduleValues) GetPipeline added in v0.21.0

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

func (*PipelineScheduleValues) GetUuid added in v0.21.0

func (v *PipelineScheduleValues) GetUuid() string

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

type PipelineScheduleValuesPipeline added in v0.21.0

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

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

A pipeline

func (*PipelineScheduleValuesPipeline) GetId added in v0.21.0

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

type PipelineStepsInput added in v0.19.0

type PipelineStepsInput struct {
	// Step definition for a pipeline
	Yaml string `json:"yaml"`
}

Step definition for a pipeline

func (*PipelineStepsInput) GetYaml added in v0.19.0

func (v *PipelineStepsInput) GetYaml() string

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

type PipelineTag added in v0.9.0

type PipelineTag struct {
	Label graphql.String
}

type PipelineTagInput added in v0.9.0

type PipelineTagInput struct {
	// Tag associated with a pipeline
	Label string `json:"label"`
}

Tag associated with a pipeline

func (*PipelineTagInput) GetLabel added in v0.19.0

func (v *PipelineTagInput) GetLabel() string

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

type PipelineTeam added in v0.27.1

type PipelineTeam struct {
	PageInfo PipelineTeamPageInfo                `json:"pageInfo"`
	Count    int                                 `json:"count"`
	Edges    []PipelineTeamEdgesTeamPipelineEdge `json:"edges"`
}

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

A collection of TeamPipeline records

func (*PipelineTeam) GetCount added in v0.27.1

func (v *PipelineTeam) GetCount() int

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

func (*PipelineTeam) GetEdges added in v0.27.1

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

func (*PipelineTeam) GetPageInfo added in v0.27.1

func (v *PipelineTeam) GetPageInfo() PipelineTeamPageInfo

GetPageInfo returns PipelineTeam.PageInfo, and is useful for accessing the field via an interface.

type PipelineTeamAssignmentInput added in v0.2.0

type PipelineTeamAssignmentInput struct {
	// Used to assign teams to pipelines
	Id string `json:"id"`
	// Used to assign teams to pipelines
	AccessLevel PipelineAccessLevels `json:"accessLevel"`
}

Used to assign teams to pipelines

func (*PipelineTeamAssignmentInput) GetAccessLevel added in v0.22.0

GetAccessLevel returns PipelineTeamAssignmentInput.AccessLevel, and is useful for accessing the field via an interface.

func (*PipelineTeamAssignmentInput) GetId added in v0.22.0

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

type PipelineTeamEdgesTeamPipelineEdge added in v0.27.1

type PipelineTeamEdgesTeamPipelineEdge struct {
	Cursor string                                            `json:"cursor"`
	Node   PipelineTeamEdgesTeamPipelineEdgeNodeTeamPipeline `json:"node"`
}

PipelineTeamEdgesTeamPipelineEdge includes the requested fields of the GraphQL type TeamPipelineEdge.

func (*PipelineTeamEdgesTeamPipelineEdge) GetCursor added in v0.27.1

GetCursor returns PipelineTeamEdgesTeamPipelineEdge.Cursor, and is useful for accessing the field via an interface.

func (*PipelineTeamEdgesTeamPipelineEdge) GetNode added in v0.27.1

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

type PipelineTeamEdgesTeamPipelineEdgeNodeTeamPipeline added in v0.27.1

type PipelineTeamEdgesTeamPipelineEdgeNodeTeamPipeline struct {
	Id string `json:"id"`
	// The access level users have to this pipeline
	AccessLevel PipelineAccessLevels `json:"accessLevel"`
	// The team associated with this team member
	Team PipelineTeamEdgesTeamPipelineEdgeNodeTeamPipelineTeam `json:"team"`
}

PipelineTeamEdgesTeamPipelineEdgeNodeTeamPipeline includes the requested fields of the GraphQL type TeamPipeline. The GraphQL type's documentation follows.

An pipeline that's been assigned to a team

func (*PipelineTeamEdgesTeamPipelineEdgeNodeTeamPipeline) GetAccessLevel added in v0.27.1

GetAccessLevel returns PipelineTeamEdgesTeamPipelineEdgeNodeTeamPipeline.AccessLevel, and is useful for accessing the field via an interface.

func (*PipelineTeamEdgesTeamPipelineEdgeNodeTeamPipeline) GetId added in v0.27.1

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

func (*PipelineTeamEdgesTeamPipelineEdgeNodeTeamPipeline) GetTeam added in v0.27.1

GetTeam returns PipelineTeamEdgesTeamPipelineEdgeNodeTeamPipeline.Team, and is useful for accessing the field via an interface.

type PipelineTeamEdgesTeamPipelineEdgeNodeTeamPipelineTeam added in v0.27.1

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

PipelineTeamEdgesTeamPipelineEdgeNodeTeamPipelineTeam includes the requested fields of the GraphQL type Team. The GraphQL type's documentation follows.

An organization team

func (*PipelineTeamEdgesTeamPipelineEdgeNodeTeamPipelineTeam) GetId added in v0.27.1

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

type PipelineTeamPageInfo added in v0.27.1

type PipelineTeamPageInfo struct {
	// When paginating forwards, the cursor to continue.
	EndCursor string `json:"endCursor"`
	// When paginating forwards, are there more items?
	HasNextPage bool `json:"hasNextPage"`
}

PipelineTeamPageInfo includes the requested fields of the GraphQL type PageInfo. The GraphQL type's documentation follows.

Information about pagination in a connection.

func (*PipelineTeamPageInfo) GetEndCursor added in v0.27.1

func (v *PipelineTeamPageInfo) GetEndCursor() string

GetEndCursor returns PipelineTeamPageInfo.EndCursor, and is useful for accessing the field via an interface.

func (*PipelineTeamPageInfo) GetHasNextPage added in v0.27.1

func (v *PipelineTeamPageInfo) GetHasNextPage() bool

GetHasNextPage returns PipelineTeamPageInfo.HasNextPage, and is useful for accessing the field via an interface.

type PipelineTemplateFields added in v1.1.0

type PipelineTemplateFields struct {
	Id string `json:"id"`
	// The UUID for the template
	Uuid string `json:"uuid"`
	// If the pipeline template is available for assignment by non admin users
	Available bool `json:"available"`
	// A YAML representation of the step configuration
	Configuration string `json:"configuration"`
	// The short description of the template
	Description *string `json:"description"`
	// The name of the template
	Name string `json:"name"`
}

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

A template defining a fixed step configuration for a pipeline

func (*PipelineTemplateFields) GetAvailable added in v1.1.0

func (v *PipelineTemplateFields) GetAvailable() bool

GetAvailable returns PipelineTemplateFields.Available, and is useful for accessing the field via an interface.

func (*PipelineTemplateFields) GetConfiguration added in v1.1.0

func (v *PipelineTemplateFields) GetConfiguration() string

GetConfiguration returns PipelineTemplateFields.Configuration, and is useful for accessing the field via an interface.

func (*PipelineTemplateFields) GetDescription added in v1.1.0

func (v *PipelineTemplateFields) GetDescription() *string

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

func (*PipelineTemplateFields) GetId added in v1.1.0

func (v *PipelineTemplateFields) GetId() string

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

func (*PipelineTemplateFields) GetName added in v1.1.0

func (v *PipelineTemplateFields) GetName() string

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

func (*PipelineTemplateFields) GetUuid added in v1.1.0

func (v *PipelineTemplateFields) GetUuid() string

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

type PipelineUpdateInput added in v0.19.0

type PipelineUpdateInput struct {
	// Autogenerated input type of PipelineUpdate
	ClientMutationId string `json:"clientMutationId"`
	// Autogenerated input type of PipelineUpdate
	Id string `json:"id"`
	// Autogenerated input type of PipelineUpdate
	Name string `json:"name"`
	// Autogenerated input type of PipelineUpdate
	Description string `json:"description"`
	// Autogenerated input type of PipelineUpdate
	Emoji *string `json:"emoji"`
	// Autogenerated input type of PipelineUpdate
	Color *string `json:"color"`
	// Autogenerated input type of PipelineUpdate
	Visibility PipelineVisibility `json:"visibility,omitempty"`
	// Autogenerated input type of PipelineUpdate
	Repository PipelineRepositoryInput `json:"repository"`
	// Autogenerated input type of PipelineUpdate
	Steps PipelineStepsInput `json:"steps"`
	// Autogenerated input type of PipelineUpdate
	DefaultBranch string `json:"defaultBranch"`
	// Autogenerated input type of PipelineUpdate
	NextBuildNumber int `json:"nextBuildNumber,omitempty"`
	// Autogenerated input type of PipelineUpdate
	SkipIntermediateBuilds bool `json:"skipIntermediateBuilds"`
	// Autogenerated input type of PipelineUpdate
	SkipIntermediateBuildsBranchFilter string `json:"skipIntermediateBuildsBranchFilter"`
	// Autogenerated input type of PipelineUpdate
	CancelIntermediateBuilds bool `json:"cancelIntermediateBuilds"`
	// Autogenerated input type of PipelineUpdate
	CancelIntermediateBuildsBranchFilter string `json:"cancelIntermediateBuildsBranchFilter"`
	// Autogenerated input type of PipelineUpdate
	AllowRebuilds bool `json:"allowRebuilds"`
	// Autogenerated input type of PipelineUpdate
	DefaultTimeoutInMinutes *int `json:"defaultTimeoutInMinutes"`
	// Autogenerated input type of PipelineUpdate
	MaximumTimeoutInMinutes *int `json:"maximumTimeoutInMinutes"`
	// Autogenerated input type of PipelineUpdate
	ClusterId *string `json:"clusterId"`
	// Autogenerated input type of PipelineUpdate
	PipelineTemplateId string `json:"pipelineTemplateId,omitempty"`
	// Autogenerated input type of PipelineUpdate
	Archived bool `json:"archived,omitempty"`
	// Autogenerated input type of PipelineUpdate
	Tags []PipelineTagInput `json:"tags"`
	// Autogenerated input type of PipelineUpdate
	BranchConfiguration *string `json:"branchConfiguration"`
}

Autogenerated input type of PipelineUpdate

func (*PipelineUpdateInput) GetAllowRebuilds added in v0.19.0

func (v *PipelineUpdateInput) GetAllowRebuilds() bool

GetAllowRebuilds returns PipelineUpdateInput.AllowRebuilds, and is useful for accessing the field via an interface.

func (*PipelineUpdateInput) GetArchived added in v0.19.0

func (v *PipelineUpdateInput) GetArchived() bool

GetArchived returns PipelineUpdateInput.Archived, and is useful for accessing the field via an interface.

func (*PipelineUpdateInput) GetBranchConfiguration added in v0.19.0

func (v *PipelineUpdateInput) GetBranchConfiguration() *string

GetBranchConfiguration returns PipelineUpdateInput.BranchConfiguration, and is useful for accessing the field via an interface.

func (*PipelineUpdateInput) GetCancelIntermediateBuilds added in v0.19.0

func (v *PipelineUpdateInput) GetCancelIntermediateBuilds() bool

GetCancelIntermediateBuilds returns PipelineUpdateInput.CancelIntermediateBuilds, and is useful for accessing the field via an interface.

func (*PipelineUpdateInput) GetCancelIntermediateBuildsBranchFilter added in v0.19.0

func (v *PipelineUpdateInput) GetCancelIntermediateBuildsBranchFilter() string

GetCancelIntermediateBuildsBranchFilter returns PipelineUpdateInput.CancelIntermediateBuildsBranchFilter, and is useful for accessing the field via an interface.

func (*PipelineUpdateInput) GetClientMutationId added in v0.19.0

func (v *PipelineUpdateInput) GetClientMutationId() string

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

func (*PipelineUpdateInput) GetClusterId added in v0.19.0

func (v *PipelineUpdateInput) GetClusterId() *string

GetClusterId returns PipelineUpdateInput.ClusterId, and is useful for accessing the field via an interface.

func (*PipelineUpdateInput) GetColor added in v0.19.0

func (v *PipelineUpdateInput) GetColor() *string

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

func (*PipelineUpdateInput) GetDefaultBranch added in v0.19.0

func (v *PipelineUpdateInput) GetDefaultBranch() string

GetDefaultBranch returns PipelineUpdateInput.DefaultBranch, and is useful for accessing the field via an interface.

func (*PipelineUpdateInput) GetDefaultTimeoutInMinutes added in v0.19.0

func (v *PipelineUpdateInput) GetDefaultTimeoutInMinutes() *int

GetDefaultTimeoutInMinutes returns PipelineUpdateInput.DefaultTimeoutInMinutes, and is useful for accessing the field via an interface.

func (*PipelineUpdateInput) GetDescription added in v0.19.0

func (v *PipelineUpdateInput) GetDescription() string

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

func (*PipelineUpdateInput) GetEmoji added in v0.19.0

func (v *PipelineUpdateInput) GetEmoji() *string

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

func (*PipelineUpdateInput) GetId added in v0.19.0

func (v *PipelineUpdateInput) GetId() string

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

func (*PipelineUpdateInput) GetMaximumTimeoutInMinutes added in v0.19.0

func (v *PipelineUpdateInput) GetMaximumTimeoutInMinutes() *int

GetMaximumTimeoutInMinutes returns PipelineUpdateInput.MaximumTimeoutInMinutes, and is useful for accessing the field via an interface.

func (*PipelineUpdateInput) GetName added in v0.19.0

func (v *PipelineUpdateInput) GetName() string

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

func (*PipelineUpdateInput) GetNextBuildNumber added in v0.19.0

func (v *PipelineUpdateInput) GetNextBuildNumber() int

GetNextBuildNumber returns PipelineUpdateInput.NextBuildNumber, and is useful for accessing the field via an interface.

func (*PipelineUpdateInput) GetPipelineTemplateId added in v0.20.0

func (v *PipelineUpdateInput) GetPipelineTemplateId() string

GetPipelineTemplateId returns PipelineUpdateInput.PipelineTemplateId, and is useful for accessing the field via an interface.

func (*PipelineUpdateInput) GetRepository added in v0.19.0

func (v *PipelineUpdateInput) GetRepository() PipelineRepositoryInput

GetRepository returns PipelineUpdateInput.Repository, and is useful for accessing the field via an interface.

func (*PipelineUpdateInput) GetSkipIntermediateBuilds added in v0.19.0

func (v *PipelineUpdateInput) GetSkipIntermediateBuilds() bool

GetSkipIntermediateBuilds returns PipelineUpdateInput.SkipIntermediateBuilds, and is useful for accessing the field via an interface.

func (*PipelineUpdateInput) GetSkipIntermediateBuildsBranchFilter added in v0.19.0

func (v *PipelineUpdateInput) GetSkipIntermediateBuildsBranchFilter() string

GetSkipIntermediateBuildsBranchFilter returns PipelineUpdateInput.SkipIntermediateBuildsBranchFilter, and is useful for accessing the field via an interface.

func (*PipelineUpdateInput) GetSteps added in v0.19.0

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

func (*PipelineUpdateInput) GetTags added in v0.19.0

func (v *PipelineUpdateInput) GetTags() []PipelineTagInput

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

func (*PipelineUpdateInput) GetVisibility added in v0.19.0

func (v *PipelineUpdateInput) GetVisibility() PipelineVisibility

GetVisibility returns PipelineUpdateInput.Visibility, and is useful for accessing the field via an interface.

type PipelineVisibility added in v0.19.0

type PipelineVisibility string

The visibility of the pipeline

const (
	// The pipeline is public
	PipelineVisibilityPublic PipelineVisibility = "PUBLIC"
	// The pipeline is private
	PipelineVisibilityPrivate PipelineVisibility = "PRIVATE"
)

type Repository added in v0.19.0

type Repository struct {
	URL graphql.String
}

type Steps added in v0.19.0

type Steps struct {
	YAML graphql.String
}

type SuiteAccessLevels added in v0.22.0

type SuiteAccessLevels string

The access levels that can be assigned to a suite

const (
	// Allows edits and reads
	SuiteAccessLevelsManageAndRead SuiteAccessLevels = "MANAGE_AND_READ"
	// Read only
	SuiteAccessLevelsReadOnly SuiteAccessLevels = "READ_ONLY"
)

type TeamFields added in v0.21.0

type TeamFields struct {
	Id string `json:"id"`
	// The public UUID for this team
	Uuid string `json:"uuid"`
	// The name of the team
	Name string `json:"name"`
	// A description of the team
	Description *string `json:"description"`
	// The slug of the team
	Slug string `json:"slug"`
	// The privacy setting for this team
	Privacy string `json:"privacy"`
	// Add new organization members to this team by default
	IsDefaultTeam bool `json:"isDefaultTeam"`
	// New organization members will be granted this role on this team
	DefaultMemberRole string `json:"defaultMemberRole"`
	// Whether or not team members can create new pipelines in this team
	MembersCanCreatePipelines bool `json:"membersCanCreatePipelines"`
}

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

An organization team

func (*TeamFields) GetDefaultMemberRole added in v0.21.0

func (v *TeamFields) GetDefaultMemberRole() string

GetDefaultMemberRole returns TeamFields.DefaultMemberRole, and is useful for accessing the field via an interface.

func (*TeamFields) GetDescription added in v0.21.0

func (v *TeamFields) GetDescription() *string

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

func (*TeamFields) GetId added in v0.21.0

func (v *TeamFields) GetId() string

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

func (*TeamFields) GetIsDefaultTeam added in v0.21.0

func (v *TeamFields) GetIsDefaultTeam() bool

GetIsDefaultTeam returns TeamFields.IsDefaultTeam, and is useful for accessing the field via an interface.

func (*TeamFields) GetMembersCanCreatePipelines added in v0.21.0

func (v *TeamFields) GetMembersCanCreatePipelines() bool

GetMembersCanCreatePipelines returns TeamFields.MembersCanCreatePipelines, and is useful for accessing the field via an interface.

func (*TeamFields) GetName added in v0.21.0

func (v *TeamFields) GetName() string

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

func (*TeamFields) GetPrivacy added in v0.21.0

func (v *TeamFields) GetPrivacy() string

GetPrivacy returns TeamFields.Privacy, and is useful for accessing the field via an interface.

func (*TeamFields) GetSlug added in v0.21.0

func (v *TeamFields) GetSlug() string

GetSlug returns TeamFields.Slug, and is useful for accessing the field via an interface.

func (*TeamFields) GetUuid added in v0.21.0

func (v *TeamFields) GetUuid() string

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

type TeamMemberFields added in v1.1.0

type TeamMemberFields struct {
	Id string `json:"id"`
	// The public UUID for this team member
	Uuid string `json:"uuid"`
	// The team associated with this team member
	Team TeamMemberFieldsTeam `json:"team"`
	// The user associated with this team member
	User TeamMemberFieldsUser `json:"user"`
	// The users role within the team
	Role string `json:"role"`
}

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

An member of a team

func (*TeamMemberFields) GetId added in v1.1.0

func (v *TeamMemberFields) GetId() string

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

func (*TeamMemberFields) GetRole added in v1.1.0

func (v *TeamMemberFields) GetRole() string

GetRole returns TeamMemberFields.Role, and is useful for accessing the field via an interface.

func (*TeamMemberFields) GetTeam added in v1.1.0

GetTeam returns TeamMemberFields.Team, and is useful for accessing the field via an interface.

func (*TeamMemberFields) GetUser added in v1.1.0

GetUser returns TeamMemberFields.User, and is useful for accessing the field via an interface.

func (*TeamMemberFields) GetUuid added in v1.1.0

func (v *TeamMemberFields) GetUuid() string

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

type TeamMemberFieldsTeam added in v1.1.0

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

TeamMemberFieldsTeam includes the requested fields of the GraphQL type Team. The GraphQL type's documentation follows.

An organization team

func (*TeamMemberFieldsTeam) GetId added in v1.1.0

func (v *TeamMemberFieldsTeam) GetId() string

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

type TeamMemberFieldsUser added in v1.1.0

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

TeamMemberFieldsUser includes the requested fields of the GraphQL type User. The GraphQL type's documentation follows.

A user

func (*TeamMemberFieldsUser) GetId added in v1.1.0

func (v *TeamMemberFieldsUser) GetId() string

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

type TeamNode

type TeamNode struct {
	Description               graphql.String
	ID                        graphql.String
	IsDefaultTeam             graphql.Boolean
	DefaultMemberRole         graphql.String
	Name                      graphql.String
	MembersCanCreatePipelines graphql.Boolean
	Privacy                   graphql.String
	Slug                      graphql.String
	UUID                      graphql.String
}

This is required due to the getTeam function not using Genqlient

type TeamPipelineFields added in v0.25.0

type TeamPipelineFields struct {
	Id string `json:"id"`
	// The public UUID for this team member
	Uuid string `json:"uuid"`
	// The access level users have to this pipeline
	PipelineAccessLevel PipelineAccessLevels `json:"pipelineAccessLevel"`
	// The team associated with this team member
	Team TeamPipelineFieldsTeam `json:"team"`
	// The pipeline associated with this team member
	Pipeline TeamPipelineFieldsPipeline `json:"pipeline"`
}

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

An pipeline that's been assigned to a team

func (*TeamPipelineFields) GetId added in v0.25.0

func (v *TeamPipelineFields) GetId() string

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

func (*TeamPipelineFields) GetPipeline added in v0.25.0

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

func (*TeamPipelineFields) GetPipelineAccessLevel added in v0.25.0

func (v *TeamPipelineFields) GetPipelineAccessLevel() PipelineAccessLevels

GetPipelineAccessLevel returns TeamPipelineFields.PipelineAccessLevel, and is useful for accessing the field via an interface.

func (*TeamPipelineFields) GetTeam added in v0.25.0

GetTeam returns TeamPipelineFields.Team, and is useful for accessing the field via an interface.

func (*TeamPipelineFields) GetUuid added in v0.25.0

func (v *TeamPipelineFields) GetUuid() string

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

type TeamPipelineFieldsPipeline added in v0.25.0

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

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

A pipeline

func (*TeamPipelineFieldsPipeline) GetId added in v0.25.0

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

type TeamPipelineFieldsTeam added in v0.25.0

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

TeamPipelineFieldsTeam includes the requested fields of the GraphQL type Team. The GraphQL type's documentation follows.

An organization team

func (*TeamPipelineFieldsTeam) GetId added in v0.25.0

func (v *TeamPipelineFieldsTeam) GetId() string

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

type TeamSuiteFields added in v0.23.0

type TeamSuiteFields struct {
	Id string `json:"id"`
	// The public UUID for this team suite
	TeamSuiteUuid string `json:"teamSuiteUuid"`
	// The access level users have to this suite
	AccessLevel SuiteAccessLevels `json:"accessLevel"`
	// The team associated with this team member
	Team TeamSuiteFieldsTeam `json:"team"`
	// The suite associated with this team member
	Suite TeamSuiteFieldsSuite `json:"suite"`
}

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

A suite that's been assigned to a team

func (*TeamSuiteFields) GetAccessLevel added in v0.23.0

func (v *TeamSuiteFields) GetAccessLevel() SuiteAccessLevels

GetAccessLevel returns TeamSuiteFields.AccessLevel, and is useful for accessing the field via an interface.

func (*TeamSuiteFields) GetId added in v0.23.0

func (v *TeamSuiteFields) GetId() string

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

func (*TeamSuiteFields) GetSuite added in v0.23.0

func (v *TeamSuiteFields) GetSuite() TeamSuiteFieldsSuite

GetSuite returns TeamSuiteFields.Suite, and is useful for accessing the field via an interface.

func (*TeamSuiteFields) GetTeam added in v0.23.0

func (v *TeamSuiteFields) GetTeam() TeamSuiteFieldsTeam

GetTeam returns TeamSuiteFields.Team, and is useful for accessing the field via an interface.

func (*TeamSuiteFields) GetTeamSuiteUuid added in v0.23.0

func (v *TeamSuiteFields) GetTeamSuiteUuid() string

GetTeamSuiteUuid returns TeamSuiteFields.TeamSuiteUuid, and is useful for accessing the field via an interface.

type TeamSuiteFieldsSuite added in v0.23.0

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

TeamSuiteFieldsSuite includes the requested fields of the GraphQL type Suite. The GraphQL type's documentation follows.

A suite

func (*TeamSuiteFieldsSuite) GetId added in v0.23.0

func (v *TeamSuiteFieldsSuite) GetId() string

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

type TeamSuiteFieldsTeam added in v0.23.0

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

TeamSuiteFieldsTeam includes the requested fields of the GraphQL type Team. The GraphQL type's documentation follows.

An organization team

func (*TeamSuiteFieldsTeam) GetId added in v0.23.0

func (v *TeamSuiteFieldsTeam) GetId() string

GetId returns TeamSuiteFieldsTeam.Id, 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