goregistry

package module
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnotationsT

type AnnotationsT struct {
	Created time.Time `json:"org.opencontainers.image.created"`
	Url     string    `json:"org.opencontainers.image.url"`
	Version string    `json:"org.opencontainers.image.version"`
}

type BlobT

type BlobT struct {
	Created time.Time `json:"created"`
}

type ConfigT

type ConfigT struct {
	MediaType string `json:"mediaType"`
	Digest    string `json:"digest"`
}

type ManifestT

type ManifestT struct {
	MediaType   string       `json:"mediaType"`
	Digest      string       `json:"digest"`
	Platform    PlatformT    `json:"platform"`
	Annotations AnnotationsT `json:"annotations"`
}

type ManifestsT

type ManifestsT struct {
	MediaType string      `json:"mediaType"`
	Manifest  []ManifestT `json:"manifests"`
}

type PlatformT

type PlatformT struct {
	Architecture string `json:"architecture"`
	Os           string `json:"os"`
}

type SingleT

type SingleT struct {
	MediaType string  `json:"mediaType"`
	Config    ConfigT `json:"config"`
}

type TagsT added in v1.0.12

type TagsT struct {
	Name string   `json:"name"`
	Tags []string `json:"tags"`
}

type TokenRespT

type TokenRespT struct {
	Token       TokenT    `json:"token"`
	AccessToken string    `json:"access_token"`
	ExpiresIn   int64     `json:"expires_in"`
	IssuedAt    time.Time `json:"issued_at"`
}

type TokenT

type TokenT string

func AcquireDeleteToken added in v1.0.14

func AcquireDeleteToken(scheme string, tlsVerify bool, host string, repo string, regcred gosecret.RegCredT) (TokenT, error)

func AcquireToken

func AcquireToken(scheme string, tlsVerify bool, host string, repo string, regcred gosecret.RegCredT) (TokenT, error)

func (TokenT) DeleteImage added in v1.0.14

func (token TokenT) DeleteImage(scheme string, tlsVerify bool, host string, repo string, tag string) error

func (TokenT) GetLastUpdate

func (token TokenT) GetLastUpdate(scheme string, tlsVerify bool, host string, repo string, tag string) (time.Time, error)

func (TokenT) GetVersions added in v1.0.12

func (token TokenT) GetVersions(scheme string, tlsVerify bool, host string, repo string, filter string, negateFilter bool) ([]string, error)

Jump to

Keyboard shortcuts

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