Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tome) predicate.Tome
- func Author(v string) predicate.Tome
- func AuthorContains(v string) predicate.Tome
- func AuthorContainsFold(v string) predicate.Tome
- func AuthorEQ(v string) predicate.Tome
- func AuthorEqualFold(v string) predicate.Tome
- func AuthorGT(v string) predicate.Tome
- func AuthorGTE(v string) predicate.Tome
- func AuthorHasPrefix(v string) predicate.Tome
- func AuthorHasSuffix(v string) predicate.Tome
- func AuthorIn(vs ...string) predicate.Tome
- func AuthorLT(v string) predicate.Tome
- func AuthorLTE(v string) predicate.Tome
- func AuthorNEQ(v string) predicate.Tome
- func AuthorNotIn(vs ...string) predicate.Tome
- func CreatedAt(v time.Time) predicate.Tome
- func CreatedAtEQ(v time.Time) predicate.Tome
- func CreatedAtGT(v time.Time) predicate.Tome
- func CreatedAtGTE(v time.Time) predicate.Tome
- func CreatedAtIn(vs ...time.Time) predicate.Tome
- func CreatedAtLT(v time.Time) predicate.Tome
- func CreatedAtLTE(v time.Time) predicate.Tome
- func CreatedAtNEQ(v time.Time) predicate.Tome
- func CreatedAtNotIn(vs ...time.Time) predicate.Tome
- func Description(v string) predicate.Tome
- func DescriptionContains(v string) predicate.Tome
- func DescriptionContainsFold(v string) predicate.Tome
- func DescriptionEQ(v string) predicate.Tome
- func DescriptionEqualFold(v string) predicate.Tome
- func DescriptionGT(v string) predicate.Tome
- func DescriptionGTE(v string) predicate.Tome
- func DescriptionHasPrefix(v string) predicate.Tome
- func DescriptionHasSuffix(v string) predicate.Tome
- func DescriptionIn(vs ...string) predicate.Tome
- func DescriptionLT(v string) predicate.Tome
- func DescriptionLTE(v string) predicate.Tome
- func DescriptionNEQ(v string) predicate.Tome
- func DescriptionNotIn(vs ...string) predicate.Tome
- func Eldritch(v string) predicate.Tome
- func EldritchContains(v string) predicate.Tome
- func EldritchContainsFold(v string) predicate.Tome
- func EldritchEQ(v string) predicate.Tome
- func EldritchEqualFold(v string) predicate.Tome
- func EldritchGT(v string) predicate.Tome
- func EldritchGTE(v string) predicate.Tome
- func EldritchHasPrefix(v string) predicate.Tome
- func EldritchHasSuffix(v string) predicate.Tome
- func EldritchIn(vs ...string) predicate.Tome
- func EldritchLT(v string) predicate.Tome
- func EldritchLTE(v string) predicate.Tome
- func EldritchNEQ(v string) predicate.Tome
- func EldritchNotIn(vs ...string) predicate.Tome
- func HasFiles() predicate.Tome
- func HasFilesWith(preds ...predicate.File) predicate.Tome
- func HasUploader() predicate.Tome
- func HasUploaderWith(preds ...predicate.User) predicate.Tome
- func Hash(v string) predicate.Tome
- func HashContains(v string) predicate.Tome
- func HashContainsFold(v string) predicate.Tome
- func HashEQ(v string) predicate.Tome
- func HashEqualFold(v string) predicate.Tome
- func HashGT(v string) predicate.Tome
- func HashGTE(v string) predicate.Tome
- func HashHasPrefix(v string) predicate.Tome
- func HashHasSuffix(v string) predicate.Tome
- func HashIn(vs ...string) predicate.Tome
- func HashLT(v string) predicate.Tome
- func HashLTE(v string) predicate.Tome
- func HashNEQ(v string) predicate.Tome
- func HashNotIn(vs ...string) predicate.Tome
- func ID(id int) predicate.Tome
- func IDEQ(id int) predicate.Tome
- func IDGT(id int) predicate.Tome
- func IDGTE(id int) predicate.Tome
- func IDIn(ids ...int) predicate.Tome
- func IDLT(id int) predicate.Tome
- func IDLTE(id int) predicate.Tome
- func IDNEQ(id int) predicate.Tome
- func IDNotIn(ids ...int) predicate.Tome
- func LastModifiedAt(v time.Time) predicate.Tome
- func LastModifiedAtEQ(v time.Time) predicate.Tome
- func LastModifiedAtGT(v time.Time) predicate.Tome
- func LastModifiedAtGTE(v time.Time) predicate.Tome
- func LastModifiedAtIn(vs ...time.Time) predicate.Tome
- func LastModifiedAtLT(v time.Time) predicate.Tome
- func LastModifiedAtLTE(v time.Time) predicate.Tome
- func LastModifiedAtNEQ(v time.Time) predicate.Tome
- func LastModifiedAtNotIn(vs ...time.Time) predicate.Tome
- func Name(v string) predicate.Tome
- func NameContains(v string) predicate.Tome
- func NameContainsFold(v string) predicate.Tome
- func NameEQ(v string) predicate.Tome
- func NameEqualFold(v string) predicate.Tome
- func NameGT(v string) predicate.Tome
- func NameGTE(v string) predicate.Tome
- func NameHasPrefix(v string) predicate.Tome
- func NameHasSuffix(v string) predicate.Tome
- func NameIn(vs ...string) predicate.Tome
- func NameLT(v string) predicate.Tome
- func NameLTE(v string) predicate.Tome
- func NameNEQ(v string) predicate.Tome
- func NameNotIn(vs ...string) predicate.Tome
- func Not(p predicate.Tome) predicate.Tome
- func Or(predicates ...predicate.Tome) predicate.Tome
- func ParamDefs(v string) predicate.Tome
- func ParamDefsContains(v string) predicate.Tome
- func ParamDefsContainsFold(v string) predicate.Tome
- func ParamDefsEQ(v string) predicate.Tome
- func ParamDefsEqualFold(v string) predicate.Tome
- func ParamDefsGT(v string) predicate.Tome
- func ParamDefsGTE(v string) predicate.Tome
- func ParamDefsHasPrefix(v string) predicate.Tome
- func ParamDefsHasSuffix(v string) predicate.Tome
- func ParamDefsIn(vs ...string) predicate.Tome
- func ParamDefsIsNil() predicate.Tome
- func ParamDefsLT(v string) predicate.Tome
- func ParamDefsLTE(v string) predicate.Tome
- func ParamDefsNEQ(v string) predicate.Tome
- func ParamDefsNotIn(vs ...string) predicate.Tome
- func ParamDefsNotNil() predicate.Tome
- func SupportModelEQ(v SupportModel) predicate.Tome
- func SupportModelIn(vs ...SupportModel) predicate.Tome
- func SupportModelNEQ(v SupportModel) predicate.Tome
- func SupportModelNotIn(vs ...SupportModel) predicate.Tome
- func SupportModelValidator(sm SupportModel) error
- func TacticEQ(v Tactic) predicate.Tome
- func TacticIn(vs ...Tactic) predicate.Tome
- func TacticNEQ(v Tactic) predicate.Tome
- func TacticNotIn(vs ...Tactic) predicate.Tome
- func TacticValidator(t Tactic) error
- func ValidColumn(column string) bool
- type OrderOption
- func ByAuthor(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByEldritch(opts ...sql.OrderTermOption) OrderOption
- func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByFilesCount(opts ...sql.OrderTermOption) OrderOption
- func ByHash(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastModifiedAt(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByParamDefs(opts ...sql.OrderTermOption) OrderOption
- func BySupportModel(opts ...sql.OrderTermOption) OrderOption
- func ByTactic(opts ...sql.OrderTermOption) OrderOption
- func ByUploaderField(field string, opts ...sql.OrderTermOption) OrderOption
- type SupportModel
- type Tactic
Constants ¶
const ( // Label holds the string label denoting the tome type in the database. Label = "tome" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldLastModifiedAt holds the string denoting the last_modified_at field in the database. FieldLastModifiedAt = "last_modified_at" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldAuthor holds the string denoting the author field in the database. FieldAuthor = "author" // FieldSupportModel holds the string denoting the support_model field in the database. FieldSupportModel = "support_model" // FieldTactic holds the string denoting the tactic field in the database. FieldTactic = "tactic" // FieldParamDefs holds the string denoting the param_defs field in the database. FieldParamDefs = "param_defs" // FieldHash holds the string denoting the hash field in the database. FieldHash = "hash" // FieldEldritch holds the string denoting the eldritch field in the database. FieldEldritch = "eldritch" // EdgeFiles holds the string denoting the files edge name in mutations. EdgeFiles = "files" // EdgeUploader holds the string denoting the uploader edge name in mutations. EdgeUploader = "uploader" // Table holds the table name of the tome in the database. Table = "tomes" // FilesTable is the table that holds the files relation/edge. The primary key declared below. FilesTable = "tome_files" // FilesInverseTable is the table name for the File entity. // It exists in this package in order to avoid circular dependency with the "file" package. FilesInverseTable = "files" // UploaderTable is the table that holds the uploader relation/edge. UploaderTable = "tomes" // UploaderInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UploaderInverseTable = "users" // UploaderColumn is the table column denoting the uploader relation/edge. UploaderColumn = "tome_uploader" )
const DefaultSupportModel = SupportModelUNSPECIFIED
SupportModelUNSPECIFIED is the default value of the SupportModel enum.
const DefaultTactic = TacticUNSPECIFIED
TacticUNSPECIFIED is the default value of the Tactic enum.
Variables ¶
var ( Hooks [1]ent.Hook // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultLastModifiedAt holds the default value on creation for the "last_modified_at" field. DefaultLastModifiedAt func() time.Time // UpdateDefaultLastModifiedAt holds the default value on update for the "last_modified_at" field. UpdateDefaultLastModifiedAt func() time.Time // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // ParamDefsValidator is a validator for the "param_defs" field. It is called by the builders before save. ParamDefsValidator func(string) error // HashValidator is a validator for the "hash" field. It is called by the builders before save. HashValidator func(string) error )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "realm.pub/tavern/internal/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldLastModifiedAt, FieldName, FieldDescription, FieldAuthor, FieldSupportModel, FieldTactic, FieldParamDefs, FieldHash, FieldEldritch, }
Columns holds all SQL columns for tome fields.
var ( // FilesPrimaryKey and FilesColumn2 are the table columns denoting the // primary key for the files relation (M2M). FilesPrimaryKey = []string{"tome_id", "file_id"} )
var ForeignKeys = []string{
"tome_uploader",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "tomes" table and are not defined as standalone fields in the schema.
Functions ¶
func Author ¶ added in v0.0.5
Author applies equality check predicate on the "author" field. It's identical to AuthorEQ.
func AuthorContains ¶ added in v0.0.5
AuthorContains applies the Contains predicate on the "author" field.
func AuthorContainsFold ¶ added in v0.0.5
AuthorContainsFold applies the ContainsFold predicate on the "author" field.
func AuthorEqualFold ¶ added in v0.0.5
AuthorEqualFold applies the EqualFold predicate on the "author" field.
func AuthorHasPrefix ¶ added in v0.0.5
AuthorHasPrefix applies the HasPrefix predicate on the "author" field.
func AuthorHasSuffix ¶ added in v0.0.5
AuthorHasSuffix applies the HasSuffix predicate on the "author" field.
func AuthorNotIn ¶ added in v0.0.5
AuthorNotIn applies the NotIn predicate on the "author" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func Eldritch ¶
Eldritch applies equality check predicate on the "eldritch" field. It's identical to EldritchEQ.
func EldritchContains ¶
EldritchContains applies the Contains predicate on the "eldritch" field.
func EldritchContainsFold ¶
EldritchContainsFold applies the ContainsFold predicate on the "eldritch" field.
func EldritchEQ ¶
EldritchEQ applies the EQ predicate on the "eldritch" field.
func EldritchEqualFold ¶
EldritchEqualFold applies the EqualFold predicate on the "eldritch" field.
func EldritchGT ¶
EldritchGT applies the GT predicate on the "eldritch" field.
func EldritchGTE ¶
EldritchGTE applies the GTE predicate on the "eldritch" field.
func EldritchHasPrefix ¶
EldritchHasPrefix applies the HasPrefix predicate on the "eldritch" field.
func EldritchHasSuffix ¶
EldritchHasSuffix applies the HasSuffix predicate on the "eldritch" field.
func EldritchIn ¶
EldritchIn applies the In predicate on the "eldritch" field.
func EldritchLT ¶
EldritchLT applies the LT predicate on the "eldritch" field.
func EldritchLTE ¶
EldritchLTE applies the LTE predicate on the "eldritch" field.
func EldritchNEQ ¶
EldritchNEQ applies the NEQ predicate on the "eldritch" field.
func EldritchNotIn ¶
EldritchNotIn applies the NotIn predicate on the "eldritch" field.
func HasFilesWith ¶
HasFilesWith applies the HasEdge predicate on the "files" edge with a given conditions (other predicates).
func HasUploader ¶ added in v0.0.5
HasUploader applies the HasEdge predicate on the "uploader" edge.
func HasUploaderWith ¶ added in v0.0.5
HasUploaderWith applies the HasEdge predicate on the "uploader" edge with a given conditions (other predicates).
func HashContains ¶
HashContains applies the Contains predicate on the "hash" field.
func HashContainsFold ¶
HashContainsFold applies the ContainsFold predicate on the "hash" field.
func HashEqualFold ¶
HashEqualFold applies the EqualFold predicate on the "hash" field.
func HashHasPrefix ¶
HashHasPrefix applies the HasPrefix predicate on the "hash" field.
func HashHasSuffix ¶
HashHasSuffix applies the HasSuffix predicate on the "hash" field.
func LastModifiedAt ¶
LastModifiedAt applies equality check predicate on the "last_modified_at" field. It's identical to LastModifiedAtEQ.
func LastModifiedAtEQ ¶
LastModifiedAtEQ applies the EQ predicate on the "last_modified_at" field.
func LastModifiedAtGT ¶
LastModifiedAtGT applies the GT predicate on the "last_modified_at" field.
func LastModifiedAtGTE ¶
LastModifiedAtGTE applies the GTE predicate on the "last_modified_at" field.
func LastModifiedAtIn ¶
LastModifiedAtIn applies the In predicate on the "last_modified_at" field.
func LastModifiedAtLT ¶
LastModifiedAtLT applies the LT predicate on the "last_modified_at" field.
func LastModifiedAtLTE ¶
LastModifiedAtLTE applies the LTE predicate on the "last_modified_at" field.
func LastModifiedAtNEQ ¶
LastModifiedAtNEQ applies the NEQ predicate on the "last_modified_at" field.
func LastModifiedAtNotIn ¶
LastModifiedAtNotIn applies the NotIn predicate on the "last_modified_at" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func ParamDefs ¶
ParamDefs applies equality check predicate on the "param_defs" field. It's identical to ParamDefsEQ.
func ParamDefsContains ¶
ParamDefsContains applies the Contains predicate on the "param_defs" field.
func ParamDefsContainsFold ¶
ParamDefsContainsFold applies the ContainsFold predicate on the "param_defs" field.
func ParamDefsEQ ¶
ParamDefsEQ applies the EQ predicate on the "param_defs" field.
func ParamDefsEqualFold ¶
ParamDefsEqualFold applies the EqualFold predicate on the "param_defs" field.
func ParamDefsGT ¶
ParamDefsGT applies the GT predicate on the "param_defs" field.
func ParamDefsGTE ¶
ParamDefsGTE applies the GTE predicate on the "param_defs" field.
func ParamDefsHasPrefix ¶
ParamDefsHasPrefix applies the HasPrefix predicate on the "param_defs" field.
func ParamDefsHasSuffix ¶
ParamDefsHasSuffix applies the HasSuffix predicate on the "param_defs" field.
func ParamDefsIn ¶
ParamDefsIn applies the In predicate on the "param_defs" field.
func ParamDefsIsNil ¶
ParamDefsIsNil applies the IsNil predicate on the "param_defs" field.
func ParamDefsLT ¶
ParamDefsLT applies the LT predicate on the "param_defs" field.
func ParamDefsLTE ¶
ParamDefsLTE applies the LTE predicate on the "param_defs" field.
func ParamDefsNEQ ¶
ParamDefsNEQ applies the NEQ predicate on the "param_defs" field.
func ParamDefsNotIn ¶
ParamDefsNotIn applies the NotIn predicate on the "param_defs" field.
func ParamDefsNotNil ¶
ParamDefsNotNil applies the NotNil predicate on the "param_defs" field.
func SupportModelEQ ¶ added in v0.0.5
func SupportModelEQ(v SupportModel) predicate.Tome
SupportModelEQ applies the EQ predicate on the "support_model" field.
func SupportModelIn ¶ added in v0.0.5
func SupportModelIn(vs ...SupportModel) predicate.Tome
SupportModelIn applies the In predicate on the "support_model" field.
func SupportModelNEQ ¶ added in v0.0.5
func SupportModelNEQ(v SupportModel) predicate.Tome
SupportModelNEQ applies the NEQ predicate on the "support_model" field.
func SupportModelNotIn ¶ added in v0.0.5
func SupportModelNotIn(vs ...SupportModel) predicate.Tome
SupportModelNotIn applies the NotIn predicate on the "support_model" field.
func SupportModelValidator ¶ added in v0.0.5
func SupportModelValidator(sm SupportModel) error
SupportModelValidator is a validator for the "support_model" field enum values. It is called by the builders before save.
func TacticNotIn ¶ added in v0.0.5
TacticNotIn applies the NotIn predicate on the "tactic" field.
func TacticValidator ¶ added in v0.0.5
TacticValidator is a validator for the "tactic" field enum values. It is called by the builders before save.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Tome queries.
func ByAuthor ¶ added in v0.0.5
func ByAuthor(opts ...sql.OrderTermOption) OrderOption
ByAuthor orders the results by the author field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByEldritch ¶
func ByEldritch(opts ...sql.OrderTermOption) OrderOption
ByEldritch orders the results by the eldritch field.
func ByFiles ¶
func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByFiles orders the results by files terms.
func ByFilesCount ¶
func ByFilesCount(opts ...sql.OrderTermOption) OrderOption
ByFilesCount orders the results by files count.
func ByHash ¶
func ByHash(opts ...sql.OrderTermOption) OrderOption
ByHash orders the results by the hash field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastModifiedAt ¶
func ByLastModifiedAt(opts ...sql.OrderTermOption) OrderOption
ByLastModifiedAt orders the results by the last_modified_at field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByParamDefs ¶
func ByParamDefs(opts ...sql.OrderTermOption) OrderOption
ByParamDefs orders the results by the param_defs field.
func BySupportModel ¶ added in v0.0.5
func BySupportModel(opts ...sql.OrderTermOption) OrderOption
BySupportModel orders the results by the support_model field.
func ByTactic ¶ added in v0.0.5
func ByTactic(opts ...sql.OrderTermOption) OrderOption
ByTactic orders the results by the tactic field.
func ByUploaderField ¶ added in v0.0.5
func ByUploaderField(field string, opts ...sql.OrderTermOption) OrderOption
ByUploaderField orders the results by uploader field.
type SupportModel ¶ added in v0.0.5
type SupportModel string
SupportModel defines the type for the "support_model" enum field.
const ( SupportModelUNSPECIFIED SupportModel = "UNSPECIFIED" SupportModelFIRST_PARTY SupportModel = "FIRST_PARTY" SupportModelCOMMUNITY SupportModel = "COMMUNITY" )
SupportModel values.
func (SupportModel) MarshalGQL ¶ added in v0.0.5
func (e SupportModel) MarshalGQL(w io.Writer)
MarshalGQL implements graphql.Marshaler interface.
func (SupportModel) String ¶ added in v0.0.5
func (sm SupportModel) String() string
func (*SupportModel) UnmarshalGQL ¶ added in v0.0.5
func (e *SupportModel) UnmarshalGQL(val interface{}) error
UnmarshalGQL implements graphql.Unmarshaler interface.
type Tactic ¶ added in v0.0.5
type Tactic string
Tactic defines the type for the "tactic" enum field.
const ( TacticUNSPECIFIED Tactic = "UNSPECIFIED" TacticRECON Tactic = "RECON" TacticRESOURCE_DEVELOPMENT Tactic = "RESOURCE_DEVELOPMENT" TacticINITIAL_ACCESS Tactic = "INITIAL_ACCESS" TacticEXECUTION Tactic = "EXECUTION" TacticPERSISTENCE Tactic = "PERSISTENCE" TacticPRIVILEGE_ESCALATION Tactic = "PRIVILEGE_ESCALATION" TacticDEFENSE_EVASION Tactic = "DEFENSE_EVASION" TacticCREDENTIAL_ACCESS Tactic = "CREDENTIAL_ACCESS" TacticDISCOVERY Tactic = "DISCOVERY" TacticLATERAL_MOVEMENT Tactic = "LATERAL_MOVEMENT" TacticCOLLECTION Tactic = "COLLECTION" TacticCOMMAND_AND_CONTROL Tactic = "COMMAND_AND_CONTROL" TacticEXFILTRATION Tactic = "EXFILTRATION" TacticIMPACT Tactic = "IMPACT" )
Tactic values.
func (Tactic) MarshalGQL ¶ added in v0.0.5
MarshalGQL implements graphql.Marshaler interface.
func (*Tactic) UnmarshalGQL ¶ added in v0.0.5
UnmarshalGQL implements graphql.Unmarshaler interface.