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 BuilderInspect(logger logging.Logger, cfg config.Config, inspector BuilderInspector, ...) *cobra.Command
- func BuilderSuggest(logger logging.Logger, inspector BuilderInspector) *cobra.Command
- func BuildpackInspect(logger logging.Logger, cfg config.Config, client PackClient) *cobra.Command
- func BuildpackNew(logger logging.Logger, client BuildpackCreator) *cobra.Command
- func BuildpackPackage(logger logging.Logger, cfg config.Config, 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 ConfigLifecycleImage(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Command
- func ConfigPullPolicy(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.Commanddeprecated
- func InspectBuildpack(logger logging.Logger, cfg config.Config, client PackClient) *cobra.Commanddeprecated
- 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, cfgPath string, client PackClient) *cobra.Commanddeprecated
- func SetDefaultRegistry(logger logging.Logger, cfg config.Config, cfgPath string) *cobra.Commanddeprecated
- func SetRunImagesMirrors(logger logging.Logger, cfg config.Config, cfgPath string) *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, cfgPath string) *cobra.Commanddeprecated
- func UntrustBuilder(logger logging.Logger, cfg config.Config, cfgPath string) *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 BuilderInspectFlags
- type BuilderInspector
- type BuildpackCreator
- type BuildpackInspectFlags
- type BuildpackNewFlags
- type BuildpackPackageFlags
- type BuildpackPackager
- type BuildpackPullFlags
- type BuildpackRegisterFlags
- type BuildpackYankFlags
- type CompletionFlags
- 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 ¶
CreateBuilder creates a builder image, based on a builder config
func BuilderInspect ¶
func BuilderInspect(logger logging.Logger, cfg config.Config, inspector BuilderInspector, writerFactory writer.BuilderWriterFactory, ) *cobra.Command
func BuilderSuggest ¶
func BuilderSuggest(logger logging.Logger, inspector BuilderInspector) *cobra.Command
func BuildpackInspect ¶
func BuildpackNew ¶
func BuildpackNew(logger logging.Logger, client BuildpackCreator) *cobra.Command
BuildpackNew generates the scaffolding of a buildpack
func BuildpackPackage ¶
func BuildpackPackage(logger logging.Logger, cfg config.Config, client BuildpackPackager, packageConfigReader PackageConfigReader) *cobra.Command
BuildpackPackage packages (a) buildpack(s) into OCI format, based on a package config
func BuildpackPull ¶
BuildpackPull pulls a buildpack and stores it locally
func BuildpackRegister ¶
func BuildpackYank ¶
func CompletionCommand ¶
func ConfigDefaultBuilder ¶
func ConfigExperimental ¶
func ConfigLifecycleImage ¶
func ConfigPullPolicy ¶
func ConfigRegistries ¶
func ConfigRegistriesDefault ¶
func ConfigRunImagesMirrors ¶
func ConfigTrustedBuilder ¶
func CreateBuilder
deprecated
func InspectBuilder
deprecated
func InspectBuilder( logger logging.Logger, cfg config.Config, inspector BuilderInspector, writerFactory writer.BuilderWriterFactory, ) *cobra.Command
Deprecated: Use builder inspect instead.
func InspectBuildpack
deprecated
func InspectImage ¶
func InspectImage( logger logging.Logger, writerFactory InspectImageWriterFactory, cfg config.Config, client PackClient, ) *cobra.Command
func NewBuilderCommand ¶
func NewBuildpackCommand ¶
func NewBuildpackCommand(logger logging.Logger, cfg config.Config, client PackClient, packageConfigReader PackageConfigReader) *cobra.Command
func NewConfigCommand ¶
func PackageBuildpack
deprecated
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
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 ¶
func WriteSuggestedBuilder(logger logging.Logger, inspector BuilderInspector, builders []SuggestedBuilder)
func YankBuildpack
deprecated
Types ¶
type BuildFlags ¶
type BuildFlags struct { Publish bool ClearCache bool TrustBuilder bool DockerHost string CacheImage string AppPath string Builder string Registry string RunImage string Policy string Network string DescriptorPath string DefaultProcessType string LifecycleImage string Env []string EnvFiles []string Buildpacks []string Volumes []string AdditionalTags []string Workspace string GID int }
type BuilderCreateFlags ¶
type BuilderCreateFlags struct { BuilderTomlPath string Publish bool Registry string Policy string }
BuilderCreateFlags define flags provided to the CreateBuilder command
type BuilderInspectFlags ¶
type BuilderInspector ¶
type BuilderInspector interface {
InspectBuilder(name string, daemon bool, modifiers ...pack.BuilderInspectionModifier) (*pack.BuilderInfo, error)
}
type BuildpackCreator ¶
type BuildpackCreator interface {
NewBuildpack(ctx context.Context, options pack.NewBuildpackOptions) error
}
BuildpackCreator creates buildpacks
type BuildpackInspectFlags ¶
type BuildpackNewFlags ¶
BuildpackNewFlags define flags provided to the BuildpackNew command
type BuildpackPackageFlags ¶
type BuildpackPackageFlags struct { PackageTomlPath string Format string Publish bool Policy string BuildpackRegistry string Path string }
BuildpackPackageFlags define flags provided to the BuildpackPackage command
type BuildpackPackager ¶
type BuildpackPackager interface {
PackageBuildpack(ctx context.Context, options pack.PackageBuildpackOptions) error
}
BuildpackPackager packages buildpacks
type BuildpackPullFlags ¶
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 ¶
type BuildpackRegisterFlags struct {
BuildpackRegistry string
}
type BuildpackYankFlags ¶
type CompletionFlags ¶
type CompletionFlags struct {
Shell string
}
type InspectImageFlags ¶
type InspectImageWriterFactory ¶
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 NewBuildpack(context.Context, pack.NewBuildpackOptions) 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 ¶
PackageConfigReader reads BuildpackPackage configs
type SuggestedBuilder ¶
Source Files ¶
- add_registry.go
- build.go
- builder.go
- builder_create.go
- builder_inspect.go
- builder_suggest.go
- buildpack.go
- buildpack_inspect.go
- buildpack_new.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_lifecycle_image.go
- config_pull_policy.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