tome

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: 8 Imported by: 0

Documentation

Index

Constants

View Source
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"
	// EdgeRepository holds the string denoting the repository edge name in mutations.
	EdgeRepository = "repository"
	// 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"
	// RepositoryTable is the table that holds the repository relation/edge.
	RepositoryTable = "tomes"
	// RepositoryInverseTable is the table name for the Repository entity.
	// It exists in this package in order to avoid circular dependency with the "repository" package.
	RepositoryInverseTable = "repositories"
	// RepositoryColumn is the table column denoting the repository relation/edge.
	RepositoryColumn = "tome_repository"
)
View Source
const DefaultSupportModel = SupportModelUNSPECIFIED

SupportModelUNSPECIFIED is the default value of the SupportModel enum.

View Source
const DefaultTactic = TacticUNSPECIFIED

TacticUNSPECIFIED is the default value of the Tactic enum.

Variables

View Source
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"

Columns holds all SQL columns for tome fields.

View Source
var (
	// FilesPrimaryKey and FilesColumn2 are the table columns denoting the
	// primary key for the files relation (M2M).
	FilesPrimaryKey = []string{"tome_id", "file_id"}
)
View Source
var ForeignKeys = []string{
	"tome_uploader",
	"tome_repository",
}

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 And

func And(predicates ...predicate.Tome) predicate.Tome

And groups predicates with the AND operator between them.

func Author added in v0.0.5

func Author(v string) predicate.Tome

Author applies equality check predicate on the "author" field. It's identical to AuthorEQ.

func AuthorContains added in v0.0.5

func AuthorContains(v string) predicate.Tome

AuthorContains applies the Contains predicate on the "author" field.

func AuthorContainsFold added in v0.0.5

func AuthorContainsFold(v string) predicate.Tome

AuthorContainsFold applies the ContainsFold predicate on the "author" field.

func AuthorEQ added in v0.0.5

func AuthorEQ(v string) predicate.Tome

AuthorEQ applies the EQ predicate on the "author" field.

func AuthorEqualFold added in v0.0.5

func AuthorEqualFold(v string) predicate.Tome

AuthorEqualFold applies the EqualFold predicate on the "author" field.

func AuthorGT added in v0.0.5

func AuthorGT(v string) predicate.Tome

AuthorGT applies the GT predicate on the "author" field.

func AuthorGTE added in v0.0.5

func AuthorGTE(v string) predicate.Tome

AuthorGTE applies the GTE predicate on the "author" field.

func AuthorHasPrefix added in v0.0.5

func AuthorHasPrefix(v string) predicate.Tome

AuthorHasPrefix applies the HasPrefix predicate on the "author" field.

func AuthorHasSuffix added in v0.0.5

func AuthorHasSuffix(v string) predicate.Tome

AuthorHasSuffix applies the HasSuffix predicate on the "author" field.

func AuthorIn added in v0.0.5

func AuthorIn(vs ...string) predicate.Tome

AuthorIn applies the In predicate on the "author" field.

func AuthorLT added in v0.0.5

func AuthorLT(v string) predicate.Tome

AuthorLT applies the LT predicate on the "author" field.

func AuthorLTE added in v0.0.5

func AuthorLTE(v string) predicate.Tome

AuthorLTE applies the LTE predicate on the "author" field.

func AuthorNEQ added in v0.0.5

func AuthorNEQ(v string) predicate.Tome

AuthorNEQ applies the NEQ predicate on the "author" field.

func AuthorNotIn added in v0.0.5

func AuthorNotIn(vs ...string) predicate.Tome

AuthorNotIn applies the NotIn predicate on the "author" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Tome

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Tome

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Tome

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Tome

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Tome

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Tome

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Tome

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Tome

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Tome

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Description

func Description(v string) predicate.Tome

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Tome

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Tome

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Tome

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Tome

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Tome

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Tome

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Tome

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Tome

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Tome

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Tome

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Tome

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Tome

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Tome

DescriptionNotIn applies the NotIn predicate on the "description" field.

func Eldritch

func Eldritch(v string) predicate.Tome

Eldritch applies equality check predicate on the "eldritch" field. It's identical to EldritchEQ.

func EldritchContains

func EldritchContains(v string) predicate.Tome

EldritchContains applies the Contains predicate on the "eldritch" field.

func EldritchContainsFold

func EldritchContainsFold(v string) predicate.Tome

EldritchContainsFold applies the ContainsFold predicate on the "eldritch" field.

func EldritchEQ

func EldritchEQ(v string) predicate.Tome

EldritchEQ applies the EQ predicate on the "eldritch" field.

func EldritchEqualFold

func EldritchEqualFold(v string) predicate.Tome

EldritchEqualFold applies the EqualFold predicate on the "eldritch" field.

func EldritchGT

func EldritchGT(v string) predicate.Tome

EldritchGT applies the GT predicate on the "eldritch" field.

func EldritchGTE

func EldritchGTE(v string) predicate.Tome

