Documentation ¶
Index ¶
- func AddBuildpackRegistry(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Command
- func AddHelpFlag(cmd *cobra.Command, commandName string)
- func Build(logger logging.Logger, cfg config.Config, packClient PackClient) *cobra.Command
- func CompletionCommand(logger logging.Logger) *cobra.Command
- func CreateBuilder(logger logging.Logger, cfg config.Config, client PackClient) *cobra.Command
- 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, cfg *config.Config, client PackClient) *cobra.Command
- func ListBuildpackRegistries(logger logging.Logger, cfg config.Config) *cobra.Command
- func ListTrustedBuilders(logger logging.Logger, cfg config.Config) *cobra.Command
- func PackageBuildpack(logger logging.Logger, cfg config.Config, client BuildpackPackager, ...) *cobra.Command
- func Rebase(logger logging.Logger, cfg config.Config, client PackClient) *cobra.Command
- func RegisterBuildpack(logger logging.Logger, cfg config.Config, client PackClient) *cobra.Command
- func RemoveRegistry(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Command
- func Report(logger logging.Logger, version string) *cobra.Command
- func SetDefaultBuilder(logger logging.Logger, cfg config.Config, client PackClient) *cobra.Command
- func SetDefaultRegistry(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Command
- func SetRunImagesMirrors(logger logging.Logger, cfg config.Config) *cobra.Command
- func SuggestBuilders(logger logging.Logger, inspector BuilderInspector) *cobra.Command
- func SuggestStacks(logger logging.Logger) *cobra.Command
- func TrustBuilder(logger logging.Logger, cfg config.Config) *cobra.Command
- func UntrustBuilder(logger logging.Logger, cfg config.Config) *cobra.Command
- 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.Command
- type BuildFlags
- type BuilderInspector
- type BuildpackPackager
- type CompletionFlags
- type CreateBuilderFlags
- type InspectBuilderFlags
- type InspectBuildpackFlags
- type InspectImageFlags
- type PackClient
- type PackageBuildpackFlags
- type PackageConfigReader
- type RegisterBuildpackFlags
- type SuggestedBuilder
- type YankBuildpackFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBuildpackRegistry ¶ added in v0.14.0
func AddHelpFlag ¶
func CreateBuilder ¶
CreateBuilder creates a builder image, based on a builder config
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 ListBuildpackRegistries ¶ added in v0.14.0
func ListTrustedBuilders ¶ added in v0.12.0
func PackageBuildpack ¶ added in v0.9.0
func PackageBuildpack(logger logging.Logger, cfg config.Config, client BuildpackPackager, packageConfigReader PackageConfigReader) *cobra.Command
PackageBuildpack packages (a) buildpack(s) into OCI format, based on a package config
func RegisterBuildpack ¶ added in v0.13.0
func RemoveRegistry ¶ added in v0.15.0
func SetDefaultBuilder ¶
func SetDefaultRegistry ¶ added in v0.15.0
func SetRunImagesMirrors ¶
SetRunImagesMirrors sets run image mirros for a given run image
func SuggestBuilders ¶
func SuggestBuilders(logger logging.Logger, inspector BuilderInspector) *cobra.Command
func TrustBuilder ¶ added in v0.11.0
func UntrustBuilder ¶ added in v0.12.0
func WriteSuggestedBuilder ¶ added in v0.11.0
func WriteSuggestedBuilder(logger logging.Logger, inspector BuilderInspector, builders []SuggestedBuilder)
func YankBuildpack ¶ added in v0.13.0
Types ¶
type BuildFlags ¶
type BuilderInspector ¶ added in v0.15.0
type BuilderInspector interface {
InspectBuilder(name string, daemon bool, modifiers ...pack.BuilderInspectionModifier) (*pack.BuilderInfo, error)
}
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 Registry string Policy string }
CreateBuilderFlags define flags provided to the CreateBuilder command
type InspectBuilderFlags ¶ added in v0.13.0
type InspectBuildpackFlags ¶ added in v0.14.0
type InspectImageFlags ¶
type InspectImageFlags struct {
BOM bool
}
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) }
type PackageBuildpackFlags ¶ added in v0.9.0
type PackageBuildpackFlags struct { PackageTomlPath string Format string Publish bool Policy string }
PackageBuildpackFlags define flags provided to the PackageBuildpack command
type PackageConfigReader ¶ added in v0.9.0
PackageConfigReader reads PackageBuildpack configs
type RegisterBuildpackFlags ¶ added in v0.13.0
type RegisterBuildpackFlags struct {
BuildpackRegistry string
}
type SuggestedBuilder ¶ added in v0.11.0
type YankBuildpackFlags ¶ added in v0.13.0
Source Files ¶
- add_registry.go
- build.go
- commands.go
- completion.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
- suggest_builders.go
- suggest_stacks.go
- trust_builder.go
- untrust_builder.go
- version.go
- yank_buildpack.go
Click to show internal directories.
Click to hide internal directories.