config

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 8 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidGitFlag = errors.New("invalid git flag, must be in the key=value format")
View Source
var IgnoreListPath string
View Source
var KanikoDir string
View Source
var RootDir string

Functions

This section is empty.

Types

type CacheOptions added in v0.11.0

type CacheOptions struct {
	CacheDir string
	CacheTTL time.Duration
}

CacheOptions are base image cache options that are set by command line arguments

type KanikoGitOptions added in v1.0.0

type KanikoGitOptions struct {
	Branch            string
	SingleBranch      bool
	RecurseSubmodules bool
}

func (*KanikoGitOptions) Set added in v1.0.0

func (k *KanikoGitOptions) Set(s string) error

func (*KanikoGitOptions) String added in v1.0.0

func (k *KanikoGitOptions) String() string

func (*KanikoGitOptions) Type added in v1.0.0

func (k *KanikoGitOptions) Type() string

type KanikoOptions

type KanikoOptions struct {
	CacheOptions
	RegistryOptions
	DockerfilePath         string
	SrcContext             string
	SnapshotMode           string
	CustomPlatform         string
	Bucket                 string
	TarPath                string
	Target                 string
	CacheRepo              string
	DigestFile             string
	ImageNameDigestFile    string
	ImageNameTagDigestFile string
	OCILayoutPath          string
	Destinations           multiArg
	BuildArgs              multiArg
	Labels                 multiArg
	SingleSnapshot         bool
	Reproducible           bool
	NoPush                 bool
	Cache                  bool
	Cleanup                bool
	IgnoreVarRun           bool
	SkipUnusedStages       bool
	RunV2                  bool
	CacheCopyLayers        bool
	Git                    KanikoGitOptions
}

KanikoOptions are options that are set by command line arguments

type KanikoStage

type KanikoStage struct {
	instructions.Stage
	BaseImageIndex         int
	Final                  bool
	BaseImageStoredLocally bool
	SaveStage              bool
	MetaArgs               []instructions.ArgCommand
	Index                  int
}

KanikoStage wraps a stage of the Dockerfile and provides extra information

type RegistryOptions added in v1.4.0

type RegistryOptions struct {
	RegistryMirrors         multiArg
	InsecureRegistries      multiArg
	SkipTLSVerifyRegistries multiArg
	RegistriesCertificates  keyValueArg
	Insecure                bool
	SkipTLSVerify           bool
	InsecurePull            bool
	SkipTLSVerifyPull       bool
}

RegistryOptions are all the options related to the registries, set by command line arguments.

type WarmerOptions added in v0.5.0

type WarmerOptions struct {
	CacheOptions
	RegistryOptions
	CustomPlatform string
	Images         multiArg
	Force          bool
}

WarmerOptions are options that are set by command line arguments to the cache warmer.

Jump to

Keyboard shortcuts

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