Documentation
¶
Index ¶
- func AssertArtifact(t *testing.T, c cache.Cache, wantArtifact WantArtifact)
- func AssertBlobs(t *testing.T, c cache.Cache, wantBlobs []WantBlob)
- func NewCache(t *testing.T, setUpCache func(t *testing.T) cache.Cache) cache.Cache
- type ErrorCache
- func (c *ErrorCache) GetArtifact(artifactID string) (types.ArtifactInfo, error)
- func (c *ErrorCache) GetBlob(blobID string) (types.BlobInfo, error)
- func (c *ErrorCache) MissingBlobs(artifactID string, blobIDs []string) (bool, []string, error)
- func (c *ErrorCache) PutArtifact(artifactID string, artifactInfo types.ArtifactInfo) error
- func (c *ErrorCache) PutBlob(artifactID string, blobInfo types.BlobInfo) error
- type ErrorCacheOptions
- type WantArtifact
- type WantBlob
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertArtifact ¶
func AssertArtifact(t *testing.T, c cache.Cache, wantArtifact WantArtifact)
Types ¶
type ErrorCache ¶
type ErrorCache struct { *cache.MemoryCache // contains filtered or unexported fields }
func NewErrorCache ¶
func NewErrorCache(opts ErrorCacheOptions) *ErrorCache
func (*ErrorCache) GetArtifact ¶
func (c *ErrorCache) GetArtifact(artifactID string) (types.ArtifactInfo, error)
func (*ErrorCache) MissingBlobs ¶
func (*ErrorCache) PutArtifact ¶
func (c *ErrorCache) PutArtifact(artifactID string, artifactInfo types.ArtifactInfo) error
type ErrorCacheOptions ¶
type WantArtifact ¶
type WantArtifact struct { ID string ArtifactInfo types.ArtifactInfo }
Click to show internal directories.
Click to hide internal directories.