Documentation ¶
Index ¶
- Constants
- Variables
- func IsDecodeCert(err error) bool
- func IsEmptyChannel(err error) bool
- func IsEmptyDockerPassword(err error) bool
- func IsEmptyDockerUsername(err error) bool
- func IsEmptyGoarch(err error) bool
- func IsEmptyGolangImage(err error) bool
- func IsEmptyGolangVersion(err error) bool
- func IsEmptyGoos(err error) bool
- func IsEmptyKubectlVersion(err error) bool
- func IsEmptyKubernetesAPIServer(err error) bool
- func IsEmptyKubernetesCAPath(err error) bool
- func IsEmptyKubernetesCaPath(err error) bool
- func IsEmptyKubernetesCrtPath(err error) bool
- func IsEmptyOrganisation(err error) bool
- func IsEmptyProject(err error) bool
- func IsEmptyRef(err error) bool
- func IsEmptyRegistry(err error) bool
- func IsEmptySha(err error) bool
- func IsEmptyWorkingDirectory(err error) bool
- func IsIncorrectNumberCerts(err error) bool
- func IsInvalidHelmDirectory(err error) bool
- func IsMissingFileError(err error) bool
- func IsNoCertEnvVar(err error) bool
- func IsNoHelmDirectory(err error) bool
- func IsWriteCert(err error) bool
- func NewDockerBuildTask(fs afero.Fs, projectInfo ProjectInfo) (tasks.Task, error)
- func NewDockerLoginTask(fs afero.Fs, projectInfo ProjectInfo) (tasks.Task, error)
- func NewDockerPullTask(fs afero.Fs, projectInfo ProjectInfo) (tasks.Task, error)
- func NewDockerPushLatestTask(fs afero.Fs, projectInfo ProjectInfo) (tasks.Task, error)
- func NewDockerPushShaTask(fs afero.Fs, projectInfo ProjectInfo) (tasks.Task, error)
- func NewDockerPushTagTask(fs afero.Fs, projectInfo ProjectInfo) (tasks.Task, error)
- func NewDockerRunHelpTask(fs afero.Fs, projectInfo ProjectInfo) (tasks.Task, error)
- func NewDockerRunVersionTask(fs afero.Fs, projectInfo ProjectInfo) (tasks.Task, error)
- func NewDockerTagLatestTask(fs afero.Fs, projectInfo ProjectInfo) (tasks.Task, error)
- func NewDockerTagTask(fs afero.Fs, projectInfo ProjectInfo) (tasks.Task, error)
- func NewGoBuildTask(fs afero.Fs, projectInfo ProjectInfo) (tasks.Task, error)
- func NewGoFmtTask(fs afero.Fs, projectInfo ProjectInfo) (tasks.Task, error)
- func NewGoPullTask(fs afero.Fs, projectInfo ProjectInfo) (tasks.Task, error)
- func NewGoTestTask(fs afero.Fs, projectInfo ProjectInfo) (tasks.Task, error)
- func NewGoVetTask(fs afero.Fs, projectInfo ProjectInfo) (tasks.Task, error)
- func NewHelmDeleteFromChannelTask(fs afero.Fs, chartDir string, projectInfo ProjectInfo, channel string) (tasks.Task, error)
- func NewHelmLoginTask(fs afero.Fs, projectInfo ProjectInfo) (tasks.Task, error)
- func NewHelmPromoteToChannelTask(fs afero.Fs, chartDir string, projectInfo ProjectInfo, channel string) (tasks.Task, error)
- func NewHelmPromoteToStableChannelTask(fs afero.Fs, chartDir string, projectInfo ProjectInfo) (tasks.Task, error)
- func NewHelmPullTask(fs afero.Fs, projectInfo ProjectInfo) (tasks.Task, error)
- func NewHelmPushTask(fs afero.Fs, chartDir string, projectInfo ProjectInfo) (tasks.Task, error)
- func NewPackageHelmChartTaskCreator(dst string) func(afero.Fs, string, ProjectInfo) (tasks.Task, error)
- func NewReleaseGithubTask(client *github.Client, dir string, projectInfo ProjectInfo) (tasks.Task, error)
- func NewTemplateHelmChartTask(fs afero.Fs, chartDir string, projectInfo ProjectInfo) (tasks.Task, error)
- type ProjectInfo
- type RepoCheckTask
- type Workflow
- func NewBuild(projectInfo ProjectInfo, fs afero.Fs) (Workflow, error)
- func NewDeploy(projectInfo ProjectInfo, fs afero.Fs) (Workflow, error)
- func NewPublish(projectInfo ProjectInfo, fs afero.Fs) (Workflow, error)
- func NewRelease(projectInfo ProjectInfo, fs afero.Fs, releaseDir string, ...) (Workflow, error)
- func NewUnpublish(projectInfo ProjectInfo, fs afero.Fs) (Workflow, error)
Constants ¶
const ( DockerBuildTaskName = "docker-build" DockerRunVersionTaskName = "docker-run-version" DockerRunHelpTaskName = "docker-run-help" DockerLoginTaskName = "docker-login" DockerTagTaskName = "docker-tag" DockerTagLatestTaskName = "docker-tag-latest" DockerPushShaTaskName = "docker-push-sha" DockerPushTagTaskName = "docker-push-tag" DockerPushLatestTaskName = "docker-push-latest" DockerPullTaskName = "docker-pull" // DockerImageRefFmt is the format string used to compute the reference of the // Docker image used to build and push. It may look something like this. // // quay.io/giantswarm/architect:e8363ac222255e991c126abe6673cd0f33934ac8 // DockerImageRefFmt = "%s/%s/%s:%s" LatestDockerImageTag = "latest" )
const (
HelmImage = "quay.io/giantswarm/docker-helm:23ac1ca6527bb59e07a6a8c36809488e39dd5791"
)
const (
RepoCheckTaskName = "repo-check"
)
Variables ¶
var ( GoPullTaskName = "go-pull" GoFmtTaskName = "go-fmt" GoVetTaskName = "go-vet" GoTestTaskName = "go-test" GoBuildTaskName = "go-build" GoConcurrentTaskName = "go-concurrent" )
var ( HelmPullTaskName = "helm-pull" HelmLoginTaskName = "helm-login" HelmPushTaskName = "helm-push" HelmDeleteChannelTaskName = "helm-delete-channel" )
Functions ¶
func IsEmptyDockerPassword ¶
IsEmptyDockerPassword asserts emptyDockerPasswordError
func IsEmptyDockerUsername ¶
IsEmptyDockerUsername asserts emptyDockerUsernameError
func IsEmptyGolangImage ¶
IsEmptyGolangImage asserts emptyGolangImageError
func IsEmptyGolangVersion ¶
IsEmptyGolangVersion asserts emptyGolangVersionError
func IsEmptyKubectlVersion ¶
IsEmptyKubectlVersion asserts emptyKubectlVersionError
func IsEmptyKubernetesAPIServer ¶
IsEmptyKubernetesAPIServer asserts emptyKubernetesAPIServerError
func IsEmptyKubernetesCAPath ¶
IsEmptyKubernetesCAPath asserts emptyKubernetesKeyPathError
func IsEmptyKubernetesCaPath ¶
IsEmptyKubernetesCaPath asserts emptyKubernetesCaPathError
func IsEmptyKubernetesCrtPath ¶
IsEmptyKubernetesCrtPath asserts emptyKubernetesCAPathError
func IsEmptyOrganisation ¶
IsEmptyOrganisation asserts emptyOrganisationError
func IsEmptyRegistry ¶
IsEmptyRegistry asserts emptyRegistryError
func IsEmptyWorkingDirectory ¶
IsEmptyWorkingDirectory asserts emptyWorkingDirectoryError
func IsIncorrectNumberCerts ¶
IsIncorrectNumberCerts asserts incorrectNumberCertsError
func IsInvalidHelmDirectory ¶
IsInvalidHelmDirectory asserts invalidHelmDirectoryError.
func IsMissingFileError ¶
IsMissingFileError asserts missingFileError.
func IsNoHelmDirectory ¶
IsNoHelmDirectory asserts noHelmDirectoryError
func NewDockerBuildTask ¶
func NewDockerLoginTask ¶
func NewDockerPullTask ¶
func NewDockerPushLatestTask ¶
func NewDockerPushShaTask ¶
func NewDockerPushTagTask ¶
func NewDockerRunHelpTask ¶
func NewDockerRunVersionTask ¶
func NewDockerTagLatestTask ¶
func NewDockerTagTask ¶
func NewGoBuildTask ¶
func NewGoFmtTask ¶
func NewGoPullTask ¶
func NewGoTestTask ¶
func NewGoVetTask ¶
func NewHelmLoginTask ¶
func NewHelmPullTask ¶
func NewHelmPushTask ¶
func NewPackageHelmChartTaskCreator ¶
func NewPackageHelmChartTaskCreator(dst string) func(afero.Fs, string, ProjectInfo) (tasks.Task, error)
NewPackageHelmChartTaskCreator returns a closure with pre-defined dst directory.
This is usefull when used with processHelmDir.
func NewReleaseGithubTask ¶
Types ¶
type ProjectInfo ¶
type ProjectInfo struct { WorkingDirectory string Organisation string Project string BuildTimestamp time.Time Branch string Sha string Tag string Version string Registry string DockerUsername string DockerPassword string HelmDirectoryPath string Goos string Goarch string GolangImage string GolangVersion string Channels []string }
type RepoCheckTask ¶
type RepoCheckTask struct {
// contains filtered or unexported fields
}
func NewRepoCheckTask ¶
func NewRepoCheckTask(fs afero.Fs, projectInfo ProjectInfo) (RepoCheckTask, error)
func (RepoCheckTask) Name ¶
func (t RepoCheckTask) Name() string
func (RepoCheckTask) Run ¶
func (t RepoCheckTask) Run() error
func (RepoCheckTask) String ¶
func (t RepoCheckTask) String() string
type Workflow ¶
func NewPublish ¶
func NewPublish(projectInfo ProjectInfo, fs afero.Fs) (Workflow, error)
func NewRelease ¶
func NewUnpublish ¶
func NewUnpublish(projectInfo ProjectInfo, fs afero.Fs) (Workflow, error)