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, pack 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, creator BuildpackCreator) *cobra.Command
- func BuildpackPackage(logger logging.Logger, cfg config.Config, packager BuildpackPackager, ...) *cobra.Command
- func BuildpackPull(logger logging.Logger, cfg config.Config, pack PackClient) *cobra.Command
- func BuildpackRegister(logger logging.Logger, cfg config.Config, pack PackClient) *cobra.Command
- func BuildpackYank(logger logging.Logger, cfg config.Config, pack 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 ConfigRegistryMirrors(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, pack PackClient) *cobra.Commanddeprecated
- func CreateCancellableContext() context.Context
- func DownloadSBOM(logger logging.Logger, client PackClient) *cobra.Command
- func ExtensionInspect(logger logging.Logger, cfg config.Config, client PackClient) *cobra.Command
- func ExtensionNew(logger logging.Logger) *cobra.Command
- func ExtensionPackage(logger logging.Logger, cfg config.Config, packager ExtensionPackager, ...) *cobra.Command
- func ExtensionPull(logger logging.Logger, cfg config.Config, pack PackClient) *cobra.Command
- func ExtensionRegister(logger logging.Logger, cfg config.Config, pack PackClient) *cobra.Command
- func ExtensionYank(logger logging.Logger, cfg config.Config, pack PackClient) *cobra.Command
- 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 ManifestAdd(logger logging.Logger, pack PackClient) *cobra.Command
- func ManifestAnnotate(logger logging.Logger, pack PackClient) *cobra.Command
- func ManifestCreate(logger logging.Logger, pack PackClient) *cobra.Command
- func ManifestDelete(logger logging.Logger, pack PackClient) *cobra.Command
- func ManifestInspect(logger logging.Logger, pack PackClient) *cobra.Command
- func ManifestPush(logger logging.Logger, pack PackClient) *cobra.Command
- func ManifestRemove(logger logging.Logger, pack PackClient) *cobra.Command
- 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 NewExtensionCommand(logger logging.Logger, cfg config.Config, client PackClient, ...) *cobra.Command
- func NewManifestCommand(logger logging.Logger, client PackClient) *cobra.Command
- func NewSBOMCommand(logger logging.Logger, cfg config.Config, client PackClient) *cobra.Command
- func NewStackCommand(logger logging.Logger) *cobra.Command
- func PackageBuildpack(logger logging.Logger, cfg config.Config, packager BuildpackPackager, ...) *cobra.Commanddeprecated
- func Rebase(logger logging.Logger, cfg config.Config, pack PackClient) *cobra.Command
- func RegisterBuildpack(logger logging.Logger, cfg config.Config, pack 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 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, ...)
- func YankBuildpack(logger logging.Logger, cfg config.Config, pack 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 DownloadSBOMFlags
- type ExtensionNewFlags
- type ExtensionPackageFlags
- type ExtensionPackager
- type ExtensionPullFlags
- type ExtensionRegisterFlags
- type ExtensionYankFlags
- type InspectImageFlags
- type InspectImageWriterFactory
- type ManifestAnnotateFlags
- type ManifestCreateFlags
- type ManifestPushFlags
- type PackClient
- type PackageConfigReader
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 BuilderInspect ¶ added in v0.18.0
func BuilderInspect(logger logging.Logger, cfg config.Config, inspector BuilderInspector, writerFactory writer.BuilderWriterFactory, ) *cobra.Command
func BuilderSuggest ¶ added in v0.16.0
func BuilderSuggest(logger logging.Logger, inspector BuilderInspector) *cobra.Command
func BuildpackInspect ¶ added in v0.18.0
func BuildpackNew ¶ added in v0.18.0
func BuildpackNew(logger logging.Logger, creator BuildpackCreator) *cobra.Command
BuildpackNew generates the scaffolding of a buildpack
func BuildpackPackage ¶ added in v0.16.0
func BuildpackPackage(logger logging.Logger, cfg config.Config, packager 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 ConfigLifecycleImage ¶ added in v0.18.0
func ConfigPullPolicy ¶ added in v0.17.0
func ConfigRegistries ¶ added in v0.16.0
func ConfigRegistriesDefault ¶ added in v0.16.0
func ConfigRegistryMirrors ¶ added in v0.20.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 DownloadSBOM ¶ added in v0.24.0
func DownloadSBOM( logger logging.Logger, client PackClient, ) *cobra.Command
func ExtensionInspect ¶ added in v0.29.0
func ExtensionNew ¶ added in v0.29.0
ExtensionNew generates the scaffolding of an extension
func ExtensionPackage ¶ added in v0.29.0
func ExtensionPackage(logger logging.Logger, cfg config.Config, packager ExtensionPackager, packageConfigReader PackageConfigReader) *cobra.Command
ExtensionPackage packages (a) extension(s) into OCI format, based on a package config
func ExtensionPull ¶ added in v0.29.0
ExtensionPull pulls an extension and stores it locally
func ExtensionRegister ¶ added in v0.29.0
func ExtensionYank ¶ added in v0.29.0
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
added in
v0.14.0
func InspectImage ¶
func InspectImage( logger logging.Logger, writerFactory InspectImageWriterFactory, cfg config.Config, client PackClient, ) *cobra.Command
func ManifestAdd ¶ added in v0.34.0
func ManifestAdd(logger logging.Logger, pack PackClient) *cobra.Command
ManifestAdd adds a new image to a manifest list (image index).
func ManifestAnnotate ¶ added in v0.34.0
func ManifestAnnotate(logger logging.Logger, pack PackClient) *cobra.Command
ManifestAnnotate modifies a manifest list and updates the platform information within the index for an image in the list.
func ManifestCreate ¶ added in v0.34.0
func ManifestCreate(logger logging.Logger, pack PackClient) *cobra.Command
ManifestCreate creates an image index for a multi-arch image
func ManifestDelete ¶ added in v0.34.0
func ManifestDelete(logger logging.Logger, pack PackClient) *cobra.Command
ManifestDelete deletes one or more manifest lists from local storage
func ManifestInspect ¶ added in v0.34.0
func ManifestInspect(logger logging.Logger, pack PackClient) *cobra.Command
ManifestInspect shows the manifest information stored locally
func ManifestPush ¶ added in v0.34.0
func ManifestPush(logger logging.Logger, pack PackClient) *cobra.Command
ManifestPush pushes a manifest list to a remote registry.
func ManifestRemove ¶ added in v0.34.0
func ManifestRemove(logger logging.Logger, pack PackClient) *cobra.Command
ManifestRemove will remove the specified image manifest if it is already referenced in the index
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 NewExtensionCommand ¶ added in v0.29.0
func NewExtensionCommand(logger logging.Logger, cfg config.Config, client PackClient, packageConfigReader PackageConfigReader) *cobra.Command
func NewManifestCommand ¶ added in v0.34.0
func NewManifestCommand(logger logging.Logger, client PackClient) *cobra.Command
func NewSBOMCommand ¶ added in v0.24.0
func PackageBuildpack
deprecated
added in
v0.9.0
func PackageBuildpack(logger logging.Logger, cfg config.Config, packager 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 WriteSuggestedBuilder ¶ added in v0.11.0
func WriteSuggestedBuilder(logger logging.Logger, inspector BuilderInspector, builders []bldr.KnownBuilder)
func YankBuildpack
deprecated
added in
v0.13.0
Types ¶
type BuildFlags ¶
type BuildFlags struct { Publish bool ClearCache bool TrustBuilder bool Interactive bool Sparse bool DockerHost string CacheImage string Cache cache.CacheOpts AppPath string Builder string Registry string RunImage string Platform string Policy string Network string DescriptorPath string DefaultProcessType string LifecycleImage string Env []string EnvFiles []string Buildpacks []string Extensions []string Volumes []string AdditionalTags []string Workspace string GID int UID int PreviousImage string SBOMDestinationDir string ReportDestinationDir string DateTime string PreBuildpacks []string PostBuildpacks []string }
type BuilderCreateFlags ¶ added in v0.16.0
type BuilderCreateFlags struct { Publish bool BuilderTomlPath string Registry string Policy string Flatten []string Targets []string Label map[string]string }
BuilderCreateFlags define flags provided to the CreateBuilder command
type BuilderInspectFlags ¶ added in v0.18.0
type BuilderInspector ¶ added in v0.15.0
type BuilderInspector interface {
InspectBuilder(name string, daemon bool, modifiers ...client.BuilderInspectionModifier) (*client.BuilderInfo, error)
}
type BuildpackCreator ¶ added in v0.18.0
type BuildpackCreator interface {
NewBuildpack(ctx context.Context, options client.NewBuildpackOptions) error
}
BuildpackCreator creates buildpacks
type BuildpackInspectFlags ¶ added in v0.18.0
type BuildpackNewFlags ¶ added in v0.18.0
type BuildpackNewFlags struct { API string Path string // Deprecated: Stacks are deprecated Stacks []string Targets []string Version string }
BuildpackNewFlags define flags provided to the BuildpackNew command
type BuildpackPackageFlags ¶ added in v0.16.0
type BuildpackPackageFlags struct { PackageTomlPath string Format string Policy string BuildpackRegistry string Path string FlattenExclude []string Targets []string Label map[string]string Publish bool Flatten bool }
BuildpackPackageFlags define flags provided to the BuildpackPackage command
type BuildpackPackager ¶ added in v0.9.0
type BuildpackPackager interface {
PackageBuildpack(ctx context.Context, options client.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 DownloadSBOMFlags ¶ added in v0.24.0
type ExtensionNewFlags ¶ added in v0.29.0
ExtensionNewFlags define flags provided to the ExtensionNew command
type ExtensionPackageFlags ¶ added in v0.29.0
type ExtensionPackageFlags struct { PackageTomlPath string Format string Publish bool Policy string }
ExtensionPackageFlags define flags provided to the ExtensionPackage command
type ExtensionPackager ¶ added in v0.30.0
type ExtensionPackager interface {
PackageExtension(ctx context.Context, options client.PackageBuildpackOptions) error
}
ExtensionPackager packages extensions
type ExtensionPullFlags ¶ added in v0.29.0
type ExtensionPullFlags struct { // ExtensionRegistry is the name of the extension registry to use to search for ExtensionRegistry string }
ExtensionPullFlags consist of flags applicable to the `extension pull` command
type ExtensionRegisterFlags ¶ added in v0.29.0
type ExtensionRegisterFlags struct {
ExtensionRegistry string
}
type ExtensionYankFlags ¶ added in v0.29.0
type InspectImageFlags ¶
type InspectImageWriterFactory ¶ added in v0.16.0
type InspectImageWriterFactory interface {
Writer(kind string, BOM bool) (writer.InspectImageWriter, error)
}
type ManifestAnnotateFlags ¶ added in v0.34.0
type ManifestAnnotateFlags struct {
// contains filtered or unexported fields
}
ManifestAnnotateFlags define flags provided to the ManifestAnnotate
type ManifestCreateFlags ¶ added in v0.34.0
type ManifestCreateFlags struct {
// contains filtered or unexported fields
}
ManifestCreateFlags define flags provided to the ManifestCreate
type ManifestPushFlags ¶ added in v0.34.0
type ManifestPushFlags struct {
// contains filtered or unexported fields
}
ManifestPushFlags define flags provided to the ManifestPush
type PackClient ¶
type PackClient interface { InspectBuilder(string, bool, ...client.BuilderInspectionModifier) (*client.BuilderInfo, error) InspectImage(string, bool) (*client.ImageInfo, error) Rebase(context.Context, client.RebaseOptions) error CreateBuilder(context.Context, client.CreateBuilderOptions) error NewBuildpack(context.Context, client.NewBuildpackOptions) error PackageBuildpack(ctx context.Context, opts client.PackageBuildpackOptions) error PackageExtension(ctx context.Context, opts client.PackageBuildpackOptions) error Build(context.Context, client.BuildOptions) error RegisterBuildpack(context.Context, client.RegisterBuildpackOptions) error YankBuildpack(client.YankBuildpackOptions) error InspectBuildpack(client.InspectBuildpackOptions) (*client.BuildpackInfo, error) InspectExtension(client.InspectExtensionOptions) (*client.ExtensionInfo, error) PullBuildpack(context.Context, client.PullBuildpackOptions) error DownloadSBOM(name string, options client.DownloadSBOMOptions) error CreateManifest(ctx context.Context, opts client.CreateManifestOptions) error AnnotateManifest(ctx context.Context, opts client.ManifestAnnotateOptions) error AddManifest(ctx context.Context, opts client.ManifestAddOptions) error DeleteManifest(name []string) error RemoveManifest(name string, images []string) error PushManifest(client.PushManifestOptions) error InspectManifest(string) error }
type PackageConfigReader ¶ added in v0.9.0
type PackageConfigReader interface { Read(path string) (pubbldpkg.Config, error) ReadBuildpackDescriptor(path string) (dist.BuildpackDescriptor, error) }
PackageConfigReader reads BuildpackPackage configs
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_registry_mirrors.go
- config_run_image_mirrors.go
- config_trusted_builder.go
- create_builder.go
- download_sbom.go
- extension.go
- extension_inspect.go
- extension_new.go
- extension_package.go
- extension_pull.go
- extension_register.go
- extension_yank.go
- inspect_builder.go
- inspect_buildpack.go
- inspect_extension.go
- inspect_image.go
- list_registries.go
- list_trusted_builders.go
- manifest.go
- manifest_add.go
- manifest_annotate.go
- manifest_create.go
- manifest_inspect.go
- manifest_push.go
- manifest_remove.go
- manifest_rm.go
- package_buildpack.go
- rebase.go
- register_buildpack.go
- remove_registry.go
- report.go
- sbom.go
- set_default_builder.go
- set_default_registry.go
- set_run_image_mirrors.go
- stack.go
- stack_suggest.go
- suggest_builders.go
- trust_builder.go
- untrust_builder.go
- version.go
- yank_buildpack.go