cci

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func CreateClient

func CreateClient(baseUrl string, apiKey string) *Client

func (Client) CancelWorkflow added in v0.0.3

func (client Client) CancelWorkflow(workflowId string) error

Cancels a workflow.

func (Client) CreatePipeline

func (client Client) CreatePipeline(branch string) (int, error)

func (Client) GetBranchPipelines added in v0.0.3

func (client Client) GetBranchPipelines(branch string) ([]Pipeline, error)

Fetches the pipelines of a given VCS branch.

func (Client) GetPipelineWorkflows added in v0.0.3

func (client Client) GetPipelineWorkflows(pipelineId string) ([]Workflow, error)

Fetches the workflows of a given pipeline.

type Pipeline added in v0.0.3

type Pipeline struct {
	Id        string `json:"id"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
	Number    int    `json:"number"`
	State     string `json:"state"`
}

type Workflow added in v0.0.3

type Workflow struct {
	Id     string `json:"id"`
	Name   string `json:"name"`
	Status string `json:"status"` // Can be one of: success, canceled, running, failed
}

Jump to

Keyboard shortcuts

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