Documentation ¶
Index ¶
- Variables
- func ParseEndpoint(endpoint string) (*url.URL, error)
- type Error
- type Repository
- func (r *Repository) DeleteManifest(digest, repoName, tag, user, tenantID string) error
- func (r *Repository) DeleteTag(repoName, tag, user, tenantID string) error
- func (r *Repository) ListTag(repoName, user, tenantID string) ([]string, error)
- func (r *Repository) ManifestExist(reference, repoName, tag, user, tenantID string) (digest string, exist bool, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ManifestAccepts = []string{ manifestlist.MediaTypeManifestList, schema2.MediaTypeManifest, schema1.MediaTypeSignedManifest, schema1.MediaTypeManifest, }
Functions ¶
Types ¶
type Repository ¶
Repository holds information of a repository entity
func NewRepository ¶
func NewRepository(endpoint string, privateKey libtrust.PrivateKey) (*Repository, error)
NewRepository returns an instance of Repository
func (*Repository) DeleteManifest ¶
func (r *Repository) DeleteManifest(digest, repoName, tag, user, tenantID string) error
DeleteManifest ...
func (*Repository) DeleteTag ¶
func (r *Repository) DeleteTag(repoName, tag, user, tenantID string) error
DeleteTag ...
func (*Repository) ListTag ¶
func (r *Repository) ListTag(repoName, user, tenantID string) ([]string, error)
ListTag ...
func (*Repository) ManifestExist ¶
func (r *Repository) ManifestExist(reference, repoName, tag, user, tenantID string) (digest string, exist bool, err error)
ManifestExist ...
Click to show internal directories.
Click to hide internal directories.