buildkite

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePipeline

func CreatePipeline(d *schema.ResourceData, meta interface{}) error

func DeletePipeline

func DeletePipeline(d *schema.ResourceData, meta interface{}) error

func Provider

func Provider() terraform.ResourceProvider

func ReadPipeline

func ReadPipeline(d *schema.ResourceData, meta interface{}) error

func UpdatePipeline

func UpdatePipeline(d *schema.ResourceData, meta interface{}) error

Types

type Client

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

func NewClient

func NewClient(orgURLStr, apiToken string) (*Client, error)

func (*Client) Delete

func (c *Client) Delete(pathParts []string) error

func (*Client) Get

func (c *Client) Get(pathParts []string, resBody interface{}) error

func (*Client) Patch

func (c *Client) Patch(pathParts []string, reqBody, resBody interface{}) error

func (*Client) Post

func (c *Client) Post(pathParts []string, reqBody, resBody interface{}) error

func (*Client) Put

func (c *Client) Put(pathParts []string, reqBody, resBody interface{}) error

type Pipeline

type Pipeline struct {
	Id                  string                 `json:"id,omitempty"`
	Environment         map[string]string      `json:"env,omitempty"`
	Slug                string                 `json:"slug,omitempty"`
	WebURL              string                 `json:"web_url,omitempty"`
	BuildsURL           string                 `json:"builds_url,omitempty"`
	Url                 string                 `json:"url,omitempty"`
	DefaultBranch       string                 `json:"default_branch,omitempty"`
	BadgeURL            string                 `json:"badge_url,omitempty"`
	CreatedAt           string                 `json:"created_at,omitempty"`
	Repository          string                 `json:"repository,omitempty"`
	Name                string                 `json:"name,omitempty"`
	Description         string                 `json:"description,omitempty"`
	BranchConfiguration string                 `json:"branch_configuration,omitempty"`
	Provider            repositoryProvider     `json:"provider,omitempty"`
	ProviderSettings    map[string]interface{} `json:"provider_settings,omitempty"`
	Steps               []Step                 `json:"steps"`
}

type Step

type Step struct {
	Type                string            `json:"type"`
	Name                string            `json:"name,omitempty"`
	Command             string            `json:"command,omitempty"`
	Environment         map[string]string `json:"env,omitempty"`
	TimeoutInMinutes    int               `json:"timeout_in_minutes,omitempty"`
	AgentQueryRules     []string          `json:"agent_query_rules,omitempty"`
	BranchConfiguration string            `json:"branch_configuration,omitempty"`
	ArtifactPaths       string            `json:"artifact_paths,omitempty"`
	Concurrency         int               `json:"concurrency,omitempty"`
	Parallelism         int               `json:"parallelism,omitempty"`
}

Jump to

Keyboard shortcuts

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