cli

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCmd

func BuildCmd(ctx context.Context, imageRef, outputTarGZ string, archs []types.Architecture, tags []string, wantSBOM bool, sbomPath string, logger log.Logger, opts ...build.Option) error

func BuildMinirootFSCmd

func BuildMinirootFSCmd(ctx context.Context, opts ...build.Option) error

func New

func New() *cobra.Command

func PublishCmd

func PublishCmd(ctx context.Context, outputRefs string, archs []types.Architecture, ropt []remote.Option, buildOpts []build.Option, publishOpts []PublishOption) error

func ShowConfigCmd

func ShowConfigCmd(ctx context.Context, opts ...build.Option) error

func ShowPackagesCmd added in v0.7.0

func ShowPackagesCmd(ctx context.Context, format string, archs []types.Architecture, opts ...build.Option) error

Types

type PublishOption added in v0.9.0

type PublishOption func(*publishOpt) error

PublishOption is an option for publishing

func WithLocal added in v0.9.0

func WithLocal(local bool) PublishOption

WithLocal sets whether to publish image to local Docker daemon.

func WithLogger added in v0.9.0

func WithLogger(logger log.Logger) PublishOption

WithLogger logger to use

func WithPackageVersionTag added in v0.9.0

func WithPackageVersionTag(pvt string) PublishOption

WithPackageVersionTag sets a tag to use, e.g. `glibc-2.31`.

func WithPackageVersionTagPrefix added in v0.9.0

func WithPackageVersionTagPrefix(packageVersionTagPrefix string) PublishOption

WithPackageVersionTagPrefix sets a tag prefix to use, e.g. `glibc-`.

func WithPackageVersionTagStem added in v0.9.0

func WithPackageVersionTagStem(packageVersionTagStem bool) PublishOption

WithPackageVersionTagStem sets whether to use the package version tag stem, e.g. `glibc`.

func WithStageTags added in v0.9.0

func WithStageTags(stageTags string) PublishOption

WithStageTags prevents tagging, and innstead writes all tags to the filename provided.

func WithTagSuffix added in v0.9.0

func WithTagSuffix(tagSuffix string) PublishOption

WithTagSuffix sets a tag suffix to use, e.g. `-glibc`.

func WithTags added in v0.9.0

func WithTags(tags ...string) PublishOption

WithTags tags to use

Jump to

Keyboard shortcuts

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