commands

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHelpFlag

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

func Build

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

func CompletionCommand

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

func CreateBuilder

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

func CreateCancellableContext added in v0.10.0

func CreateCancellableContext() context.Context

func InspectBuilder

func InspectBuilder(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 IsSoftError

func IsSoftError(err error) bool

func PackageBuildpack added in v0.9.0

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

func Rebase

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

func Report

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

func SetDefaultBuilder

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

func SetRunImagesMirrors

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

func SuggestBuilders

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

func SuggestStacks

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

func Version

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

Types

type BuildFlags

type BuildFlags struct {
	AppPath            string
	Builder            string
	RunImage           string
	Env                []string
	EnvFiles           []string
	Publish            bool
	NoPull             bool
	ClearCache         bool
	Buildpacks         []string
	Network            string
	DescriptorPath     string
	Volumes            []string
	DefaultProcessType string
}

type BuildpackPackager added in v0.9.0

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

type CreateBuilderFlags

type CreateBuilderFlags struct {
	BuilderTomlPath string
	Publish         bool
	NoPull          bool
}

type InspectImageFlags

type InspectImageFlags struct {
	BOM bool
}

type PackClient

type PackClient interface {
	InspectBuilder(string, bool) (*pack.BuilderInfo, error)
	InspectImage(string, bool) (*pack.ImageInfo, error)
	Rebase(context.Context, pack.RebaseOptions) error
	CreateBuilder(context.Context, pack.CreateBuilderOptions) error
	PackageBuildpack(ctx context.Context, opts pack.PackageBuildpackOptions) error
	Build(context.Context, pack.BuildOptions) error
}

type PackageBuildpackFlags added in v0.9.0

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

type PackageConfigReader added in v0.9.0

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

type SoftError

type SoftError struct {
}

func MakeSoftError

func MakeSoftError() SoftError

func (SoftError) Error

func (se SoftError) Error() 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