codepipeline

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package codepipeline provides a client to make API requests to Amazon Elastic Container Service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodePipeline

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

CodePipeline wraps the AWS CodePipeline client.

func New

func New(s *session.Session) *CodePipeline

New returns a CodePipeline client configured against the input session.

func (*CodePipeline) GetPipeline

func (c *CodePipeline) GetPipeline(name string) (*Pipeline, error)

GetPipeline retrieves information from a given pipeline.

func (*CodePipeline) GetPipelineState added in v0.1.0

func (c *CodePipeline) GetPipelineState(name string) (*PipelineState, error)

GetPipelineStatus retrieves status information from a given pipeline.

func (*CodePipeline) ListPipelineNamesByTags added in v0.1.0

func (c *CodePipeline) ListPipelineNamesByTags(tags map[string]string) ([]string, error)

ListPipelineNamesByTags retrieves the names of all pipelines for a project.

type Pipeline

type Pipeline struct {
	Name      string     `json:"name"`
	Region    string     `json:"region"`
	AccountID string     `json:"accountId"`
	Stages    []*Stage   `json:"stages"`
	CreatedAt *time.Time `json:"createdAt"`
	UpdatedAt *time.Time `json:"updatedAt"`
}

Pipeline represents an existing CodePipeline resource.

type PipelineState added in v0.1.0

type PipelineState struct {
	PipelineName string        `json:"pipelineName"`
	StageStates  []*StageState `json:"stageStates"`
	UpdatedAt    *time.Time    `json:"updatedAt"`
}

PipelineStatus represents a Pipeline's status.

type Stage

type Stage struct {
	Name     string `json:"name"`
	Category string `json:"category"`
	Provider string `json:"provider"`
	Details  string `json:"details"`
}

Stage wraps the codepipeline pipeline stage.

func (*Stage) HumanString added in v0.1.0

func (s *Stage) HumanString() string

HumanString returns the stringified Stage struct with human readable format. Example output:

DeployTo-test	Deploy	Cloudformation	stackname: dinder-test-test

type StageAction added in v0.1.0

type StageAction struct {
	Name   string `json:"name"`
	Status string `json:"status"`
}

StageAction wraps a CodePipeline stage action.

type StageState added in v0.1.0

type StageState struct {
	StageName  string        `json:"stageName"`
	Actions    []StageAction `json:"actions"`
	Transition string        `json:"transition"`
}

StageState wraps a CodePipeline stage state.

func (StageState) AggregateStatus added in v0.1.0

func (ss StageState) AggregateStatus() string

AggregateStatus returns the collective status of a stage by looking at each individual action's status. It returns "InProgress" if there are any actions that are in progress. It returns "Failed" if there are actions that failed or were abandoned. It returns "Succeeded" if all actions succeeded. It returns "" if there is no prior execution.

func (*StageState) HumanString added in v0.1.0

func (ss *StageState) HumanString() string

HumanString returns the stringified PipelineState struct with human readable format. Example output:

DeployTo-test	Deploy	Cloudformation	stackname: dinder-test-test

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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