Documentation ¶
Index ¶
- Constants
- func SetupPlatformEnvVars(dir, envVarsJSON string) error
- type BuilderImageMetadata
- type BuildpackLayerInfo
- type BuildpackLayerMetadata
- type BuildpackRepository
- type BuiltImage
- type BuiltImageStack
- type CreatorMetadata
- type FetchableBuilder
- type ImageFetcher
- type LifecycleAPI
- type LifecycleDescriptor
- type LifecycleInfo
- type LifecycleMetadata
- 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 BuilderImageMetadata ¶
type BuilderImageMetadata struct { Description string `json:"description"` Stack StackMetadata `json:"stack"` Lifecycle LifecycleMetadata `json:"lifecycle"` CreatedBy CreatorMetadata `json:"createdBy"` Buildpacks []v1alpha1.BuildpackInfo `json:"buildpacks"` }
type BuildpackLayerInfo ¶
type BuildpackLayerInfo struct { API string `json:"api"` LayerDiffID string `json:"layerDiffID"` Order expv1alpha1.Order `json:"order,omitempty"` Stacks []expv1alpha1.BuildpackStack `json:"stacks,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 BuiltImage ¶ added in v0.0.1
type BuiltImageStack ¶ added in v0.0.7
type CreatorMetadata ¶
type FetchableBuilder ¶ added in v0.0.6
type FetchableBuilder interface { metav1.ObjectMetaAccessor Image() string ImagePullSecrets() []v1.LocalObjectReference }
type ImageFetcher ¶
type LifecycleAPI ¶
type LifecycleDescriptor ¶
type LifecycleDescriptor struct { Info LifecycleInfo `toml:"lifecycle"` API LifecycleAPI `toml:"api"` }
type LifecycleInfo ¶
type LifecycleInfo struct {
Version string `toml:"version" json:"version"`
}
type LifecycleMetadata ¶
type LifecycleMetadata struct { LifecycleInfo API LifecycleAPI `json:"api,omitempty"` }
type RegistryClient ¶
type RemoteBuilderCreator ¶
type RemoteBuilderCreator struct { RegistryClient RegistryClient LifecycleImage string KpackVersion string }
func (*RemoteBuilderCreator) CreateBuilder ¶
func (r *RemoteBuilderCreator) CreateBuilder(keychain authn.Keychain, buildpackRepo BuildpackRepository, stack *expv1alpha1.Stack, spec expv1alpha1.CustomBuilderSpec) (v1alpha1.BuilderRecord, error)
type RemoteBuildpackInfo ¶
type RemoteBuildpackInfo struct { BuildpackInfo v1alpha1.BuildpackInfo Layers []buildpackLayer }
func (RemoteBuildpackInfo) Optional ¶
func (i RemoteBuildpackInfo) Optional(optional bool) RemoteBuildpackRef
type RemoteBuildpackRef ¶
type RemoteBuildpackRef struct { BuildpackRef v1alpha1.BuildpackRef Layers []buildpackLayer }
type RemoteMetadataRetriever ¶
type RemoteMetadataRetriever struct { KeychainFactory registry.KeychainFactory ImageFetcher ImageFetcher }
func (*RemoteMetadataRetriever) GetBuilderImage ¶ added in v0.0.3
func (r *RemoteMetadataRetriever) GetBuilderImage(builder FetchableBuilder) (v1alpha1.BuilderRecord, error)
func (*RemoteMetadataRetriever) GetBuiltImage ¶ added in v0.0.1
func (r *RemoteMetadataRetriever) GetBuiltImage(build *v1alpha1.Build) (BuiltImage, error)
type RemoteStackReader ¶
type RemoteStackReader struct { RegistryClient RegistryClient Keychain authn.Keychain }
func (*RemoteStackReader) Read ¶
func (r *RemoteStackReader) Read(stackSpec v1alpha1.StackSpec) (v1alpha1.ResolvedStack, error)
type RemoteStoreReader ¶ added in v0.0.6
type RemoteStoreReader struct { RegistryClient RegistryClient Keychain authn.Keychain }
func (*RemoteStoreReader) Read ¶ added in v0.0.6
func (r *RemoteStoreReader) Read(storeImages []v1alpha1.StoreImage) ([]v1alpha1.StoreBuildpack, error)
type RunImageMetadata ¶
type StackMetadata ¶
type StackMetadata struct {
RunImage RunImageMetadata `json:"runImage" toml:"run-image"`
}
type StoreBuildpackRepository ¶ added in v0.0.6
func (*StoreBuildpackRepository) FindByIdAndVersion ¶ added in v0.0.6
func (s *StoreBuildpackRepository) FindByIdAndVersion(id, version string) (RemoteBuildpackInfo, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.