commands

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 39 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, client PackClient) *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, 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 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 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, client PackClient) *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, client PackClient, 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
	NoPull             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 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
	NoPull          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
}

type InspectBuildpackFlags added in v0.14.0

type InspectBuildpackFlags struct {
	Depth    int
	Registry string
	Verbose  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
	RegisterBuildpack(context.Context, pack.RegisterBuildpackOptions) error
	YankBuildpack(pack.YankBuildpackOptions) error
	InspectBuildpack(pack.InspectBuildpackOptions) (*pack.BuildpackInfo, error)
}

type PackageBuildpackFlags added in v0.9.0

type PackageBuildpackFlags struct {
	PackageTomlPath string
	Format          string
	Publish         bool
	NoPull          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