Documentation ¶
Index ¶
- func IsImageNotFound(err error) bool
- func IsNotFound(err error) bool
- func IsRegistryNotFound(err error) bool
- func IsRepositoryNotFound(err error) bool
- func IsTagNotFound(err error) bool
- func NewImageNotFoundError(repository, image, tag string) error
- func NewRegistryOpenShiftClient() (*osclient.Client, error)
- func NewUserOpenShiftClient(bearerToken string) (*osclient.Client, error)
- type Client
- type Connection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsImageNotFound ¶
func IsNotFound ¶
func IsRegistryNotFound ¶
func IsRepositoryNotFound ¶
func IsTagNotFound ¶
func NewImageNotFoundError ¶ added in v0.4.2
func NewRegistryOpenShiftClient ¶ added in v0.4.4
Types ¶
type Client ¶
type Client interface { // Connect to a Docker registry by name. Pass "" for the Docker Hub Connect(registry string) (Connection, error) }
Client includes methods for accessing a Docker registry by name.
type Connection ¶
type Connection interface { // ImageTags will return a map of the tags for the image by namespace (if not // specified, will be "library") and name. ImageTags(namespace, name string) (map[string]string, error) // ImageByID will return the requested image by namespace (if not specified, // will be "library"), name, and ID. ImageByID(namespace, name, id string) (*docker.Image, error) // ImageByTag will return the requested image by namespace (if not specified, // will be "library"), name, and tag (if not specified, "latest"). ImageByTag(namespace, name, tag string) (*docker.Image, error) }
Connection allows you to retrieve data from a Docker V1 registry.
Click to show internal directories.
Click to hide internal directories.