image

package
v1.1.68-test Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	Id           string        `json:"id,omitzero" validate:"uuid"`
	Name         string        `json:"name,omitzero"`
	Kind         base.Kind     `json:"kind,omitzero"`
	Version      *float64      `json:"version,omitzero" validate:"positive"`
	Created      string        `json:"created,omitzero" validate:"date"`
	LastModified string        `json:"lastModified,omitzero" validate:"date"`
	Tags         ImageTags     `json:"tags,omitzero" validate:"default={}"`
	Links        base.Links    `json:"links,omitzero"`
	Repository   string        `json:"repository,omitzero" validate:"allow=,readOnly"`
	Tag          string        `json:"tag,omitzero" validate:"readOnly"`
	Manifest     ImageManifest `json:"manifest,omitzero" validate:"readOnly"`
	Digest       string        `json:"digest,omitzero" validate:"readOnly"`
}

func (Image) ValidationRule

func (Image) ValidationRule() *validate.Rule

ValidationRule reflects Image and layers the createSchema `name`-required fork. This is the schema the "image" kind validates against (create and patch).

type ImageManifest

type ImageManifest map[string]any

ImageManifest is a free-form pattern object (Joi.object().pattern(string, any)).

type ImageSummary

type ImageSummary struct {
	Kind         base.Kind                  `json:"kind,omitzero"`
	Links        base.Links                 `json:"links,omitzero"`
	Repositories []ImageSummaryRepositories `json:"repositories,omitzero"`
}

func (ImageSummary) ValidationRule

func (ImageSummary) ValidationRule() *validate.Rule

ValidationRule reflects ImageSummary (served by the `-summary` sub-route; ported for completeness, not a registered write kind — name is not forked to required).

type ImageSummaryRepositories

type ImageSummaryRepositories struct {
	Name      string   `json:"name,omitzero"`
	TagsCount *float64 `json:"tagsCount,omitzero"`
}

type ImageTags

type ImageTags = base.Tags

ImageTags aliases base.Tags so the reflection base-type registry (keyed on base.Tags) resolves it to the shared TagsRule.

Jump to

Keyboard shortcuts

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