circleci

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	HTTPStatusCode int
	Message        string
}

func (*APIError) Error

func (e *APIError) Error() string

type Client

type Client struct {
	BaseURL    *url.URL
	Token      string
	HTTPClient *http.Client
	Project    string
}

func (*Client) CreatePipeline

func (c *Client) CreatePipeline(branch string, parameters map[string]interface{}) (*PipelineCreateResponse, error)

type PipelineCreateRequest

type PipelineCreateRequest struct {
	Branch     string                 `json:"branch,omitempty"`
	Tag        string                 `json:"tag,omitempty"`
	Parameters map[string]interface{} `json:"parameters"`
}

type PipelineCreateResponse

type PipelineCreateResponse struct {
	ID        string     `json:"id"`
	State     string     `json:"state"`
	Number    int        `json:"number"`
	CreatedAt *time.Time `json:"created_at"`
}

Jump to

Keyboard shortcuts

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