Documentation ¶
Index ¶
- func AddBuildpackRegistry(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Commanddeprecated
- func AddHelpFlag(cmd *cobra.Command, commandName string)
- func Build(logger logging.Logger, cfg config.Config, packClient PackClient) *cobra.Command
- func BuilderCreate(logger logging.Logger, cfg config.Config, client PackClient) *cobra.Command
- func BuilderSuggest(logger logging.Logger, inspector BuilderInspector) *cobra.Command
- func BuildpackPackage(logger logging.Logger, client BuildpackPackager, ...) *cobra.Command
- func BuildpackPull(logger logging.Logger, cfg config.Config, client PackClient) *cobra.Command
- func BuildpackRegister(logger logging.Logger, cfg config.Config, client PackClient) *cobra.Command
- func BuildpackYank(logger logging.Logger, cfg config.Config, client PackClient) *cobra.Command
- func CompletionCommand(logger logging.Logger, packHome string) *cobra.Command
- func ConfigDefaultBuilder(logger logging.Logger, cfg config.Config, cfgPath string, client PackClient) *cobra.Command
- func ConfigExperimental(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Command
- func ConfigRegistries(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Command
- func ConfigRegistriesDefault(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Command
- func ConfigRunImagesMirrors(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Command
- func ConfigTrustedBuilder(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Command
- func CreateBuilder(logger logging.Logger, cfg config.Config, client PackClient) *cobra.Commanddeprecated
- func CreateCancellableContext() context.Context
- func InspectBuilder(logger logging.Logger, cfg config.Config, inspector BuilderInspector, ...) *cobra.Command
- func InspectBuildpack(logger logging.Logger, cfg *config.Config, client PackClient) *cobra.Command
- func InspectImage(logger logging.Logger, writerFactory InspectImageWriterFactory, ...) *cobra.Command
- func ListBuildpackRegistries(logger logging.Logger, cfg config.Config) *cobra.Commanddeprecated
- func ListTrustedBuilders(logger logging.Logger, cfg config.Config) *cobra.Commanddeprecated
- func NewBuilderCommand(logger logging.Logger, cfg config.Config, client PackClient) *cobra.Command
- func NewBuildpackCommand(logger logging.Logger, cfg config.Config, client PackClient, ...) *cobra.Command
- func NewConfigCommand(logger logging.Logger, cfg config.Config, cfgPath string, client PackClient) *cobra.Command
- func NewStackCommand(logger logging.Logger) *cobra.Command
- func PackageBuildpack(logger logging.Logger, cfg config.Config, client BuildpackPackager, ...) *cobra.Commanddeprecated
- func Rebase(logger logging.Logger, cfg config.Config, client PackClient) *cobra.Command
- func RegisterBuildpack(logger logging.Logger, cfg config.Config, client PackClient) *cobra.Commanddeprecated
- func RemoveRegistry(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Commanddeprecated
- func Report(logger logging.Logger, version, cfgPath string) *cobra.Command
- func SetDefaultBuilder(logger logging.Logger, cfg config.Config, client PackClient) *cobra.Commanddeprecated
- func SetDefaultRegistry(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Commanddeprecated
- func SetRunImagesMirrors(logger logging.Logger, cfg config.Config) *cobra.Commanddeprecated
- func Suggest(log logging.Logger)
- func SuggestBuilders(logger logging.Logger, inspector BuilderInspector) *cobra.Commanddeprecated
- func SuggestStacks(logger logging.Logger) *cobra.Commanddeprecated
- func TrustBuilder(logger logging.Logger, cfg config.Config) *cobra.Commanddeprecated
- func UntrustBuilder(logger logging.Logger, cfg config.Config) *cobra.Commanddeprecated
- func Version(logger logging.Logger, version string) *cobra.Command
- func WriteSuggestedBuilder(logger logging.Logger, inspector BuilderInspector, builders []SuggestedBuilder)
- func YankBuildpack(logger logging.Logger, cfg config.Config, client PackClient) *cobra.Commanddeprecated
- type BuildFlags
- type BuilderCreateFlags
- type BuilderInspector
- type BuildpackPackageFlags
- type BuildpackPackager
- type BuildpackPullFlags
- type BuildpackRegisterFlags
- type BuildpackYankFlags
- type CompletionFlags
- type InspectBuilderFlags
- type InspectBuildpackFlags
- type InspectImageFlags
- type InspectImageWriterFactory
- type PackClient
- type PackageConfigReader
- type SuggestedBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHelpFlag ¶
func BuilderCreate ¶ added in v0.16.0
CreateBuilder creates a builder image, based on a builder config
func BuilderSuggest ¶ added in v0.16.0
func BuilderSuggest(logger logging.Logger, inspector BuilderInspector) *cobra.Command
func BuildpackPackage ¶ added in v0.16.0
func BuildpackPackage(logger logging.Logger, client BuildpackPackager, packageConfigReader PackageConfigReader) *cobra.Command
BuildpackPackage packages (a) buildpack(s) into OCI format, based on a package config
func BuildpackPull ¶ added in v0.16.0
BuildpackPull pulls a buildpack and stores it locally
func BuildpackRegister ¶ added in v0.16.0
func BuildpackYank ¶ added in v0.16.0
func CompletionCommand ¶
func ConfigDefaultBuilder ¶ added in v0.16.0
func ConfigExperimental ¶ added in v0.16.0
func ConfigRegistries ¶ added in v0.16.0
func ConfigRegistriesDefault ¶ added in v0.16.0
func ConfigRunImagesMirrors ¶ added in v0.16.0
func ConfigTrustedBuilder ¶ added in v0.16.0
func CreateBuilder
deprecated
func CreateCancellableContext ¶ added in v0.10.0
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 InspectImage ¶
func InspectImage( logger logging.Logger, writerFactory InspectImageWriterFactory, cfg config.Config, client PackClient, ) *cobra.Command
func NewBuilderCommand ¶ added in v0.16.0
func NewBuildpackCommand ¶ added in v0.16.0
func NewBuildpackCommand(logger logging.Logger, cfg config.Config, client PackClient, packageConfigReader PackageConfigReader) *cobra.Command
func NewConfigCommand ¶ added in v0.16.0
func PackageBuildpack
deprecated
added in
v0.9.0
func PackageBuildpack(logger logging.Logger, cfg config.Config, client BuildpackPackager, packageConfigReader PackageConfigReader) *cobra.Command
Deprecated: use BuildpackPackage instead PackageBuildpack packages (a) buildpack(s) into OCI format, based on a package config
func RegisterBuildpack
deprecated
added in
v0.13.0
func SetDefaultBuilder
deprecated
func SuggestBuilders
deprecated
func SuggestBuilders(logger logging.Logger, inspector BuilderInspector) *cobra.Command
Deprecated: Use `builder suggest` instead.
func SuggestStacks
deprecated
func WriteSuggestedBuilder ¶ added in v0.11.0
func WriteSuggestedBuilder(logger logging.Logger, inspector BuilderInspector, builders []SuggestedBuilder)
func YankBuildpack
deprecated
added in
v0.13.0
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 AdditionalTags []string }
type BuilderCreateFlags ¶ added in v0.16.0
type BuilderCreateFlags struct { BuilderTomlPath string Publish bool Registry string Policy string }
BuilderCreateFlags define flags provided to the CreateBuilder command
type BuilderInspector ¶ added in v0.15.0
type BuilderInspector interface {
InspectBuilder(name string, daemon bool, modifiers ...pack.BuilderInspectionModifier) (*pack.BuilderInfo, error)
}
type BuildpackPackageFlags ¶ added in v0.16.0
type BuildpackPackageFlags struct { PackageTomlPath string Format string Publish bool Policy string }
BuildpackPackageFlags define flags provided to the BuildpackPackage command
type BuildpackPackager ¶ added in v0.9.0
type BuildpackPackager interface {
PackageBuildpack(ctx context.Context, options pack.PackageBuildpackOptions) error
}
BuildpackPackager packages buildpacks
type BuildpackPullFlags ¶ added in v0.16.0
type BuildpackPullFlags struct { // BuildpackRegistry is the name of the buildpack registry to use to search for BuildpackRegistry string }
BuildpackPullFlags consist of flags applicable to the `buildpack pull` command
type BuildpackRegisterFlags ¶ added in v0.16.0
type BuildpackRegisterFlags struct {
BuildpackRegistry string
}
type BuildpackYankFlags ¶ added in v0.16.0
type CompletionFlags ¶ added in v0.12.0
type CompletionFlags struct {
Shell string
}
type InspectBuilderFlags ¶ added in v0.13.0
type InspectBuildpackFlags ¶ added in v0.14.0
type InspectImageFlags ¶
type InspectImageWriterFactory ¶ added in v0.16.0
type InspectImageWriterFactory interface {
Writer(kind string, BOM bool) (writer.InspectImageWriter, error)
}
type PackClient ¶
type PackClient interface { InspectBuilder(string, bool, ...pack.BuilderInspectionModifier) (*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) PullBuildpack(context.Context, pack.PullBuildpackOptions) error }
type PackageConfigReader ¶ added in v0.9.0
PackageConfigReader reads BuildpackPackage configs
type SuggestedBuilder ¶ added in v0.11.0
Source Files ¶
- add_registry.go
- build.go
- builder.go
- builder_create.go
- builder_suggest.go
- buildpack.go
- buildpack_package.go
- buildpack_pull.go
- buildpack_register.go
- buildpack_yank.go
- commands.go
- completion.go
- config.go
- config_default_builder.go
- config_experimental.go
- config_registries.go
- config_registries_default.go
- config_run_image_mirrors.go
- config_trusted_builder.go
- create_builder.go
- inspect_builder.go
- inspect_buildpack.go
- inspect_image.go
- list_registries.go
- list_trusted_builders.go
- package_buildpack.go
- rebase.go
- register_buildpack.go
- remove_registry.go
- report.go
- set_default_builder.go
- set_default_registry.go
- set_run_image_mirrors.go
- stack.go
- stack_suggest.go
- suggest_builders.go
- suggest_stacks.go
- trust_builder.go
- untrust_builder.go
- version.go
- yank_buildpack.go