machine

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the machine type in the database.
	Label = "machine"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldOrganizationID holds the string denoting the organization_id field in the database.
	FieldOrganizationID = "organization_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldHost holds the string denoting the host field in the database.
	FieldHost = "host"
	// FieldPort holds the string denoting the port field in the database.
	FieldPort = "port"
	// FieldConnectionMode holds the string denoting the connection_mode field in the database.
	FieldConnectionMode = "connection_mode"
	// FieldTransportCapabilities holds the string denoting the transport_capabilities field in the database.
	FieldTransportCapabilities = "transport_capabilities"
	// FieldSSHUser holds the string denoting the ssh_user field in the database.
	FieldSSHUser = "ssh_user"
	// FieldSSHKeyPath holds the string denoting the ssh_key_path field in the database.
	FieldSSHKeyPath = "ssh_key_path"
	// FieldAdvertisedEndpoint holds the string denoting the advertised_endpoint field in the database.
	FieldAdvertisedEndpoint = "advertised_endpoint"
	// FieldDaemonRegistered holds the string denoting the daemon_registered field in the database.
	FieldDaemonRegistered = "daemon_registered"
	// FieldDaemonLastRegisteredAt holds the string denoting the daemon_last_registered_at field in the database.
	FieldDaemonLastRegisteredAt = "daemon_last_registered_at"
	// FieldDaemonSessionID holds the string denoting the daemon_session_id field in the database.
	FieldDaemonSessionID = "daemon_session_id"
	// FieldDaemonSessionState holds the string denoting the daemon_session_state field in the database.
	FieldDaemonSessionState = "daemon_session_state"
	// FieldDetectedOs holds the string denoting the detected_os field in the database.
	FieldDetectedOs = "detected_os"
	// FieldDetectedArch holds the string denoting the detected_arch field in the database.
	FieldDetectedArch = "detected_arch"
	// FieldDetectionStatus holds the string denoting the detection_status field in the database.
	FieldDetectionStatus = "detection_status"
	// FieldChannelCredentialKind holds the string denoting the channel_credential_kind field in the database.
	FieldChannelCredentialKind = "channel_credential_kind"
	// FieldChannelTokenID holds the string denoting the channel_token_id field in the database.
	FieldChannelTokenID = "channel_token_id"
	// FieldChannelCertificateID holds the string denoting the channel_certificate_id field in the database.
	FieldChannelCertificateID = "channel_certificate_id"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldLabels holds the string denoting the labels field in the database.
	FieldLabels = "labels"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldWorkspaceRoot holds the string denoting the workspace_root field in the database.
	FieldWorkspaceRoot = "workspace_root"
	// FieldAgentCliPath holds the string denoting the agent_cli_path field in the database.
	FieldAgentCliPath = "agent_cli_path"
	// FieldEnvVars holds the string denoting the env_vars field in the database.
	FieldEnvVars = "env_vars"
	// FieldLastHeartbeatAt holds the string denoting the last_heartbeat_at field in the database.
	FieldLastHeartbeatAt = "last_heartbeat_at"
	// FieldResources holds the string denoting the resources field in the database.
	FieldResources = "resources"
	// EdgeOrganization holds the string denoting the organization edge name in mutations.
	EdgeOrganization = "organization"
	// EdgeChannelTokens holds the string denoting the channel_tokens edge name in mutations.
	EdgeChannelTokens = "channel_tokens"
	// EdgeProviders holds the string denoting the providers edge name in mutations.
	EdgeProviders = "providers"
	// EdgeTargetTickets holds the string denoting the target_tickets edge name in mutations.
	EdgeTargetTickets = "target_tickets"
	// Table holds the table name of the machine in the database.
	Table = "machines"
	// OrganizationTable is the table that holds the organization relation/edge.
	OrganizationTable = "machines"
	// OrganizationInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OrganizationInverseTable = "organizations"
	// OrganizationColumn is the table column denoting the organization relation/edge.
	OrganizationColumn = "organization_id"
	// ChannelTokensTable is the table that holds the channel_tokens relation/edge.
	ChannelTokensTable = "machine_channel_tokens"
	// ChannelTokensInverseTable is the table name for the MachineChannelToken entity.
	// It exists in this package in order to avoid circular dependency with the "machinechanneltoken" package.
	ChannelTokensInverseTable = "machine_channel_tokens"
	// ChannelTokensColumn is the table column denoting the channel_tokens relation/edge.
	ChannelTokensColumn = "machine_id"
	// ProvidersTable is the table that holds the providers relation/edge.
	ProvidersTable = "agent_providers"
	// ProvidersInverseTable is the table name for the AgentProvider entity.
	// It exists in this package in order to avoid circular dependency with the "agentprovider" package.
	ProvidersInverseTable = "agent_providers"
	// ProvidersColumn is the table column denoting the providers relation/edge.
	ProvidersColumn = "machine_id"
	// TargetTicketsTable is the table that holds the target_tickets relation/edge.
	TargetTicketsTable = "tickets"
	// TargetTicketsInverseTable is the table name for the Ticket entity.
	// It exists in this package in order to avoid circular dependency with the "ticket" package.
	TargetTicketsInverseTable = "tickets"
	// TargetTicketsColumn is the table column denoting the target_tickets relation/edge.
	TargetTicketsColumn = "target_machine_id"
)
View Source
const DefaultChannelCredentialKind = ChannelCredentialKindNone

ChannelCredentialKindNone is the default value of the ChannelCredentialKind enum.

View Source
const DefaultConnectionMode = ConnectionModeSSH

ConnectionModeSSH is the default value of the ConnectionMode enum.

View Source
const DefaultDaemonSessionState = DaemonSessionStateUnknown

DaemonSessionStateUnknown is the default value of the DaemonSessionState enum.

View Source
const DefaultDetectedArch = DetectedArchUnknown

DetectedArchUnknown is the default value of the DetectedArch enum.

View Source
const DefaultDetectedOs = DetectedOsUnknown

DetectedOsUnknown is the default value of the DetectedOs enum.

View Source
const DefaultDetectionStatus = DetectionStatusUnknown

DetectionStatusUnknown is the default value of the DetectionStatus enum.

View Source
const DefaultStatus = StatusMaintenance

StatusMaintenance is the default value of the Status enum.

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// HostValidator is a validator for the "host" field. It is called by the builders before save.
	HostValidator func(string) error
	// DefaultPort holds the default value on creation for the "port" field.
	DefaultPort int
	// DefaultDaemonRegistered holds the default value on creation for the "daemon_registered" field.
	DefaultDaemonRegistered bool
	// DefaultResources holds the default value on creation for the "resources" field.
	DefaultResources func() map[string]interface{}
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for machine fields.

Functions

func AdvertisedEndpoint

func AdvertisedEndpoint(v string) predicate.Machine

AdvertisedEndpoint applies equality check predicate on the "advertised_endpoint" field. It's identical to AdvertisedEndpointEQ.

func AdvertisedEndpointContains

func AdvertisedEndpointContains(v string) predicate.Machine

AdvertisedEndpointContains applies the Contains predicate on the "advertised_endpoint" field.

func AdvertisedEndpointContainsFold

func AdvertisedEndpointContainsFold(v string) predicate.Machine

AdvertisedEndpointContainsFold applies the ContainsFold predicate on the "advertised_endpoint" field.

func AdvertisedEndpointEQ

func AdvertisedEndpointEQ(v string) predicate.Machine

AdvertisedEndpointEQ applies the EQ predicate on the "advertised_endpoint" field.

func AdvertisedEndpointEqualFold

