Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Agent) predicate.Agent
- func Arch(v string) predicate.Agent
- func ArchContains(v string) predicate.Agent
- func ArchContainsFold(v string) predicate.Agent
- func ArchEQ(v string) predicate.Agent
- func ArchEqualFold(v string) predicate.Agent
- func ArchGT(v string) predicate.Agent
- func ArchGTE(v string) predicate.Agent
- func ArchHasPrefix(v string) predicate.Agent
- func ArchHasSuffix(v string) predicate.Agent
- func ArchIn(vs ...string) predicate.Agent
- func ArchLT(v string) predicate.Agent
- func ArchLTE(v string) predicate.Agent
- func ArchNEQ(v string) predicate.Agent
- func ArchNotIn(vs ...string) predicate.Agent
- func Callbacks(v int) predicate.Agent
- func CallbacksEQ(v int) predicate.Agent
- func CallbacksGT(v int) predicate.Agent
- func CallbacksGTE(v int) predicate.Agent
- func CallbacksIn(vs ...int) predicate.Agent
- func CallbacksLT(v int) predicate.Agent
- func CallbacksLTE(v int) predicate.Agent
- func CallbacksNEQ(v int) predicate.Agent
- func CallbacksNotIn(vs ...int) predicate.Agent
- func Comment(v string) predicate.Agent
- func CommentContains(v string) predicate.Agent
- func CommentContainsFold(v string) predicate.Agent
- func CommentEQ(v string) predicate.Agent
- func CommentEqualFold(v string) predicate.Agent
- func CommentGT(v string) predicate.Agent
- func CommentGTE(v string) predicate.Agent
- func CommentHasPrefix(v string) predicate.Agent
- func CommentHasSuffix(v string) predicate.Agent
- func CommentIn(vs ...string) predicate.Agent
- func CommentIsNil() predicate.Agent
- func CommentLT(v string) predicate.Agent
- func CommentLTE(v string) predicate.Agent
- func CommentNEQ(v string) predicate.Agent
- func CommentNotIn(vs ...string) predicate.Agent
- func CommentNotNil() predicate.Agent
- func CreatedAt(v time.Time) predicate.Agent
- func CreatedAtEQ(v time.Time) predicate.Agent
- func CreatedAtGT(v time.Time) predicate.Agent
- func CreatedAtGTE(v time.Time) predicate.Agent
- func CreatedAtIn(vs ...time.Time) predicate.Agent
- func CreatedAtLT(v time.Time) predicate.Agent
- func CreatedAtLTE(v time.Time) predicate.Agent
- func CreatedAtNEQ(v time.Time) predicate.Agent
- func CreatedAtNotIn(vs ...time.Time) predicate.Agent
- func Downloads(v int) predicate.Agent
- func DownloadsEQ(v int) predicate.Agent
- func DownloadsGT(v int) predicate.Agent
- func DownloadsGTE(v int) predicate.Agent
- func DownloadsIn(vs ...int) predicate.Agent
- func DownloadsLT(v int) predicate.Agent
- func DownloadsLTE(v int) predicate.Agent
- func DownloadsNEQ(v int) predicate.Agent
- func DownloadsNotIn(vs ...int) predicate.Agent
- func Garble(v bool) predicate.Agent
- func GarbleEQ(v bool) predicate.Agent
- func GarbleNEQ(v bool) predicate.Agent
- func Hosted(v bool) predicate.Agent
- func HostedEQ(v bool) predicate.Agent
- func HostedNEQ(v bool) predicate.Agent
- func ID(id string) predicate.Agent
- func IDContainsFold(id string) predicate.Agent
- func IDEQ(id string) predicate.Agent
- func IDEqualFold(id string) predicate.Agent
- func IDGT(id string) predicate.Agent
- func IDGTE(id string) predicate.Agent
- func IDIn(ids ...string) predicate.Agent
- func IDLT(id string) predicate.Agent
- func IDLTE(id string) predicate.Agent
- func IDNEQ(id string) predicate.Agent
- func IDNotIn(ids ...string) predicate.Agent
- func Name(v string) predicate.Agent
- func NameContains(v string) predicate.Agent
- func NameContainsFold(v string) predicate.Agent
- func NameEQ(v string) predicate.Agent
- func NameEqualFold(v string) predicate.Agent
- func NameGT(v string) predicate.Agent
- func NameGTE(v string) predicate.Agent
- func NameHasPrefix(v string) predicate.Agent
- func NameHasSuffix(v string) predicate.Agent
- func NameIn(vs ...string) predicate.Agent
- func NameLT(v string) predicate.Agent
- func NameLTE(v string) predicate.Agent
- func NameNEQ(v string) predicate.Agent
- func NameNotIn(vs ...string) predicate.Agent
- func Not(p predicate.Agent) predicate.Agent
- func Or(predicates ...predicate.Agent) predicate.Agent
- func Os(v string) predicate.Agent
- func OsContains(v string) predicate.Agent
- func OsContainsFold(v string) predicate.Agent
- func OsEQ(v string) predicate.Agent
- func OsEqualFold(v string) predicate.Agent
- func OsGT(v string) predicate.Agent
- func OsGTE(v string) predicate.Agent
- func OsHasPrefix(v string) predicate.Agent
- func OsHasSuffix(v string) predicate.Agent
- func OsIn(vs ...string) predicate.Agent
- func OsLT(v string) predicate.Agent
- func OsLTE(v string) predicate.Agent
- func OsNEQ(v string) predicate.Agent
- func OsNotIn(vs ...string) predicate.Agent
- func Path(v string) predicate.Agent
- func PathContains(v string) predicate.Agent
- func PathContainsFold(v string) predicate.Agent
- func PathEQ(v string) predicate.Agent
- func PathEqualFold(v string) predicate.Agent
- func PathGT(v string) predicate.Agent
- func PathGTE(v string) predicate.Agent
- func PathHasPrefix(v string) predicate.Agent
- func PathHasSuffix(v string) predicate.Agent
- func PathIn(vs ...string) predicate.Agent
- func PathLT(v string) predicate.Agent
- func PathLTE(v string) predicate.Agent
- func PathNEQ(v string) predicate.Agent
- func PathNotIn(vs ...string) predicate.Agent
- func Pie(v bool) predicate.Agent
- func PieEQ(v bool) predicate.Agent
- func PieNEQ(v bool) predicate.Agent
- func PublicKey(v []byte) predicate.Agent
- func PublicKeyEQ(v []byte) predicate.Agent
- func PublicKeyGT(v []byte) predicate.Agent
- func PublicKeyGTE(v []byte) predicate.Agent
- func PublicKeyIn(vs ...[]byte) predicate.Agent
- func PublicKeyLT(v []byte) predicate.Agent
- func PublicKeyLTE(v []byte) predicate.Agent
- func PublicKeyNEQ(v []byte) predicate.Agent
- func PublicKeyNotIn(vs ...[]byte) predicate.Agent
- func Shared(v bool) predicate.Agent
- func SharedEQ(v bool) predicate.Agent
- func SharedNEQ(v bool) predicate.Agent
- func URL(v string) predicate.Agent
- func URLContains(v string) predicate.Agent
- func URLContainsFold(v string) predicate.Agent
- func URLEQ(v string) predicate.Agent
- func URLEqualFold(v string) predicate.Agent
- func URLGT(v string) predicate.Agent
- func URLGTE(v string) predicate.Agent
- func URLHasPrefix(v string) predicate.Agent
- func URLHasSuffix(v string) predicate.Agent
- func URLIn(vs ...string) predicate.Agent
- func URLIsNil() predicate.Agent
- func URLLT(v string) predicate.Agent
- func URLLTE(v string) predicate.Agent
- func URLNEQ(v string) predicate.Agent
- func URLNotIn(vs ...string) predicate.Agent
- func URLNotNil() predicate.Agent
- func ValidColumn(column string) bool
- func Xxhash(v string) predicate.Agent
- func XxhashContains(v string) predicate.Agent
- func XxhashContainsFold(v string) predicate.Agent
- func XxhashEQ(v string) predicate.Agent
- func XxhashEqualFold(v string) predicate.Agent
- func XxhashGT(v string) predicate.Agent
- func XxhashGTE(v string) predicate.Agent
- func XxhashHasPrefix(v string) predicate.Agent
- func XxhashHasSuffix(v string) predicate.Agent
- func XxhashIn(vs ...string) predicate.Agent
- func XxhashLT(v string) predicate.Agent
- func XxhashLTE(v string) predicate.Agent
- func XxhashNEQ(v string) predicate.Agent
- func XxhashNotIn(vs ...string) predicate.Agent
- type OrderOption
- func ByArch(opts ...sql.OrderTermOption) OrderOption
- func ByCallbacks(opts ...sql.OrderTermOption) OrderOption
- func ByComment(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDownloads(opts ...sql.OrderTermOption) OrderOption
- func ByGarble(opts ...sql.OrderTermOption) OrderOption
- func ByHosted(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOs(opts ...sql.OrderTermOption) OrderOption
- func ByPath(opts ...sql.OrderTermOption) OrderOption
- func ByPie(opts ...sql.OrderTermOption) OrderOption
- func ByShared(opts ...sql.OrderTermOption) OrderOption
- func ByURL(opts ...sql.OrderTermOption) OrderOption
- func ByXxhash(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the agent type in the database. Label = "agent" // 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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldComment holds the string denoting the comment field in the database. FieldComment = "comment" // FieldOs holds the string denoting the os field in the database. FieldOs = "os" // FieldArch holds the string denoting the arch field in the database. FieldArch = "arch" // FieldServers holds the string denoting the servers field in the database. FieldServers = "servers" FieldShared = "shared" // FieldPie holds the string denoting the pie field in the database. FieldPie = "pie" // FieldGarble holds the string denoting the garble field in the database. FieldGarble = "garble" // FieldSubsystems holds the string denoting the subsystems field in the database. FieldSubsystems = "subsystems" // FieldXxhash holds the string denoting the xxhash field in the database. FieldXxhash = "xxhash" // FieldPath holds the string denoting the path field in the database. FieldPath = "path" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // FieldHosted holds the string denoting the hosted field in the database. FieldHosted = "hosted" // FieldCallbacks holds the string denoting the callbacks field in the database. FieldCallbacks = "callbacks" // FieldDownloads holds the string denoting the downloads field in the database. FieldDownloads = "downloads" // FieldPublicKey holds the string denoting the public_key field in the database. FieldPublicKey = "public_key" // Table holds the table name of the agent in the database. Table = "agents" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // OsValidator is a validator for the "os" field. It is called by the builders before save. OsValidator func(string) error // ArchValidator is a validator for the "arch" field. It is called by the builders before save. ArchValidator func(string) error DefaultShared bool // DefaultPie holds the default value on creation for the "pie" field. DefaultPie bool // DefaultGarble holds the default value on creation for the "garble" field. DefaultGarble bool // DefaultSubsystems holds the default value on creation for the "subsystems" field. DefaultSubsystems []string // XxhashValidator is a validator for the "xxhash" field. It is called by the builders before save. XxhashValidator func(string) error // PathValidator is a validator for the "path" field. It is called by the builders before save. PathValidator func(string) error // DefaultHosted holds the default value on creation for the "hosted" field. DefaultHosted bool // DefaultCallbacks holds the default value on creation for the "callbacks" field. DefaultCallbacks int // DefaultDownloads holds the default value on creation for the "downloads" field. DefaultDownloads int // PublicKeyValidator is a validator for the "public_key" field. It is called by the builders before save. PublicKeyValidator func([]byte) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
var Columns = []string{ FieldID, FieldCreatedAt, FieldName, FieldComment, FieldOs, FieldArch, FieldServers, FieldShared, FieldPie, FieldGarble, FieldSubsystems, FieldXxhash, FieldPath, FieldURL, FieldHosted, FieldCallbacks, FieldDownloads, FieldPublicKey, }
Columns holds all SQL columns for agent fields.
Functions ¶
func ArchContains ¶
ArchContains applies the Contains predicate on the "arch" field.
func ArchContainsFold ¶
ArchContainsFold applies the ContainsFold predicate on the "arch" field.
func ArchEqualFold ¶
ArchEqualFold applies the EqualFold predicate on the "arch" field.
func ArchHasPrefix ¶
ArchHasPrefix applies the HasPrefix predicate on the "arch" field.
func ArchHasSuffix ¶
ArchHasSuffix applies the HasSuffix predicate on the "arch" field.
func Callbacks ¶
Callbacks applies equality check predicate on the "callbacks" field. It's identical to CallbacksEQ.
func CallbacksEQ ¶
CallbacksEQ applies the EQ predicate on the "callbacks" field.
func CallbacksGT ¶
CallbacksGT applies the GT predicate on the "callbacks" field.
func CallbacksGTE ¶
CallbacksGTE applies the GTE predicate on the "callbacks" field.
func CallbacksIn ¶
CallbacksIn applies the In predicate on the "callbacks" field.
func CallbacksLT ¶
CallbacksLT applies the LT predicate on the "callbacks" field.
func CallbacksLTE ¶
CallbacksLTE applies the LTE predicate on the "callbacks" field.
func CallbacksNEQ ¶
CallbacksNEQ applies the NEQ predicate on the "callbacks" field.
func CallbacksNotIn ¶
CallbacksNotIn applies the NotIn predicate on the "callbacks" field.
func Comment ¶
Comment applies equality check predicate on the "comment" field. It's identical to CommentEQ.
func CommentContains ¶
CommentContains applies the Contains predicate on the "comment" field.
func CommentContainsFold ¶
CommentContainsFold applies the ContainsFold predicate on the "comment" field.
func CommentEqualFold ¶
CommentEqualFold applies the EqualFold predicate on the "comment" field.
func CommentGTE ¶
CommentGTE applies the GTE predicate on the "comment" field.
func CommentHasPrefix ¶
CommentHasPrefix applies the HasPrefix predicate on the "comment" field.
func CommentHasSuffix ¶
CommentHasSuffix applies the HasSuffix predicate on the "comment" field.
func CommentIsNil ¶
CommentIsNil applies the IsNil predicate on the "comment" field.
func CommentLTE ¶
CommentLTE applies the LTE predicate on the "comment" field.
func CommentNEQ ¶
CommentNEQ applies the NEQ predicate on the "comment" field.
func CommentNotIn ¶
CommentNotIn applies the NotIn predicate on the "comment" field.
func CommentNotNil ¶
CommentNotNil applies the NotNil predicate on the "comment" 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 Downloads ¶
Downloads applies equality check predicate on the "downloads" field. It's identical to DownloadsEQ.
func DownloadsEQ ¶
DownloadsEQ applies the EQ predicate on the "downloads" field.
func DownloadsGT ¶
DownloadsGT applies the GT predicate on the "downloads" field.
func DownloadsGTE ¶
DownloadsGTE applies the GTE predicate on the "downloads" field.
func DownloadsIn ¶
DownloadsIn applies the In predicate on the "downloads" field.
func DownloadsLT ¶
DownloadsLT applies the LT predicate on the "downloads" field.
func DownloadsLTE ¶
DownloadsLTE applies the LTE predicate on the "downloads" field.
func DownloadsNEQ ¶
DownloadsNEQ applies the NEQ predicate on the "downloads" field.
func DownloadsNotIn ¶
DownloadsNotIn applies the NotIn predicate on the "downloads" field.
func Garble ¶
Garble applies equality check predicate on the "garble" field. It's identical to GarbleEQ.
func Hosted ¶
Hosted applies equality check predicate on the "hosted" field. It's identical to HostedEQ.
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID 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 OsContains ¶
OsContains applies the Contains predicate on the "os" field.
func OsContainsFold ¶
OsContainsFold applies the ContainsFold predicate on the "os" field.
func OsEqualFold ¶
OsEqualFold applies the EqualFold predicate on the "os" field.
func OsHasPrefix ¶
OsHasPrefix applies the HasPrefix predicate on the "os" field.
func OsHasSuffix ¶
OsHasSuffix applies the HasSuffix predicate on the "os" field.
func PathContains ¶
PathContains applies the Contains predicate on the "path" field.
func PathContainsFold ¶
PathContainsFold applies the ContainsFold predicate on the "path" field.
func PathEqualFold ¶
PathEqualFold applies the EqualFold predicate on the "path" field.
func PathHasPrefix ¶
PathHasPrefix applies the HasPrefix predicate on the "path" field.
func PathHasSuffix ¶
PathHasSuffix applies the HasSuffix predicate on the "path" field.
func PublicKey ¶
PublicKey applies equality check predicate on the "public_key" field. It's identical to PublicKeyEQ.
func PublicKeyEQ ¶
PublicKeyEQ applies the EQ predicate on the "public_key" field.
func PublicKeyGT ¶
PublicKeyGT applies the GT predicate on the "public_key" field.
func PublicKeyGTE ¶
PublicKeyGTE applies the GTE predicate on the "public_key" field.
func PublicKeyIn ¶
PublicKeyIn applies the In predicate on the "public_key" field.
func PublicKeyLT ¶
PublicKeyLT applies the LT predicate on the "public_key" field.
func PublicKeyLTE ¶
PublicKeyLTE applies the LTE predicate on the "public_key" field.
func PublicKeyNEQ ¶
PublicKeyNEQ applies the NEQ predicate on the "public_key" field.
func PublicKeyNotIn ¶
PublicKeyNotIn applies the NotIn predicate on the "public_key" field.
func Shared ¶
Shared applies equality check predicate on the "shared" field. It's identical to SharedEQ.
func URLContains ¶
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEqualFold ¶
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLHasPrefix ¶
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
URLHasSuffix applies the HasSuffix predicate on the "url" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Xxhash ¶
Xxhash applies equality check predicate on the "xxhash" field. It's identical to XxhashEQ.
func XxhashContains ¶
XxhashContains applies the Contains predicate on the "xxhash" field.
func XxhashContainsFold ¶
XxhashContainsFold applies the ContainsFold predicate on the "xxhash" field.
func XxhashEqualFold ¶
XxhashEqualFold applies the EqualFold predicate on the "xxhash" field.
func XxhashHasPrefix ¶
XxhashHasPrefix applies the HasPrefix predicate on the "xxhash" field.
func XxhashHasSuffix ¶
XxhashHasSuffix applies the HasSuffix predicate on the "xxhash" field.
func XxhashNotIn ¶
XxhashNotIn applies the NotIn predicate on the "xxhash" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Agent queries.
func ByArch ¶
func ByArch(opts ...sql.OrderTermOption) OrderOption
ByArch orders the results by the arch field.
func ByCallbacks ¶
func ByCallbacks(opts ...sql.OrderTermOption) OrderOption
ByCallbacks orders the results by the callbacks field.
func ByComment ¶
func ByComment(opts ...sql.OrderTermOption) OrderOption
ByComment orders the results by the comment field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDownloads ¶
func ByDownloads(opts ...sql.OrderTermOption) OrderOption
ByDownloads orders the results by the downloads field.
func ByGarble ¶
func ByGarble(opts ...sql.OrderTermOption) OrderOption
ByGarble orders the results by the garble field.
func ByHosted ¶
func ByHosted(opts ...sql.OrderTermOption) OrderOption
ByHosted orders the results by the hosted field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOs ¶
func ByOs(opts ...sql.OrderTermOption) OrderOption
ByOs orders the results by the os field.
func ByPath ¶
func ByPath(opts ...sql.OrderTermOption) OrderOption
ByPath orders the results by the path field.
func ByPie ¶
func ByPie(opts ...sql.OrderTermOption) OrderOption
ByPie orders the results by the pie field.
func ByShared ¶
func ByShared(opts ...sql.OrderTermOption) OrderOption
ByShared orders the results by the shared field.
func ByURL ¶
func ByURL(opts ...sql.OrderTermOption) OrderOption
ByURL orders the results by the url field.
func ByXxhash ¶
func ByXxhash(opts ...sql.OrderTermOption) OrderOption
ByXxhash orders the results by the xxhash field.