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 ¶
ValidationRule reflects Image and layers the createSchema `name`-required fork. This is the schema the "image" kind validates against (create and patch).
type ImageManifest ¶
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).