commands

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: Apache-2.0 Imports: 28 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 added in v0.3.0

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

func CreateBuilder

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

func CreatePackage added in v0.5.0

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

func InspectBuilder

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

func InspectImage added in v0.5.0

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

func IsSoftError

func IsSoftError(err error) bool

func ReadPackageConfig added in v0.5.0

func ReadPackageConfig(path string) (buildpackage.Config, error)

func Rebase

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

func Run

func Run(logger logging.Logger, cfg config.Config, packClient *pack.Client) *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 added in v0.2.0

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

func SuggestStacks added in v0.3.0

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

func Version

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

Types

type BuildFlags added in v0.2.0

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

type CreateBuilderFlags added in v0.2.0

type CreateBuilderFlags struct {
	BuilderTomlPath string
	Publish         bool
	NoPull          bool
}

type CreatePackageFlags added in v0.5.0

type CreatePackageFlags struct {
	PackageTomlPath string
	Publish         bool
}

type InspectImageFlags added in v0.5.0

type InspectImageFlags struct {
	BOM bool
}

type PackClient added in v0.2.0

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
	CreatePackage(ctx context.Context, opts pack.CreatePackageOptions) error
	Build(context.Context, pack.BuildOptions) error
}

type SoftError

type SoftError struct {
}

func MakeSoftError

func MakeSoftError() SoftError

func (SoftError) Error

func (se SoftError) Error() string

Directories

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

Jump to

Keyboard shortcuts

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