spicedb

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: 0 modules, 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 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

type SpicedbClusterTags = base.Tags

SpicedbClusterTags aliases base.Tags for the reflection base-type registry.

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"))).

Jump to

Keyboard shortcuts

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