Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tracker ¶
type Tracker struct {
// contains filtered or unexported fields
}
Tracker tracks content status described by a descriptor.
func (*Tracker) TryCommit ¶
func (t *Tracker) TryCommit(target ocispec.Descriptor) (chan struct{}, bool)
TryCommit tries to commit the work for the target descriptor. Returns true if committed. A channel is also returned for sending notifications. Once the work is done, the channel should be closed. Returns false if the work is done or still in progress.
Click to show internal directories.
Click to hide internal directories.