codepipeline

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLoadConfig     = errors.New("failed to load AWS config")
	ErrListPipelines  = errors.New("failed to list pipelines")
	ErrGetPipeline    = errors.New("failed to get pipeline details")
	ErrPipelineState  = errors.New("failed to get pipeline state")
	ErrApprovalResult = errors.New("failed to put approval result")
)

Common errors.

Functions

func PutApprovalResult

func PutApprovalResult(ctx context.Context, profile, region string, action ApprovalAction, approved bool, comment string) error

PutApprovalResult handles the approval or rejection of a manual approval action.

func StartPipelineExecution

func StartPipelineExecution(ctx context.Context, profile, region, pipelineName, commitID string) error

StartPipelineExecution starts a pipeline execution with optional source revision

Types

type ApprovalAction

type ApprovalAction struct {
	PipelineName string
	StageName    string
	ActionName   string
	Token        string
}

ApprovalAction represents a pending approval in a pipeline.

func GetPendingApprovals

func GetPendingApprovals(ctx context.Context, profile, region string) ([]ApprovalAction, error)

GetPendingApprovals returns all pending manual approval actions.

type ApprovalOperation

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

ApprovalOperation represents the Approval operation.

func NewApprovalOperation

func NewApprovalOperation(profile, region string) *ApprovalOperation

NewApprovalOperation creates a new Approval operation.

func (*ApprovalOperation) Description

func (o *ApprovalOperation) Description() string

Description returns the operation's description.

func (*ApprovalOperation) Execute

func (o *ApprovalOperation) Execute(ctx context.Context, params map[string]interface{}) (interface{}, error)

Execute executes the operation with the given parameters.

func (*ApprovalOperation) IsUIVisible

func (o *ApprovalOperation) IsUIVisible() bool

IsUIVisible returns whether this operation should be visible in the UI.

func (*ApprovalOperation) Name

func (o *ApprovalOperation) Name() string

Name returns the operation's name.

type InternalOperationsCategory

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

InternalOperationsCategory represents a category for internal operations that shouldn't appear in the UI.

func NewInternalOperationsCategory

func NewInternalOperationsCategory(profile, region string) *InternalOperationsCategory

NewInternalOperationsCategory creates a new category for internal operations.

func (*InternalOperationsCategory) Description

func (c *InternalOperationsCategory) Description() string

Description returns the category's description.

func (*InternalOperationsCategory) IsUIVisible

func (c *InternalOperationsCategory) IsUIVisible() bool

IsUIVisible returns whether this category should be visible in the UI.

func (*InternalOperationsCategory) Name

Name returns the category's name.

func (*InternalOperationsCategory) Operations

func (c *InternalOperationsCategory) Operations() []cloud.Operation

Operations returns all available operations for this category.

type PipelineApprovalsOperation

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

PipelineApprovalsOperation represents the Pipeline Approvals operation.

func NewPipelineApprovalsOperation

func NewPipelineApprovalsOperation(profile, region string) *PipelineApprovalsOperation

NewPipelineApprovalsOperation creates a new Pipeline Approvals operation.

func (*PipelineApprovalsOperation) Description

func (o *PipelineApprovalsOperation) Description() string

Description returns the operation's description.

func (*PipelineApprovalsOperation) Execute

func (o *PipelineApprovalsOperation) Execute(ctx context.Context, params map[string]interface{}) (interface{}, error)

Execute executes the operation with the given parameters.

func (*PipelineApprovalsOperation) IsUIVisible

func (o *PipelineApprovalsOperation) IsUIVisible() bool

IsUIVisible returns whether this operation should be visible in the UI.

func (*PipelineApprovalsOperation) Name

Name returns the operation's name.

type PipelineStatus

type PipelineStatus struct {
	Name   string
	Stages []StageStatus
}

PipelineStatus represents the status of a pipeline and its stages

func GetPipelineStatus

func GetPipelineStatus(ctx context.Context, profile, region string) ([]PipelineStatus, error)

GetPipelineStatus returns the status of all pipelines

type PipelineStatusOperation

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

PipelineStatusOperation represents the Pipeline Status operation.

func NewPipelineStatusOperation

func NewPipelineStatusOperation(profile, region string) *PipelineStatusOperation

NewPipelineStatusOperation creates a new Pipeline Status operation.

func (*PipelineStatusOperation) Description

func (o *PipelineStatusOperation) Description() string

Description returns the operation's description.

func (*PipelineStatusOperation) Execute

func (o *PipelineStatusOperation) Execute(ctx context.Context, params map[string]interface{}) (interface{}, error)

Execute executes the operation with the given parameters.

func (*PipelineStatusOperation) IsUIVisible

func (o *PipelineStatusOperation) IsUIVisible() bool

IsUIVisible returns whether this operation should be visible in the UI.

func (*PipelineStatusOperation) Name

func (o *PipelineStatusOperation) Name() string

Name returns the operation's name.

type Service

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

Service represents the CodePipeline service.

func NewService

func NewService(profile, region string) *Service

NewService creates a new CodePipeline service.

func (*Service) Categories

func (s *Service) Categories() []cloud.Category

Categories returns all available categories for this service.

func (*Service) Description

func (s *Service) Description() string

Description returns the service's description.

func (*Service) Name

func (s *Service) Name() string

Name returns the service's name.

type StageStatus

type StageStatus struct {
	Name        string
	Status      string
	LastUpdated string
}

StageStatus represents the status of a pipeline stage

type StartPipelineOperation

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

StartPipelineOperation represents the Start Pipeline operation.

func NewStartPipelineOperation

func NewStartPipelineOperation(profile, region string) *StartPipelineOperation

NewStartPipelineOperation creates a new Start Pipeline operation.

func (*StartPipelineOperation) Description

func (o *StartPipelineOperation) Description() string

Description returns the operation's description.

func (*StartPipelineOperation) Execute

func (o *StartPipelineOperation) Execute(ctx context.Context, params map[string]interface{}) (interface{}, error)

Execute executes the operation with the given parameters.

func (*StartPipelineOperation) IsUIVisible

func (o *StartPipelineOperation) IsUIVisible() bool

IsUIVisible returns whether this operation should be visible in the UI.

func (*StartPipelineOperation) Name

func (o *StartPipelineOperation) Name() string

Name returns the operation's name.

type WorkflowsCategory

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

WorkflowsCategory represents the Workflows category for CodePipeline.

func NewWorkflowsCategory

func NewWorkflowsCategory(profile, region string) *WorkflowsCategory

NewWorkflowsCategory creates a new Workflows category.

func (*WorkflowsCategory) Description

func (c *WorkflowsCategory) Description() string

Description returns the category's description.

func (*WorkflowsCategory) IsUIVisible

func (c *WorkflowsCategory) IsUIVisible() bool

IsUIVisible returns whether this category should be visible in the UI.

func (*WorkflowsCategory) Name

func (c *WorkflowsCategory) Name() string

Name returns the category's name.

func (*WorkflowsCategory) Operations

func (c *WorkflowsCategory) Operations() []cloud.Operation

Operations returns all available operations for this category.

Jump to

Keyboard shortcuts

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