v1

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainConfig

type ContainConfig struct {
	Status ContainConfigStatus
	// Base is the base image reference
	Base string `yaml:"base" skaffold:"template"`
	// Tag is the result reference to be pushed
	Tag       string   `yaml:"tag" skaffold:"template"`
	Platforms []string `yaml:"platforms"`
	Layers    []Layer  `yaml:"layers,omitempty"`
	Sync      ContainConfigSync
}

type ContainConfigOverrides

type ContainConfigOverrides struct {
	Base bool
}

type ContainConfigStatus

type ContainConfigStatus struct {
	Template  bool   // true if config is from a template
	Md5       string // config source md5 (not for template)
	Sha256    string // config source sha256 (not for template)
	Overrides ContainConfigOverrides
}

type ContainConfigSync

type ContainConfigSync struct {
	PodSelector     string
	Namespace       string
	GetAttemptsMax  int
	GetAttemptsWait time.Duration
}

type Layer

type Layer struct {
	Attributes LayerAttributes `yaml:"layerAttributes,omitempty"`
	// exactly one of the following
	LocalDir  LocalDir  `yaml:"localDir,omitempty"`
	LocalFile LocalFile `yaml:"localFile,omitempty"`
}

type LayerAttributes added in v0.3.3

type LayerAttributes struct {
	// generic, supported for applicable layer types
	Uid uint16 `yaml:"uid,omitempty"`
	Gid uint16 `yaml:"gid,omitempty"`

	// Mode bits to use on files, must be a value between 0 and 0777.
	// YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
	FileMode int32 `yaml:"mode,omitempty"`
}

type LocalDir

type LocalDir struct {
	Path          string   `yaml:"path" skaffold:"filepath,template"`
	ContainerPath string   `yaml:"containerPath,omitempty" skaffold:"template"`
	Ignore        []string `yaml:"ignore,omitempty" skaffold:"template"`
	MaxFiles      int      `yaml:"maxFiles,omitempty"`
	MaxSize       string   `yaml:"maxSize,omitempty" skaffold:"template"`
}

LocalDir is a directory structure that should be appended as-is to base with an optional path prefix, for example ./target/app to /app

type LocalFile added in v0.5.2

type LocalFile struct {
	Path          string `yaml:"path" skaffold:"filepath,template"`
	ContainerPath string `yaml:"containerPath,omitempty" skaffold:"template"`
	MaxSize       string `yaml:"maxSize,omitempty" skaffold:"template"`
}

LocalFile is a single file that should be appended as-is to base with an optional path prefix, for example ./target/runner to /runner

Jump to

Keyboard shortcuts

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