commands

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBuildpackRegistry added in v0.14.0

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

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 CompletionCommand

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

func CreateBuilder

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

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

func ListBuildpackRegistries added in v0.14.0

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

func ListTrustedBuilders added in v0.12.0

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

func PackageBuildpack added in v0.9.0

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

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 added in v0.13.0

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

func RemoveRegistry added in v0.15.0

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

func Report

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

func SetDefaultBuilder

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

func SetDefaultRegistry added in v0.15.0

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

func SetRunImagesMirrors

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

SetRunImagesMirrors sets run image mirros for a given run image

func SuggestBuilders

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

func SuggestStacks

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

func TrustBuilder added in v0.11.0

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

func UntrustBuilder added in v0.12.0

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

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 added in v0.13.0

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

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
}

type BuilderInspector added in v0.15.0

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

type BuildpackPackager added in v0.9.0

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

BuildpackPackager packages buildpacks

type CompletionFlags added in v0.12.0

type CompletionFlags struct {
	Shell string
}

type CreateBuilderFlags

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

CreateBuilderFlags define flags provided to the CreateBuilder command

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
}

type PackageBuildpackFlags added in v0.9.0

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

PackageBuildpackFlags define flags provided to the PackageBuildpack command

type PackageConfigReader added in v0.9.0

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

PackageConfigReader reads PackageBuildpack configs

type RegisterBuildpackFlags added in v0.13.0

type RegisterBuildpackFlags struct {
	BuildpackRegistry string
}

type SuggestedBuilder added in v0.11.0

type SuggestedBuilder struct {
	Vendor             string
	Image              string
	DefaultDescription string
}

type YankBuildpackFlags added in v0.13.0

type YankBuildpackFlags struct {
	BuildpackRegistry string
	Undo              bool
}

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