EldritchGTE applies the GTE predicate on the "eldritch" field.

func EldritchHasPrefix

func EldritchHasPrefix(v string) predicate.Tome

EldritchHasPrefix applies the HasPrefix predicate on the "eldritch" field.

func EldritchHasSuffix

func EldritchHasSuffix(v string) predicate.Tome

EldritchHasSuffix applies the HasSuffix predicate on the "eldritch" field.

func EldritchIn

func EldritchIn(vs ...string) predicate.Tome

EldritchIn applies the In predicate on the "eldritch" field.

func EldritchLT

func EldritchLT(v string) predicate.Tome

EldritchLT applies the LT predicate on the "eldritch" field.

func EldritchLTE

func EldritchLTE(v string) predicate.Tome

EldritchLTE applies the LTE predicate on the "eldritch" field.

func EldritchNEQ

func EldritchNEQ(v string) predicate.Tome

EldritchNEQ applies the NEQ predicate on the "eldritch" field.

func EldritchNotIn

func EldritchNotIn(vs ...string) predicate.Tome

EldritchNotIn applies the NotIn predicate on the "eldritch" field.

func HasFiles

func HasFiles() predicate.Tome

HasFiles applies the HasEdge predicate on the "files" edge.

func HasFilesWith

func HasFilesWith(preds ...predicate.File) predicate.Tome

HasFilesWith applies the HasEdge predicate on the "files" edge with a given conditions (other predicates).

func HasRepository added in v0.0.7

func HasRepository() predicate.Tome

HasRepository applies the HasEdge predicate on the "repository" edge.

func HasRepositoryWith added in v0.0.7

func HasRepositoryWith(preds ...predicate.Repository) predicate.Tome

HasRepositoryWith applies the HasEdge predicate on the "repository" edge with a given conditions (other predicates).

func HasUploader added in v0.0.5

func HasUploader() predicate.Tome

HasUploader applies the HasEdge predicate on the "uploader" edge.

func HasUploaderWith added in v0.0.5

func HasUploaderWith(preds ...predicate.User) predicate.Tome

HasUploaderWith applies the HasEdge predicate on the "uploader" edge with a given conditions (other predicates).

func Hash

func Hash(v string) predicate.Tome

Hash applies equality check predicate on the "hash" field. It's identical to HashEQ.

func HashContains

func HashContains(v string) predicate.Tome

HashContains applies the Contains predicate on the "hash" field.

func HashContainsFold

func HashContainsFold(v string) predicate.Tome

HashContainsFold applies the ContainsFold predicate on the "hash" field.

func HashEQ

func HashEQ(v string) predicate.Tome

HashEQ applies the EQ predicate on the "hash" field.

func HashEqualFold

func HashEqualFold(v string) predicate.Tome

HashEqualFold applies the EqualFold predicate on the "hash" field.

func HashGT

func HashGT(v string) predicate.Tome

HashGT applies the GT predicate on the "hash" field.

func HashGTE

func HashGTE(v string) predicate.Tome

HashGTE applies the GTE predicate on the "hash" field.

func HashHasPrefix

func HashHasPrefix(v string) predicate.Tome

HashHasPrefix applies the HasPrefix predicate on the "hash" field.

func HashHasSuffix

func HashHasSuffix(v string) predicate.Tome

HashHasSuffix applies the HasSuffix predicate on the "hash" field.

func HashIn

func HashIn(vs ...string) predicate.Tome

HashIn applies the In predicate on the "hash" field.

func HashLT

func HashLT(v string) predicate.Tome

HashLT applies the LT predicate on the "hash" field.

func HashLTE

func HashLTE(v string) predicate.Tome

HashLTE applies the LTE predicate on the "hash" field.

func HashNEQ

func HashNEQ(v string) predicate.Tome

HashNEQ applies the NEQ predicate on the "hash" field.

func HashNotIn

func HashNotIn(vs ...string) predicate.Tome

HashNotIn applies the NotIn predicate on the "hash" field.

func ID

func ID(id int) predicate.Tome

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Tome

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Tome

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Tome

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Tome

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Tome

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Tome

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Tome

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Tome

IDNotIn applies the NotIn predicate on the ID field.

func LastModifiedAt

func LastModifiedAt(v time.Time) predicate.Tome

LastModifiedAt applies equality check predicate on the "last_modified_at" field. It's identical to LastModifiedAtEQ.

func LastModifiedAtEQ

func LastModifiedAtEQ(v time.Time) predicate.Tome

LastModifiedAtEQ applies the EQ predicate on the "last_modified_at" field.

func LastModifiedAtGT

func LastModifiedAtGT(v time.Time) predicate.Tome

LastModifiedAtGT applies the GT predicate on the "last_modified_at" field.

func LastModifiedAtGTE

func LastModifiedAtGTE(v time.Time) predicate.Tome

LastModifiedAtGTE applies the GTE predicate on the "last_modified_at" field.

