s3

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the s3 type in the database.
	Label = "s3"
	// 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"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldEndpoint holds the string denoting the endpoint field in the database.
	FieldEndpoint = "endpoint"
	// FieldRegion holds the string denoting the region field in the database.
	FieldRegion = "region"
	// FieldForcePathStyle holds the string denoting the force_path_style field in the database.
	FieldForcePathStyle = "force_path_style"
	// FieldKubernetesSecret holds the string denoting the kubernetes_secret field in the database.
	FieldKubernetesSecret = "kubernetes_secret"
	// FieldTeamID holds the string denoting the team_id field in the database.
	FieldTeamID = "team_id"
	// EdgeTeam holds the string denoting the team edge name in mutations.
	EdgeTeam = "team"
	// EdgeServiceBackupSource holds the string denoting the service_backup_source edge name in mutations.
	EdgeServiceBackupSource = "service_backup_source"
	// Table holds the table name of the s3 in the database.
	Table = "s3_sources"
	// TeamTable is the table that holds the team relation/edge.
	TeamTable = "s3_sources"
	// TeamInverseTable is the table name for the Team entity.
	// It exists in this package in order to avoid circular dependency with the "team" package.
	TeamInverseTable = "teams"
	// TeamColumn is the table column denoting the team relation/edge.
	TeamColumn = "team_id"
	// ServiceBackupSourceTable is the table that holds the service_backup_source relation/edge.
	ServiceBackupSourceTable = "service_configs"
	// ServiceBackupSourceInverseTable is the table name for the ServiceConfig entity.
	// It exists in this package in order to avoid circular dependency with the "serviceconfig" package.
	ServiceBackupSourceInverseTable = "service_configs"
	// ServiceBackupSourceColumn is the table column denoting the service_backup_source relation/edge.
	ServiceBackupSourceColumn = "s3_backup_source_id"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultForcePathStyle holds the default value on creation for the "force_path_style" field.
	DefaultForcePathStyle bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for s3 fields.

Functions

func And

func And(predicates ...predicate.S3) predicate.S3

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.S3

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.S3

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.S3

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.S3

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.S3

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.S3

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.S3

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

func CreatedAtNotIn

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

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

func Endpoint

func Endpoint(v string) predicate.S3

Endpoint applies equality check predicate on the "endpoint" field. It's identical to EndpointEQ.

func EndpointContains

func EndpointContains(v string) predicate.S3

EndpointContains applies the Contains predicate on the "endpoint" field.

func EndpointContainsFold

func EndpointContainsFold(v string) predicate.S3

EndpointContainsFold applies the ContainsFold predicate on the "endpoint" field.

func EndpointEQ

func EndpointEQ(v string) predicate.S3

EndpointEQ applies the EQ predicate on the "endpoint" field.

func EndpointEqualFold

func EndpointEqualFold(v string) predicate.S3

EndpointEqualFold applies the EqualFold predicate on the "endpoint" field.

func EndpointGT

func EndpointGT(v string) predicate.S3

EndpointGT applies the GT predicate on the "endpoint" field.

func EndpointGTE

func EndpointGTE(v string) predicate.S3

EndpointGTE applies the GTE predicate on the "endpoint" field.

func EndpointHasPrefix

func EndpointHasPrefix(v string) predicate.S3

EndpointHasPrefix applies the HasPrefix predicate on the "endpoint" field.

func EndpointHasSuffix

func EndpointHasSuffix(v string) predicate.S3

EndpointHasSuffix applies the HasSuffix predicate on the "endpoint" field.

func EndpointIn

func EndpointIn(vs ...string) predicate.S3

EndpointIn applies the In predicate on the "endpoint" field.

func EndpointLT

func EndpointLT(v string) predicate.S3

EndpointLT applies the LT predicate on the "endpoint" field.

func EndpointLTE

func EndpointLTE(v string) predicate.S3

EndpointLTE applies the LTE predicate on the "endpoint" field.

func EndpointNEQ

func EndpointNEQ(v string) predicate.S3

EndpointNEQ applies the NEQ predicate on the "endpoint" field.

func EndpointNotIn

