瀏覽代碼

Merge pull request #45626 from thaJeztah/deprecate_builder_streaming

builder/remotecontext: deprecate CachableSource, NewCachableSource
Sebastiaan van Stijn 2 年之前
父節點
當前提交
13fb24458c
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      builder/remotecontext/tarsum.go

+ 6 - 2
builder/remotecontext/tarsum.go

@@ -15,7 +15,9 @@ type hashed interface {
 	Digest() digest.Digest
 }
 
-// CachableSource is a source that contains cache records for its contents
+// CachableSource is a source that contains cache records for its contents.
+//
+// Deprecated: this type was used for the experimental "stream" support for the classic builder, which is no longer supported.
 type CachableSource struct {
 	mu   sync.Mutex
 	root string
@@ -23,7 +25,9 @@ type CachableSource struct {
 	txn  *iradix.Txn
 }
 
-// NewCachableSource creates new CachableSource
+// NewCachableSource creates new CachableSource.
+//
+// Deprecated: this type was used for the experimental "stream" support for the classic builder, which is no longer supported.
 func NewCachableSource(root string) *CachableSource {
 	ts := &CachableSource{
 		tree: iradix.New(),