Documentation ¶
Overview ¶
OCI Repository Adapter
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenRepository ¶
func OpenRepository(name string, namespace string, content configapi.RepositoryContent, spec *configapi.OciRepository, cacheDir string) (repository.Repository, error)
Types ¶
type ImageDigestName ¶
ImageDigestName holds an image we know by digest (which is immutable and more cacheable)
func (ImageDigestName) String ¶
func (i ImageDigestName) String() string
type ImageTagName ¶
ImageTagName holds an image we know by tag (but tags are mutable, so this often implies lookups)
func ParseImageTagName ¶
func ParseImageTagName(s string) (*ImageTagName, error)
func (ImageTagName) String ¶
func (i ImageTagName) String() string
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage provides helper functions specifically for OCI storage. It abstracts and simplifies the go-containerregistry library, but is agnostic to the contents of the images etc.
func NewStorage ¶
NewStorage creates a Storage for managing OCI images.
func (*Storage) LoadResources ¶
func (r *Storage) LoadResources(ctx context.Context, imageName *ImageDigestName) (*repository.Resources, error)
func (*Storage) LookupImageTag ¶
func (r *Storage) LookupImageTag(ctx context.Context, imageName ImageTagName) (*ImageDigestName, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.