 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
- func ParseURLGRPC(s string) (string, bool, error)
- type Client
- func (c *Client) ChangeSession(invocationID string, appSlug string, buildSlug string, stepSlug string)
- func (c *Client) Delete(ctx context.Context, name string) error
- func (c *Client) DownloadFile(ctx context.Context, filePath, key string, fileMode os.FileMode, ...) (bool, error)
- func (c *Client) DownloadFileFromBuildCache(ctx context.Context, fileName, key string) error
- func (c *Client) DownloadFileGroupFromBuildCache(ctx context.Context, dd filegroup.Info, ...) (DownloadFilesStats, error)
- func (c *Client) DownloadStream(ctx context.Context, destination io.Writer, key string) error
- func (c *Client) DownloadStreamFromBuildCache(ctx context.Context, destination io.Writer, key string) error
- func (c *Client) FindMissing(ctx context.Context, digests []*FileDigest) ([]*FileDigest, error)
- func (c *Client) GetCapabilities(ctx context.Context) error
- func (c *Client) GetCapabilitiesWithRetry(ctx context.Context) error
- func (c *Client) SetLogger(logger log.Logger)
- func (c *Client) UploadFileGroupToBuildCache(ctx context.Context, dd filegroup.Info) (UploadFilesStats, error)
- func (c *Client) UploadFileToBuildCache(ctx context.Context, filePath, key string) error
- func (c *Client) UploadStreamToBuildCache(ctx context.Context, source io.Reader, key string, size int64) error
 
- type DownloadFilesStats
- type FileDigest
- type NewClientParams
- type PutParams
- type UploadFilesStats
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
    var ( // ErrCacheNotFound ... ErrCacheNotFound = errors.New("no cache archive found for the provided keys") ErrCacheUnauthenticated = errors.New("unauthenticated") )
      View Source
      
  var ErrFileExistsAndNotWritable = errors.New("file already exists and is not writable")
    ErrFileExistsAndNotWritable ...
Functions ¶
Types ¶
type Client ¶
type Client struct {
	// contains filtered or unexported fields
}
    func NewClient ¶
func NewClient(p NewClientParams) (*Client, error)
func (*Client) ChangeSession ¶ added in v1.0.2
func (*Client) DownloadFile ¶ added in v0.15.3
func (c *Client) DownloadFile(ctx context.Context, filePath, key string, fileMode os.FileMode, isDebugLogMode, skipExisting, forceOverwrite bool) (bool, error)
nolint: nestif
func (*Client) DownloadFileFromBuildCache ¶ added in v0.15.3
func (*Client) DownloadFileGroupFromBuildCache ¶ added in v0.15.3
func (c *Client) DownloadFileGroupFromBuildCache(ctx context.Context, dd filegroup.Info, isDebugLogMode, skipExisting, forceOverwrite bool, maxLoggedDownloadErrors int, ) (DownloadFilesStats, error)
nolint: gocognit
func (*Client) DownloadStream ¶ added in v0.15.3
func (*Client) DownloadStreamFromBuildCache ¶ added in v0.15.3
func (*Client) FindMissing ¶
func (c *Client) FindMissing(ctx context.Context, digests []*FileDigest) ([]*FileDigest, error)
func (*Client) GetCapabilitiesWithRetry ¶ added in v1.0.2
func (*Client) UploadFileGroupToBuildCache ¶ added in v0.15.3
func (*Client) UploadFileToBuildCache ¶ added in v0.15.3
type DownloadFilesStats ¶ added in v0.15.3
type FileDigest ¶
type NewClientParams ¶
type NewClientParams struct {
	UseInsecure         bool
	Host                string
	DialTimeout         time.Duration
	ClientName          string
	AuthConfig          common.CacheAuthConfig
	CacheConfigMetadata common.CacheConfigMetadata
	Logger              log.Logger
	CacheOperationID    string
	BitriseKVClient     kv_storage.KVStorageClient
	CapabilitiesClient  remoteexecution.CapabilitiesClient
	InvocationID        string
	DownloadRetry       uint
	DownloadRetryWait   time.Duration
	UploadRetry         uint
	UploadRetryWait     time.Duration
}
    
       Source Files
      ¶
      Source Files
      ¶
    
   Click to show internal directories. 
   Click to hide internal directories.