api

package
v0.1.0-alpha.12 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatTag

func FormatTag(tag string) string

Types

type Image

type Image struct {
	Name       string `yaml:"name"`
	Repository string `yaml:"repository"`
	Tag        string `yaml:"tag"`
}

type LaunchConfig

type LaunchConfig struct {
	Name         string `yaml:"name,omitempty"`
	Registry     string `yaml:"registry,omitempty"`
	Organization string `yaml:"organization,omitempty"`
	Steps        []Step `yaml:"steps,omitempty"`
	Logfile      string `yaml:"logfile,omitempty"`
	Verbose      bool   `yaml:"verbose,omitempty"`
	Cache        bool   `yaml:"cache,omitempty"`
	Version      string `yaml:"version,omitempty"`
}

func (*LaunchConfig) Default

func (lc *LaunchConfig) Default()

func (*LaunchConfig) PrintYAML

func (lc *LaunchConfig) PrintYAML() error

func (*LaunchConfig) Validate

func (lc *LaunchConfig) Validate() error

type LaunchPhase

type LaunchPhase string
const (
	LaunchPhaseNotStarted LaunchPhase = "NotStarted"
	LaunchPhaseBuilding   LaunchPhase = "Processing"
	LaunchPhaseSucceeded  LaunchPhase = "Succeeded"
	LaunchPhaseFailed     LaunchPhase = "Failed"
)

type LaunchStatus

type LaunchStatus struct {
	StepStatuses []StepStatus
	Phase        LaunchPhase
}

func NewLaunchStatus

func NewLaunchStatus() *LaunchStatus

type Step

type Step struct {
	Name       string             `yaml:"name"`
	Image      Image              `yaml:"image"`
	Path       string             `yaml:"path"`
	Dockerfile string             `yaml:"dockerfile"`
	BaseStep   string             `yaml:"baseStep"`
	BuildArgs  map[string]*string `yaml:"buildArgs"`
	Context    string             `yaml:"context"`
	Platforms  []string           `yaml:"platforms"`
	Push       bool               `yaml:"push"`
}

func (*Step) Default

func (step *Step) Default(lc LaunchConfig)

func (*Step) GetBaseStep

func (step *Step) GetBaseStep(lc LaunchConfig) (Step, error)

type StepPhase

type StepPhase string
const (
	StepPhaseNotStarted StepPhase = "NotStarted"
	StepPhasePulling    StepPhase = "Pulling"
	StepPhaseBuilding   StepPhase = "Building"
	StepPhasePushing    StepPhase = "Pushing"
	StepPhaseSucceeded  StepPhase = "Succeeded"
	StepPhaseFailed     StepPhase = "Failed"
)

type StepStatus

type StepStatus struct {
	Step   Step
	Phase  StepPhase
	Reason string
}

func NewStepStatus

func NewStepStatus() *StepStatus

Jump to

Keyboard shortcuts

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