docker

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthResponse

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

type Client

type Client struct {
	*http.Client
	Options
}

func New

func New(ctx context.Context, opts Options) (*Client, error)

func (*Client) IsClient

func (c *Client) IsClient(imageURL string) bool

func (*Client) Tags

func (c *Client) Tags(ctx context.Context, imageURL string) ([]api.ImageTag, error)

type Image

type Image struct {
	Digest       string `json:"digest"`
	OS           string `json:"os"`
	Architecture string `json:"Architecture"`
}

type Options

type Options struct {
	LoginURL string
	Username string
	Password string
	JWT      string
}

type Result

type Result struct {
	Name      string  `json:"name"`
	Timestamp string  `json:"last_updated"`
	Images    []Image `json:"images"`
}

type TagResponse

type TagResponse struct {
	Next    string   `json:"next"`
	Results []Result `json:"results"`
}

Jump to

Keyboard shortcuts

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