quay

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Config

type Config struct {
	Namespace                  string
	LastModified               time.Duration
	Token                      string
	IncludePrivateRepositories bool
}

type Quay

type Quay struct {
	// contains filtered or unexported fields
}

func New

func New(c Config) (*Quay, error)

func (*Quay) Authorize

func (q *Quay) Authorize(ctx context.Context, user, password string) error

func (*Quay) ListRepositories

func (q *Quay) ListRepositories(ctx context.Context) ([]string, error)

func (*Quay) ListTags

func (q *Quay) ListTags(ctx context.Context, repository string) ([]string, error)

type RepositoriesJSON

type RepositoriesJSON struct {
	NextPage     string       `json:"next_page"`
	Repositories []Repository `json:"repositories"`
}

type Repository

type Repository struct {
	IsPublic     bool   `json:"is_public"`
	Name         string `json:"name"`
	LastModified int    `json:"last_modified"`
}

Jump to

Keyboard shortcuts

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