Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NameList ¶
NameList ports TenantSpec.orgs/clusters `Joi.array().items(Name).sort() .custom(makeUnique())`: an array of base.Name leaves, sorted ascending, with duplicate elements removed in place — the strongly-typed replacement for the `sort,custom=dedupeEmpty` field tag.
func (NameList) ValidationRule ¶
type Tenant ¶
type Tenant struct {
Id string `json:"id,omitzero" validate:"uuid,readOnly"`
Name base.Name `json:"name,omitzero"`
Kind base.Kind `json:"kind,omitzero"`
Version *float64 `json:"version,omitzero" validate:"positive,integer,readOnly"`
Description string `json:"description,omitzero" validate:"trim,max=250,allow="`
Tags TenantTags `json:"tags,omitzero" validate:"default={}"`
Created string `json:"created,omitzero" validate:"date,readOnly"`
LastModified string `json:"lastModified,omitzero" validate:"date,readOnly"`
Links base.Links `json:"links,omitzero" validate:"readOnly"`
Spec TenantSpec `json:"spec" validate:"required"`
}
func (Tenant) ValidationRule ¶
ValidationRule reflects Tenant. This is the schema the "tenant" kind validates against.
type TenantSpec ¶
type TenantSpec struct {
Orgs NameList `json:"orgs,omitzero"`
Clusters NameList `json:"clusters,omitzero"`
}
func (TenantSpec) ValidationRule ¶
func (TenantSpec) ValidationRule() *validate.Rule
ValidationRule reflects TenantSpec (tenant.ts:5).
type TenantTags ¶
TenantTags aliases base.Tags for the reflection base-type registry.