commands

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 31 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 CreatePackage

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

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

func IsSoftError

func IsSoftError(err error) bool

func ReadPackageConfig

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

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
}

type CreateBuilderFlags

type CreateBuilderFlags struct {
	BuilderTomlPath string
	Publish         bool
	NoPull          bool
}

type CreatePackageFlags

type CreatePackageFlags struct {
	PackageTomlPath 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
	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 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