options

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = Options{
	Log: &logrus.Logger{
		Out: os.Stderr,
		Formatter: &nested.Formatter{
			ShowFullLevel: true,
		},
		Hooks: make(logrus.LevelHooks),
		Level: logrus.InfoLevel,
	},
	Arch: types.ParseArchitecture(runtime.GOARCH),
}

Functions

This section is empty.

Types

type Options

type Options struct {
	UseDockerMediaTypes     bool
	WantSBOM                bool
	WithVCS                 bool
	WorkDir                 string
	TarballPath             string
	Tags                    []string
	SourceDateEpoch         time.Time
	SBOMPath                string
	SBOMFormats             []string
	ExtraKeyFiles           []string
	ExtraRepos              []string
	Arch                    types.Architecture
	Log                     *logrus.Logger
	TempDirPath             string
	PackageVersionTag       string
	PackageVersionTagStem   bool
	PackageVersionTagPrefix string
	TagSuffix               string
	Local                   bool
	StageTags               string
}

func (*Options) Logger added in v0.5.0

func (o *Options) Logger() *logrus.Entry

func (*Options) Summarize

func (o *Options) Summarize(logger *logrus.Entry)

func (Options) TarballFileName added in v0.5.0

func (o Options) TarballFileName() string

TarballFileName returns a deterministic filename for the layer taball

func (*Options) TempDir added in v0.5.0

func (o *Options) TempDir() string

Tempdir returns the temporary directory where apko will create the layer blobs

Jump to

Keyboard shortcuts

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