gcr

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 10 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 {
	*http.Client
	Options
}

func New

func New(opts Options) *Client

func (*Client) IsHost added in v0.1.1

func (c *Client) IsHost(host string) bool

func (*Client) Name added in v0.2.0

func (c *Client) Name() string

func (*Client) RepoImageFromPath added in v0.1.1

func (c *Client) RepoImageFromPath(path string) (string, string)

func (*Client) Tags

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

type ManifestItem

type ManifestItem struct {
	Tag         []string `json:"tag"`
	TimeCreated string   `json:"timeCreatedMs"`
}

type Options

type Options struct {
	Token string
}

type Response

type Response struct {
	Manifest map[string]ManifestItem `json:"manifest"`
}

Jump to

Keyboard shortcuts

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