tenant

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: ? 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 NameList

type NameList []base.Name

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

func (NameList) ValidationRule() *validate.Rule

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

func (Tenant) ValidationRule() *validate.Rule

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

type TenantTags = base.Tags

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

Jump to

Keyboard shortcuts

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