dockerhub

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

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 - dockerhub abstraction

func (*Client) Tags

func (client *Client) Tags(repository string) ([]string, error)

Tags - returns the list of tags from the dockerhub repository

type DockerHub

type DockerHub interface {
	Tags(repostiory string) ([]string, error)
}

DockerHub registry API basic operations

func NewClient

func NewClient(opts ...Option) DockerHub

NewClient new DockerHub client to interactions with private or public docker hub (currently only Tags method supported)

type Option

type Option func(*Options)

Option a single option

func Credentials

func Credentials(username, password string) Option

Credentials - optionsl

func Host

func Host(remoteHost string) Option

Host - remote host, options, default = registry-1.docker.io

func Log

func Log(log mclog.Logger) Option

Log - recommended but optional

type Options

type Options struct {
	Log  mclog.Logger
	Host string
	// contains filtered or unexported fields
}

Options for digital ocean

Jump to

Keyboard shortcuts

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