Documentation ¶
Index ¶
- func ParseTag(name reference.Named) string
- func WalkImages(r dim.Repository) <-chan *dim.RegistryImage
- func WalkRepositories(c dim.RegistryClient) <-chan dim.Repository
- type Client
- func (c *Client) DeleteImage(parsedName reference.Named) error
- func (c *Client) NewRepository(parsedName reference.Named) (dim.Repository, error)
- func (c *Client) PrintImageInfo(w io.Writer, parsedName reference.Named, tpl *template.Template) error
- func (c *Client) Search(query, advanced string, offset, maxResults int) (*dim.SearchResults, error)
- func (c *Client) ServerVersion() (*dim.Info, error)
- func (c *Client) WalkRepositories() <-chan dim.Repository
- type Repository
- func (r *Repository) AllTags() ([]string, error)
- func (r *Repository) DeleteImage(tag string) error
- func (r *Repository) Image(tag string) (img *dim.RegistryImage, err error)
- func (r *Repository) ImageFromManifest(tagDigest digest.Digest, tag string) (image *dim.RegistryImage, err error)
- func (r *Repository) WalkImages() <-chan *dim.RegistryImage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WalkImages ¶
func WalkImages(r dim.Repository) <-chan *dim.RegistryImage
WalkImages walks through all images of the repository and writes them in the given channel
func WalkRepositories ¶
func WalkRepositories(c dim.RegistryClient) <-chan dim.Repository
WalkRepositories walks through all repositories and send them in the given channel
Types ¶
type Client ¶
Client implements RegistryClient interface
func (*Client) DeleteImage ¶
DeleteImage deletes the image on the remote registry
func (*Client) NewRepository ¶
NewRepository creates a Repository object to query the registry about a specific repository
func (*Client) PrintImageInfo ¶
func (c *Client) PrintImageInfo(w io.Writer, parsedName reference.Named, tpl *template.Template) error
PrintImageInfo prints the info about an image available on the remote registry
func (*Client) Search ¶
Search runs a search against the registry, handling dim advanced querying option
func (*Client) ServerVersion ¶
ServerVersion read dim server version information
func (*Client) WalkRepositories ¶
func (c *Client) WalkRepositories() <-chan dim.Repository
WalkRepositories walks through all repositories and send them in the given channel
type Repository ¶
type Repository struct { distribution.Repository // contains filtered or unexported fields }
Repository implements Repository interface
func (*Repository) AllTags ¶
func (r *Repository) AllTags() ([]string, error)
AllTags returns all existing tag for this repository instance
func (*Repository) DeleteImage ¶
func (r *Repository) DeleteImage(tag string) error
DeleteImage sends a delete request on tag
func (*Repository) Image ¶
func (r *Repository) Image(tag string) (img *dim.RegistryImage, err error)
Image return image info for a given tag
func (*Repository) ImageFromManifest ¶
func (r *Repository) ImageFromManifest(tagDigest digest.Digest, tag string) (image *dim.RegistryImage, err error)
ImageFromManifest returns image information from its manifest digest
func (*Repository) WalkImages ¶
func (r *Repository) WalkImages() <-chan *dim.RegistryImage
WalkImages walks through all images of the repository and writes them in the given channel