Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credential ¶
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.
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
Click to show internal directories.
Click to hide internal directories.