Documentation
¶
Index ¶
- type Client
- func (c *Client) CasClient() *cacheman.Client
- func (c *Client) CheckStatusRequest() (protocol.ResultType, int32, error)
- func (c *Client) Clean(req protocol.CleanReq) error
- func (c *Client) Close() error
- func (c *Client) Execute(req entities.Hash, patches []entities.Hash, ...) (entities.Hash, error)
- func (c *Client) ExecuteSupport() (bool, error)
- func (c *Client) FetchGitObjectRequest(key entities.Hash) (cacheman.ResultType, error)
- func (c *Client) FetchMapRequest(key entities.Hash) error
- func (c *Client) FetchObjectRequest(key entities.Hash, objType cacheman.RequestObjectType) (cacheman.ResultType, error)
- func (c *Client) FetchStatRequest(key entities.Hash) (entities.StatInfo, error)
- func (c *Client) GetDebug() (bool, error)
- func (c *Client) GetRefs(server string, project string, refs []string) ([]entities.Hash, error)
- func (c *Client) IsObjectRemote(key entities.Hash) (bool, error)
- func (c *Client) KeepAlive(key entities.Hash) error
- func (c *Client) LRUSize() (uint64, error)
- func (c *Client) MapResults(from entities.Hash) ([]entities.Hash, error)
- func (c *Client) Ping() error
- func (c *Client) PingBinary() error
- func (c *Client) Prefetch(blobs, objects []entities.Hash, priority float64) error
- func (c *Client) PushBuildMetrics(req *protocol.PushBuildMetricsReq) error
- func (c *Client) PutRefs(server string, project string, refs []entities.RefHash, blocking bool) error
- func (c *Client) ReadConfig() (*instance.Config, error)
- func (c *Client) RemoteConfig(prevConfig *instance.ConfigOptional) (*instance.ConfigOptional, error)
- func (c *Client) RemoteOK() error
- func (c *Client) SearchRefs(server string, project string, refPrefix string, limit int) ([]entities.ProjectRefHash, error)
- func (c *Client) SendNewMap(from, to entities.Hash, localOnly bool) error
- func (c *Client) SendNewObject(key entities.Hash, objType cacheman.RequestObjectType) error
- func (c *Client) SendNotifyUse(key entities.Hash) error
- func (c *Client) Serve(ctx context.Context) error
- func (c *Client) SetDebug(debug bool) error
- func (c *Client) StartGC() error
- func (c *Client) Stats() (protocol.CacheManStats, error)
- func (c *Client) TotalSize() (uint64, error)
- func (c *Client) UseMany(hashes []entities.Hash) error
- func (c *Client) WaitFor(timeout time.Duration, priority float64, objects []entities.Hash) error
- func (c *Client) WaitIdle(timeout time.Duration) error
- type HttpClient
- func (c *HttpClient) Clean(req protocol.CleanReq) error
- func (c *HttpClient) Execute(req entities.Hash, patches []entities.Hash, ...) (entities.Hash, error)
- func (c *HttpClient) ExecuteSupport() (bool, error)
- func (c *HttpClient) FetchMapRequest(key entities.Hash) error
- func (c *HttpClient) GetDebug() (bool, error)
- func (c *HttpClient) GetRefs(server string, project string, refs []string) ([]entities.Hash, error)
- func (c *HttpClient) InterfaceVersion() (implemented, required string, err error)
- func (c *HttpClient) IsObjectRemote(key entities.Hash) (bool, error)
- func (c *HttpClient) KeepAlive(key entities.Hash) error
- func (c *HttpClient) LRUSize() (uint64, error)
- func (c *HttpClient) MapResults(from entities.Hash) ([]entities.Hash, error)
- func (c *HttpClient) Ping() error
- func (c *HttpClient) Prefetch(blobs, objects []entities.Hash, priority float64) error
- func (c *HttpClient) PushBuildMetrics(req *protocol.PushBuildMetricsReq) error
- func (c *HttpClient) PutRefs(server string, project string, refs []entities.RefHash, blocking bool) error
- func (c *HttpClient) ReadConfig() (*instance.Config, error)
- func (c *HttpClient) RemoteConfig(prevConfig *instance.ConfigOptional) (*instance.ConfigOptional, error)
- func (c *HttpClient) RemoteOK() error
- func (c *HttpClient) SearchRefs(server string, project string, refPrefix string, limit int) ([]entities.ProjectRefHash, error)
- func (c *HttpClient) SendNewMap(from, to entities.Hash, localOnly bool) error
- func (c *HttpClient) SetDebug(debug bool) error
- func (c *HttpClient) StartGC() error
- func (c *HttpClient) Stats() (protocol.CacheManStats, error)
- func (c *HttpClient) TotalSize() (uint64, error)
- func (c *HttpClient) UseMany(hashes []entities.Hash) error
- func (c *HttpClient) WaitFor(timeout time.Duration, priority float64, objects []entities.Hash) (err error)
- func (c *HttpClient) WaitIdle(timeout time.Duration) error
- type WriterFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CheckStatusRequest ¶
func (c *Client) CheckStatusRequest() (protocol.ResultType, int32, error)
func (*Client) ExecuteSupport ¶
func (*Client) FetchGitObjectRequest ¶
func (*Client) FetchObjectRequest ¶
func (c *Client) FetchObjectRequest(key entities.Hash, objType cacheman.RequestObjectType) (cacheman.ResultType, error)
func (*Client) FetchStatRequest ¶
func (*Client) MapResults ¶
func (*Client) PingBinary ¶
func (*Client) PushBuildMetrics ¶
func (c *Client) PushBuildMetrics(req *protocol.PushBuildMetricsReq) error
func (*Client) RemoteConfig ¶
func (c *Client) RemoteConfig(prevConfig *instance.ConfigOptional) (*instance.ConfigOptional, error)
func (*Client) SearchRefs ¶
func (*Client) SendNewMap ¶
func (*Client) SendNewObject ¶
type HttpClient ¶
type HttpClient struct {
// contains filtered or unexported fields
}
func NewHTTPClient ¶
func NewHTTPClient(cacheDir string) *HttpClient
func (*HttpClient) ExecuteSupport ¶
func (c *HttpClient) ExecuteSupport() (bool, error)
func (*HttpClient) FetchMapRequest ¶
func (c *HttpClient) FetchMapRequest(key entities.Hash) error
func (*HttpClient) GetDebug ¶
func (c *HttpClient) GetDebug() (bool, error)
func (*HttpClient) InterfaceVersion ¶
func (c *HttpClient) InterfaceVersion() (implemented, required string, err error)
func (*HttpClient) IsObjectRemote ¶
func (c *HttpClient) IsObjectRemote(key entities.Hash) (bool, error)
func (*HttpClient) LRUSize ¶
func (c *HttpClient) LRUSize() (uint64, error)
func (*HttpClient) MapResults ¶
func (*HttpClient) Ping ¶
func (c *HttpClient) Ping() error
func (*HttpClient) Prefetch ¶
func (c *HttpClient) Prefetch(blobs, objects []entities.Hash, priority float64) error
func (*HttpClient) PushBuildMetrics ¶
func (c *HttpClient) PushBuildMetrics(req *protocol.PushBuildMetricsReq) error
func (*HttpClient) ReadConfig ¶
func (c *HttpClient) ReadConfig() (*instance.Config, error)
func (*HttpClient) RemoteConfig ¶
func (c *HttpClient) RemoteConfig(prevConfig *instance.ConfigOptional) (*instance.ConfigOptional, error)
func (*HttpClient) RemoteOK ¶
func (c *HttpClient) RemoteOK() error
func (*HttpClient) SearchRefs ¶
func (c *HttpClient) SearchRefs(server string, project string, refPrefix string, limit int) ([]entities.ProjectRefHash, error)
func (*HttpClient) SendNewMap ¶
func (c *HttpClient) SendNewMap(from, to entities.Hash, localOnly bool) error
func (*HttpClient) SetDebug ¶
func (c *HttpClient) SetDebug(debug bool) error
func (*HttpClient) StartGC ¶
func (c *HttpClient) StartGC() error
func (*HttpClient) Stats ¶
func (c *HttpClient) Stats() (protocol.CacheManStats, error)
func (*HttpClient) TotalSize ¶
func (c *HttpClient) TotalSize() (uint64, error)
type WriterFunc ¶
Click to show internal directories.
Click to hide internal directories.