func AdvertisedEndpointEqualFold(v string) predicate.Machine

AdvertisedEndpointEqualFold applies the EqualFold predicate on the "advertised_endpoint" field.

func AdvertisedEndpointGT

func AdvertisedEndpointGT(v string) predicate.Machine

AdvertisedEndpointGT applies the GT predicate on the "advertised_endpoint" field.

func AdvertisedEndpointGTE

func AdvertisedEndpointGTE(v string) predicate.Machine

AdvertisedEndpointGTE applies the GTE predicate on the "advertised_endpoint" field.

func AdvertisedEndpointHasPrefix

func AdvertisedEndpointHasPrefix(v string) predicate.Machine

AdvertisedEndpointHasPrefix applies the HasPrefix predicate on the "advertised_endpoint" field.

func AdvertisedEndpointHasSuffix

func AdvertisedEndpointHasSuffix(v string) predicate.Machine

AdvertisedEndpointHasSuffix applies the HasSuffix predicate on the "advertised_endpoint" field.

func AdvertisedEndpointIn

func AdvertisedEndpointIn(vs ...string) predicate.Machine

AdvertisedEndpointIn applies the In predicate on the "advertised_endpoint" field.

func AdvertisedEndpointIsNil

func AdvertisedEndpointIsNil() predicate.Machine

AdvertisedEndpointIsNil applies the IsNil predicate on the "advertised_endpoint" field.

func AdvertisedEndpointLT

func AdvertisedEndpointLT(v string) predicate.Machine

AdvertisedEndpointLT applies the LT predicate on the "advertised_endpoint" field.

func AdvertisedEndpointLTE

func AdvertisedEndpointLTE(v string) predicate.Machine

AdvertisedEndpointLTE applies the LTE predicate on the "advertised_endpoint" field.

func AdvertisedEndpointNEQ

func AdvertisedEndpointNEQ(v string) predicate.Machine

AdvertisedEndpointNEQ applies the NEQ predicate on the "advertised_endpoint" field.

func AdvertisedEndpointNotIn

func AdvertisedEndpointNotIn(vs ...string) predicate.Machine

AdvertisedEndpointNotIn applies the NotIn predicate on the "advertised_endpoint" field.

func AdvertisedEndpointNotNil

func AdvertisedEndpointNotNil() predicate.Machine

AdvertisedEndpointNotNil applies the NotNil predicate on the "advertised_endpoint" field.

func AgentCliPath

func AgentCliPath(v string) predicate.Machine

AgentCliPath applies equality check predicate on the "agent_cli_path" field. It's identical to AgentCliPathEQ.

func AgentCliPathContains

func AgentCliPathContains(v string) predicate.Machine

AgentCliPathContains applies the Contains predicate on the "agent_cli_path" field.

func AgentCliPathContainsFold

func AgentCliPathContainsFold(v string) predicate.Machine

AgentCliPathContainsFold applies the ContainsFold predicate on the "agent_cli_path" field.

func AgentCliPathEQ

func AgentCliPathEQ(v string) predicate.Machine

AgentCliPathEQ applies the EQ predicate on the "agent_cli_path" field.

func AgentCliPathEqualFold

func AgentCliPathEqualFold(v string) predicate.Machine

AgentCliPathEqualFold applies the EqualFold predicate on the "agent_cli_path" field.

func AgentCliPathGT

func AgentCliPathGT(v string) predicate.Machine

AgentCliPathGT applies the GT predicate on the "agent_cli_path" field.

func AgentCliPathGTE

func AgentCliPathGTE(v string) predicate.Machine

AgentCliPathGTE applies the GTE predicate on the "agent_cli_path" field.

func AgentCliPathHasPrefix

func AgentCliPathHasPrefix(v string) predicate.Machine

AgentCliPathHasPrefix applies the HasPrefix predicate on the "agent_cli_path" field.

func AgentCliPathHasSuffix

func AgentCliPathHasSuffix(v string) predicate.Machine

AgentCliPathHasSuffix applies the HasSuffix predicate on the "agent_cli_path" field.

func AgentCliPathIn

func AgentCliPathIn(vs ...string) predicate.Machine

AgentCliPathIn applies the In predicate on the "agent_cli_path" field.

func AgentCliPathIsNil

func AgentCliPathIsNil() predicate.Machine

AgentCliPathIsNil applies the IsNil predicate on the "agent_cli_path" field.

func AgentCliPathLT

func AgentCliPathLT(v string) predicate.Machine

AgentCliPathLT applies the LT predicate on the "agent_cli_path" field.

func AgentCliPathLTE

func AgentCliPathLTE(v string) predicate.Machine

AgentCliPathLTE applies the LTE predicate on the "agent_cli_path" field.

func AgentCliPathNEQ

func AgentCliPathNEQ(v string) predicate.Machine

AgentCliPathNEQ applies the NEQ predicate on the "agent_cli_path" field.

func AgentCliPathNotIn

func AgentCliPathNotIn(vs ...string) predicate.Machine

AgentCliPathNotIn applies the NotIn predicate on the "agent_cli_path" field.

func AgentCliPathNotNil

func AgentCliPathNotNil() predicate.Machine

AgentCliPathNotNil applies the NotNil predicate on the "agent_cli_path" field.

func And

func And(predicates ...predicate.Machine) predicate.Machine

And groups predicates with the AND operator between them.

func ChannelCertificateID

func ChannelCertificateID(v string) predicate.Machine

ChannelCertificateID applies equality check predicate on the "channel_certificate_id" field. It's identical to ChannelCertificateIDEQ.

func ChannelCertificateIDContains

func ChannelCertificateIDContains(v string) predicate.Machine

ChannelCertificateIDContains applies the Contains predicate on the "channel_certificate_id" field.

func ChannelCertificateIDContainsFold

func ChannelCertificateIDContainsFold(v string) predicate.Machine

ChannelCertificateIDContainsFold applies the ContainsFold predicate on the "channel_certificate_id" field.

func ChannelCertificateIDEQ

func ChannelCertificateIDEQ(v string) predicate.Machine

ChannelCertificateIDEQ applies the EQ predicate on the "channel_certificate_id" field.

func ChannelCertificateIDEqualFold

func ChannelCertificateIDEqualFold(v string) predicate.Machine

ChannelCertificateIDEqualFold applies the EqualFold predicate on the "channel_certificate_id" field.

func ChannelCertificateIDGT

func ChannelCertificateIDGT(v string) predicate.Machine

ChannelCertificateIDGT applies the GT predicate on the "channel_certificate_id" field.

func ChannelCertificateIDGTE

func ChannelCertificateIDGTE(v string) predicate.Machine

ChannelCertificateIDGTE applies the GTE predicate on the "channel_certificate_id" field.

func ChannelCertificateIDHasPrefix

func ChannelCertificateIDHasPrefix(v string) predicate.Machine

ChannelCertificateIDHasPrefix applies the HasPrefix predicate on the "channel_certificate_id" field.

func ChannelCertificateIDHasSuffix

func ChannelCertificateIDHasSuffix(v string) predicate.Machine

ChannelCertificateIDHasSuffix applies the HasSuffix predicate on the "channel_certificate_id" field.

func ChannelCertificateIDIn

func ChannelCertificateIDIn(vs ...string) predicate.Machine

ChannelCertificateIDIn applies the In predicate on the "channel_certificate_id" field.

func ChannelCertificateIDIsNil

func ChannelCertificateIDIsNil() predicate.Machine

ChannelCertificateIDIsNil applies the IsNil predicate on the "channel_certificate_id" field.

