goregistry

package module
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 11 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 {
	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 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 AcquireToken

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

func (TokenT) GetLastUpdate

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

Jump to

Keyboard shortcuts

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