hub

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2018 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

Package hub represents the registry implementation for Docker Hub.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a docker registry client

func New

func New(secret *v1.Secret) (*Client, error)

New creates a new registry client for Docker Hub.

func (*Client) TagFor

func (c *Client) TagFor(repo string, release string, matcher *v1alpha1.ImagePolicyMatch) (string, error)

TagFor returns the tag name that matches the provided repo and release. It returns a registry.TagNotFound error if no matching tag is found.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL