commands

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBuildpackRegistry deprecated added in v0.14.0

func AddBuildpackRegistry(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Command

Deprecated: Use config registries add instead

func AddHelpFlag

func AddHelpFlag(cmd *cobra.Command, commandName string)

func Build

func Build(logger logging.Logger, cfg config.Config, packClient PackClient) *cobra.Command

Build an image from source code

func BuilderCreate added in v0.16.0

func BuilderCreate(logger logging.Logger, cfg config.Config, pack PackClient) *cobra.Command

CreateBuilder creates a builder image, based on a builder config

func BuilderInspect added in v0.18.0

func BuilderInspect(logger logging.Logger,
	cfg config.Config,
	inspector BuilderInspector,
	writerFactory writer.BuilderWriterFactory,
) *cobra.Command

func BuilderSuggest added in v0.16.0

func BuilderSuggest(logger logging.Logger, inspector BuilderInspector) *cobra.Command

func BuildpackInspect added in v0.18.0

func BuildpackInspect(logger logging.Logger, cfg config.Config, client PackClient) *cobra.Command

func BuildpackNew added in v0.18.0

func BuildpackNew(logger logging.Logger, creator BuildpackCreator) *cobra.Command

BuildpackNew generates the scaffolding of a buildpack

func BuildpackPackage added in v0.16.0

func BuildpackPackage(logger logging.Logger, cfg config.Config, packager BuildpackPackager, packageConfigReader PackageConfigReader) *cobra.Command

BuildpackPackage packages (a) buildpack(s) into OCI format, based on a package config

func BuildpackPull added in v0.16.0

func BuildpackPull(logger logging.Logger, cfg config.Config, pack PackClient) *cobra.Command

BuildpackPull pulls a buildpack and stores it locally

func BuildpackRegister added in v0.16.0

func BuildpackRegister(logger logging.Logger, cfg config.Config, pack PackClient) *cobra.Command

func BuildpackYank added in v0.16.0

func BuildpackYank(logger logging.Logger, cfg config.Config, pack PackClient) *cobra.Command

func CompletionCommand

func CompletionCommand(logger logging.Logger, packHome string) *cobra.Command

func ConfigDefaultBuilder added in v0.16.0

func ConfigDefaultBuilder(logger logging.Logger, cfg config.Config, cfgPath string, client PackClient) *cobra.Command

func ConfigExperimental added in v0.16.0

func ConfigExperimental(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Command

func ConfigLifecycleImage added in v0.18.0

func ConfigLifecycleImage(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Command

func ConfigPullPolicy added in v0.17.0

func ConfigPullPolicy(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Command

func ConfigRegistries added in v0.16.0

func ConfigRegistries(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Command

func ConfigRegistriesDefault added in v0.16.0

func ConfigRegistriesDefault(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Command

func ConfigRegistryMirrors added in v0.20.0

func ConfigRegistryMirrors(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Command

func ConfigRunImagesMirrors added in v0.16.0

func ConfigRunImagesMirrors(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Command

func ConfigTrustedBuilder added in v0.16.0

func ConfigTrustedBuilder(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Command

func CreateBuilder deprecated

func CreateBuilder(logger logging.Logger, cfg config.Config, pack PackClient) *cobra.Command

Deprecated: Use 'builder create' instead. CreateBuilder creates a builder image, based on a builder config

func CreateCancellableContext added in v0.10.0

func CreateCancellableContext() context.Context

func DownloadSBOM added in v0.24.0

func DownloadSBOM(
	logger logging.Logger,
	client PackClient,
) *cobra.Command

func InspectBuilder deprecated

func InspectBuilder(
	logger logging.Logger,
	cfg config.Config,
	inspector BuilderInspector,
	writerFactory writer.BuilderWriterFactory,
) *cobra.Command

Deprecated: Use builder inspect instead.

func InspectBuildpack deprecated added in v0.14.0

func InspectBuildpack(logger logging.Logger, cfg config.Config, client PackClient) *cobra.Command

Deprecated: Use buildpack inspect instead.

func InspectImage

func InspectImage(
	logger logging.Logger,
	writerFactory InspectImageWriterFactory,
	cfg config.Config,
	client PackClient,
) *cobra.Command

func ListBuildpackRegistries deprecated added in v0.14.0

func ListBuildpackRegistries(logger logging.Logger, cfg config.Config) *cobra.Command

Deprecated: Use config registries list instead

func ListTrustedBuilders deprecated added in v0.12.0

func ListTrustedBuilders(logger logging.Logger, cfg config.Config) *cobra.Command

Deprecated: Use `config trusted-builders list` instead

func NewBuilderCommand added in v0.16.0

func NewBuilderCommand(logger logging.Logger, cfg config.Config, client PackClient) *cobra.Command

func NewBuildpackCommand added in v0.16.0

func NewBuildpackCommand(logger logging.Logger, cfg config.Config, client PackClient, packageConfigReader PackageConfigReader) *cobra.Command

func NewConfigCommand added in v0.16.0

func NewConfigCommand(logger logging.Logger, cfg config.Config, cfgPath string, client PackClient) *cobra.Command

func NewSBOMCommand added in v0.24.0

func NewSBOMCommand(logger logging.Logger, cfg config.Config, client PackClient) *cobra.Command

func NewStackCommand added in v0.16.0

func NewStackCommand(logger logging.Logger) *cobra.Command

func PackageBuildpack deprecated added in v0.9.0

func PackageBuildpack(logger logging.Logger, cfg config.Config, packager BuildpackPackager, packageConfigReader PackageConfigReader) *cobra.Command

Deprecated: use BuildpackPackage instead PackageBuildpack packages (a) buildpack(s) into OCI format, based on a package config

func Rebase

func Rebase(logger logging.Logger, cfg config.Config, pack PackClient) *cobra.Command

func RegisterBuildpack deprecated added in v0.13.0

func RegisterBuildpack(logger logging.Logger, cfg config.Config, pack PackClient) *cobra.Command

Deprecated: Use BuildpackRegister instead

func RemoveRegistry deprecated added in v0.15.0

func RemoveRegistry(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Command

Deprecated: Use config registries remove instead

func Report

func Report(logger logging.Logger, version, cfgPath string) *cobra.Command

func SetDefaultBuilder deprecated

func SetDefaultBuilder(logger logging.Logger, cfg config.Config, cfgPath string, client PackClient) *cobra.Command

Deprecated: Use `pack config default-builder`

func SetDefaultRegistry deprecated added in v0.15.0

func SetDefaultRegistry(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Command

Deprecated: Use `pack config registries default` instead

func SetRunImagesMirrors deprecated

func SetRunImagesMirrors(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Command

Deprecated: Use `pack config run-image-mirrors add` instead SetRunImagesMirrors sets run image mirros for a given run image

func Suggest added in v0.16.0

func Suggest(log logging.Logger)

func SuggestBuilders deprecated

func SuggestBuilders(logger logging.Logger, inspector BuilderInspector) *cobra.Command

Deprecated: Use `builder suggest` instead.

func SuggestStacks deprecated

func SuggestStacks(logger logging.Logger) *cobra.Command

Deprecated: Use `stack suggest` instead

func TrustBuilder deprecated added in v0.11.0

func TrustBuilder(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Command

Deprecated: Use `config trusted-builders add` instead

func UntrustBuilder deprecated added in v0.12.0

func UntrustBuilder(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Command

Deprecated: Use `config trusted-builders remove` instead

func Version

func Version(logger logging.Logger, version string) *cobra.Command

Version shows the current pack version

func WriteSuggestedBuilder added in v0.11.0

func WriteSuggestedBuilder(logger logging.Logger, inspector BuilderInspector, builders []bldr.SuggestedBuilder)

func YankBuildpack deprecated added in v0.13.0

func YankBuildpack(logger logging.Logger, cfg config.Config, pack PackClient) *cobra.Command

Deprecated: Use yank instead

Types

type BuildFlags

type BuildFlags struct {
	Publish            bool
	ClearCache         bool
	TrustBuilder       bool
	Interactive        bool
	DockerHost         string
	CacheImage         string
	AppPath            string
	Builder            string
	Registry           string
	RunImage           string
	Policy             string
	Network            string
	DescriptorPath     string
	DefaultProcessType string
	LifecycleImage     string
	Env                []string
	EnvFiles           []string
	Buildpacks         []string
	Volumes            []string
	AdditionalTags     []string
	Workspace          string
	GID                int
	PreviousImage      string
	SBOMDestinationDir string
	DateTime           string
}

type BuilderCreateFlags added in v0.16.0

type BuilderCreateFlags struct {
	BuilderTomlPath string
	Publish         bool
	Registry        string
	Policy          string
}

BuilderCreateFlags define flags provided to the CreateBuilder command

type BuilderInspectFlags added in v0.18.0

type BuilderInspectFlags struct {
	Depth        int
	OutputFormat string
}

type BuilderInspector added in v0.15.0

type BuilderInspector interface {
	InspectBuilder(name string, daemon bool, modifiers ...client.BuilderInspectionModifier) (*client.BuilderInfo, error)
}

type BuildpackCreator added in v0.18.0

type BuildpackCreator interface {
	NewBuildpack(ctx context.Context, options client.NewBuildpackOptions) error
}

BuildpackCreator creates buildpacks

type BuildpackInspectFlags added in v0.18.0

type BuildpackInspectFlags struct {
	Depth    int
	Registry string
	Verbose  bool
}

type BuildpackNewFlags added in v0.18.0

type BuildpackNewFlags struct {
	API     string
	Path    string
	Stacks  []string
	Version string
}

BuildpackNewFlags define flags provided to the BuildpackNew command

type BuildpackPackageFlags added in v0.16.0

type BuildpackPackageFlags struct {
	PackageTomlPath   string
	Format            string
	Publish           bool
	Policy            string
	BuildpackRegistry string
	Path              string
}

BuildpackPackageFlags define flags provided to the BuildpackPackage command

type BuildpackPackager added in v0.9.0

type BuildpackPackager interface {
	PackageBuildpack(ctx context.Context, options client.PackageBuildpackOptions) error
}

BuildpackPackager packages buildpacks

type BuildpackPullFlags added in v0.16.0

type BuildpackPullFlags struct {
	// BuildpackRegistry is the name of the buildpack registry to use to search for
	BuildpackRegistry string
}

BuildpackPullFlags consist of flags applicable to the `buildpack pull` command

type BuildpackRegisterFlags added in v0.16.0

type BuildpackRegisterFlags struct {
	BuildpackRegistry string
}

type BuildpackYankFlags added in v0.16.0

type BuildpackYankFlags struct {
	BuildpackRegistry string
	Undo              bool
}

type CompletionFlags added in v0.12.0

type CompletionFlags struct {
	Shell string
}

type DownloadSBOMFlags added in v0.24.0

type DownloadSBOMFlags struct {
	Remote         bool
	DestinationDir string
}

type InspectImageFlags

type InspectImageFlags struct {
	BOM          bool
	OutputFormat string
}

type InspectImageWriterFactory added in v0.16.0

type InspectImageWriterFactory interface {
	Writer(kind string, BOM bool) (writer.InspectImageWriter, error)
}

type PackageConfigReader added in v0.9.0

type PackageConfigReader interface {
	Read(path string) (pubbldpkg.Config, error)
}

PackageConfigReader reads BuildpackPackage configs

Directories

Path Synopsis
Package testmocks is a generated GoMock package.
Package testmocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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