Documentation ¶
Index ¶
- Constants
- func ProcessProjectDescriptor(appDir, descriptorPath, platformDir string, logger *log.Logger) error
- func SetupPlatformEnvVars(dir, envVarsJSON string) error
- type APISet
- type APIVersions
- type BuilderImageMetadata
- type BuildpackLayerInfo
- type BuildpackLayerMetadata
- type BuildpackRepository
- type BuildpackageMetadata
- type BuiltImage
- type BuiltImageStack
- type CreatorMetadata
- type DescriptiveBuildpackInfo
- type FetchableBuilder
- type ImageFetcher
- type LifecycleAPI
- type LifecycleAPIs
- type LifecycleDescriptor
- type LifecycleInfo
- type LifecycleMetadata
- type LifecycleProvider
- type NewBuildpackRepository
- type RegistryClient
- type RemoteBuilderCreator
- type RemoteBuildpackInfo
- type RemoteBuildpackRef
- type RemoteMetadataRetriever
- type RemoteStackReader
- type RemoteStoreReader
- type RunImageMetadata
- type Stack
- type StackMetadata
- type StoreBuildpackRepository
Constants ¶
View Source
const ( MixinsLabel = "io.buildpacks.stack.mixins" StackLabel = "io.buildpacks.stack.id" )
View Source
const (
BuilderMetadataLabel = "io.buildpacks.builder.metadata"
)
Variables ¶
This section is empty.
Functions ¶
func SetupPlatformEnvVars ¶
Types ¶
type APIVersions ¶
type BuilderImageMetadata ¶
type BuilderImageMetadata struct { Description string `json:"description"` Stack StackMetadata `json:"stack"` Lifecycle LifecycleMetadata `json:"lifecycle"` CreatedBy CreatorMetadata `json:"createdBy"` Buildpacks []DescriptiveBuildpackInfo `json:"buildpacks"` }
type BuildpackLayerInfo ¶
type BuildpackLayerInfo struct { API string `json:"api"` LayerDiffID string `json:"layerDiffID"` Order corev1alpha1.Order `json:"order,omitempty"` Stacks []corev1alpha1.BuildpackStack `json:"stacks,omitempty"` Homepage string `json:"homepage,omitempty"` }
type BuildpackLayerMetadata ¶
type BuildpackLayerMetadata map[string]map[string]BuildpackLayerInfo
type BuildpackRepository ¶ added in v0.0.6
type BuildpackRepository interface {
FindByIdAndVersion(id, version string) (RemoteBuildpackInfo, error)
}
type BuildpackageMetadata ¶
type BuiltImage ¶ added in v0.0.1
type BuiltImage struct { Identifier string CompletedAt time.Time BuildpackMetadata []lifecycle.GroupBuildpack Stack BuiltImageStack }
type BuiltImageStack ¶ added in v0.0.7
type CreatorMetadata ¶
type DescriptiveBuildpackInfo ¶
type DescriptiveBuildpackInfo struct { corev1alpha1.BuildpackInfo Homepage string `json:"homepage,omitempty"` }
type FetchableBuilder ¶ added in v0.0.6
type FetchableBuilder interface { metav1.ObjectMetaAccessor Image() string ImagePullSecrets() []v1.LocalObjectReference }
type ImageFetcher ¶
type LifecycleAPI ¶
type LifecycleAPIs ¶
type LifecycleAPIs struct { Buildpack APIVersions `toml:"buildpack" json:"buildpack"` Platform APIVersions `toml:"platform" json:"platform"` }
type LifecycleDescriptor ¶
type LifecycleDescriptor struct { Info LifecycleInfo `toml:"lifecycle"` // Deprecated: Use `LifecycleAPIs` instead API LifecycleAPI `toml:"api" json:"api,omitempty"` APIs LifecycleAPIs `toml:"apis" json:"apis,omitempty"` }
type LifecycleInfo ¶
type LifecycleInfo struct {
Version string `toml:"version" json:"version"`
}
type LifecycleMetadata ¶
type LifecycleMetadata struct { LifecycleInfo // Deprecated: Use `LifecycleAPIs` instead API LifecycleAPI `json:"api,omitempty"` APIs LifecycleAPIs `json:"apis,omitempty"` }
type LifecycleProvider ¶
type NewBuildpackRepository ¶ added in v0.2.0
type NewBuildpackRepository func(clusterStore *buildapi.ClusterStore) BuildpackRepository
type RegistryClient ¶
type RemoteBuilderCreator ¶
type RemoteBuilderCreator struct { RegistryClient RegistryClient NewBuildpackRepository NewBuildpackRepository LifecycleProvider LifecycleProvider KpackVersion string }
func (*RemoteBuilderCreator) CreateBuilder ¶
func (r *RemoteBuilderCreator) CreateBuilder(keychain authn.Keychain, clusterStore *buildapi.ClusterStore, clusterStack *buildapi.ClusterStack, spec buildapi.BuilderSpec) (buildapi.BuilderRecord, error)
type RemoteBuildpackInfo ¶
type RemoteBuildpackInfo struct { BuildpackInfo DescriptiveBuildpackInfo Layers []buildpackLayer }
func (RemoteBuildpackInfo) Optional ¶
func (i RemoteBuildpackInfo) Optional(optional bool) RemoteBuildpackRef
type RemoteBuildpackRef ¶
type RemoteBuildpackRef struct { DescriptiveBuildpackInfo DescriptiveBuildpackInfo Optional bool Layers []buildpackLayer }
type RemoteMetadataRetriever ¶
type RemoteMetadataRetriever struct { KeychainFactory registry.KeychainFactory ImageFetcher ImageFetcher }
func (*RemoteMetadataRetriever) GetBuiltImage ¶ added in v0.0.1
func (r *RemoteMetadataRetriever) GetBuiltImage(ctx context.Context, build *buildapi.Build) (BuiltImage, error)
func (*RemoteMetadataRetriever) GetCacheImage ¶ added in v0.4.0
type RemoteStackReader ¶
type RemoteStackReader struct {
RegistryClient RegistryClient
}
func (*RemoteStackReader) Read ¶
func (r *RemoteStackReader) Read(keychain authn.Keychain, clusterStackSpec buildapi.ClusterStackSpec) (buildapi.ResolvedClusterStack, error)
type RemoteStoreReader ¶ added in v0.0.6
type RemoteStoreReader struct {
RegistryClient RegistryClient
}
func (*RemoteStoreReader) Read ¶ added in v0.0.6
func (r *RemoteStoreReader) Read(keychain authn.Keychain, storeImages []corev1alpha1.StoreImage) ([]corev1alpha1.StoreBuildpack, error)
type RunImageMetadata ¶
type StackMetadata ¶
type StackMetadata struct {
RunImage RunImageMetadata `json:"runImage" toml:"run-image"`
}
type StoreBuildpackRepository ¶ added in v0.0.6
type StoreBuildpackRepository struct { Keychain authn.Keychain ClusterStore *buildapi.ClusterStore }
func (*StoreBuildpackRepository) FindByIdAndVersion ¶ added in v0.0.6
func (s *StoreBuildpackRepository) FindByIdAndVersion(id, version string) (RemoteBuildpackInfo, error)
Source Files ¶
- builder_builder.go
- builder_layers.go
- buildpack_metadata.go
- buildpack_validation.go
- buildpackage_metadata.go
- cnb_metadata.go
- create_builder.go
- env_vars.go
- mountable_buildpack_layer.go
- platform_env_vars_setup.go
- project_descriptor.go
- remote_buildpack_metadata.go
- remote_stack_reader.go
- remote_store_reader.go
- store_buildpack_repository.go
Click to show internal directories.
Click to hide internal directories.