schema

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatGitURL added in v0.0.7

func FormatGitURL(rawurl string) (*url.URL, error)

func HookDeriveFileInfo

func HookDeriveFileInfo() ent.Hook

HookDeriveFileInfo will update file info (e.g. size, hash) whenever it is mutated.

func HookDeriveHostFileInfo added in v0.0.5

func HookDeriveHostFileInfo() ent.Hook

HookDeriveHostFileInfo will update file info (e.g. size, hash) whenever it is mutated.

func HookDeriveRepoOnCreate added in v0.0.7

func HookDeriveRepoOnCreate() ent.Hook

HookDeriveRepoOnCreate will generate private key for the repository upon creation. It will also format the git URL (if one is specified).

func HookDeriveTaskInfo added in v0.0.5

func HookDeriveTaskInfo() ent.Hook

HookDeriveTaskInfo will update task info (e.g. output_size) whenever it is mutated.

func HookDeriveTomeInfo

func HookDeriveTomeInfo() ent.Hook

HookDeriveTomeInfo will update tome info (e.g. hash) whenever it is mutated.

Types

type Beacon

type Beacon struct {
	ent.Schema
}

Beacon holds the schema definition for the Beacon entity.

func (Beacon) Annotations

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

Annotations describes additional information for the ent.

func (Beacon) Edges

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

Edges of the Beacon.

func (Beacon) Fields

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

Fields of the Beacon.

func (Beacon) Mixin added in v0.0.5

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

Mixin defines common shared properties for the ent.

type File

type File struct {
	ent.Schema
}

File holds the schema definition for the File entity.

func (File) Annotations

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

Annotations describes additional information for the ent.

func (File) Edges

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

Edges of the File.

func (File) Fields

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

Fields of the File.

func (File) Hooks

func (File) Hooks() []ent.Hook

Hooks defines middleware for mutations for the ent.

func (File) Mixin

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

Mixin defines common shared properties for the ent.

type Host

type Host struct {
	ent.Schema
}

Host holds the schema definition for the Host entity.

func (Host) Annotations

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

Annotations describes additional information for the ent.

func (Host) Edges

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

Edges of the Host.

func (Host) Fields

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

Fields of the Host.

func (Host) Mixin added in v0.0.5

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

Mixin defines common shared properties for the ent.

type HostCredential added in v0.0.7

type HostCredential struct {
	ent.Schema
}

HostCredential holds the schema definition for the entity.

func (HostCredential) Annotations added in v0.0.7

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

Annotations describes additional information for the ent.

func (HostCredential) Edges added in v0.0.7

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

Edges of the ent.

func (HostCredential) Fields added in v0.0.7

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

Fields of the ent.

func (HostCredential) Hooks added in v0.0.7

func (HostCredential) Hooks() []ent.Hook

Hooks defines middleware for mutations for the ent.

func (HostCredential) Mixin added in v0.0.7

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

Mixin defines common shared properties for the ent.

type HostFile added in v0.0.5

type HostFile struct {
	ent.Schema
}

HostFile holds the schema definition for the HostFile entity.

func (HostFile) Annotations added in v0.0.5

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

Annotations describes additional information for the ent.

func (HostFile) Edges added in v0.0.5

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

Edges of the ent.

func (HostFile) Fields added in v0.0.5

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

Fields of the HostFile.

func (HostFile) Hooks added in v0.0.5

func (HostFile) Hooks() []ent.Hook

Hooks defines middleware for mutations for the ent.

func (HostFile) Mixin added in v0.0.5

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

Mixin defines common shared properties for the ent.

type HostProcess added in v0.0.5

type HostProcess struct {
	ent.Schema
}

HostProcess holds the schema definition for the HostProcess entity.

func (HostProcess) Annotations added in v0.0.5

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

Annotations describes additional information for the ent.

func (HostProcess) Edges added in v0.0.5

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

Edges of the ent.

func (HostProcess) Fields added in v0.0.5

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

Fields of the ent.

func (HostProcess) Mixin added in v0.0.5

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

Mixin defines common shared properties for the ent.

type MixinHistory

type MixinHistory struct {
	mixin.Schema
}

MixinHistory defines common fields and edges for use in ents that require tracking of creation and modification details.

func (MixinHistory) Fields

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

type Quest

type Quest struct {
	ent.Schema
}

Quest holds the schema definition for the Quest entity.

func (Quest) Annotations

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

Annotations describes additional information for the ent.

func (Quest) Edges

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

Edges of the Quest.

func (Quest) Fields

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

Fields of the Quest.

func (Quest) Mixin

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

Mixin defines common shared properties for the ent.

type Repository added in v0.0.7

type Repository struct {
	ent.Schema
}

Repository holds the schema definition for the entity.

func (Repository) Annotations added in v0.0.7

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

Annotations describes additional information for the ent.

func (Repository) Edges added in v0.0.7

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

Edges of the ent.

func (Repository) Fields added in v0.0.7

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

Fields of the ent.

func (Repository) Hooks added in v0.0.7

func (Repository) Hooks() []ent.Hook

Hooks defines middleware for mutations for the ent.

func (Repository) Mixin added in v0.0.7

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

Mixin defines common shared properties for the ent.

type Tag

type Tag struct {
	ent.Schema
}

Tag holds the schema definition for the Tag entity.

func (Tag) Annotations

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

Annotations describes additional information for the ent.

func (Tag) Edges

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

Edges of the Tag.

func (Tag) Fields

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

Fields of the Tag.

type Task

type Task struct {
	ent.Schema
}

Task holds the schema definition for the Task entity.

func (Task) Annotations

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

Annotations to configure code generation

func (Task) Edges

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

Edges of the Task.

func (Task) Fields

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

Fields of the Task.

func (Task) Hooks added in v0.0.5

func (Task) Hooks() []ent.Hook

Hooks defines middleware for mutations for the ent.

func (Task) Mixin

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

Mixin defines common shared properties for the ent.

type Tome

type Tome struct {
	ent.Schema
}

Tome holds the schema definition for the Tome entity.

func (Tome) Annotations

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

Annotations describes additional information for the ent.

func (Tome) Edges

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

Edges of the Tome.

func (Tome) Fields

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

Fields of the Tome.

func (Tome) Hooks

func (Tome) Hooks() []ent.Hook

Hooks defines middleware for mutations for the ent.

func (Tome) Mixin

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

Mixin defines common shared properties for the ent.

type User

type User struct {
	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Annotations

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

Annotations describes additional information for the ent.

func (User) Edges

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

Edges of the User.

func (User) Fields

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

Fields of the User.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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