func LastModifiedAtIn

func LastModifiedAtIn(vs ...time.Time) predicate.Tome

LastModifiedAtIn applies the In predicate on the "last_modified_at" field.

func LastModifiedAtLT

func LastModifiedAtLT(v time.Time) predicate.Tome

LastModifiedAtLT applies the LT predicate on the "last_modified_at" field.

func LastModifiedAtLTE

func LastModifiedAtLTE(v time.Time) predicate.Tome

LastModifiedAtLTE applies the LTE predicate on the "last_modified_at" field.

func LastModifiedAtNEQ

func LastModifiedAtNEQ(v time.Time) predicate.Tome

LastModifiedAtNEQ applies the NEQ predicate on the "last_modified_at" field.

func LastModifiedAtNotIn

func LastModifiedAtNotIn(vs ...time.Time) predicate.Tome

LastModifiedAtNotIn applies the NotIn predicate on the "last_modified_at" field.

func Name

func Name(v string) predicate.Tome

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Tome

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Tome

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Tome

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Tome

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Tome

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Tome

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Tome

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Tome

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Tome

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Tome

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Tome

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Tome

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Tome

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Tome) predicate.Tome

Or groups predicates with the OR operator between them.

func ParamDefs

func ParamDefs(v string) predicate.Tome

ParamDefs applies equality check predicate on the "param_defs" field. It's identical to ParamDefsEQ.

func ParamDefsContains

func ParamDefsContains(v string) predicate.Tome

ParamDefsContains applies the Contains predicate on the "param_defs" field.

func ParamDefsContainsFold

func ParamDefsContainsFold(v string) predicate.Tome

ParamDefsContainsFold applies the ContainsFold predicate on the "param_defs" field.

func ParamDefsEQ

func ParamDefsEQ(v string) predicate.Tome

ParamDefsEQ applies the EQ predicate on the "param_defs" field.

func ParamDefsEqualFold

func ParamDefsEqualFold(v string) predicate.Tome

ParamDefsEqualFold applies the EqualFold predicate on the "param_defs" field.

func ParamDefsGT

func ParamDefsGT(v string) predicate.Tome

ParamDefsGT applies the GT predicate on the "param_defs" field.

func ParamDefsGTE

func ParamDefsGTE(v string) predicate.Tome

ParamDefsGTE applies the GTE predicate on the "param_defs" field.

func ParamDefsHasPrefix

func ParamDefsHasPrefix(v string) predicate.Tome

ParamDefsHasPrefix applies the HasPrefix predicate on the "param_defs" field.

func ParamDefsHasSuffix

func ParamDefsHasSuffix(v string) predicate.Tome

ParamDefsHasSuffix applies the HasSuffix predicate on the "param_defs" field.

func ParamDefsIn

func ParamDefsIn(vs ...string) predicate.Tome

ParamDefsIn applies the In predicate on the "param_defs" field.

func ParamDefsIsNil

func ParamDefsIsNil() predicate.Tome

ParamDefsIsNil applies the IsNil predicate on the "param_defs" field.

func ParamDefsLT

func ParamDefsLT(v string) predicate.Tome

ParamDefsLT applies the LT predicate on the "param_defs" field.

func ParamDefsLTE

func ParamDefsLTE(v string) predicate.Tome

ParamDefsLTE applies the LTE predicate on the "param_defs" field.

func ParamDefsNEQ

func ParamDefsNEQ(v string) predicate.Tome

ParamDefsNEQ applies the NEQ predicate on the "param_defs" field.

func ParamDefsNotIn

func ParamDefsNotIn(vs ...string) predicate.Tome

ParamDefsNotIn applies the NotIn predicate on the "param_defs" field.

func ParamDefsNotNil

func ParamDefsNotNil() predicate.Tome

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 TacticEQ added in v0.0.5

func TacticEQ(v Tactic) predicate.Tome

TacticEQ applies the EQ predicate on the "tactic" field.

func TacticIn added in v0.0.5

func TacticIn(vs ...Tactic) predicate.Tome

TacticIn applies the In predicate on the "tactic" field.

func TacticNEQ added in v0.0.5

func TacticNEQ(v Tactic) predicate.Tome

TacticNEQ applies the NEQ predicate on the "tactic" field.

func TacticNotIn added in v0.0.5

func TacticNotIn(vs ...Tactic) predicate.Tome

TacticNotIn applies the NotIn predicate on the "tactic" field.

func TacticValidator added in v0.0.5

func TacticValidator(t Tactic) error

TacticValidator is a validator for the "tactic" field enum values. It is called by the builders before save.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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 ByRepositoryField added in v0.0.7

func ByRepositoryField(field string, opts ...sql.OrderTermOption) OrderOption

ByRepositoryField orders the results by repository 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

func (e Tactic) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Tactic) String added in v0.0.5

func (t Tactic) String() string

func (*Tactic) UnmarshalGQL added in v0.0.5

func (e *Tactic) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

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