schema

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package schema contains the ent schema definitions for the load balancer API.

Index

Constants

View Source
const (
	// ApplicationPrefix is the prefix for all application IDs owned by load balancer API
	ApplicationPrefix string = "load"
	// LoadBalancerPrefix is the prefix for all load balancer IDs
	LoadBalancerPrefix string = ApplicationPrefix + "bal"
	// LoadBalancerProviderPrefix is the prefix for all load balancer provider IDs
	LoadBalancerProviderPrefix string = ApplicationPrefix + "pvd"
	// OriginPrefix is the prefix for all origin IDs
	OriginPrefix string = ApplicationPrefix + "ogn"
	// PortPrefix is the prefix for all port IDs
	PortPrefix string = ApplicationPrefix + "prt"
	// PoolPrefix is the prefix for all pool IDs
	PoolPrefix string = ApplicationPrefix + "pol"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadBalancer

type LoadBalancer struct {
	ent.Schema
}

LoadBalancer holds the schema definition for the LoadBalancer entity.

func (LoadBalancer) Annotations

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

Annotations for the LoadBalancer

func (LoadBalancer) Edges

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

Edges of the Instance.

func (LoadBalancer) Fields

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

Fields of the Instance.

func (LoadBalancer) Indexes

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

Indexes of the LoadBalancer

func (LoadBalancer) Mixin

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

Mixin to use for LoadBalancer type

type Origin

type Origin struct {
	ent.Schema
}

Origin holds the schema definition for the Origin entity.

func (Origin) Annotations

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

Annotations for the Origin

func (Origin) Edges

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

Edges of the Instance.

func (Origin) Fields

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

Fields of the Instance.

func (Origin) Indexes

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

Indexes of the Origin

func (Origin) Mixin

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

Mixin to use for Origin type

type Pool

type Pool struct {
	ent.Schema
}

Pool holds the schema definition for the Pool entity.

func (Pool) Annotations

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

Annotations for the Pool

func (Pool) Edges

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

Edges of the Instance.

func (Pool) Fields

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

Fields of the Instance.

func (Pool) Indexes

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

Indexes of the Pool

func (Pool) Mixin

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

Mixin to use for Pool type

type Port

type Port struct {
	ent.Schema
}

Port holds the schema definition for the Port entity.

func (Port) Annotations

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

Annotations for the Port

func (Port) Edges

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

Edges of the Instance.

func (Port) Fields

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

Fields of the Instance.

func (Port) Indexes

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

Indexes of the Port

func (Port) Mixin

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

Mixin to use for Port type

type Provider

type Provider struct {
	ent.Schema
}

Provider holds the schema definition for the LoadBalancerProvider entity.

func (Provider) Annotations

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

Annotations for the Provider

func (Provider) Edges

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

Edges of the Provider

func (Provider) Fields

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

Fields of the Provider.

func (Provider) Indexes

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

Indexes of the Provider

func (Provider) Mixin

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

Mixin of the Provider

Directories

Path Synopsis
Package audit provides a mixin that automatically creates and populates created_by and updated_by fields for schemas where the mixin is configured.
Package audit provides a mixin that automatically creates and populates created_by and updated_by fields for schemas where the mixin is configured.
Package softdelete adds the soft delete pattern to the ent schemas.
Package softdelete adds the soft delete pattern to the ent schemas.
Package validations contains validation functions for ent fields
Package validations contains validation functions for ent fields

Jump to

Keyboard shortcuts

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