dockerutil

package
v0.0.0-...-28f7c62 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT 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
}

func New

func New(cfg *Config) *Client

func (*Client) DoAuthRequest

func (cl *Client) DoAuthRequest(req *http.Request) (*DockerAuthResponse, error)

func (*Client) DoListTagsRequest

func (cl *Client) DoListTagsRequest(req *http.Request, out interface{}) error

func (*Client) NewAuthRequest

func (cl *Client) NewAuthRequest(name string) (*http.Request, error)

func (*Client) NewListTagsRequest

func (cl *Client) NewListTagsRequest(name string) (*http.Request, error)

type Config

type Config struct {
	APIURL  string
	AuthURL string
}

type DockerAuthResponse

type DockerAuthResponse struct {
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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