Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlobPathForManifest ¶
func BlobPathForManifest(store LocalStorage, desc ocispec.Descriptor) string
func NeedsMigrate ¶
Types ¶
type LocalRepo ¶
type LocalRepo interface {
GetRepoName() string
BlobPath(ocispec.Descriptor) string
GetAllModels() []ocispec.Descriptor
GetTags(ocispec.Descriptor) []string
PullModel(context.Context, oras.ReadOnlyTarget, registry.Reference, *options.NetworkOptions) (ocispec.Descriptor, error)
oras.Target
content.Deleter
content.Untagger
}
func GetAllLocalRepos ¶
type LocalStorage ¶
type LocalStorage interface {
GetRepo() string
GetIndex() (*ocispec.Index, error)
oras.Target
content.Deleter
content.Untagger
// contains filtered or unexported methods
}
func GetAllLocalStores ¶
func GetAllLocalStores(storageRoot string) ([]LocalStorage, error)
GetAllLocalStores returns all local OCI indexes in the storageRoot path. As OCI indexes only support tags and not registry/repository, the storageRoot may contain multiple OCI indexes at separate paths (stored in <storageRoot>/registry/repository/index.json)
func NewLocalStore ¶
func NewLocalStore(storageRoot string, ref *registry.Reference) (LocalStorage, error)
NewLocalStore returns a new LocalStorage for the provided *registry.Reference's registry and repository. The returned storage will only contain blobs present in this index.
type LocalStore ¶
func (*LocalStore) GetIndex ¶
func (s *LocalStore) GetIndex() (*ocispec.Index, error)
GetIndex is a shortcut to reading the index.json for an OCI index, allowing for listing all manfiests stored.
func (*LocalStore) GetRepo ¶
func (s *LocalStore) GetRepo() string
GetRepo returns the registry and repository for the current OCI store.
Click to show internal directories.
Click to hide internal directories.