Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface {
Build(ctx context.Context, repository Repository, workDir string) error
}
Builder executes preparing steps before running a pipeline.
type Cloner ¶
type Cloner interface {
Clone(repository Repository, workDir string) (string, error)
}
Cloner represents an interface to clone repositories.
type Pipeline ¶
type Pipeline struct {
Variables map[string]string `yaml:"variables"`
Stages Stages `yaml:"stages"`
Path string
}
Pipeline represents a build pipeline.
type Repository ¶
type Repository struct {
ID string `json:"id"`
BranchRef string `json:"branch_ref"`
Name string `json:"name"`
FullName string `json:"full_name"`
Private bool `json:"private"`
URL string `json:"url"`
CloneURL string `json:"clone_url"`
}
Repository represents a repository for build pipeline execution.
type SecretRetriever ¶
type SecretRetriever interface {
// RetrieveSecret retrieves a secret for given ID.
RetrieveSecret(secretID string) (string, error)
}
SecretRetriever handles secrets.
type ShellOut ¶
ShellOut represents the standard output and the standard error output of a shell command execution.
Click to show internal directories.
Click to hide internal directories.
