Documentation
¶
Index ¶
- Variables
- func ParseURLGRPC(s string) (string, bool, error)
- type Client
- 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) InitiateGet(ctx context.Context, name string) (io.ReadCloser, error)
- func (c *Client) InitiatePut(ctx context.Context, params PutParams) (io.WriteCloser, error)
- 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 = errors.New("no cache archive found for the provided keys")
ErrCacheNotFound ...
View Source
var 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) 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) InitiateGet ¶ added in v0.15.4
func (*Client) InitiatePut ¶ added in v0.15.4
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 ¶
Click to show internal directories.
Click to hide internal directories.