registry

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const (
	DOCKER_REGISTRY_TYPE_ECR        registry = "ecr"
	DOCKER_REGISTRY_TYPE_ACR        registry = "acr"
	DOCKER_REGISTRY_TYPE_DOCKERHUB  registry = "docker-hub"
	DOCKER_REGISTRY_TYPE_OTHER      registry = "other"
	REGISTRY_TYPE_ARTIFACT_REGISTRY registry = "artifact-registry"
	REGISTRY_TYPE_GCR               registry = "gcr"
)
View Source
const (
	V1 version = "v1"
	V2 version = "v2"
)
View Source
const (
	Ascending  = "ASC"
	Descending = "DSC" // default
)
View Source
const JSON_KEY_USERNAME = "_json_key"

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericImageDetail

type GenericImageDetail struct {
	Image         string    `json:"image"`
	ImageDigest   string    `json:"imageDigest"`
	LastUpdatedOn time.Time `json:"imagePushedAt"`
}

func NewGenericImageDetailFromPlugin

func NewGenericImageDetailFromPlugin() *GenericImageDetail

func SortGenericImageDetailByCreatedOn

func SortGenericImageDetailByCreatedOn(images []*GenericImageDetail, orderBy OrderBy) []*GenericImageDetail

SortGenericImageDetailByCreatedOn is used to sort the list of GenericImageDetail by GenericImageDetail.LastUpdatedOn

  • OrderBy - default value Descending
  • Original Slice is not manipulated, returns a new slice

func (*GenericImageDetail) GetGenericImageDetailIdentifier

func (g *GenericImageDetail) GetGenericImageDetailIdentifier() string

func (*GenericImageDetail) SetImage

func (g *GenericImageDetail) SetImage(image *string) *GenericImageDetail

func (*GenericImageDetail) SetImageDigest

func (g *GenericImageDetail) SetImageDigest(imageDigest *string) *GenericImageDetail

func (*GenericImageDetail) SetLastUpdatedOn

func (g *GenericImageDetail) SetLastUpdatedOn(imagePushedAt *time.Time) *GenericImageDetail

type ImageDetailsFromCR

type ImageDetailsFromCR struct {
	Version      version               `json:"version"`
	ImageDetails []*GenericImageDetail `json:"imageDetails"`
}

func NewImageDetailsFromCR

func NewImageDetailsFromCR(version version) *ImageDetailsFromCR

func (*ImageDetailsFromCR) AddImageDetails

func (i *ImageDetailsFromCR) AddImageDetails(imageDetails ...*GenericImageDetail) *ImageDetailsFromCR

type OrderBy

type OrderBy string

Jump to

Keyboard shortcuts

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