types

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RateLimit

type RateLimit struct {
	Remain, Limit, Reset int
	Set                  bool
	Policies             []string
}

RateLimit is returned from some http requests

type Ref

type Ref struct {
	Reference, Registry, Repository, Tag, Digest string
}

Ref reference to a registry/repository If the tag or digest is available, it's also included in the reference. Reference itself is the unparsed string. While this is currently a struct, that may change in the future and access to contents should not be assumed/used.

func NewRef

func NewRef(ref string) (Ref, error)

NewRef returns a repository reference including a registry, repository (path), digest, and tag

func (Ref) CommonName

func (r Ref) CommonName() string

CommonName outputs a parsable name from a reference

Jump to

Keyboard shortcuts

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