commands

package
v0.16.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: Apache-2.0 Imports: 39 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, client PackClient) *cobra.Command

CreateBuilder creates a builder image, based on a builder config

func BuilderSuggest added in v0.16.0

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

func BuildpackPackage added in v0.16.0

func BuildpackPackage(logger logging.Logger, client 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, client 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, client PackClient) *cobra.Command

func BuildpackYank added in v0.16.0

func BuildpackYank(logger logging.Logger, cfg config.Config, client 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 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 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, client 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 InspectBuilder

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

func InspectBuildpack added in v0.14.0

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

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 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, client 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, client PackClient) *cobra.Command

func RegisterBuildpack deprecated added in v0.13.0

func RegisterBuildpack(logger logging.Logger, cfg config.Config, client 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, 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) *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) *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) *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 []SuggestedBuilder)

func YankBuildpack deprecated added in v0.13.0

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

Deprecated: Use yank instead

Types

type BuildFlags

type BuildFlags struct {
	Publish            bool
	ClearCache         bool
	TrustBuilder       bool
	AppPath            string
	Builder            string
	Registry           string
	RunImage           string
	Policy             string
	Network            string
	DescriptorPath     string
	DefaultProcessType string
	Env                []string
	EnvFiles           []string
	Buildpacks         []string
	Volumes            []string
	AdditionalTags     []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 BuilderInspector added in v0.15.0

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

type BuildpackPackageFlags added in v0.16.0

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

BuildpackPackageFlags define flags provided to the BuildpackPackage command

type BuildpackPackager added in v0.9.0

type BuildpackPackager interface {
	PackageBuildpack(ctx context.Context, options pack.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 InspectBuilderFlags added in v0.13.0

type InspectBuilderFlags struct {
	Depth        int
	OutputFormat string
}

type InspectBuildpackFlags added in v0.14.0

type InspectBuildpackFlags struct {
	Depth    int
	Registry string
	Verbose  bool
}

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

type SuggestedBuilder added in v0.11.0

type SuggestedBuilder struct {
	Vendor             string
	Image              string
	DefaultDescription string
}

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