schema

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package schema contains the ent schema definitions for the metadata API.

Index

Constants

View Source
const (
	// ApplicationPrefix is the prefix for all application IDs owned by metadata-api
	ApplicationPrefix string = "meta"
	// MetadataPrefix is the prefix for metadata
	MetadataPrefix string = ApplicationPrefix + "dat"
	// AnnotationPrefix is the prefix for all annotations
	AnnotationPrefix string = ApplicationPrefix + "ano"
	// AnnotationNamespacePrefix is the prefix for all annotation namespaces
	AnnotationNamespacePrefix string = ApplicationPrefix + "mns"
	// StatusPrefix is the prefix for all statuses
	StatusPrefix string = ApplicationPrefix + "sts"
	// StatusNamespacePrefix is the prefix for all status namespaces
	StatusNamespacePrefix string = ApplicationPrefix + "sns"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotation

type Annotation struct {
	ent.Schema
}

Annotation holds the schema definition for the Annotation entity.

func (Annotation) Annotations

func (Annotation) Annotations() []schema.Annotation

Annotations for the Annotation

func (Annotation) Edges

func (Annotation) Edges() []ent.Edge

Edges of the Annotation

func (Annotation) Fields

func (Annotation) Fields() []ent.Field

Fields of the Annotation.

func (Annotation) Indexes

func (Annotation) Indexes() []ent.Index

Indexes of the Annotation

func (Annotation) Mixin

func (Annotation) Mixin() []ent.Mixin

Mixin of the Annotation

type AnnotationNamespace

type AnnotationNamespace struct {
	ent.Schema
}

AnnotationNamespace holds the schema definition for the AnnotationNamespace entity.

func (AnnotationNamespace) Annotations

func (AnnotationNamespace) Annotations() []schema.Annotation

Annotations for the Provider

func (AnnotationNamespace) Edges

func (AnnotationNamespace) Edges() []ent.Edge

Edges of the Provider

func (AnnotationNamespace) Fields

func (AnnotationNamespace) Fields() []ent.Field

Fields of the Provider.

func (AnnotationNamespace) Indexes

func (AnnotationNamespace) Indexes() []ent.Index

Indexes of the Provider

func (AnnotationNamespace) Mixin

func (AnnotationNamespace) Mixin() []ent.Mixin

Mixin of the Provider

type Metadata

type Metadata struct {
	ent.Schema
}

Metadata holds the schema definition for the Metadata entity.

func (Metadata) Annotations

func (Metadata) Annotations() []schema.Annotation

Annotations for the Metadata

func (Metadata) Edges

func (Metadata) Edges() []ent.Edge

Edges of the Metadata

func (Metadata) Fields

func (Metadata) Fields() []ent.Field

Fields of the Metadata.

func (Metadata) Indexes

func (Metadata) Indexes() []ent.Index

Indexes of the Metadata

func (Metadata) Mixin

func (Metadata) Mixin() []ent.Mixin

Mixin of the Metadata

type Status

type Status struct {
	ent.Schema
}

Status holds the schema definition for the Status entity.

func (Status) Annotations

func (Status) Annotations() []schema.Annotation

Annotations for the Status

func (Status) Edges

func (Status) Edges() []ent.Edge

Edges of the Status

func (Status) Fields

func (Status) Fields() []ent.Field

Fields of the Status.

func (Status) Indexes

func (Status) Indexes() []ent.Index

Indexes of the Status

func (Status) Mixin

func (Status) Mixin() []ent.Mixin

Mixin of the Status

type StatusNamespace

type StatusNamespace struct {
	ent.Schema
}

StatusNamespace holds the schema definition for the StatusNamespace entity.

func (StatusNamespace) Annotations

func (StatusNamespace) Annotations() []schema.Annotation

Annotations for the Provider

func (StatusNamespace) Edges

func (StatusNamespace) Edges() []ent.Edge

Edges of the Provider

func (StatusNamespace) Fields

func (StatusNamespace) Fields() []ent.Field

Fields of the Provider.

func (StatusNamespace) Indexes

func (StatusNamespace) Indexes() []ent.Index

Indexes of the Provider

func (StatusNamespace) Mixin

func (StatusNamespace) Mixin() []ent.Mixin

Mixin of the Provider

Jump to

Keyboard shortcuts

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