schema

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credential

type Credential struct {
	ent.Schema
}

Credential holds the schema definition for the Credential entity.

func (Credential) Edges added in v0.3.0

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

Edges of the Credential.

func (Credential) Fields

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

Fields of the Credential.

type Event added in v0.3.0

type Event struct {
	ent.Schema
}

Event holds the schema definition for the Event entity.

func (Event) Edges added in v0.3.0

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

Edges of the Event.

func (Event) Fields added in v0.3.0

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

Fields of the Event.

type EventKind added in v0.3.0

type EventKind string

EventKind is not great for readability but we did this so we do not have to define the Enum values twice. Below in the Kind field we need to pack the values in, this provides a way to do that by making an array.

var (
	EventCreateJob EventKind = newEventKind("CREATE_JOB")
	EventCreateTag EventKind = newEventKind("CREATE_TAG")

	EventApplyTagToTask   EventKind = newEventKind("APPLY_TAG_TO_TASK")
	EventApplyTagToTarget EventKind = newEventKind("APPLY_TAG_TO_TARGET")
	EventApplyTagToJob    EventKind = newEventKind("APPLY_TAG_TO_JOB")

	EventRemoveTagFromTask   EventKind = newEventKind("REMOVE_TAG_FROM_TASK")
	EventRemoveTagFromTarget EventKind = newEventKind("REMOVE_TAG_FROM_TARGET")
	EventRemoveTagFromJob    EventKind = newEventKind("REMOVE_TAG_FROM_JOB")

	EventCreateTarget           EventKind = newEventKind("CREATE_TARGET")
	EventSetTargetFields        EventKind = newEventKind("SET_TARGET_FIELDS")
	EventDeleteTarget           EventKind = newEventKind("DELETE_TARGET")
	EventAddCredentialForTarget EventKind = newEventKind("ADD_CREDENTIAL_FOR_TARGET")

	EventUploadFile EventKind = newEventKind("UPLOAD_FILE")

	EventCreateLink    EventKind = newEventKind("CREATE_LINK")
	EventSetLinkFields EventKind = newEventKind("SET_LINK_FIELDS")

	EventActivateUser EventKind = newEventKind("ACTIVATE_USER")
	EventCreateUser   EventKind = newEventKind("CREATE_USER")
	EventMakeAdmin    EventKind = newEventKind("MAKE_ADMIN")
	EventRemoveAdmin  EventKind = newEventKind("REMOVE_ADMIN")
	EventChangeName   EventKind = newEventKind("CHANGE_NAME")

	EventActivateService EventKind = newEventKind("ACTIVATE_SERVICE")
	EventCreateService   EventKind = newEventKind("CREATE_SERVICE")

	EventLikeEvent EventKind = newEventKind("LIKE_EVENT")

	EventOther EventKind = newEventKind("OTHER")
)

IF you update this you MUST regen the ent stuff

type File added in v0.2.3

type File struct {
	ent.Schema
}

File holds file content and metadata.

func (File) Edges added in v0.2.3

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

Edges of the File.

func (File) Fields added in v0.2.3

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

Fields of the File.

type Job

type Job struct {
	ent.Schema
}

Job holds the schema definition for the Job entity.

func (Job) Edges

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

Edges of the Job.

func (Job) Fields

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

Fields of the Target.

type Link struct {
	ent.Schema
}

Link holds information about a link (usually to a file).

func (Link) Edges added in v0.2.3

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

Edges of the Link.

func (Link) Fields added in v0.2.3

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

Fields of the Link.

type OSType added in v0.4.0

type OSType string
var (
	LinuxOS   OSType = newOSType("LINUX")
	WindowsOS OSType = newOSType("WINDOWS")
	BSDOS     OSType = newOSType("BSD")
	MACOS     OSType = newOSType("MACOS")
)

IF you update this you MUST regen the ent stuff

type Service added in v0.3.0

type Service struct {
	ent.Schema
}

Service holds the schema definition for the Service entity.

func (Service) Edges added in v0.3.0

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

Edges of the Service.

func (Service) Fields added in v0.3.0

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

Fields of the Service.

type Tag

type Tag struct {
	ent.Schema
}

Tag holds the schema definition for the Tag entity.

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 Target

type Target struct {
	ent.Schema
}

Target holds the schema definition for the Target entity.

func (Target) Edges

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

Edges of the Target.

func (Target) Fields

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

Fields of the Target.

type Task

type Task struct {
	ent.Schema
}

Task holds the schema definition for the Task entity.

func (Task) Edges

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

Edges of the Task.

func (Task) Fields

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

Fields of the Task.

type User added in v0.3.0

type User struct {
	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Edges added in v0.3.0

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

Edges of the User.

func (User) Fields added in v0.3.0

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

Fields of the User.

Jump to

Keyboard shortcuts

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