bkgql

package
v3.87.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

package bkgql contains a client to the Buildkite GraphQL API

Index

Constants

View Source
const (
	DefaultEndpoint = "https://graphql.buildkite.com/v1"
)
View Source
const GetPipeline_Operation = `` /* 139-byte string literal not displayed */

The query or mutation executed by GetPipeline.

View Source
const UpdatePipeline_Operation = `` /* 174-byte string literal not displayed */

The query or mutation executed by UpdatePipeline.

Variables

This section is empty.

Functions

func NewClient

func NewClient(endpoint, token string) graphql.Client

Types

type GetPipelinePipeline

type GetPipelinePipeline struct {
	Id string `json:"id"`
	// The repository for this pipeline
	Repository GetPipelinePipelineRepository `json:"repository"`
	Steps      GetPipelinePipelineSteps      `json:"steps"`
}

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

A pipeline

func (*GetPipelinePipeline) GetId

func (v *GetPipelinePipeline) GetId() string

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

func (*GetPipelinePipeline) GetRepository

GetRepository returns GetPipelinePipeline.Repository, 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.

type GetPipelinePipelineRepository

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

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

A repository associated with a pipeline

func (*GetPipelinePipelineRepository) GetUrl

GetUrl returns GetPipelinePipelineRepository.Url, 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 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,
	orgPipelineSlug 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 UpdatePipelinePipelineUpdatePipelineUpdatePayload

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

UpdatePipelinePipelineUpdatePipelineUpdatePayload includes the requested fields of the GraphQL type PipelineUpdatePayload. The GraphQL type's documentation follows.

Autogenerated return type of PipelineUpdate.

func (*UpdatePipelinePipelineUpdatePipelineUpdatePayload) GetClientMutationId

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

func (*UpdatePipelinePipelineUpdatePipelineUpdatePayload) GetPipeline

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

type UpdatePipelinePipelineUpdatePipelineUpdatePayloadPipeline

type UpdatePipelinePipelineUpdatePipelineUpdatePayloadPipeline struct {
	Steps UpdatePipelinePipelineUpdatePipelineUpdatePayloadPipelineSteps `json:"steps"`
}

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

A pipeline

func (*UpdatePipelinePipelineUpdatePipelineUpdatePayloadPipeline) GetSteps

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

type UpdatePipelinePipelineUpdatePipelineUpdatePayloadPipelineSteps

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

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

Steps defined on a pipeline

func (*UpdatePipelinePipelineUpdatePipelineUpdatePayloadPipelineSteps) GetYaml

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

type UpdatePipelineResponse

type UpdatePipelineResponse struct {
	// Change the settings for a pipeline.
	PipelineUpdate UpdatePipelinePipelineUpdatePipelineUpdatePayload `json:"pipelineUpdate"`
}

UpdatePipelineResponse is returned by UpdatePipeline on success.

func UpdatePipeline

func UpdatePipeline(
	ctx_ context.Context,
	client_ graphql.Client,
	id string,
	yaml string,
) (*UpdatePipelineResponse, error)

func (*UpdatePipelineResponse) GetPipelineUpdate

GetPipelineUpdate returns UpdatePipelineResponse.PipelineUpdate, 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