func ChannelCertificateIDLT

func ChannelCertificateIDLT(v string) predicate.Machine

ChannelCertificateIDLT applies the LT predicate on the "channel_certificate_id" field.

func ChannelCertificateIDLTE

func ChannelCertificateIDLTE(v string) predicate.Machine

ChannelCertificateIDLTE applies the LTE predicate on the "channel_certificate_id" field.

func ChannelCertificateIDNEQ

func ChannelCertificateIDNEQ(v string) predicate.Machine

ChannelCertificateIDNEQ applies the NEQ predicate on the "channel_certificate_id" field.

func ChannelCertificateIDNotIn

func ChannelCertificateIDNotIn(vs ...string) predicate.Machine

ChannelCertificateIDNotIn applies the NotIn predicate on the "channel_certificate_id" field.

func ChannelCertificateIDNotNil

func ChannelCertificateIDNotNil() predicate.Machine

ChannelCertificateIDNotNil applies the NotNil predicate on the "channel_certificate_id" field.

func ChannelCredentialKindEQ

func ChannelCredentialKindEQ(v ChannelCredentialKind) predicate.Machine

ChannelCredentialKindEQ applies the EQ predicate on the "channel_credential_kind" field.

func ChannelCredentialKindIn

func ChannelCredentialKindIn(vs ...ChannelCredentialKind) predicate.Machine

ChannelCredentialKindIn applies the In predicate on the "channel_credential_kind" field.

func ChannelCredentialKindNEQ

func ChannelCredentialKindNEQ(v ChannelCredentialKind) predicate.Machine

ChannelCredentialKindNEQ applies the NEQ predicate on the "channel_credential_kind" field.

func ChannelCredentialKindNotIn

func ChannelCredentialKindNotIn(vs ...ChannelCredentialKind) predicate.Machine

ChannelCredentialKindNotIn applies the NotIn predicate on the "channel_credential_kind" field.

func ChannelCredentialKindValidator

func ChannelCredentialKindValidator(cck ChannelCredentialKind) error

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

func ChannelTokenID

func ChannelTokenID(v string) predicate.Machine

ChannelTokenID applies equality check predicate on the "channel_token_id" field. It's identical to ChannelTokenIDEQ.

func ChannelTokenIDContains

func ChannelTokenIDContains(v string) predicate.Machine

ChannelTokenIDContains applies the Contains predicate on the "channel_token_id" field.

func ChannelTokenIDContainsFold

func ChannelTokenIDContainsFold(v string) predicate.Machine

ChannelTokenIDContainsFold applies the ContainsFold predicate on the "channel_token_id" field.

func ChannelTokenIDEQ

func ChannelTokenIDEQ(v string) predicate.Machine

ChannelTokenIDEQ applies the EQ predicate on the "channel_token_id" field.

func ChannelTokenIDEqualFold

func ChannelTokenIDEqualFold(v string) predicate.Machine

ChannelTokenIDEqualFold applies the EqualFold predicate on the "channel_token_id" field.

func ChannelTokenIDGT

func ChannelTokenIDGT(v string) predicate.Machine

ChannelTokenIDGT applies the GT predicate on the "channel_token_id" field.

func ChannelTokenIDGTE

func ChannelTokenIDGTE(v string) predicate.Machine

ChannelTokenIDGTE applies the GTE predicate on the "channel_token_id" field.

func ChannelTokenIDHasPrefix

func ChannelTokenIDHasPrefix(v string) predicate.Machine

ChannelTokenIDHasPrefix applies the HasPrefix predicate on the "channel_token_id" field.

func ChannelTokenIDHasSuffix

func ChannelTokenIDHasSuffix(v string) predicate.Machine

ChannelTokenIDHasSuffix applies the HasSuffix predicate on the "channel_token_id" field.

func ChannelTokenIDIn

func ChannelTokenIDIn(vs ...string) predicate.Machine

ChannelTokenIDIn applies the In predicate on the "channel_token_id" field.

func ChannelTokenIDIsNil

func ChannelTokenIDIsNil() predicate.Machine

ChannelTokenIDIsNil applies the IsNil predicate on the "channel_token_id" field.

func ChannelTokenIDLT

func ChannelTokenIDLT(v string) predicate.Machine

ChannelTokenIDLT applies the LT predicate on the "channel_token_id" field.

func ChannelTokenIDLTE

func ChannelTokenIDLTE(v string) predicate.Machine

ChannelTokenIDLTE applies the LTE predicate on the "channel_token_id" field.

func ChannelTokenIDNEQ

func ChannelTokenIDNEQ(v string) predicate.Machine

ChannelTokenIDNEQ applies the NEQ predicate on the "channel_token_id" field.

func ChannelTokenIDNotIn

func ChannelTokenIDNotIn(vs ...string) predicate.Machine

ChannelTokenIDNotIn applies the NotIn predicate on the "channel_token_id" field.

func ChannelTokenIDNotNil

func ChannelTokenIDNotNil() predicate.Machine

ChannelTokenIDNotNil applies the NotNil predicate on the "channel_token_id" field.

func ConnectionModeEQ

func ConnectionModeEQ(v ConnectionMode) predicate.Machine

ConnectionModeEQ applies the EQ predicate on the "connection_mode" field.

func ConnectionModeIn

func ConnectionModeIn(vs ...ConnectionMode) predicate.Machine

ConnectionModeIn applies the In predicate on the "connection_mode" field.

func ConnectionModeNEQ

func ConnectionModeNEQ(v ConnectionMode) predicate.Machine

ConnectionModeNEQ applies the NEQ predicate on the "connection_mode" field.

func ConnectionModeNotIn

func ConnectionModeNotIn(vs ...ConnectionMode) predicate.Machine

ConnectionModeNotIn applies the NotIn predicate on the "connection_mode" field.

func ConnectionModeValidator

func ConnectionModeValidator(cm ConnectionMode) error

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

func DaemonLastRegisteredAt

func DaemonLastRegisteredAt(v time.Time) predicate.Machine

DaemonLastRegisteredAt applies equality check predicate on the "daemon_last_registered_at" field. It's identical to DaemonLastRegisteredAtEQ.

func DaemonLastRegisteredAtEQ

func DaemonLastRegisteredAtEQ(v time.Time) predicate.Machine

DaemonLastRegisteredAtEQ applies the EQ predicate on the "daemon_last_registered_at" field.

func DaemonLastRegisteredAtGT

func DaemonLastRegisteredAtGT(v time.Time) predicate.Machine

DaemonLastRegisteredAtGT applies the GT predicate on the "daemon_last_registered_at" field.

func DaemonLastRegisteredAtGTE

func DaemonLastRegisteredAtGTE(v time.Time) predicate.Machine

DaemonLastRegisteredAtGTE applies the GTE predicate on the "daemon_last_registered_at" field.

func DaemonLastRegisteredAtIn

func DaemonLastRegisteredAtIn(vs ...time.Time) predicate.Machine

DaemonLastRegisteredAtIn applies the In predicate on the "daemon_last_registered_at" field.

func DaemonLastRegisteredAtIsNil

func DaemonLastRegisteredAtIsNil() predicate.Machine

DaemonLastRegisteredAtIsNil applies the IsNil predicate on the "daemon_last_registered_at" field.

func DaemonLastRegisteredAtLT

func DaemonLastRegisteredAtLT(v time.Time) predicate.Machine

DaemonLastRegisteredAtLT applies the LT predicate on the "daemon_last_registered_at" field.

func DaemonLastRegisteredAtLTE

func DaemonLastRegisteredAtLTE(v time.Time) predicate.Machine

DaemonLastRegisteredAtLTE applies the LTE predicate on the "daemon_last_registered_at" field.

func DaemonLastRegisteredAtNEQ

func DaemonLastRegisteredAtNEQ(v time.Time) predicate.Machine

DaemonLastRegisteredAtNEQ applies the NEQ predicate on the "daemon_last_registered_at" field.

func DaemonLastRegisteredAtNotIn

func DaemonLastRegisteredAtNotIn(vs ...time.Time) predicate.Machine

DaemonLastRegisteredAtNotIn applies the NotIn predicate on the "daemon_last_registered_at" field.

func DaemonLastRegisteredAtNotNil

func DaemonLastRegisteredAtNotNil() predicate.Machine

DaemonLastRegisteredAtNotNil applies the NotNil predicate on the "daemon_last_registered_at" field.

func DaemonRegistered

func DaemonRegistered(v bool) predicate.Machine

DaemonRegistered applies equality check predicate on the "daemon_registered" field. It's identical to DaemonRegisteredEQ.

func DaemonRegisteredEQ

func DaemonRegisteredEQ(v bool) predicate.Machine

DaemonRegisteredEQ applies the EQ predicate on the "daemon_registered" field.

func DaemonRegisteredNEQ

func DaemonRegisteredNEQ(v bool) predicate.Machine

DaemonRegisteredNEQ applies the NEQ predicate on the "daemon_registered" field.

func DaemonSessionID

func DaemonSessionID(v string) predicate.Machine

DaemonSessionID applies equality check predicate on the "daemon_session_id" field. It's identical to DaemonSessionIDEQ.

func DaemonSessionIDContains

func DaemonSessionIDContains(v string) predicate.Machine

DaemonSessionIDContains applies the Contains predicate on the "daemon_session_id" field.

func DaemonSessionIDContainsFold

func DaemonSessionIDContainsFold(v string) predicate.Machine

DaemonSessionIDContainsFold applies the ContainsFold predicate on the "daemon_session_id" field.

func DaemonSessionIDEQ

func DaemonSessionIDEQ(v string) predicate.Machine

DaemonSessionIDEQ applies the EQ predicate on the "daemon_session_id" field.

func DaemonSessionIDEqualFold

func DaemonSessionIDEqualFold(v string) predicate.Machine

DaemonSessionIDEqualFold applies the EqualFold predicate on the "daemon_session_id" field.

func DaemonSessionIDGT

func DaemonSessionIDGT(v string) predicate.Machine

DaemonSessionIDGT applies the GT predicate on the "daemon_session_id" field.

func DaemonSessionIDGTE

func DaemonSessionIDGTE(v string) predicate.Machine

DaemonSessionIDGTE applies the GTE predicate on the "daemon_session_id" field.

func DaemonSessionIDHasPrefix

func DaemonSessionIDHasPrefix(v string) predicate.Machine

DaemonSessionIDHasPrefix applies the HasPrefix predicate on the "daemon_session_id" field.

func DaemonSessionIDHasSuffix

func DaemonSessionIDHasSuffix(v string) predicate.Machine

DaemonSessionIDHasSuffix applies the HasSuffix predicate on the "daemon_session_id" field.

func DaemonSessionIDIn

func DaemonSessionIDIn(vs ...string) predicate.Machine

DaemonSessionIDIn applies the In predicate on the "daemon_session_id" field.

func DaemonSessionIDIsNil

func DaemonSessionIDIsNil() predicate.Machine

DaemonSessionIDIsNil applies the IsNil predicate on the "daemon_session_id" field.

func DaemonSessionIDLT

func DaemonSessionIDLT(v string) predicate.Machine

DaemonSessionIDLT applies the LT predicate on the "daemon_session_id" field.

func DaemonSessionIDLTE

func DaemonSessionIDLTE(v string) predicate.Machine

DaemonSessionIDLTE applies the LTE predicate on the "daemon_session_id" field.

func DaemonSessionIDNEQ

func DaemonSessionIDNEQ(v string) predicate.Machine

DaemonSessionIDNEQ applies the NEQ predicate on the "daemon_session_id" field.

func DaemonSessionIDNotIn

func DaemonSessionIDNotIn(vs ...string) predicate.Machine

DaemonSessionIDNotIn applies the NotIn predicate on the "daemon_session_id" field.

func DaemonSessionIDNotNil

func DaemonSessionIDNotNil() predicate.Machine

DaemonSessionIDNotNil applies the NotNil predicate on the "daemon_session_id" field.

func DaemonSessionStateEQ

func DaemonSessionStateEQ(v DaemonSessionState) predicate.Machine

DaemonSessionStateEQ applies the EQ predicate on the "daemon_session_state" field.

func DaemonSessionStateIn

func DaemonSessionStateIn(vs ...DaemonSessionState) predicate.Machine

DaemonSessionStateIn applies the In predicate on the "daemon_session_state" field.

func DaemonSessionStateNEQ

func DaemonSessionStateNEQ(v DaemonSessionState) predicate.Machine

DaemonSessionStateNEQ applies the NEQ predicate on the "daemon_session_state" field.

func DaemonSessionStateNotIn

func DaemonSessionStateNotIn(vs ...DaemonSessionState) predicate.Machine

DaemonSessionStateNotIn applies the NotIn predicate on the "daemon_session_state" field.

func DaemonSessionStateValidator

func DaemonSessionStateValidator(dss DaemonSessionState) error

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

func Description

func Description(v string) predicate.Machine

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

func DescriptionContains

func DescriptionContains(v string) predicate.Machine

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Machine

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Machine

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Machine

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

func DescriptionGT

func DescriptionGT(v string) predicate.Machine

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Machine

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Machine

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Machine

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

func DescriptionIn

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

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

func DescriptionIsNil

func DescriptionIsNil() predicate.Machine

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Machine

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Machine

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Machine

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

func DescriptionNotIn

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

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

func DescriptionNotNil

func DescriptionNotNil() predicate.Machine

DescriptionNotNil applies the NotNil predicate on the "description" field.

func DetectedArchEQ

func DetectedArchEQ(v DetectedArch) predicate.Machine

DetectedArchEQ applies the EQ predicate on the "detected_arch" field.

func DetectedArchIn

func DetectedArchIn(vs ...DetectedArch) predicate.Machine

DetectedArchIn applies the In predicate on the "detected_arch" field.

func DetectedArchNEQ

func DetectedArchNEQ(v DetectedArch) predicate.Machine

DetectedArchNEQ applies the NEQ predicate on the "detected_arch" field.

func DetectedArchNotIn

func DetectedArchNotIn(vs ...DetectedArch) predicate.Machine

DetectedArchNotIn applies the NotIn predicate on the "detected_arch" field.

func DetectedArchValidator

func DetectedArchValidator(da DetectedArch) error

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

func DetectedOsEQ

func DetectedOsEQ(v DetectedOs) predicate.Machine

DetectedOsEQ applies the EQ predicate on the "detected_os" field.

func DetectedOsIn

func DetectedOsIn(vs ...DetectedOs) predicate.Machine

DetectedOsIn applies the In predicate on the "detected_os" field.

func DetectedOsNEQ

func DetectedOsNEQ(v DetectedOs) predicate.Machine

DetectedOsNEQ applies the NEQ predicate on the "detected_os" field.

func DetectedOsNotIn

func DetectedOsNotIn(vs ...DetectedOs) predicate.Machine

DetectedOsNotIn applies the NotIn predicate on the "detected_os" field.

func DetectedOsValidator

func DetectedOsValidator(do DetectedOs) error

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

func DetectionStatusEQ

func DetectionStatusEQ(v DetectionStatus) predicate.Machine

DetectionStatusEQ applies the EQ predicate on the "detection_status" field.

func DetectionStatusIn

func DetectionStatusIn(vs ...DetectionStatus) predicate.Machine

DetectionStatusIn applies the In predicate on the "detection_status" field.

func DetectionStatusNEQ

func DetectionStatusNEQ(v DetectionStatus) predicate.Machine

DetectionStatusNEQ applies the NEQ predicate on the "detection_status" field.

func DetectionStatusNotIn

func DetectionStatusNotIn(vs ...DetectionStatus) predicate.Machine

DetectionStatusNotIn applies the NotIn predicate on the "detection_status" field.

func DetectionStatusValidator

func DetectionStatusValidator(ds DetectionStatus) error

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

func EnvVars

EnvVars applies equality check predicate on the "env_vars" field. It's identical to EnvVarsEQ.

func EnvVarsEQ

func EnvVarsEQ(v pgarray.StringArray) predicate.Machine

EnvVarsEQ applies the EQ predicate on the "env_vars" field.

func EnvVarsGT

func EnvVarsGT(v pgarray.StringArray) predicate.Machine

EnvVarsGT applies the GT predicate on the "env_vars" field.

func EnvVarsGTE

func EnvVarsGTE(v pgarray.StringArray) predicate.Machine

EnvVarsGTE applies the GTE predicate on the "env_vars" field.

func EnvVarsIn

func EnvVarsIn(vs ...pgarray.StringArray) predicate.Machine

EnvVarsIn applies the In predicate on the "env_vars" field.

func EnvVarsIsNil

func EnvVarsIsNil() predicate.Machine

EnvVarsIsNil applies the IsNil predicate on the "env_vars" field.

func EnvVarsLT

func EnvVarsLT(v pgarray.StringArray) predicate.Machine

EnvVarsLT applies the LT predicate on the "env_vars" field.

func EnvVarsLTE

func EnvVarsLTE(v pgarray.StringArray) predicate.Machine

EnvVarsLTE applies the LTE predicate on the "env_vars" field.

func EnvVarsNEQ

func EnvVarsNEQ(v pgarray.StringArray) predicate.Machine

EnvVarsNEQ applies the NEQ predicate on the "env_vars" field.

func EnvVarsNotIn

func EnvVarsNotIn(vs ...pgarray.StringArray) predicate.Machine

EnvVarsNotIn applies the NotIn predicate on the "env_vars" field.

func EnvVarsNotNil

func EnvVarsNotNil() predicate.Machine

EnvVarsNotNil applies the NotNil predicate on the "env_vars" field.

func HasChannelTokens

func HasChannelTokens() predicate.Machine

HasChannelTokens applies the HasEdge predicate on the "channel_tokens" edge.

func HasChannelTokensWith

func HasChannelTokensWith(preds ...predicate.MachineChannelToken) predicate.Machine

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

func HasOrganization

func HasOrganization() predicate.Machine

HasOrganization applies the HasEdge predicate on the "organization" edge.

func HasOrganizationWith

func HasOrganizationWith(preds ...predicate.Organization) predicate.Machine

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

func HasProviders

func HasProviders() predicate.Machine

HasProviders applies the HasEdge predicate on the "providers" edge.

func HasProvidersWith

func HasProvidersWith(preds ...predicate.AgentProvider) predicate.Machine

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

func HasTargetTickets

func HasTargetTickets() predicate.Machine

HasTargetTickets applies the HasEdge predicate on the "target_tickets" edge.

func HasTargetTicketsWith

func HasTargetTicketsWith(preds ...predicate.Ticket) predicate.Machine

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

func Host

func Host(v string) predicate.Machine

Host applies equality check predicate on the "host" field. It's identical to HostEQ.

func HostContains

func HostContains(v string) predicate.Machine

HostContains applies the Contains predicate on the "host" field.

func HostContainsFold

func HostContainsFold(v string) predicate.Machine

HostContainsFold applies the ContainsFold predicate on the "host" field.

func HostEQ

func HostEQ(v string) predicate.Machine

HostEQ applies the EQ predicate on the "host" field.

func HostEqualFold

func HostEqualFold(v string) predicate.Machine

HostEqualFold applies the EqualFold predicate on the "host" field.

func HostGT

func HostGT(v string) predicate.Machine

HostGT applies the GT predicate on the "host" field.

func HostGTE

func HostGTE(v string) predicate.Machine

HostGTE applies the GTE predicate on the "host" field.

func HostHasPrefix

func HostHasPrefix(v string) predicate.Machine

HostHasPrefix applies the HasPrefix predicate on the "host" field.

func HostHasSuffix

func HostHasSuffix(v string) predicate.Machine

HostHasSuffix applies the HasSuffix predicate on the "host" field.

func HostIn

func HostIn(vs ...string) predicate.Machine

HostIn applies the In predicate on the "host" field.

func HostLT

func HostLT(v string) predicate.Machine

HostLT applies the LT predicate on the "host" field.

func HostLTE

func HostLTE(v string) predicate.Machine

HostLTE applies the LTE predicate on the "host" field.

func HostNEQ

func HostNEQ(v string) predicate.Machine

HostNEQ applies the NEQ predicate on the "host" field.

func HostNotIn

func HostNotIn(vs ...string) predicate.Machine

HostNotIn applies the NotIn predicate on the "host" field.

func ID

func ID(id uuid.UUID) predicate.Machine

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Machine

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Machine

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Machine

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Machine

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Machine

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Machine

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Machine

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Machine

IDNotIn applies the NotIn predicate on the ID field.

func Labels

Labels applies equality check predicate on the "labels" field. It's identical to LabelsEQ.

func LabelsEQ

LabelsEQ applies the EQ predicate on the "labels" field.

func LabelsGT

LabelsGT applies the GT predicate on the "labels" field.

func LabelsGTE

func LabelsGTE(v pgarray.StringArray) predicate.Machine

LabelsGTE applies the GTE predicate on the "labels" field.

func LabelsIn

func LabelsIn(vs ...pgarray.StringArray) predicate.Machine

LabelsIn applies the In predicate on the "labels" field.

func LabelsIsNil

func LabelsIsNil() predicate.Machine

LabelsIsNil applies the IsNil predicate on the "labels" field.

func LabelsLT

LabelsLT applies the LT predicate on the "labels" field.

func LabelsLTE

func LabelsLTE(v pgarray.StringArray) predicate.Machine

LabelsLTE applies the LTE predicate on the "labels" field.

func LabelsNEQ

func LabelsNEQ(v pgarray.StringArray) predicate.Machine

LabelsNEQ applies the NEQ predicate on the "labels" field.

func LabelsNotIn

func LabelsNotIn(vs ...pgarray.StringArray) predicate.Machine

LabelsNotIn applies the NotIn predicate on the "labels" field.

func LabelsNotNil

func LabelsNotNil() predicate.Machine

LabelsNotNil applies the NotNil predicate on the "labels" field.

func LastHeartbeatAt

func LastHeartbeatAt(v time.Time) predicate.Machine

LastHeartbeatAt applies equality check predicate on the "last_heartbeat_at" field. It's identical to LastHeartbeatAtEQ.

func LastHeartbeatAtEQ

func LastHeartbeatAtEQ(v time.Time) predicate.Machine

LastHeartbeatAtEQ applies the EQ predicate on the "last_heartbeat_at" field.

func LastHeartbeatAtGT

func LastHeartbeatAtGT(v time.Time) predicate.Machine

LastHeartbeatAtGT applies the GT predicate on the "last_heartbeat_at" field.

func LastHeartbeatAtGTE

func LastHeartbeatAtGTE(v time.Time) predicate.Machine

LastHeartbeatAtGTE applies the GTE predicate on the "last_heartbeat_at" field.

func LastHeartbeatAtIn

func LastHeartbeatAtIn(vs ...time.Time) predicate.Machine

LastHeartbeatAtIn applies the In predicate on the "last_heartbeat_at" field.

func LastHeartbeatAtIsNil

func LastHeartbeatAtIsNil() predicate.Machine

LastHeartbeatAtIsNil applies the IsNil predicate on the "last_heartbeat_at" field.

func LastHeartbeatAtLT

func LastHeartbeatAtLT(v time.Time) predicate.Machine

LastHeartbeatAtLT applies the LT predicate on the "last_heartbeat_at" field.

func LastHeartbeatAtLTE

func LastHeartbeatAtLTE(v time.Time) predicate.Machine

LastHeartbeatAtLTE applies the LTE predicate on the "last_heartbeat_at" field.

func LastHeartbeatAtNEQ

func LastHeartbeatAtNEQ(v time.Time) predicate.Machine

LastHeartbeatAtNEQ applies the NEQ predicate on the "last_heartbeat_at" field.

func LastHeartbeatAtNotIn

func LastHeartbeatAtNotIn(vs ...time.Time) predicate.Machine

LastHeartbeatAtNotIn applies the NotIn predicate on the "last_heartbeat_at" field.

func LastHeartbeatAtNotNil

func LastHeartbeatAtNotNil() predicate.Machine

LastHeartbeatAtNotNil applies the NotNil predicate on the "last_heartbeat_at" field.

func Name

func Name(v string) predicate.Machine

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

func NameContains

func NameContains(v string) predicate.Machine

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

func NameContainsFold

func NameContainsFold(v string) predicate.Machine

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

func NameEQ

func NameEQ(v string) predicate.Machine

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

func NameEqualFold

func NameEqualFold(v string) predicate.Machine

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

func NameGT

func NameGT(v string) predicate.Machine

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

func NameGTE

func NameGTE(v string) predicate.Machine

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Machine

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Machine

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Machine

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

func NameLTE

func NameLTE(v string) predicate.Machine

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

func NameNEQ

func NameNEQ(v string) predicate.Machine

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

func NameNotIn

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

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.Machine) predicate.Machine

Or groups predicates with the OR operator between them.

func OrganizationID

func OrganizationID(v uuid.UUID) predicate.Machine

OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.

func OrganizationIDEQ

func OrganizationIDEQ(v uuid.UUID) predicate.Machine

OrganizationIDEQ applies the EQ predicate on the "organization_id" field.

func OrganizationIDIn

func OrganizationIDIn(vs ...uuid.UUID) predicate.Machine

OrganizationIDIn applies the In predicate on the "organization_id" field.

func OrganizationIDNEQ

func OrganizationIDNEQ(v uuid.UUID) predicate.Machine

OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.

func OrganizationIDNotIn

func OrganizationIDNotIn(vs ...uuid.UUID) predicate.Machine

OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.

func Port

func Port(v int) predicate.Machine

Port applies equality check predicate on the "port" field. It's identical to PortEQ.

func PortEQ

func PortEQ(v int) predicate.Machine

PortEQ applies the EQ predicate on the "port" field.

func PortGT

func PortGT(v int) predicate.Machine

PortGT applies the GT predicate on the "port" field.

func PortGTE

func PortGTE(v int) predicate.Machine

PortGTE applies the GTE predicate on the "port" field.

func PortIn

func PortIn(vs ...int) predicate.Machine

PortIn applies the In predicate on the "port" field.

func PortLT

func PortLT(v int) predicate.Machine

PortLT applies the LT predicate on the "port" field.

func PortLTE

func PortLTE(v int) predicate.Machine

PortLTE applies the LTE predicate on the "port" field.

func PortNEQ

func PortNEQ(v int) predicate.Machine

PortNEQ applies the NEQ predicate on the "port" field.

func PortNotIn

func PortNotIn(vs ...int) predicate.Machine

PortNotIn applies the NotIn predicate on the "port" field.

func SSHKeyPath

func SSHKeyPath(v string) predicate.Machine

SSHKeyPath applies equality check predicate on the "ssh_key_path" field. It's identical to SSHKeyPathEQ.

func SSHKeyPathContains

func SSHKeyPathContains(v string) predicate.Machine

SSHKeyPathContains applies the Contains predicate on the "ssh_key_path" field.

func SSHKeyPathContainsFold

func SSHKeyPathContainsFold(v string) predicate.Machine

SSHKeyPathContainsFold applies the ContainsFold predicate on the "ssh_key_path" field.

func SSHKeyPathEQ

func SSHKeyPathEQ(v string) predicate.Machine

SSHKeyPathEQ applies the EQ predicate on the "ssh_key_path" field.

func SSHKeyPathEqualFold

func SSHKeyPathEqualFold(v string) predicate.Machine

SSHKeyPathEqualFold applies the EqualFold predicate on the "ssh_key_path" field.

func SSHKeyPathGT

func SSHKeyPathGT(v string) predicate.Machine

SSHKeyPathGT applies the GT predicate on the "ssh_key_path" field.

func SSHKeyPathGTE

func SSHKeyPathGTE(v string) predicate.Machine

SSHKeyPathGTE applies the GTE predicate on the "ssh_key_path" field.

func SSHKeyPathHasPrefix

func SSHKeyPathHasPrefix(v string) predicate.Machine

SSHKeyPathHasPrefix applies the HasPrefix predicate on the "ssh_key_path" field.

func SSHKeyPathHasSuffix

func SSHKeyPathHasSuffix(v string) predicate.Machine

SSHKeyPathHasSuffix applies the HasSuffix predicate on the "ssh_key_path" field.

func SSHKeyPathIn

func SSHKeyPathIn(vs ...string) predicate.Machine

SSHKeyPathIn applies the In predicate on the "ssh_key_path" field.

func SSHKeyPathIsNil

func SSHKeyPathIsNil() predicate.Machine

SSHKeyPathIsNil applies the IsNil predicate on the "ssh_key_path" field.

func SSHKeyPathLT

func SSHKeyPathLT(v string) predicate.Machine

SSHKeyPathLT applies the LT predicate on the "ssh_key_path" field.

func SSHKeyPathLTE

func SSHKeyPathLTE(v string) predicate.Machine

SSHKeyPathLTE applies the LTE predicate on the "ssh_key_path" field.

func SSHKeyPathNEQ

func SSHKeyPathNEQ(v string) predicate.Machine

SSHKeyPathNEQ applies the NEQ predicate on the "ssh_key_path" field.

func SSHKeyPathNotIn

func SSHKeyPathNotIn(vs ...string) predicate.Machine

SSHKeyPathNotIn applies the NotIn predicate on the "ssh_key_path" field.

func SSHKeyPathNotNil

func SSHKeyPathNotNil() predicate.Machine

SSHKeyPathNotNil applies the NotNil predicate on the "ssh_key_path" field.

func SSHUser

func SSHUser(v string) predicate.Machine

SSHUser applies equality check predicate on the "ssh_user" field. It's identical to SSHUserEQ.

func SSHUserContains

func SSHUserContains(v string) predicate.Machine

SSHUserContains applies the Contains predicate on the "ssh_user" field.

func SSHUserContainsFold

func SSHUserContainsFold(v string) predicate.Machine

SSHUserContainsFold applies the ContainsFold predicate on the "ssh_user" field.

func SSHUserEQ

func SSHUserEQ(v string) predicate.Machine

SSHUserEQ applies the EQ predicate on the "ssh_user" field.

func SSHUserEqualFold

func SSHUserEqualFold(v string) predicate.Machine

SSHUserEqualFold applies the EqualFold predicate on the "ssh_user" field.

func SSHUserGT

func SSHUserGT(v string) predicate.Machine

SSHUserGT applies the GT predicate on the "ssh_user" field.

func SSHUserGTE

func SSHUserGTE(v string) predicate.Machine

SSHUserGTE applies the GTE predicate on the "ssh_user" field.

func SSHUserHasPrefix

func SSHUserHasPrefix(v string) predicate.Machine

SSHUserHasPrefix applies the HasPrefix predicate on the "ssh_user" field.

func SSHUserHasSuffix

func SSHUserHasSuffix(v string) predicate.Machine

SSHUserHasSuffix applies the HasSuffix predicate on the "ssh_user" field.

func SSHUserIn

func SSHUserIn(vs ...string) predicate.Machine

SSHUserIn applies the In predicate on the "ssh_user" field.

func SSHUserIsNil

func SSHUserIsNil() predicate.Machine

SSHUserIsNil applies the IsNil predicate on the "ssh_user" field.

func SSHUserLT

func SSHUserLT(v string) predicate.Machine

SSHUserLT applies the LT predicate on the "ssh_user" field.

func SSHUserLTE

func SSHUserLTE(v string) predicate.Machine

SSHUserLTE applies the LTE predicate on the "ssh_user" field.

func SSHUserNEQ

func SSHUserNEQ(v string) predicate.Machine

SSHUserNEQ applies the NEQ predicate on the "ssh_user" field.

func SSHUserNotIn

func SSHUserNotIn(vs ...string) predicate.Machine

SSHUserNotIn applies the NotIn predicate on the "ssh_user" field.

func SSHUserNotNil

func SSHUserNotNil() predicate.Machine

SSHUserNotNil applies the NotNil predicate on the "ssh_user" field.

func StatusEQ

func StatusEQ(v Status) predicate.Machine

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.Machine

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.Machine

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.Machine

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

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

func TransportCapabilities

func TransportCapabilities(v pgarray.StringArray) predicate.Machine

TransportCapabilities applies equality check predicate on the "transport_capabilities" field. It's identical to TransportCapabilitiesEQ.

func TransportCapabilitiesEQ

func TransportCapabilitiesEQ(v pgarray.StringArray) predicate.Machine

TransportCapabilitiesEQ applies the EQ predicate on the "transport_capabilities" field.

func TransportCapabilitiesGT

func TransportCapabilitiesGT(v pgarray.StringArray) predicate.Machine

TransportCapabilitiesGT applies the GT predicate on the "transport_capabilities" field.

func TransportCapabilitiesGTE

func TransportCapabilitiesGTE(v pgarray.StringArray) predicate.Machine

TransportCapabilitiesGTE applies the GTE predicate on the "transport_capabilities" field.

func TransportCapabilitiesIn

func TransportCapabilitiesIn(vs ...pgarray.StringArray) predicate.Machine

TransportCapabilitiesIn applies the In predicate on the "transport_capabilities" field.

func TransportCapabilitiesIsNil

func TransportCapabilitiesIsNil() predicate.Machine

TransportCapabilitiesIsNil applies the IsNil predicate on the "transport_capabilities" field.

func TransportCapabilitiesLT

func TransportCapabilitiesLT(v pgarray.StringArray) predicate.Machine

TransportCapabilitiesLT applies the LT predicate on the "transport_capabilities" field.

func TransportCapabilitiesLTE

func TransportCapabilitiesLTE(v pgarray.StringArray) predicate.Machine

TransportCapabilitiesLTE applies the LTE predicate on the "transport_capabilities" field.

func TransportCapabilitiesNEQ

func TransportCapabilitiesNEQ(v pgarray.StringArray) predicate.Machine

TransportCapabilitiesNEQ applies the NEQ predicate on the "transport_capabilities" field.

func TransportCapabilitiesNotIn

func TransportCapabilitiesNotIn(vs ...pgarray.StringArray) predicate.Machine

TransportCapabilitiesNotIn applies the NotIn predicate on the "transport_capabilities" field.

func TransportCapabilitiesNotNil

func TransportCapabilitiesNotNil() predicate.Machine

TransportCapabilitiesNotNil applies the NotNil predicate on the "transport_capabilities" field.

func ValidColumn

func ValidColumn(column string) bool

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

func WorkspaceRoot

func WorkspaceRoot(v string) predicate.Machine

WorkspaceRoot applies equality check predicate on the "workspace_root" field. It's identical to WorkspaceRootEQ.

func WorkspaceRootContains

func WorkspaceRootContains(v string) predicate.Machine

WorkspaceRootContains applies the Contains predicate on the "workspace_root" field.

func WorkspaceRootContainsFold

func WorkspaceRootContainsFold(v string) predicate.Machine

WorkspaceRootContainsFold applies the ContainsFold predicate on the "workspace_root" field.

func WorkspaceRootEQ

func WorkspaceRootEQ(v string) predicate.Machine

WorkspaceRootEQ applies the EQ predicate on the "workspace_root" field.

func WorkspaceRootEqualFold

func WorkspaceRootEqualFold(v string) predicate.Machine

WorkspaceRootEqualFold applies the EqualFold predicate on the "workspace_root" field.

func WorkspaceRootGT

func WorkspaceRootGT(v string) predicate.Machine

WorkspaceRootGT applies the GT predicate on the "workspace_root" field.

func WorkspaceRootGTE

func WorkspaceRootGTE(v string) predicate.Machine

WorkspaceRootGTE applies the GTE predicate on the "workspace_root" field.

func WorkspaceRootHasPrefix

func WorkspaceRootHasPrefix(v string) predicate.Machine

WorkspaceRootHasPrefix applies the HasPrefix predicate on the "workspace_root" field.

func WorkspaceRootHasSuffix

func WorkspaceRootHasSuffix(v string) predicate.Machine

WorkspaceRootHasSuffix applies the HasSuffix predicate on the "workspace_root" field.

func WorkspaceRootIn

func WorkspaceRootIn(vs ...string) predicate.Machine

WorkspaceRootIn applies the In predicate on the "workspace_root" field.

func WorkspaceRootIsNil

func WorkspaceRootIsNil() predicate.Machine

WorkspaceRootIsNil applies the IsNil predicate on the "workspace_root" field.

func WorkspaceRootLT

func WorkspaceRootLT(v string) predicate.Machine

WorkspaceRootLT applies the LT predicate on the "workspace_root" field.

func WorkspaceRootLTE

func WorkspaceRootLTE(v string) predicate.Machine

WorkspaceRootLTE applies the LTE predicate on the "workspace_root" field.

func WorkspaceRootNEQ

func WorkspaceRootNEQ(v string) predicate.Machine

WorkspaceRootNEQ applies the NEQ predicate on the "workspace_root" field.

func WorkspaceRootNotIn

func WorkspaceRootNotIn(vs ...string) predicate.Machine

WorkspaceRootNotIn applies the NotIn predicate on the "workspace_root" field.

func WorkspaceRootNotNil

func WorkspaceRootNotNil() predicate.Machine

WorkspaceRootNotNil applies the NotNil predicate on the "workspace_root" field.

Types

type ChannelCredentialKind

type ChannelCredentialKind string

ChannelCredentialKind defines the type for the "channel_credential_kind" enum field.

const (
	ChannelCredentialKindNone        ChannelCredentialKind = "none"
	ChannelCredentialKindToken       ChannelCredentialKind = "token"
	ChannelCredentialKindCertificate ChannelCredentialKind = "certificate"
)

ChannelCredentialKind values.

func (ChannelCredentialKind) String

func (cck ChannelCredentialKind) String() string

type ConnectionMode

type ConnectionMode string

ConnectionMode defines the type for the "connection_mode" enum field.

const (
	ConnectionModeLocal      ConnectionMode = "local"
	ConnectionModeSSH        ConnectionMode = "ssh"
	ConnectionModeWsReverse  ConnectionMode = "ws_reverse"
	ConnectionModeWsListener ConnectionMode = "ws_listener"
)

ConnectionMode values.

func (ConnectionMode) String

func (cm ConnectionMode) String() string

type DaemonSessionState

type DaemonSessionState string

DaemonSessionState defines the type for the "daemon_session_state" enum field.

const (
	DaemonSessionStateUnknown      DaemonSessionState = "unknown"
	DaemonSessionStateConnected    DaemonSessionState = "connected"
	DaemonSessionStateDisconnected DaemonSessionState = "disconnected"
	DaemonSessionStateUnavailable  DaemonSessionState = "unavailable"
)

DaemonSessionState values.

func (DaemonSessionState) String

func (dss DaemonSessionState) String() string

type DetectedArch

type DetectedArch string

DetectedArch defines the type for the "detected_arch" enum field.

const (
	DetectedArchAmd64   DetectedArch = "amd64"
	DetectedArchArm64   DetectedArch = "arm64"
	DetectedArchUnknown DetectedArch = "unknown"
)

DetectedArch values.

func (DetectedArch) String

func (da DetectedArch) String() string

type DetectedOs

type DetectedOs string

DetectedOs defines the type for the "detected_os" enum field.

const (
	DetectedOsDarwin  DetectedOs = "darwin"
	DetectedOsLinux   DetectedOs = "linux"
	DetectedOsUnknown DetectedOs = "unknown"
)

DetectedOs values.

func (DetectedOs) String

func (do DetectedOs) String() string

type DetectionStatus

type DetectionStatus string

DetectionStatus defines the type for the "detection_status" enum field.

const (
	DetectionStatusPending  DetectionStatus = "pending"
	DetectionStatusOk       DetectionStatus = "ok"
	DetectionStatusDegraded DetectionStatus = "degraded"
	DetectionStatusUnknown  DetectionStatus = "unknown"
)

DetectionStatus values.

func (DetectionStatus) String

func (ds DetectionStatus) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Machine queries.

func ByAdvertisedEndpoint

func ByAdvertisedEndpoint(opts ...sql.OrderTermOption) OrderOption

ByAdvertisedEndpoint orders the results by the advertised_endpoint field.

func ByAgentCliPath

func ByAgentCliPath(opts ...sql.OrderTermOption) OrderOption

ByAgentCliPath orders the results by the agent_cli_path field.

func ByChannelCertificateID

func ByChannelCertificateID(opts ...sql.OrderTermOption) OrderOption

ByChannelCertificateID orders the results by the channel_certificate_id field.

func ByChannelCredentialKind

func ByChannelCredentialKind(opts ...sql.OrderTermOption) OrderOption

ByChannelCredentialKind orders the results by the channel_credential_kind field.

func ByChannelTokenID

func ByChannelTokenID(opts ...sql.OrderTermOption) OrderOption

ByChannelTokenID orders the results by the channel_token_id field.

func ByChannelTokens

func ByChannelTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByChannelTokens orders the results by channel_tokens terms.

func ByChannelTokensCount

func ByChannelTokensCount(opts ...sql.OrderTermOption) OrderOption

ByChannelTokensCount orders the results by channel_tokens count.

func ByConnectionMode

func ByConnectionMode(opts ...sql.OrderTermOption) OrderOption

ByConnectionMode orders the results by the connection_mode field.

func ByDaemonLastRegisteredAt

func ByDaemonLastRegisteredAt(opts ...sql.OrderTermOption) OrderOption

ByDaemonLastRegisteredAt orders the results by the daemon_last_registered_at field.

func ByDaemonRegistered

func ByDaemonRegistered(opts ...sql.OrderTermOption) OrderOption

ByDaemonRegistered orders the results by the daemon_registered field.

func ByDaemonSessionID

func ByDaemonSessionID(opts ...sql.OrderTermOption) OrderOption

ByDaemonSessionID orders the results by the daemon_session_id field.

func ByDaemonSessionState

func ByDaemonSessionState(opts ...sql.OrderTermOption) OrderOption

ByDaemonSessionState orders the results by the daemon_session_state field.

func ByDescription

func ByDescription(opts ...sql.OrderTermOption) OrderOption

ByDescription orders the results by the description field.

func ByDetectedArch

func ByDetectedArch(opts ...sql.OrderTermOption) OrderOption

ByDetectedArch orders the results by the detected_arch field.

func ByDetectedOs

func ByDetectedOs(opts ...sql.OrderTermOption) OrderOption

ByDetectedOs orders the results by the detected_os field.

func ByDetectionStatus

func ByDetectionStatus(opts ...sql.OrderTermOption) OrderOption

ByDetectionStatus orders the results by the detection_status field.

func ByEnvVars

func ByEnvVars(opts ...sql.OrderTermOption) OrderOption

ByEnvVars orders the results by the env_vars field.

func ByHost

func ByHost(opts ...sql.OrderTermOption) OrderOption

ByHost orders the results by the host field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByLabels

func ByLabels(opts ...sql.OrderTermOption) OrderOption

ByLabels orders the results by the labels field.

func ByLastHeartbeatAt

func ByLastHeartbeatAt(opts ...sql.OrderTermOption) OrderOption

ByLastHeartbeatAt orders the results by the last_heartbeat_at field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByOrganizationField

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

ByOrganizationField orders the results by organization field.

func ByOrganizationID

func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption

ByOrganizationID orders the results by the organization_id field.

func ByPort

func ByPort(opts ...sql.OrderTermOption) OrderOption

ByPort orders the results by the port field.

func ByProviders

func ByProviders(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByProviders orders the results by providers terms.

func ByProvidersCount

func ByProvidersCount(opts ...sql.OrderTermOption) OrderOption

ByProvidersCount orders the results by providers count.

func BySSHKeyPath

func BySSHKeyPath(opts ...sql.OrderTermOption) OrderOption

BySSHKeyPath orders the results by the ssh_key_path field.

func BySSHUser

func BySSHUser(opts ...sql.OrderTermOption) OrderOption

BySSHUser orders the results by the ssh_user field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByTargetTickets

func ByTargetTickets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTargetTickets orders the results by target_tickets terms.

func ByTargetTicketsCount

func ByTargetTicketsCount(opts ...sql.OrderTermOption) OrderOption

ByTargetTicketsCount orders the results by target_tickets count.

func ByTransportCapabilities

func ByTransportCapabilities(opts ...sql.OrderTermOption) OrderOption

ByTransportCapabilities orders the results by the transport_capabilities field.

func ByWorkspaceRoot

func ByWorkspaceRoot(opts ...sql.OrderTermOption) OrderOption

ByWorkspaceRoot orders the results by the workspace_root field.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusOnline      Status = "online"
	StatusOffline     Status = "offline"
	StatusDegraded    Status = "degraded"
	StatusMaintenance Status = "maintenance"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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