schema

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 9 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"
	// LoadBalancerAnnotationPrefix is the prefix for all load balancer annotation IDs
	LoadBalancerAnnotationPrefix string = ApplicationPrefix + "ban"
	// LoadBalancerStatusPrefix is the prefix for all load balancer Status IDs
	LoadBalancerStatusPrefix string = ApplicationPrefix + "bst"
	// 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 LoadBalancerAnnotation

type LoadBalancerAnnotation struct {
	ent.Schema
}

LoadBalancerAnnotation holds the schema definition for the LoadBalancerAnnotation entity.

func (LoadBalancerAnnotation) Annotations

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

Annotations for the LoadBalancerAnnotation

func (LoadBalancerAnnotation) Edges

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

Edges of the LoadBalancerAnnotation

func (LoadBalancerAnnotation) Fields

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

Fields of the LoadBalancerAnnotation.

func (LoadBalancerAnnotation) Indexes

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

Indexes of the LoadBalancerAnnotation

func (LoadBalancerAnnotation) Mixin

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

Mixin of the LoadBalancerAnnotation

type LoadBalancerStatus

type LoadBalancerStatus struct {
	ent.Schema
}

LoadBalancerStatus holds the schema definition for the LoadBalancerStatus entity.

func (LoadBalancerStatus) Annotations

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

Annotations for the LoadBalancerStatus

func (LoadBalancerStatus) Edges

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

Edges of the LoadBalancerStatus

func (LoadBalancerStatus) Fields

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

Fields of the LoadBalancerStatus.

func (LoadBalancerStatus) Indexes

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

Indexes of the LoadBalancerStatus

func (LoadBalancerStatus) Mixin

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

Mixin of the LoadBalancerStatus

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 softdelete adds the soft delete pattern to the ent schemas.
Package softdelete adds the soft delete pattern to the ent schemas.

Jump to

Keyboard shortcuts

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