solver: remove llb dependency

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2017-07-05 21:25:51 -07:00
parent 73bbe66d23
commit f0c14879c7
9 changed files with 311 additions and 167 deletions

View File

@@ -13,6 +13,16 @@ type Source interface {
Pull(ctx context.Context, id Identifier) (cache.ImmutableRef, error)
}
// type Source interface {
// ID() string
// Resolve(ctx context.Context, id Identifier) (SourceInstance, error)
// }
//
// type SourceInstance interface {
// GetCacheKey(ctx context.Context) ([]string, error)
// GetSnapshot(ctx context.Context) (cache.ImmutableRef, error)
// }
type Manager struct {
mu sync.Mutex
sources map[string]Source