yaml

package
v0.0.0-...-4c964c4 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Abort

type Abort struct {
}

type Arch

type Arch int

List of cpu architectures.

const (
	ArchNone Arch = iota
	ArchAmd64
	ArchArm
	ArchArm64
	Arch386
	ArchPpc
	ArchPpc64
	ArchPpc64le
	ArchRiscv
	ArchRiscv64
	ArchS390
	ArchS390x
	ArchSparc
	ArchSparc64
)

Arch enumeration.

func (Arch) MarshalJSON

func (e Arch) MarshalJSON() ([]byte, error)

MarshalJSON marshals the type as a JSON string.

func (Arch) String

func (e Arch) String() string

String returns the Arch as a string.

func (*Arch) UnmarshalJSON

func (e *Arch) UnmarshalJSON(b []byte) error

UnmarshalJSON unmashals a quoted json string to the enum value.

type Barrier

type Barrier struct {
	Id   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

Barrier defines a pipeline barrier.

type Cache

type Cache struct {
	Enabled bool     `json:"enabled,omitempty"`
	Paths   []string `json:"paths,omitempty"`
	Key     string   `json:"key,omitempty"`
	Policy  string   `json:"policy,omitempty"`
}

Cache defines pipeline caching behavior.

type Clone

type Clone struct {
	Depth    int64      `json:"depth,omitempty"`
	Disabled bool       `json:"disabled,omitempty"`
	Insecure bool       `json:"insecure,omitempty"`
	Strategy string     `json:"strategy,omitempty"`
	Trace    bool       `json:"trace,omitempty"`
	Ref      *Reference `json:"ref,omitempty"`
}

Clone defines the clone behavior.

type CloneStage

type CloneStage struct {
	Depth    int64  `json:"depth,omitempty"`
	Disabled bool   `json:"disabled,omitempty"`
	Insecure bool   `json:"insecure,omitempty"`
	Strategy string `json:"strategy,omitempty"`
	Trace    bool   `json:"trace,omitempty"`
}

Clone defines the stage clone behavior.

type Config

type Config struct {
	Version StringorInt `json:"version,omitempty"`
	Kind    string      `json:"kind,omitempty"`
	Type    string      `json:"type,omitempty"`
	Name    string      `json:"name,omitempty"`
	Spec    interface{} `json:"spec,omitempty"`
}

Config defines the a resource configuration.

func Parse

func Parse(r io.Reader) (*Config, error)

Parse parses the configuration from io.Reader r.

func ParseBytes

func ParseBytes(b []byte) (*Config, error)

ParseBytes parses the configuration from bytes b.

func ParseFile

func ParseFile(p string) (*Config, error)

ParseFile parses the configuration from path p.

func ParseString

func ParseString(s string) (*Config, error)

ParseString parses the configuration from string s.

func (*Config) UnmarshalJSON

func (v *Config) UnmarshalJSON(data []byte) error

UnmarshalJSON implement the json.Unmarshaler interface.

type Container

type Container struct {
	Image       string         `json:"image,omitempty"`
	Connector   string         `json:"connector,omitempty"`
	Credentials *Credentials   `json:"credentials,omitempty"`
	Pull        string         `json:"pull,omitempty"`
	Entrypoint  string         `json:"entrypoint,omitempty"`
	Args        []string       `json:"args,omitempty"`
	Dns         Stringorslice  `json:"dns,omitempty"`
	DsnSearch   Stringorslice  `json:"dsn_search,omitempty"`
	ExtraHosts  Stringorslice  `json:"extra_hosts,omitempty"`
	Network     string         `json:"network,omitempty"`
	NetworkMode string         `json:"network_mode,omitempty"`
	Privileged  bool           `json:"privileged,omitempty"`
	Workdir     string         `json:"workdir,omitempty"`
	Ports       []string       `json:"ports,omitempty"`
	Volumes     []string       `json:"volumes,omitempty"`
	User        string         `json:"user,omitempty"`
	Group       string         `json:"group,omitempty"`
	Cpu         StringorInt    `json:"cpu,omitempty"`
	Memory      MemStringorInt `json:"memory,omitempty"`
	ShmSize     MemStringorInt `json:"shm_size,omitempty"`
}

func (*Container) UnmarshalJSON

func (v *Container) UnmarshalJSON(data []byte) error

UnmarshalJSON implement the json.Unmarshaler interface.

type Credentials

type Credentials struct {
	Username string          `json:"username,omitempty"`
	Password string          `json:"password,omitempty"`
	Aws      *CredentialsAWS `json:"aws,omitempty"`
}

Configures registry credentials.

type CredentialsAWS

type CredentialsAWS struct {
	AccessKey string `json:"access_key,omitempty"`
	SecretKey string `json:"secret_key,omitempty"`
}

Configures AWS credentials.

type Default

type Default struct {
	Clone      *Clone            `json:"clone,omitempty"`
	Repository *Repository       `json:"repository,omitempty"`
	Registry   *Registry         `json:"registry,omitempty"`
	Resources  *Resources        `json:"resources,omitempty"`
	Delegate   Stringorslice     `json:"delegate,omitempty"`
	Barriers   []*Barrier        `json:"barriers,omitempty"`
	Status     *Status           `json:"status,omitempty"`
	Timeout    string            `json:"timeout,omitempty"`
	Envs       map[string]string `json:"envs,omitempty"`
}

type Durationorslice

type Durationorslice []time.Duration

Durationorslice represents a duration string or an array of duration strings.

func (*Durationorslice) UnmarshalJSON

func (s *Durationorslice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the unmarshal interface.

type EmptySpec

type EmptySpec struct {
}

type Expr

type Expr struct {
	Eq  string   `json:"eq,omitempty"`
	In  []string `json:"in,omitempty"`
	Not *Expr    `json:"not,omitempty"`
}

Expr defines an execution expression.

type Failure

type Failure struct {
	Errors []string       `json:"errors,omitempty"`
	Action *FailureAction `json:"action,omitempty"`
}

type FailureAction

type FailureAction struct {
	Type string      `json:"type,omitempty"`
	Spec interface{} `json:"spec,omitempty"`
}

Failure defines a failure strategy.

func (*FailureAction) UnmarshalJSON

func (v *FailureAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implement the json.Unmarshaler interface.

type FailureList

type FailureList struct {
	Items []*Failure `json:"failure,omitempty"`
}

func (*FailureList) MarshalJSON

func (v *FailureList) MarshalJSON() ([]byte, error)

MarshalJSON implements the marshal interface.

func (*FailureList) UnmarshalJSON

func (v *FailureList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the unmarshal interface.

type For

type For struct {
	Concurrency int64 `json:"concurrency,omitempty"`
	Iterations  int64 `json:"iterations,omitempty"`
}

Defines a for loop execution strategy.

type Ignore

type Ignore struct {
}

type Input

type Input struct {
	Type        string      `json:"type,omitempty"`
	Description string      `json:"description,omitempty"`
	Default     interface{} `json:"default,omitempty"`
	Required    bool        `json:"required,omitempty"`
	Items       *InputItems `json:"items,omitempty"`
	Enum        []string    `json:"enum,omitempty"`
	Mask        bool        `json:"mask,omitempty"`
}

Input defines an input parameter.

type InputItems

type InputItems struct {
	Type string `json:"type,omitempty"`
}

InputItems defines an array input type

type ManualIntervention

type ManualIntervention struct {
	TimeoutAction *TimeoutAction `json:"timeout_action,omitempty"`
	Timeout       time.Duration  `json:"timeout,omitempty"`
}

type Matrix

type Matrix struct {
	Axis        map[string][]string `json:"axis,omitempty"`
	Concurrency int64               `json:"concurrency,omitempty"`
	Include     []map[string]string `json:"include,omitempty"`
	Exclude     []map[string]string `json:"exclude,omitempty"`
}

Defines a matrix execution strategy.

type MemStringorInt

type MemStringorInt int64

MemStringorInt represents a string or an integer the String supports notations like 10m for then Megabyte of memory

func (*MemStringorInt) UnmarshalJSON

func (s *MemStringorInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the unmarshal interface.

type Mount

type Mount struct {
	Name     string `json:"name,omitempty"`
	Path     string `json:"path,omitempty"`
	SubPath  string `json:"subPath,omitempty"`
	ReadOnly bool   `json:"readOnly,omitempty"`
}

Mount defines a volume mount.

type OS

type OS int

List of operating systems.

const (
	OSNone OS = iota
	OSLinux
	OSWindows
	OSMacos
	OSDarwin
	OSDragonfly
	OSFreebsd
	OSNetbsd
	OSOpenbsd
	OSPlan9
	OSSolaris
)

OS enumeration.

func (OS) MarshalJSON

func (e OS) MarshalJSON() ([]byte, error)

MarshalJSON marshals the type as a JSON string.

func (OS) String

func (e OS) String() string

String returns the OS as a string.

func (*OS) UnmarshalJSON

func (e *OS) UnmarshalJSON(b []byte) error

UnmarshalJSON unmashals a quoted json string to the enum value.

type Pipeline

type Pipeline struct {
	Stages  []*Stage          `json:"stages,omitempty"`
	Inputs  map[string]*Input `json:"inputs,omitempty"`
	Options *Default          `json:"options,omitempty"`
}

Pipeline defines the pipeline execution.

type Platform

type Platform struct {
	Arch     string   `json:"arch,omitempty"`
	Features []string `json:"features,omitempty"`
	Os       string   `json:"os,omitempty"`
	Variant  string   `json:"variant,omitempty"`
	Version  string   `json:"version,omitempty"`
}

Platform defines the target execution environment.

type PluginStage

type PluginStage struct {
	Name        string            `json:"name,omitempty"`
	Description string            `json:"description,omitempty"`
	Stage       *Stage            `json:"stage,omitempty"`
	Inputs      map[string]*Input `json:"inputs,omitempty"`
}

PluginStage defines a stage-level plugin

type PluginStep

type PluginStep struct {
	Name        string            `json:"name,omitempty"`
	Description string            `json:"description,omitempty"`
	Step        *Step             `json:"step,omitempty"`
	Inputs      map[string]*Input `json:"inputs,omitempty"`
}

PluginStep defines a step-level plugin

type Reference

type Reference struct {
	Name string `json:"name,omitempty"`
	Type string `json:"type,omitempty"`
	Sha  string `json:"sha,omitempty"`
}

Reference defines a git clone reference.

type Registry

type Registry struct {
	Connector []*RegistryConnector `json:"connector,omitempty"`
	Mirror    Stringorslice        `json:"mirror,omitempty"`
}

Registry provides container registry details.

func (*Registry) UnmarshalJSON

func (v *Registry) UnmarshalJSON(data []byte) error

UnmarshalJSON implement the json.Unmarshaler interface.

type RegistryConnector

type RegistryConnector struct {
	Name  string `json:"name,omitempty"`
	Match string `json:"match,omitempty"`
}

RegistryConnector provides registry credentials.

func (*RegistryConnector) UnmarshalJSON

func (v *RegistryConnector) UnmarshalJSON(data []byte) error

UnmarshalJSON implement the json.Unmarshaler interface.

type Report

type Report struct {
	Path Stringorslice `json:"path,omitempty"`
	Type string        `json:"type,omitempty"`
}

Report defines a report artifact.

type Repository

type Repository struct {
	Connector string `json:"connector,omitempty"`
	Name      string `json:"name,omitempty"`
}

Repository defines a remote git repository.

type Resource

type Resource struct {
	Cpu    StringorInt    `json:"cpu,omitempty"`
	Memory MemStringorInt `json:"memory,omitempty"`
}

Resource defines the system resources.

type Resources

type Resources struct {
	Limits   *Resource `json:"limits,omitempty"`
	Requests *Resource `json:"requests,omitempty"`
}

Defines the container resource request and limits.

type Retry

type Retry struct {
	Attempts int64           `json:"attempts,omitempty"`
	Interval Durationorslice `json:"interval,omitempty"`
	Failure  *RetryFailure   `json:"failure,omitempty"`
}

type RetryFailure

type RetryFailure struct {
	Action *RetryFailureAction `json:"action,omitempty"`
}

type RetryFailureAction

type RetryFailureAction struct {
	Type string      `json:"type,omitempty"`
	Spec interface{} `json:"spec,omitempty"`
}

Failure action on failure for all retries

func (*RetryFailureAction) UnmarshalJSON

func (v *RetryFailureAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implement the json.Unmarshaler interface.

type Runtime

type Runtime struct {
	Type string      `json:"type,omitempty"`
	Spec interface{} `json:"spec,omitempty"`
}

Defines the runtime execution engine.

func (*Runtime) UnmarshalJSON

func (v *Runtime) UnmarshalJSON(data []byte) error

UnmarshalJSON implement the json.Unmarshaler interface.

type RuntimeCloud

type RuntimeCloud struct {
	Size string `json:"size,omitempty"`
}

type RuntimeKube

type RuntimeKube struct {
	Connector         string                 `json:"connector,omitempty"`
	Namespace         string                 `json:"namespace,omitempty"`
	Annotations       map[string]string      `json:"annotations,omitempty"`
	Labels            map[string]string      `json:"labels,omitempty"`
	Resources         *Resources             `json:"resources,omitempty"`
	MountServiceToken bool                   `json:"mount_service_token,omitempty"`
	ServiceAccount    string                 `json:"service_account,omitempty"`
	SecurityContext   string                 `json:"security_context,omitempty"`
	PriorityClass     string                 `json:"priority_class,omitempty"`
	InitTimeout       time.Duration          `json:"init_timeout,omitempty"`
	User              string                 `json:"user,omitempty"`
	ImagePullSecrets  []string               `json:"image_pull_secrets,omitempty"`
	Node              string                 `json:"node,omitempty"`
	NodeSelector      map[string]string      `json:"node_selector,omitempty"`
	Tolerations       map[string]interface{} `json:"tolerations,omitempty"`
}

type RuntimeMachine

type RuntimeMachine struct {
}

type RuntimeVM

type RuntimeVM struct {
	Pool string `json:"pool,omitempty"`
}

type Splitting

type Splitting struct {
	Enabled     bool   `json:"enabled,omitempty"`
	Concurrency int64  `json:"concurrency,omitempty"`
	Strategy    string `json:"strategy,omitempty"`
}

type Stage

type Stage struct {
	Desc     string                 `json:"desc,omitempty"`
	Id       string                 `json:"id,omitempty"`
	Name     string                 `json:"name,omitempty"`
	Strategy *Strategy              `json:"strategy,omitempty"`
	Delegate Stringorslice          `json:"delegate,omitempty"`
	Status   *StatusStage           `json:"status,omitempty"`
	Type     string                 `json:"type,omitempty"`
	When     *When                  `json:"when,omitempty"`
	Failure  *FailureList           `json:"failure,omitempty"`
	Inputs   map[string]interface{} `json:"inputs,omitempty"`
	Spec     interface{}            `json:"spec,omitempty"`
}

func (*Stage) UnmarshalJSON

func (v *Stage) UnmarshalJSON(data []byte) error

UnmarshalJSON implement the json.Unmarshaler interface.

type StageCD

type StageCD struct {
	Platform *Platform         `json:"platform,omitempty"`
	Runtime  *Runtime          `json:"runtime,omitempty"`
	Steps    []*Step           `json:"steps,omitempty"`
	Envs     map[string]string `json:"envs,omitempty"`
}

type StageCI

type StageCI struct {
	Cache    *Cache            `json:"cache,omitempty"`
	Clone    *CloneStage       `json:"clone,omitempty"`
	Platform *Platform         `json:"platform,omitempty"`
	Runtime  *Runtime          `json:"runtime,omitempty"`
	Steps    []*Step           `json:"steps,omitempty"`
	Envs     map[string]string `json:"envs,omitempty"`
	Volumes  []*Volume         `json:"volumes,omitempty"`
	Vars     []*Variable       `json:"vars,omitempty"`
}

type StageCustom

type StageCustom struct {
	Platform *Platform         `json:"platform,omitempty"`
	Runtime  *Runtime          `json:"runtime,omitempty"`
	Steps    []*Step           `json:"steps,omitempty"`
	Envs     map[string]string `json:"envs,omitempty"`
	Vars     []*Variable       `json:"vars,omitempty"`
}

type StageFlag

type StageFlag struct {
	Platform *Platform         `json:"platform,omitempty"`
	Runtime  *Runtime          `json:"runtime,omitempty"`
	Steps    []*Step           `json:"steps,omitempty"`
	Envs     map[string]string `json:"envs,omitempty"`
	Vars     []*Variable       `json:"vars,omitempty"`
}

type StageGroup

type StageGroup struct {
	Stages []*Stage `json:"stages,omitempty"`
}

type StageInfra

type StageInfra struct {
	Stack    string            `json:"stack,omitempty"`
	Workflow string            `json:"workflow,omitempty"`
	Clone    *Clone            `json:"clone,omitempty"`
	Platform *Platform         `json:"platform,omitempty"`
	Runtime  *Runtime          `json:"runtime,omitempty"`
	Steps    []*Step           `json:"steps,omitempty"`
	Envs     map[string]string `json:"envs,omitempty"`
	Vars     []*Variable       `json:"vars,omitempty"`
}

type StageParallel

type StageParallel struct {
	Stages []*Stage `json:"stages,omitempty"`
}

type StageTemplate

type StageTemplate struct {
	Name   string                 `json:"name,omitempty"`
	Inputs map[string]interface{} `json:"inputs,omitempty"`
}

Configures a Stage Template step.

type Status

type Status struct {
	Disabled bool   `json:"disabled,omitempty"`
	Level    string `json:"level,omitempty"`
	Matrix   string `json:"matrix,omitempty"`
	Name     string `json:"name,omitempty"`
}

type StatusStage

type StatusStage struct {
	Disabled bool   `json:"disabled,omitempty"`
	Matrix   string `json:"matrix,omitempty"`
	Name     string `json:"name,omitempty"`
}

type Step

type Step struct {
	Id       string                 `json:"id,omitempty"`
	Name     string                 `json:"name,omitempty"`
	Desc     string                 `json:"desc,omitempty"`
	Type     string                 `json:"type,omitempty"`
	Timeout  string                 `json:"timeout,omitempty"`
	Strategy *Strategy              `json:"strategy,omitempty"`
	When     *When                  `json:"when,omitempty"`
	Failure  *FailureList           `json:"failure,omitempty"`
	Inputs   map[string]interface{} `json:"inputs,omitempty"`
	Spec     interface{}            `json:"spec,omitempty"`
}

func (*Step) UnmarshalJSON

func (v *Step) UnmarshalJSON(data []byte) error

UnmarshalJSON implement the json.Unmarshaler interface.

type StepAction

type StepAction struct {
	Uses    string                 `json:"uses,omitempty"`
	With    map[string]interface{} `json:"with,omitempty"`
	Envs    map[string]string      `json:"envs,omitempty"`
	Outputs []string               `json:"outputs,omitempty"`
	Mount   []*Mount               `json:"mount,omitempty"`
}

type StepBackground

type StepBackground struct {
	Shell      string            `json:"shell,omitempty"`
	Envs       map[string]string `json:"envs,omitempty"`
	Run        string            `json:"run,omitempty"`
	Script     Stringorslice     `json:"script,omitempty"`
	Container  *Container        `json:"container,omitempty"`
	Mount      []*Mount          `json:"mount,omitempty"`
	Image      string            `json:"image,omitempty"`
	User       string            `json:"user,omitempty"`
	Pull       string            `json:"pull,omitempty"`
	Entrypoint string            `json:"entrypoint,omitempty"`
	Args       []string          `json:"args,omitempty"`
	Ports      []string          `json:"ports,omitempty"`
	Network    string            `json:"network,omitempty"`
	Privileged bool              `json:"privileged,omitempty"`
	Resources  *Resources        `json:"resources,omitempty"`
	Workdir    string            `json:"workdir,omitempty"`
}

type StepBarrier

type StepBarrier struct {
	Ref string `json:"ref,omitempty"`
}

type StepBitrise

type StepBitrise struct {
	Uses    string                 `json:"uses,omitempty"`
	With    map[string]interface{} `json:"with,omitempty"`
	Envs    map[string]string      `json:"envs,omitempty"`
	Outputs []string               `json:"outputs,omitempty"`
	Mount   []*Mount               `json:"mount,omitempty"`
}

type StepExec

type StepExec struct {
	Image      string            `json:"image,omitempty"`
	Connector  string            `json:"connector,omitempty"`
	User       string            `json:"user,omitempty"`
	Group      string            `json:"group,omitempty"`
	Pull       string            `json:"pull,omitempty"`
	Shell      string            `json:"shell,omitempty"`
	Envs       map[string]string `json:"envs,omitempty"`
	Run        string            `json:"run,omitempty"`
	Entrypoint string            `json:"entrypoint,omitempty"`
	Args       []string          `json:"args,omitempty"`
	Privileged bool              `json:"privileged,omitempty"`
	Network    string            `json:"network,omitempty"`
	Reports    []*Report         `json:"reports,omitempty"`
	Outputs    []string          `json:"outputs,omitempty"`
	Resources  *Resources        `json:"resources,omitempty"`
	Mount      []*Mount          `json:"mount,omitempty"`
}

type StepGroup

type StepGroup struct {
	Steps []*Step `json:"steps,omitempty"`
}

type StepJenkins

type StepJenkins struct {
	Envs    map[string]string `json:"envs,omitempty"`
	Path    string            `json:"path,omitempty"`
	Mirror  string            `json:"mirror,omitempty"`
	Plugins []string          `json:"plugins,omitempty"`
	Mount   []*Mount          `json:"mount,omitempty"`
}

type StepParallel

type StepParallel struct {
	Steps []*Step `json:"steps,omitempty"`
}

type StepPlugin

type StepPlugin struct {
	Image      string                 `json:"image,omitempty"`
	Name       string                 `json:"name,omitempty"`
	Uses       string                 `json:"uses,omitempty"`
	Connector  string                 `json:"connector,omitempty"`
	Pull       string                 `json:"pull,omitempty"`
	Envs       map[string]string      `json:"envs,omitempty"`
	Reports    []*Report              `json:"reports,omitempty"`
	Privileged bool                   `json:"privileged,omitempty"`
	User       string                 `json:"user,omitempty"`
	Group      string                 `json:"group,omitempty"`
	Network    string                 `json:"network,omitempty"`
	With       map[string]interface{} `json:"with,omitempty"`
	Inputs     map[string]interface{} `json:"inputs,omitempty"`
	Outputs    []string               `json:"outputs,omitempty"`
	Resources  *Resources             `json:"resources,omitempty"`
	Mount      []*Mount               `json:"mount,omitempty"`
}

type StepRun

type StepRun struct {
	Shell     string            `json:"shell,omitempty"`
	Script    Stringorslice     `json:"script,omitempty"`
	Container *Container        `json:"container,omitempty"`
	Envs      map[string]string `json:"envs,omitempty"`
	Reports   []*Report         `json:"reports,omitempty"`
	Outputs   []string          `json:"outputs,omitempty"`
	Mount     []*Mount          `json:"mount,omitempty"`
}

type StepTemplate

type StepTemplate struct {
	Name     string                 `json:"name,omitempty"`
	Inputs   map[string]interface{} `json:"inputs,omitempty"`
	Overlays map[string]interface{} `json:"overlays,omitempty"`
}

type StepTest

type StepTest struct {
	Envs      map[string]string      `json:"envs,omitempty"`
	Uses      string                 `json:"uses,omitempty"`
	With      map[string]interface{} `json:"with,omitempty"`
	Splitting *Splitting             `json:"splitting,omitempty"`
	Reports   []*Report              `json:"reports,omitempty"`
	Mount     []*Mount               `json:"mount,omitempty"`
	Image     string                 `json:"image,omitempty"`
	Connector string                 `json:"connector,omitempty"`
	User      string                 `json:"user,omitempty"`
	Pull      string                 `json:"pull,omitempty"`
	Resources *Resources             `json:"resources,omitempty"`
}

type Strategy

type Strategy struct {
	Type string      `json:"type,omitempty"`
	Spec interface{} `json:"spec,omitempty"`
}

Strategy defines an optional execution strategy.

func (*Strategy) UnmarshalJSON

func (v *Strategy) UnmarshalJSON(data []byte) error

UnmarshalJSON implement the json.Unmarshaler interface.

type StringorInt

type StringorInt int64

StringorInt represents a string or an integer.

func (*StringorInt) UnmarshalJSON

func (s *StringorInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the unmarshal interface.

type Stringorslice

type Stringorslice []string

Stringorslice represents Using engine-api Strslice and augment it with YAML marshalling stuff. a string or an array of strings.

func (*Stringorslice) UnmarshalJSON

func (s *Stringorslice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the unmarshal interface.

type TemplateStage

type TemplateStage struct {
	Name        string            `json:"name,omitempty"`
	Description string            `json:"description,omitempty"`
	Stage       *Stage            `json:"stage,omitempty"`
	Inputs      map[string]*Input `json:"inputs,omitempty"`
}

TemplateStage defines a stage-level template

type TemplateStep

type TemplateStep struct {
	Name        string            `json:"name,omitempty"`
	Description string            `json:"description,omitempty"`
	Step        *Step             `json:"step,omitempty"`
	Inputs      map[string]*Input `json:"inputs,omitempty"`
}

TemplateStep defines a step-level template

type TimeoutAction

type TimeoutAction struct {
	Type string      `json:"type,omitempty"`
	Spec interface{} `json:"spec,omitempty"`
}

Manual intervention for timeout failure action

func (*TimeoutAction) UnmarshalJSON

func (v *TimeoutAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implement the json.Unmarshaler interface.

type VarType

type VarType string
const (
	VarTypeStage VarType = "stage"
)

type Variable

type Variable struct {
	Type VarType `json:"type"`
	Name string  `json:"name"`
}

type Volume

type Volume struct {
	Name string      `json:"name,omitempty"`
	Type string      `json:"type,omitempty"`
	Spec interface{} `json:"spec,omitempty"`
}

func (*Volume) UnmarshalJSON

func (v *Volume) UnmarshalJSON(data []byte) error

UnmarshalJSON implement the json.Unmarshaler interface.

type VolumeClaim

type VolumeClaim struct {
	ClaimName string `json:"claimName"`
	ReadOnly  bool   `json:"readOnly,omitempty"`
}

type VolumeConfigMap

type VolumeConfigMap struct {
	Name     string `json:"name,omitempty"`
	Mode     string `json:"mode,omitempty"`
	Optional bool   `json:"optional,omitempty"`
}

type VolumeHost

type VolumeHost struct {
	Path string `json:"path,omitempty"`
}

type VolumeTemp

type VolumeTemp struct {
	Medium string      `json:"medium,omitempty"`
	Limit  StringorInt `json:"limit,omitempty"`
}

type When

type When struct {
	Eval string
	Cond []map[string]*Expr
}

When defines execution conditions.

func (*When) MarshalJSON

func (v *When) MarshalJSON() ([]byte, error)

MarshalJSON implements the marshal interface.

func (*When) UnmarshalJSON

func (v *When) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the unmarshal interface.

type While

type While struct {
	Condition  string `json:"condition,omitempty"`
	Iterations int64  `json:"iterations,omitempty"`
}

Defines a while loop execution strategy.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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