status

package
v2.0.0-rc.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

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 NewTracker

func NewTracker() *Tracker

NewTracker creates a new content status tracker.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL