action

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the action type in the database.
	Label = "action"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUUID holds the string denoting the uuid field in the database.
	FieldUUID = "uuid"
	// FieldMode holds the string denoting the mode field in the database.
	FieldMode = "mode"
	// FieldArgs holds the string denoting the args field in the database.
	FieldArgs = "args"
	// FieldQueued holds the string denoting the queued field in the database.
	FieldQueued = "queued"
	// FieldResponded holds the string denoting the responded field in the database.
	FieldResponded = "responded"
	// FieldResult holds the string denoting the result field in the database.
	FieldResult = "result"

	// EdgeTargeting holds the string denoting the targeting edge name in mutations.
	EdgeTargeting = "targeting"

	// Table holds the table name of the action in the database.
	Table = "actions"
	// TargetingTable is the table the holds the targeting relation/edge.
	TargetingTable = "actions"
	// TargetingInverseTable is the table name for the Host entity.
	// It exists in this package in order to avoid circular dependency with the "host" package.
	TargetingInverseTable = "hosts"
	// TargetingColumn is the table column denoting the targeting relation/edge.
	TargetingColumn = "host_actions"
)

Variables

View Source
var (
	// DefaultQueued holds the default value on creation for the "queued" field.
	DefaultQueued bool
	// DefaultResponded holds the default value on creation for the "responded" field.
	DefaultResponded bool
	// DefaultResult holds the default value on creation for the "result" field.
	DefaultResult string
)

Columns holds all SQL columns for action fields.

View Source
var ForeignKeys = []string{
	"host_actions",
}

ForeignKeys holds the SQL foreign-keys that are owned by the Action type.

Functions

func And

func And(predicates ...predicate.Action) predicate.Action

And groups predicates with the AND operator between them.

func Args

func Args(v string) predicate.Action

Args applies equality check predicate on the "args" field. It's identical to ArgsEQ.

func ArgsContains

func ArgsContains(v string) predicate.Action

ArgsContains applies the Contains predicate on the "args" field.

func ArgsContainsFold

func ArgsContainsFold(v string) predicate.Action

ArgsContainsFold applies the ContainsFold predicate on the "args" field.

func ArgsEQ

func ArgsEQ(v string) predicate.Action

ArgsEQ applies the EQ predicate on the "args" field.

func ArgsEqualFold

func ArgsEqualFold(v string) predicate.Action

ArgsEqualFold applies the EqualFold predicate on the "args" field.

func ArgsGT

func ArgsGT(v string) predicate.Action

ArgsGT applies the GT predicate on the "args" field.

func ArgsGTE

func ArgsGTE(v string) predicate.Action

ArgsGTE applies the GTE predicate on the "args" field.

func ArgsHasPrefix

func ArgsHasPrefix(v string) predicate.Action

ArgsHasPrefix applies the HasPrefix predicate on the "args" field.

func ArgsHasSuffix

func ArgsHasSuffix(v string) predicate.Action

ArgsHasSuffix applies the HasSuffix predicate on the "args" field.

func ArgsIn

func ArgsIn(vs ...string) predicate.Action

ArgsIn applies the In predicate on the "args" field.

func ArgsLT

func ArgsLT(v string) predicate.Action

ArgsLT applies the LT predicate on the "args" field.

func ArgsLTE

func ArgsLTE(v string) predicate.Action

ArgsLTE applies the LTE predicate on the "args" field.

func ArgsNEQ

func ArgsNEQ(v string) predicate.Action

ArgsNEQ applies the NEQ predicate on the "args" field.

func ArgsNotIn

func ArgsNotIn(vs ...string) predicate.Action

ArgsNotIn applies the NotIn predicate on the "args" field.

func HasTargeting

func HasTargeting() predicate.Action

HasTargeting applies the HasEdge predicate on the "targeting" edge.

func HasTargetingWith

func HasTargetingWith(preds ...predicate.Host) predicate.Action

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

func ID

func ID(id int) predicate.Action

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Action

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Action

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Action

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Action

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Action

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Action

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Mode

func Mode(v string) predicate.Action

Mode applies equality check predicate on the "mode" field. It's identical to ModeEQ.

func ModeContains

func ModeContains(v string) predicate.Action

ModeContains applies the Contains predicate on the "mode" field.

func ModeContainsFold

func ModeContainsFold(v string) predicate.Action

ModeContainsFold applies the ContainsFold predicate on the "mode" field.

func ModeEQ

func ModeEQ(v string) predicate.Action

ModeEQ applies the EQ predicate on the "mode" field.

func ModeEqualFold

func ModeEqualFold(v string) predicate.Action

ModeEqualFold applies the EqualFold predicate on the "mode" field.

func ModeGT

func ModeGT(v string) predicate.Action

ModeGT applies the GT predicate on the "mode" field.

func ModeGTE

func ModeGTE(v string) predicate.Action

ModeGTE applies the GTE predicate on the "mode" field.

func ModeHasPrefix

func ModeHasPrefix(v string) predicate.Action

ModeHasPrefix applies the HasPrefix predicate on the "mode" field.

func ModeHasSuffix

func ModeHasSuffix(v string) predicate.Action

ModeHasSuffix applies the HasSuffix predicate on the "mode" field.

func ModeIn

func ModeIn(vs ...string) predicate.Action

ModeIn applies the In predicate on the "mode" field.

func ModeLT

func ModeLT(v string) predicate.Action

ModeLT applies the LT predicate on the "mode" field.

func ModeLTE

func ModeLTE(v string) predicate.Action

ModeLTE applies the LTE predicate on the "mode" field.

func ModeNEQ

func ModeNEQ(v string) predicate.Action

ModeNEQ applies the NEQ predicate on the "mode" field.

func ModeNotIn

func ModeNotIn(vs ...string) predicate.Action

ModeNotIn applies the NotIn predicate on the "mode" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Action) predicate.Action

Or groups predicates with the OR operator between them.

func Queued

func Queued(v bool) predicate.Action

Queued applies equality check predicate on the "queued" field. It's identical to QueuedEQ.

func QueuedEQ

func QueuedEQ(v bool) predicate.Action

QueuedEQ applies the EQ predicate on the "queued" field.

func QueuedNEQ

func QueuedNEQ(v bool) predicate.Action

QueuedNEQ applies the NEQ predicate on the "queued" field.

func Responded

func Responded(v bool) predicate.Action

Responded applies equality check predicate on the "responded" field. It's identical to RespondedEQ.

func RespondedEQ

func RespondedEQ(v bool) predicate.Action

RespondedEQ applies the EQ predicate on the "responded" field.

func RespondedNEQ

func RespondedNEQ(v bool) predicate.Action

RespondedNEQ applies the NEQ predicate on the "responded" field.

func Result

func Result(v string) predicate.Action

Result applies equality check predicate on the "result" field. It's identical to ResultEQ.

func ResultContains

func ResultContains(v string) predicate.Action

ResultContains applies the Contains predicate on the "result" field.

func ResultContainsFold

func ResultContainsFold(v string) predicate.Action

ResultContainsFold applies the ContainsFold predicate on the "result" field.

func ResultEQ

func ResultEQ(v string) predicate.Action

ResultEQ applies the EQ predicate on the "result" field.

func ResultEqualFold

func ResultEqualFold(v string) predicate.Action

ResultEqualFold applies the EqualFold predicate on the "result" field.

func ResultGT

func ResultGT(v string) predicate.Action

ResultGT applies the GT predicate on the "result" field.

func ResultGTE

func ResultGTE(v string) predicate.Action

ResultGTE applies the GTE predicate on the "result" field.

func ResultHasPrefix

func ResultHasPrefix(v string) predicate.Action

ResultHasPrefix applies the HasPrefix predicate on the "result" field.

func ResultHasSuffix

func ResultHasSuffix(v string) predicate.Action

ResultHasSuffix applies the HasSuffix predicate on the "result" field.

func ResultIn

func ResultIn(vs ...string) predicate.Action

ResultIn applies the In predicate on the "result" field.

func ResultLT

func ResultLT(v string) predicate.Action

ResultLT applies the LT predicate on the "result" field.

func ResultLTE

func ResultLTE(v string) predicate.Action

ResultLTE applies the LTE predicate on the "result" field.

func ResultNEQ

func ResultNEQ(v string) predicate.Action

ResultNEQ applies the NEQ predicate on the "result" field.

func ResultNotIn

func ResultNotIn(vs ...string) predicate.Action

ResultNotIn applies the NotIn predicate on the "result" field.

func UUID

func UUID(v string) predicate.Action

UUID applies equality check predicate on the "uuid" field. It's identical to UUIDEQ.

func UUIDContains

func UUIDContains(v string) predicate.Action

UUIDContains applies the Contains predicate on the "uuid" field.

func UUIDContainsFold

func UUIDContainsFold(v string) predicate.Action

UUIDContainsFold applies the ContainsFold predicate on the "uuid" field.

func UUIDEQ

func UUIDEQ(v string) predicate.Action

UUIDEQ applies the EQ predicate on the "uuid" field.

func UUIDEqualFold

func UUIDEqualFold(v string) predicate.Action

UUIDEqualFold applies the EqualFold predicate on the "uuid" field.

func UUIDGT

func UUIDGT(v string) predicate.Action

UUIDGT applies the GT predicate on the "uuid" field.

func UUIDGTE

func UUIDGTE(v string) predicate.Action

UUIDGTE applies the GTE predicate on the "uuid" field.

func UUIDHasPrefix

func UUIDHasPrefix(v string) predicate.Action

UUIDHasPrefix applies the HasPrefix predicate on the "uuid" field.

func UUIDHasSuffix

func UUIDHasSuffix(v string) predicate.Action

UUIDHasSuffix applies the HasSuffix predicate on the "uuid" field.

func UUIDIn

func UUIDIn(vs ...string) predicate.Action

UUIDIn applies the In predicate on the "uuid" field.

func UUIDLT

func UUIDLT(v string) predicate.Action

UUIDLT applies the LT predicate on the "uuid" field.

func UUIDLTE

func UUIDLTE(v string) predicate.Action

UUIDLTE applies the LTE predicate on the "uuid" field.

func UUIDNEQ

func UUIDNEQ(v string) predicate.Action

UUIDNEQ applies the NEQ predicate on the "uuid" field.

func UUIDNotIn

func UUIDNotIn(vs ...string) predicate.Action

UUIDNotIn applies the NotIn predicate on the "uuid" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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