Documentation
¶
Index ¶
- Constants
- type Client
- func NewClient(httpClient connect.HTTPClient, store *storage.DataStore, baseURL string, ...) *Client
- func NewHTTPClient(store *storage.DataStore, baseURL string, maxCacheAge time.Duration, ...) *Client
- func NewWithServiceClient(service v2connect.CacheServiceClient, store *storage.DataStore, ...) *Client
- func (c *Client) Get(ctx context.Context, key catalog.Key) (catalog.Entry, error)
- func (c *Client) GetOrExtendReservation(ctx context.Context, key catalog.Key, ownerID string, ...) (*cacheservicepb.Reservation, error)
- func (c *Client) GetReservationCache(ownerID string) catalog.ReservationCache
- func (c *Client) Put(ctx context.Context, key catalog.Key, reader io.OutputReader, ...) (catalog.Status, error)
- func (c *Client) ReleaseReservation(ctx context.Context, key catalog.Key, ownerID string) error
- func (c *Client) Update(ctx context.Context, key catalog.Key, reader io.OutputReader, ...) (catalog.Status, error)
- func (c *Client) UpdateReservationCache(ownerID string, entry catalog.ReservationCache)
Constants ¶
View Source
const ( TaskVersionKey = "task-version" ExecNameKey = "execution-name" ExecDomainKey = "exec-domain" ExecProjectKey = "exec-project" ExecNodeIDKey = "exec-node" ExecTaskAttemptKey = "exec-attempt" ExecOrgKey = "exec-org" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(httpClient connect.HTTPClient, store *storage.DataStore, baseURL string, maxCacheAge time.Duration, opts ...connect.ClientOption) *Client
func NewHTTPClient ¶
func NewWithServiceClient ¶
func (*Client) GetOrExtendReservation ¶
func (*Client) GetReservationCache ¶
func (c *Client) GetReservationCache(ownerID string) catalog.ReservationCache
func (*Client) ReleaseReservation ¶
func (*Client) UpdateReservationCache ¶
func (c *Client) UpdateReservationCache(ownerID string, entry catalog.ReservationCache)
Click to show internal directories.
Click to hide internal directories.