Documentation
¶
Index ¶
- type BuildCache
- func (c *BuildCache) GetCachedDigest(containerName string) (string, bool)
- func (c *BuildCache) HashConfigFile(configPath string) (string, error)
- func (c *BuildCache) Invalidate(containerName string)
- func (c *BuildCache) InvalidateAll()
- func (c *BuildCache) NeedsRebuild(containerName, configPath string) (bool, error)
- func (c *BuildCache) Record(result *BuildResult, configPath string) error
- func (c *BuildCache) Save() error
- type BuildRegistry
- type BuildResult
- type BuildahBuilder
- func (b *BuildahBuilder) BuildContainer(ctx context.Context, containerName, containerfilePath, contextDir string) (*BuildResult, error)
- func (b *BuildahBuilder) Close() error
- func (b *BuildahBuilder) Initialize(ctx context.Context) error
- func (b *BuildahBuilder) PushImage(ctx context.Context, imageName string) error
- type Builder
- type CacheEntry
- type CacheManifest
- type Orchestrator
- type OrchestratorConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildCache ¶
type BuildCache struct {
// contains filtered or unexported fields
}
func NewBuildCache ¶
func NewBuildCache(baseDir string, fs util.WritableFS) (*BuildCache, error)
func (*BuildCache) GetCachedDigest ¶
func (c *BuildCache) GetCachedDigest(containerName string) (string, bool)
func (*BuildCache) HashConfigFile ¶
func (c *BuildCache) HashConfigFile(configPath string) (string, error)
func (*BuildCache) Invalidate ¶
func (c *BuildCache) Invalidate(containerName string)
func (*BuildCache) InvalidateAll ¶
func (c *BuildCache) InvalidateAll()
func (*BuildCache) NeedsRebuild ¶
func (c *BuildCache) NeedsRebuild(containerName, configPath string) (bool, error)
func (*BuildCache) Record ¶
func (c *BuildCache) Record(result *BuildResult, configPath string) error
func (*BuildCache) Save ¶
func (c *BuildCache) Save() error
type BuildRegistry ¶
type BuildRegistry struct {
// contains filtered or unexported fields
}
func NewBuildRegistry ¶
func NewBuildRegistry() *BuildRegistry
func (*BuildRegistry) Get ¶
func (r *BuildRegistry) Get(containerName string) (*BuildResult, bool)
func (*BuildRegistry) GetAll ¶
func (r *BuildRegistry) GetAll() map[string]*BuildResult
func (*BuildRegistry) Has ¶
func (r *BuildRegistry) Has(containerName string) bool
func (*BuildRegistry) Record ¶
func (r *BuildRegistry) Record(result *BuildResult)
type BuildResult ¶
type BuildahBuilder ¶
type BuildahBuilder struct {
// contains filtered or unexported fields
}
func NewBuildahBuilder ¶
func NewBuildahBuilder(registry, storagePath, storageDriver, isolation string) *BuildahBuilder
func (*BuildahBuilder) BuildContainer ¶
func (b *BuildahBuilder) BuildContainer(ctx context.Context, containerName, containerfilePath, contextDir string) (*BuildResult, error)
func (*BuildahBuilder) Close ¶
func (b *BuildahBuilder) Close() error
func (*BuildahBuilder) Initialize ¶
func (b *BuildahBuilder) Initialize(ctx context.Context) error
type CacheEntry ¶
type CacheManifest ¶
type CacheManifest struct {
Version int `json:"version"`
Entries map[string]*CacheEntry `json:"entries"`
}
type Orchestrator ¶
type Orchestrator struct {
// contains filtered or unexported fields
}
func NewOrchestrator ¶
func NewOrchestrator( builder Builder, depGraph *graph.Graph, fs util.WritableFS, cfg OrchestratorConfig, ) (*Orchestrator, error)
func (*Orchestrator) BuildLayers ¶
func (o *Orchestrator) BuildLayers(ctx context.Context, layers [][]string) error
func (*Orchestrator) Close ¶
func (o *Orchestrator) Close() error
func (*Orchestrator) Initialize ¶
func (o *Orchestrator) Initialize(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.