awsutil

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApprovePipelines

func ApprovePipelines(client *codepipeline.CodePipeline, stagesToPutStatus map[string]StageInfo, approvalStatus string) error

func CreateCodePipelineSession

func CreateCodePipelineSession() (*codepipeline.CodePipeline, error)

Create an AWS Session with a Code Pipeline client

func CreateSTSSession added in v0.3.0

func CreateSTSSession() (*sts.STS, error)

Create an AWS Session with an STS client

func GetLatestPipelineExecution

func GetLatestPipelineExecution(client *codepipeline.CodePipeline, pipelineName string) (codepipeline.PipelineExecutionSummary, error)

func GetPipelineNames

func GetPipelineNames(client *codepipeline.CodePipeline, searchTerm string) ([]string, error)

Given a search term, return a slice of pipeline names

func GetSession added in v0.3.0

func GetSession() (*session.Session, error)

func RunPipeline

func RunPipeline(client *codepipeline.CodePipeline, pipelineName string) (string, error)

Given a pipeline name, run that pipeline

func RunPipelines

func RunPipelines(client *codepipeline.CodePipeline, pipelineNames []string) (map[string]string, error)

Given pipeline names, run those pipelines

Types

type StageInfo

type StageInfo struct {
	ActionName string
	StageName  string
	Status     string
	Token      *string
}

func GetLastExecutedStage

func GetLastExecutedStage(client *codepipeline.CodePipeline, pipelineName string) (StageInfo, error)

Given a pipeline name, return the stage that was last executed

Jump to

Keyboard shortcuts

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