func EndpointNotIn(vs ...string) predicate.S3

EndpointNotIn applies the NotIn predicate on the "endpoint" field.

func ForcePathStyle

func ForcePathStyle(v bool) predicate.S3

ForcePathStyle applies equality check predicate on the "force_path_style" field. It's identical to ForcePathStyleEQ.

func ForcePathStyleEQ

func ForcePathStyleEQ(v bool) predicate.S3

ForcePathStyleEQ applies the EQ predicate on the "force_path_style" field.

func ForcePathStyleNEQ

func ForcePathStyleNEQ(v bool) predicate.S3

ForcePathStyleNEQ applies the NEQ predicate on the "force_path_style" field.

func HasServiceBackupSource

func HasServiceBackupSource() predicate.S3

HasServiceBackupSource applies the HasEdge predicate on the "service_backup_source" edge.

func HasServiceBackupSourceWith

func HasServiceBackupSourceWith(preds ...predicate.ServiceConfig) predicate.S3

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

func HasTeam

func HasTeam() predicate.S3

HasTeam applies the HasEdge predicate on the "team" edge.

func HasTeamWith

func HasTeamWith(preds ...predicate.Team) predicate.S3

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

func ID

func ID(id uuid.UUID) predicate.S3

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.S3

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.S3

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.S3

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.S3

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.S3

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.S3

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func KubernetesSecret

func KubernetesSecret(v string) predicate.S3

KubernetesSecret applies equality check predicate on the "kubernetes_secret" field. It's identical to KubernetesSecretEQ.

func KubernetesSecretContains

func KubernetesSecretContains(v string) predicate.S3

KubernetesSecretContains applies the Contains predicate on the "kubernetes_secret" field.

func KubernetesSecretContainsFold

func KubernetesSecretContainsFold(v string) predicate.S3

KubernetesSecretContainsFold applies the ContainsFold predicate on the "kubernetes_secret" field.

func KubernetesSecretEQ

func KubernetesSecretEQ(v string) predicate.S3

KubernetesSecretEQ applies the EQ predicate on the "kubernetes_secret" field.

func KubernetesSecretEqualFold

func KubernetesSecretEqualFold(v string) predicate.S3

KubernetesSecretEqualFold applies the EqualFold predicate on the "kubernetes_secret" field.

func KubernetesSecretGT

func KubernetesSecretGT(v string) predicate.S3

KubernetesSecretGT applies the GT predicate on the "kubernetes_secret" field.

func KubernetesSecretGTE

func KubernetesSecretGTE(v string) predicate.S3

KubernetesSecretGTE applies the GTE predicate on the "kubernetes_secret" field.

func KubernetesSecretHasPrefix

func KubernetesSecretHasPrefix(v string) predicate.S3

KubernetesSecretHasPrefix applies the HasPrefix predicate on the "kubernetes_secret" field.

func KubernetesSecretHasSuffix

func KubernetesSecretHasSuffix(v string) predicate.S3

KubernetesSecretHasSuffix applies the HasSuffix predicate on the "kubernetes_secret" field.

func KubernetesSecretIn

func KubernetesSecretIn(vs ...string) predicate.S3

KubernetesSecretIn applies the In predicate on the "kubernetes_secret" field.

func KubernetesSecretLT

func KubernetesSecretLT(v string) predicate.S3

KubernetesSecretLT applies the LT predicate on the "kubernetes_secret" field.

func KubernetesSecretLTE

func KubernetesSecretLTE(v string) predicate.S3

KubernetesSecretLTE applies the LTE predicate on the "kubernetes_secret" field.

func KubernetesSecretNEQ

func KubernetesSecretNEQ(v string) predicate.S3

KubernetesSecretNEQ applies the NEQ predicate on the "kubernetes_secret" field.

func KubernetesSecretNotIn

func KubernetesSecretNotIn(vs ...string) predicate.S3

KubernetesSecretNotIn applies the NotIn predicate on the "kubernetes_secret" field.

func Name

func Name(v string) predicate.S3

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

func NameContains

func NameContains(v string) predicate.S3

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

func NameContainsFold

func NameContainsFold(v string) predicate.S3

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

func NameEQ

