build

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSCodeBuild added in v0.8.0

type AWSCodeBuild struct{}

AWSCodeBuild represents a Github Actions build provider

func (AWSCodeBuild) ProvideArtifacts added in v0.8.0

func (provider AWSCodeBuild) ProvideArtifacts(context Context) ([]*Artifact, error)

ProvideArtifacts is the Provider implementation

type Artifact

type Artifact struct {
	FilePath     string
	FileContents string
	FileMode     os.FileMode
}

Artifact represents a build artifact

type CircleCIv2

type CircleCIv2 struct{}

CircleCIv2 represents a circle ci v2 build provider

func (CircleCIv2) ProvideArtifacts

func (provider CircleCIv2) ProvideArtifacts(context Context) ([]*Artifact, error)

ProvideArtifacts is the Provider implementation

type Context

type Context interface {
	GetApp() string
	GetEnvironment() string
	GetAccount() string
	GetRegion() string
}

Context represents a build context

type GithubActions added in v0.8.0

type GithubActions struct{}

GithubActions represents a Github Actions build provider

func (GithubActions) ProvideArtifacts added in v0.8.0

func (provider GithubActions) ProvideArtifacts(context Context) ([]*Artifact, error)

ProvideArtifacts is the Provider implementation

type Local

type Local struct{}

Local represents a local build provider

func (Local) ProvideArtifacts

func (provider Local) ProvideArtifacts(context Context) ([]*Artifact, error)

ProvideArtifacts is the Provider implementation

type Provider

type Provider interface {
	ProvideArtifacts(context Context) ([]*Artifact, error)
}

Provider represents a build provider

func GetProvider

func GetProvider(provider string) (Provider, error)

GetProvider returns a build provider based on its name

Jump to

Keyboard shortcuts

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