Versions in this module Expand all Collapse all v0 v0.0.3 May 31, 2024 Changes in this version + func CalcKey(id string, analyzerVersions analyzer.Versions, hookVersions map[string]int, ...) (string, error) + type ArtifactCache interface + DeleteBlobs func(blobIDs []string) error + MissingBlobs func(artifactID string, blobIDs []string) (missingArtifact bool, missingBlobIDs []string, err error) + PutArtifact func(artifactID string, artifactInfo types.ArtifactInfo) (err error) + PutBlob func(blobID string, blobInfo types.BlobInfo) (err error) + type ArtifactCacheDeleteBlobsArgs struct + BlobIDs []string + BlobIDsAnything bool + type ArtifactCacheDeleteBlobsExpectation struct + Args ArtifactCacheDeleteBlobsArgs + Returns ArtifactCacheDeleteBlobsReturns + type ArtifactCacheDeleteBlobsReturns struct + type ArtifactCacheMissingBlobsArgs struct + ArtifactID string + ArtifactIDAnything bool + BlobIDs []string + BlobIDsAnything bool + type ArtifactCacheMissingBlobsExpectation struct + Args ArtifactCacheMissingBlobsArgs + Returns ArtifactCacheMissingBlobsReturns + type ArtifactCacheMissingBlobsReturns struct + Err error + MissingArtifact bool + MissingBlobIDs []string + type ArtifactCachePutArtifactArgs struct + ArtifactID string + ArtifactIDAnything bool + ArtifactInfo types.ArtifactInfo + ArtifactInfoAnything bool + type ArtifactCachePutArtifactExpectation struct + Args ArtifactCachePutArtifactArgs + Returns ArtifactCachePutArtifactReturns + type ArtifactCachePutArtifactReturns struct + Err error + type ArtifactCachePutBlobArgs struct + BlobID string + BlobIDAnything bool + BlobInfo types.BlobInfo + BlobInfoAnything bool + type ArtifactCachePutBlobExpectation struct + Args ArtifactCachePutBlobArgs + Returns ArtifactCachePutBlobReturns + type ArtifactCachePutBlobReturns struct + Err error + type Cache interface + type CacheClearExpectation struct + Returns CacheClearReturns + type CacheClearReturns struct + Err error + type CacheCloseExpectation struct + Returns CacheCloseReturns + type CacheCloseReturns struct + Err error + type CacheDeleteBlobArgs struct + BlobID string + BlobIDAnything bool + type CacheDeleteBlobExpectation struct + Args CacheDeleteBlobArgs + Returns CacheDeleteBlobReturns + type CacheDeleteBlobReturns struct + type CacheGetArtifactArgs struct + ArtifactID string + ArtifactIDAnything bool + type CacheGetArtifactExpectation struct + Args CacheGetArtifactArgs + Returns CacheGetArtifactReturns + type CacheGetArtifactReturns struct + ArtifactInfo types.ArtifactInfo + Err error + type CacheGetBlobArgs struct + BlobID string + BlobIDAnything bool + type CacheGetBlobExpectation struct + Args CacheGetBlobArgs + Returns CacheGetBlobReturns + type CacheGetBlobReturns struct + BlobInfo types.BlobInfo + Err error + type CacheMissingBlobsArgs struct + ArtifactID string + ArtifactIDAnything bool + BlobIDs []string + BlobIDsAnything bool + type CacheMissingBlobsExpectation struct + Args CacheMissingBlobsArgs + Returns CacheMissingBlobsReturns + type CacheMissingBlobsReturns struct + Err error + MissingArtifact bool + MissingBlobIDs []string + type CachePutArtifactArgs struct + ArtifactID string + ArtifactIDAnything bool + ArtifactInfo types.ArtifactInfo + ArtifactInfoAnything bool + type CachePutArtifactExpectation struct + Args CachePutArtifactArgs + Returns CachePutArtifactReturns + type CachePutArtifactReturns struct + Err error + type CachePutBlobArgs struct + BlobID string + BlobIDAnything bool + BlobInfo types.BlobInfo + BlobInfoAnything bool + type CachePutBlobExpectation struct + Args CachePutBlobArgs + Returns CachePutBlobReturns + type CachePutBlobReturns struct + Err error + type FSCache struct + func NewFSCache(cacheDir string) (FSCache, error) + func (fs FSCache) Clear() error + func (fs FSCache) Close() error + func (fs FSCache) DeleteBlobs(blobIDs []string) error + func (fs FSCache) GetArtifact(artifactID string) (types.ArtifactInfo, error) + func (fs FSCache) GetBlob(blobID string) (types.BlobInfo, error) + func (fs FSCache) MissingBlobs(artifactID string, blobIDs []string) (bool, []string, error) + func (fs FSCache) PutArtifact(artifactID string, artifactInfo types.ArtifactInfo) (err error) + func (fs FSCache) PutBlob(blobID string, blobInfo types.BlobInfo) error + type LocalArtifactCache interface + Clear func() (err error) + Close func() (err error) + GetArtifact func(artifactID string) (artifactInfo types.ArtifactInfo, err error) + GetBlob func(blobID string) (blobInfo types.BlobInfo, err error) + type LocalArtifactCacheClearExpectation struct + Returns LocalArtifactCacheClearReturns + type LocalArtifactCacheClearReturns struct + Err error + type LocalArtifactCacheCloseExpectation struct + Returns LocalArtifactCacheCloseReturns + type LocalArtifactCacheCloseReturns struct + Err error + type LocalArtifactCacheGetArtifactArgs struct + ArtifactID string + ArtifactIDAnything bool + type LocalArtifactCacheGetArtifactExpectation struct + Args LocalArtifactCacheGetArtifactArgs + Returns LocalArtifactCacheGetArtifactReturns + type LocalArtifactCacheGetArtifactReturns struct + ArtifactInfo types.ArtifactInfo + Err error + type LocalArtifactCacheGetBlobArgs struct + BlobID string + BlobIDAnything bool + type LocalArtifactCacheGetBlobExpectation struct + Args LocalArtifactCacheGetBlobArgs + Returns LocalArtifactCacheGetBlobReturns + type LocalArtifactCacheGetBlobReturns struct + BlobInfo types.BlobInfo + Err error + type MockArtifactCache struct + func (_m *MockArtifactCache) ApplyDeleteBlobsExpectation(e ArtifactCacheDeleteBlobsExpectation) + func (_m *MockArtifactCache) ApplyDeleteBlobsExpectations(expectations []ArtifactCacheDeleteBlobsExpectation) + func (_m *MockArtifactCache) ApplyMissingBlobsExpectation(e ArtifactCacheMissingBlobsExpectation) + func (_m *MockArtifactCache) ApplyMissingBlobsExpectations(expectations []ArtifactCacheMissingBlobsExpectation) + func (_m *MockArtifactCache) ApplyPutArtifactExpectation(e ArtifactCachePutArtifactExpectation) + func (_m *MockArtifactCache) ApplyPutArtifactExpectations(expectations []ArtifactCachePutArtifactExpectation) + func (_m *MockArtifactCache) ApplyPutBlobExpectation(e ArtifactCachePutBlobExpectation) + func (_m *MockArtifactCache) ApplyPutBlobExpectations(expectations []ArtifactCachePutBlobExpectation) + func (_m *MockArtifactCache) DeleteBlobs(blobIDs []string) error + func (_m *MockArtifactCache) MissingBlobs(artifactID string, blobIDs []string) (bool, []string, error) + func (_m *MockArtifactCache) PutArtifact(artifactID string, artifactInfo types.ArtifactInfo) error + func (_m *MockArtifactCache) PutBlob(blobID string, blobInfo types.BlobInfo) error + type MockCache struct + func (_m *MockCache) ApplyClearExpectation(e CacheClearExpectation) + func (_m *MockCache) ApplyClearExpectations(expectations []CacheClearExpectation) + func (_m *MockCache) ApplyCloseExpectation(e CacheCloseExpectation) + func (_m *MockCache) ApplyCloseExpectations(expectations []CacheCloseExpectation) + func (_m *MockCache) ApplyDeleteBlobExpectation(e CacheDeleteBlobExpectation) + func (_m *MockCache) ApplyDeleteBlobExpectations(expectations []CacheDeleteBlobExpectation) + func (_m *MockCache) ApplyGetArtifactExpectation(e CacheGetArtifactExpectation) + func (_m *MockCache) ApplyGetArtifactExpectations(expectations []CacheGetArtifactExpectation) + func (_m *MockCache) ApplyGetBlobExpectation(e CacheGetBlobExpectation) + func (_m *MockCache) ApplyGetBlobExpectations(expectations []CacheGetBlobExpectation) + func (_m *MockCache) ApplyMissingBlobsExpectation(e CacheMissingBlobsExpectation) + func (_m *MockCache) ApplyMissingBlobsExpectations(expectations []CacheMissingBlobsExpectation) + func (_m *MockCache) ApplyPutArtifactExpectation(e CachePutArtifactExpectation) + func (_m *MockCache) ApplyPutArtifactExpectations(expectations []CachePutArtifactExpectation) + func (_m *MockCache) ApplyPutBlobExpectation(e CachePutBlobExpectation) + func (_m *MockCache) ApplyPutBlobExpectations(expectations []CachePutBlobExpectation) + func (_m *MockCache) Clear() error + func (_m *MockCache) Close() error + func (_m *MockCache) DeleteBlob(blobID string) error + func (_m *MockCache) GetArtifact(artifactID string) (types.ArtifactInfo, error) + func (_m *MockCache) GetBlob(blobID string) (types.BlobInfo, error) + func (_m *MockCache) MissingBlobs(artifactID string, blobIDs []string) (bool, []string, error) + func (_m *MockCache) PutArtifact(artifactID string, artifactInfo types.ArtifactInfo) error + func (_m *MockCache) PutBlob(blobID string, blobInfo types.BlobInfo) error + type MockLocalArtifactCache struct + func (_m *MockLocalArtifactCache) ApplyClearExpectation(e LocalArtifactCacheClearExpectation) + func (_m *MockLocalArtifactCache) ApplyClearExpectations(expectations []LocalArtifactCacheClearExpectation) + func (_m *MockLocalArtifactCache) ApplyCloseExpectation(e LocalArtifactCacheCloseExpectation) + func (_m *MockLocalArtifactCache) ApplyCloseExpectations(expectations []LocalArtifactCacheCloseExpectation) + func (_m *MockLocalArtifactCache) ApplyGetArtifactExpectation(e LocalArtifactCacheGetArtifactExpectation) + func (_m *MockLocalArtifactCache) ApplyGetArtifactExpectations(expectations []LocalArtifactCacheGetArtifactExpectation) + func (_m *MockLocalArtifactCache) ApplyGetBlobExpectation(e LocalArtifactCacheGetBlobExpectation) + func (_m *MockLocalArtifactCache) ApplyGetBlobExpectations(expectations []LocalArtifactCacheGetBlobExpectation) + func (_m *MockLocalArtifactCache) Clear() error + func (_m *MockLocalArtifactCache) Close() error + func (_m *MockLocalArtifactCache) GetArtifact(artifactID string) (types.ArtifactInfo, error) + func (_m *MockLocalArtifactCache) GetBlob(blobID string) (types.BlobInfo, error) + type RedisCache struct + func NewRedisCache(options *redis.Options, expiration time.Duration) RedisCache + func (c RedisCache) Clear() error + func (c RedisCache) Close() error + func (c RedisCache) DeleteBlobs(blobIDs []string) error + func (c RedisCache) GetArtifact(artifactID string) (types.ArtifactInfo, error) + func (c RedisCache) GetBlob(blobID string) (types.BlobInfo, error) + func (c RedisCache) MissingBlobs(artifactID string, blobIDs []string) (bool, []string, error) + func (c RedisCache) PutArtifact(artifactID string, artifactConfig types.ArtifactInfo) error + func (c RedisCache) PutBlob(blobID string, blobInfo types.BlobInfo) error + type S3Cache struct + func NewS3Cache(bucketName, prefix string, api s3iface.S3API, ...) S3Cache + func (c S3Cache) Clear() error + func (c S3Cache) Close() error + func (c S3Cache) DeleteBlobs(blobIDs []string) error + func (c S3Cache) GetArtifact(artifactID string) (types.ArtifactInfo, error) + func (c S3Cache) GetBlob(blobID string) (types.BlobInfo, error) + func (c S3Cache) MissingBlobs(artifactID string, blobIDs []string) (bool, []string, error) + func (c S3Cache) PutArtifact(artifactID string, artifactConfig types.ArtifactInfo) (err error) + func (c S3Cache) PutBlob(blobID string, blobInfo types.BlobInfo) error