func NameEQ(v string) predicate.S3

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

func NameEqualFold

func NameEqualFold(v string) predicate.S3

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

func NameGT

func NameGT(v string) predicate.S3

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

func NameGTE

func NameGTE(v string) predicate.S3

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.S3

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.S3

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.S3

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

func NameLTE

func NameLTE(v string) predicate.S3

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

func NameNEQ

func NameNEQ(v string) predicate.S3

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

func NameNotIn

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

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

func Not

func Not(p predicate.S3) predicate.S3

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.S3) predicate.S3

Or groups predicates with the OR operator between them.

func Region

func Region(v string) predicate.S3

Region applies equality check predicate on the "region" field. It's identical to RegionEQ.

func RegionContains

func RegionContains(v string) predicate.S3

RegionContains applies the Contains predicate on the "region" field.

func RegionContainsFold

func RegionContainsFold(v string) predicate.S3

RegionContainsFold applies the ContainsFold predicate on the "region" field.

func RegionEQ

func RegionEQ(v string) predicate.S3

RegionEQ applies the EQ predicate on the "region" field.

func RegionEqualFold

func RegionEqualFold(v string) predicate.S3

RegionEqualFold applies the EqualFold predicate on the "region" field.

func RegionGT

func RegionGT(v string) predicate.S3

RegionGT applies the GT predicate on the "region" field.

func RegionGTE

func RegionGTE(v string) predicate.S3

RegionGTE applies the GTE predicate on the "region" field.

func RegionHasPrefix

func RegionHasPrefix(v string) predicate.S3

RegionHasPrefix applies the HasPrefix predicate on the "region" field.

func RegionHasSuffix

func RegionHasSuffix(v string) predicate.S3

RegionHasSuffix applies the HasSuffix predicate on the "region" field.

func RegionIn

func RegionIn(vs ...string) predicate.S3

RegionIn applies the In predicate on the "region" field.

func RegionLT

func RegionLT(v string) predicate.S3

RegionLT applies the LT predicate on the "region" field.

func RegionLTE

func RegionLTE(v string) predicate.S3

RegionLTE applies the LTE predicate on the "region" field.

func RegionNEQ

func RegionNEQ(v string) predicate.S3

RegionNEQ applies the NEQ predicate on the "region" field.

func RegionNotIn

func RegionNotIn(vs ...string) predicate.S3

RegionNotIn applies the NotIn predicate on the "region" field.

func TeamID

func TeamID(v uuid.UUID) predicate.S3

TeamID applies equality check predicate on the "team_id" field. It's identical to TeamIDEQ.

func TeamIDEQ

func TeamIDEQ(v uuid.UUID) predicate.S3

TeamIDEQ applies the EQ predicate on the "team_id" field.

func TeamIDIn

func TeamIDIn(vs ...uuid.UUID) predicate.S3

TeamIDIn applies the In predicate on the "team_id" field.

func TeamIDNEQ

func TeamIDNEQ(v uuid.UUID) predicate.S3

TeamIDNEQ applies the NEQ predicate on the "team_id" field.

func TeamIDNotIn

func TeamIDNotIn(vs ...uuid.UUID) predicate.S3

TeamIDNotIn applies the NotIn predicate on the "team_id" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.S3

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.S3

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.S3

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.S3

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.S3

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.S3

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.S3

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.S3

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.S3

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the S3 queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByEndpoint

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

ByEndpoint orders the results by the endpoint field.

func ByForcePathStyle

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

ByForcePathStyle orders the results by the force_path_style field.

func ByID

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

ByID orders the results by the id field.

func ByKubernetesSecret

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

ByKubernetesSecret orders the results by the kubernetes_secret field.

func ByName

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

ByName orders the results by the name field.

func ByRegion

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

ByRegion orders the results by the region field.

func ByServiceBackupSource

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

ByServiceBackupSource orders the results by service_backup_source terms.

func ByServiceBackupSourceCount

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

ByServiceBackupSourceCount orders the results by service_backup_source count.

func ByTeamField

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

ByTeamField orders the results by team field.

func ByTeamID

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

ByTeamID orders the results by the team_id field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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