acr

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACRAccessTokenResponse

type ACRAccessTokenResponse struct {
	AccessToken string `json:"access_token"`
}

type ACRManifestResponse

type ACRManifestResponse struct {
	Manifests []struct {
		Digest      string    `json:"digest"`
		CreatedTime time.Time `json:"createdTime"`
		Tags        []string  `json:"tags"`
	} `json:"manifests"`
}

type Client

type Client struct {
	*http.Client
	Options
	// contains filtered or unexported fields
}

func New

func New(opts Options) (*Client, error)

func (*Client) IsHost

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

func (*Client) Name

func (c *Client) Name() string

func (*Client) RepoImageFromPath

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 Options

type Options struct {
	Username     string
	Password     string
	RefreshToken string
}

Jump to

Keyboard shortcuts

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