Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterSpec ¶
type ClusterSpec struct {
Version ClusterSpecVersion `json:"version,omitzero" validate:"valid=1.14.1"`
Locations []SpicedbLocationLink `json:"locations,omitzero" validate:"sort,min=1,dedupe"`
}
type ClusterSpecVersion ¶
type ClusterSpecVersion string
const (
ClusterSpecVersion1141 ClusterSpecVersion = "1.14.1"
)
type ClusterStatus ¶
type ClusterStatus struct {
ExternalEndpoint string `json:"externalEndpoint,omitzero"`
}
ClusterStatus ports `Joi.object({externalEndpoint}).unknown(true)`.
func (ClusterStatus) ValidationRule ¶
func (ClusterStatus) ValidationRule() *validate.Rule
ValidationRule ports `Joi.object({externalEndpoint}).unknown(true)` — the reflected status shape with unknown fields allowed (was RegisterObjectRules Unknown:true on ClusterStatus).
type SpicedbCluster ¶
type SpicedbCluster 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 SpicedbClusterTags `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 SpicedbClusterSpec `json:"spec" validate:"required"`
Alias string `json:"alias,omitzero" validate:"readOnly"`
Status *ClusterStatus `json:"status,omitzero"`
}
SpicedbCluster ports `Base.keys({spec: required, alias: optional readOnly, status})`.
func (SpicedbCluster) ValidationRule ¶
func (SpicedbCluster) ValidationRule() *validate.Rule
ValidationRule reflects SpicedbCluster. This is the schema the "spicedbcluster" kind validates against (formerly RegisterReflect("spicedbcluster", ...)).
type SpicedbClusterSpec ¶
type SpicedbClusterSpec struct {
Version SpicedbClusterSpecVersion `json:"version,omitzero" validate:"valid=1.14.1"`
Locations []SpicedbLocationLink `json:"locations,omitzero" validate:"sort,min=1,dedupe"`
}
type SpicedbClusterSpecVersion ¶
type SpicedbClusterSpecVersion string
const (
SpicedbClusterSpecVersion1141 SpicedbClusterSpecVersion = "1.14.1"
)
type SpicedbClusterTags ¶
SpicedbClusterTags aliases base.Tags for the reflection base-type registry.
type SpicedbLocationLink ¶
type SpicedbLocationLink string
SpicedbLocationLink is the constrained element type for spec.locations.
func (SpicedbLocationLink) ValidationRule ¶
func (SpicedbLocationLink) ValidationRule() *validate.Rule
ValidationRule for spec.locations elements: LocalLink constrained to kind 'location' (was locationLinkRule = LocalLinkRule().Custom(ToKind("location"))).