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: 0

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