Documentation ¶
Index ¶
- Constants
- type GenericImageDetail
- func (g *GenericImageDetail) GetGenericImageDetailIdentifier() string
- func (g *GenericImageDetail) SetImage(image *string) *GenericImageDetail
- func (g *GenericImageDetail) SetImageDigest(imageDigest *string) *GenericImageDetail
- func (g *GenericImageDetail) SetLastUpdatedOn(imagePushedAt *time.Time) *GenericImageDetail
- type ImageDetailsFromCR
- type OrderBy
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
Click to show internal directories.
Click to hide internal directories.