Documentation
¶
Index ¶
- Constants
- func WriteCacheKeyManifest(path string, manifest *api.CacheKeyManifest) error
- type CacheKeyManifestError
- type Engine
- func (e *Engine) CacheKey(ctx context.Context, req Request) (*api.CacheKeyResult, error)
- func (e *Engine) CacheKeyWithManifest(ctx context.Context, req Request) (*api.CacheKeyResult, *api.CacheKeyManifest, error)
- func (e *Engine) Graph() *graph.Graph
- func (e *Engine) Run(ctx context.Context, req Request) (*Outcome, error)
- func (e *Engine) SubscribeEvents() <-chan api.Event
- func (e *Engine) SubscribeEventsLossless() <-chan api.Event
- func (e *Engine) Watch(ctx context.Context, req Request) error
- type Outcome
- type Request
Constants ¶
View Source
const ( CacheKeyManifestSchemaVersion = 1 CacheKeyManifestMaxAge = 15 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func WriteCacheKeyManifest ¶
func WriteCacheKeyManifest(path string, manifest *api.CacheKeyManifest) error
WriteCacheKeyManifest atomically writes a manifest with owner-only permissions. The manifest is intended for an immediate Run request using CacheKeyManifestPath, not for durable or cross-job cache storage.
Types ¶
type CacheKeyManifestError ¶
func (*CacheKeyManifestError) Error ¶
func (e *CacheKeyManifestError) Error() string
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) CacheKeyWithManifest ¶
func (e *Engine) CacheKeyWithManifest(ctx context.Context, req Request) (*api.CacheKeyResult, *api.CacheKeyManifest, error)
func (*Engine) SubscribeEvents ¶
func (*Engine) SubscribeEventsLossless ¶
SubscribeEventsLossless returns a backpressured event subscription for consumers that must observe every event, such as direct CI progress output.
Click to show internal directories.
Click to hide internal directories.