schema

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Overview

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

Index

Constants

View Source
const (
	// ApplicationPrefix is the prefix for all application IDs owned by ipam-api
	ApplicationPrefix = "ipam"
	// IPBlockTypePrefix is the prefix for all IP Block Types nodes
	IPBlockTypePrefix = ApplicationPrefix + "ibt"
	// IPBlockPrefix is the prefix for all IP Block nodes
	IPBlockPrefix = ApplicationPrefix + "ibk"
	// IPAddressPrefix is the prefix for all IP Block nodes
	IPAddressPrefix = ApplicationPrefix + "ipa"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IPAddress

type IPAddress struct {
	ent.Schema
}

IPAddress holds the schema definition for the IPAddress entity.

func (IPAddress) Annotations

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

Annotations of the IPAddress

func (IPAddress) Edges

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

Edges of the IPAddress.

func (IPAddress) Fields

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

Fields of the IPAddress.

func (IPAddress) Indexes

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

Indexes of the IPAddress.

func (IPAddress) Mixin

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

Mixin of the IP Block Type type

type IPBlock

type IPBlock struct {
	ent.Schema
}

IPBlock holds the schema definition for the IPBlock entity.

func (IPBlock) Annotations

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

Annotations of the IPBlock

func (IPBlock) Edges

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

Edges of the IPBlock

func (IPBlock) Fields

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

Fields of the IPBlock.

func (IPBlock) Indexes

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

Indexes of the IPBlock.

func (IPBlock) Mixin

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

Mixin of the IP Block Type type

type IPBlockType

type IPBlockType struct {
	ent.Schema
}

IPBlockType holds the schema definition for the IPBlockType entity.

func (IPBlockType) Annotations

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

Annotations of the IPBlockType

func (IPBlockType) Edges

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

Edges of the IPBlockType

func (IPBlockType) Fields

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

Fields of the IPBlockType.

func (IPBlockType) Indexes

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

Indexes of the IPBlockType.

func (IPBlockType) Mixin

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

Mixin of the IP Block Type type

Directories

Path Synopsis
Package validator provides methods for validation
Package validator provides methods for validation

Jump to

Keyboard shortcuts

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