skillversionfile

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the skillversionfile type in the database.
	Label = "skill_version_file"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldSkillVersionID holds the string denoting the skill_version_id field in the database.
	FieldSkillVersionID = "skill_version_id"
	// FieldContentBlobID holds the string denoting the content_blob_id field in the database.
	FieldContentBlobID = "content_blob_id"
	// FieldPath holds the string denoting the path field in the database.
	FieldPath = "path"
	// FieldFileKind holds the string denoting the file_kind field in the database.
	FieldFileKind = "file_kind"
	// FieldMediaType holds the string denoting the media_type field in the database.
	FieldMediaType = "media_type"
	// FieldEncoding holds the string denoting the encoding field in the database.
	FieldEncoding = "encoding"
	// FieldIsExecutable holds the string denoting the is_executable field in the database.
	FieldIsExecutable = "is_executable"
	// FieldSizeBytes holds the string denoting the size_bytes field in the database.
	FieldSizeBytes = "size_bytes"
	// FieldSha256 holds the string denoting the sha256 field in the database.
	FieldSha256 = "sha256"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeSkillVersion holds the string denoting the skill_version edge name in mutations.
	EdgeSkillVersion = "skill_version"
	// EdgeContentBlob holds the string denoting the content_blob edge name in mutations.
	EdgeContentBlob = "content_blob"
	// Table holds the table name of the skillversionfile in the database.
	Table = "skill_version_files"
	// SkillVersionTable is the table that holds the skill_version relation/edge.
	SkillVersionTable = "skill_version_files"
	// SkillVersionInverseTable is the table name for the SkillVersion entity.
	// It exists in this package in order to avoid circular dependency with the "skillversion" package.
	SkillVersionInverseTable = "skill_versions"
	// SkillVersionColumn is the table column denoting the skill_version relation/edge.
	SkillVersionColumn = "skill_version_id"
	// ContentBlobTable is the table that holds the content_blob relation/edge.
	ContentBlobTable = "skill_version_files"
	// ContentBlobInverseTable is the table name for the SkillBlob entity.
	// It exists in this package in order to avoid circular dependency with the "skillblob" package.
	ContentBlobInverseTable = "skill_blobs"
	// ContentBlobColumn is the table column denoting the content_blob relation/edge.
	ContentBlobColumn = "content_blob_id"
)
View Source
const DefaultEncoding = EncodingBinary

EncodingBinary is the default value of the Encoding enum.

View Source
const DefaultFileKind = FileKindAsset

FileKindAsset is the default value of the FileKind enum.

Variables

View Source
var (
	// PathValidator is a validator for the "path" field. It is called by the builders before save.
	PathValidator func(string) error
	// DefaultMediaType holds the default value on creation for the "media_type" field.
	DefaultMediaType string
	// DefaultIsExecutable holds the default value on creation for the "is_executable" field.
	DefaultIsExecutable bool
	// DefaultSizeBytes holds the default value on creation for the "size_bytes" field.
	DefaultSizeBytes int64
	// Sha256Validator is a validator for the "sha256" field. It is called by the builders before save.
	Sha256Validator func(string) error
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for skillversionfile fields.

Functions

func And

And groups predicates with the AND operator between them.

func ContentBlobID

func ContentBlobID(v uuid.UUID) predicate.SkillVersionFile

ContentBlobID applies equality check predicate on the "content_blob_id" field. It's identical to ContentBlobIDEQ.

func ContentBlobIDEQ

func ContentBlobIDEQ(v uuid.UUID) predicate.SkillVersionFile

ContentBlobIDEQ applies the EQ predicate on the "content_blob_id" field.

func ContentBlobIDIn

func ContentBlobIDIn(vs ...uuid.UUID) predicate.SkillVersionFile

ContentBlobIDIn applies the In predicate on the "content_blob_id" field.

func ContentBlobIDNEQ

func ContentBlobIDNEQ(v uuid.UUID) predicate.SkillVersionFile

ContentBlobIDNEQ applies the NEQ predicate on the "content_blob_id" field.

func ContentBlobIDNotIn

func ContentBlobIDNotIn(vs ...uuid.UUID) predicate.SkillVersionFile

ContentBlobIDNotIn applies the NotIn predicate on the "content_blob_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.SkillVersionFile

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.SkillVersionFile

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.SkillVersionFile

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.SkillVersionFile

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.SkillVersionFile

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.SkillVersionFile

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.SkillVersionFile

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

func CreatedAtNotIn

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

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

func EncodingEQ

func EncodingEQ(v Encoding) predicate.SkillVersionFile

EncodingEQ applies the EQ predicate on the "encoding" field.

func EncodingIn

func EncodingIn(vs ...Encoding) predicate.SkillVersionFile

EncodingIn applies the In predicate on the "encoding" field.

func EncodingNEQ

func EncodingNEQ(v Encoding) predicate.SkillVersionFile

EncodingNEQ applies the NEQ predicate on the "encoding" field.

func EncodingNotIn

func EncodingNotIn(vs ...Encoding) predicate.SkillVersionFile

EncodingNotIn applies the NotIn predicate on the "encoding" field.

func EncodingValidator

func EncodingValidator(e Encoding) error

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

func FileKindEQ

func FileKindEQ(v FileKind) predicate.SkillVersionFile

FileKindEQ applies the EQ predicate on the "file_kind" field.

func FileKindIn

func FileKindIn(vs ...FileKind) predicate.SkillVersionFile

FileKindIn applies the In predicate on the "file_kind" field.

func FileKindNEQ

func FileKindNEQ(v FileKind) predicate.SkillVersionFile

FileKindNEQ applies the NEQ predicate on the "file_kind" field.

func FileKindNotIn

func FileKindNotIn(vs ...FileKind) predicate.SkillVersionFile

FileKindNotIn applies the NotIn predicate on the "file_kind" field.

func FileKindValidator

func FileKindValidator(fk FileKind) error

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

func HasContentBlob

func HasContentBlob() predicate.SkillVersionFile

HasContentBlob applies the HasEdge predicate on the "content_blob" edge.

func HasContentBlobWith

func HasContentBlobWith(preds ...predicate.SkillBlob) predicate.SkillVersionFile

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

func HasSkillVersion

func HasSkillVersion() predicate.SkillVersionFile

HasSkillVersion applies the HasEdge predicate on the "skill_version" edge.

func HasSkillVersionWith

func HasSkillVersionWith(preds ...predicate.SkillVersion) predicate.SkillVersionFile

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsExecutable

func IsExecutable(v bool) predicate.SkillVersionFile

IsExecutable applies equality check predicate on the "is_executable" field. It's identical to IsExecutableEQ.

func IsExecutableEQ

func IsExecutableEQ(v bool) predicate.SkillVersionFile

IsExecutableEQ applies the EQ predicate on the "is_executable" field.

func IsExecutableNEQ

func IsExecutableNEQ(v bool) predicate.SkillVersionFile

IsExecutableNEQ applies the NEQ predicate on the "is_executable" field.

func MediaType

func MediaType(v string) predicate.SkillVersionFile

MediaType applies equality check predicate on the "media_type" field. It's identical to MediaTypeEQ.

func MediaTypeContains

func MediaTypeContains(v string) predicate.SkillVersionFile

MediaTypeContains applies the Contains predicate on the "media_type" field.

func MediaTypeContainsFold

func MediaTypeContainsFold(v string) predicate.SkillVersionFile

MediaTypeContainsFold applies the ContainsFold predicate on the "media_type" field.

func MediaTypeEQ

func MediaTypeEQ(v string) predicate.SkillVersionFile

MediaTypeEQ applies the EQ predicate on the "media_type" field.

func MediaTypeEqualFold

func MediaTypeEqualFold(v string) predicate.SkillVersionFile

MediaTypeEqualFold applies the EqualFold predicate on the "media_type" field.

func MediaTypeGT

func MediaTypeGT(v string) predicate.SkillVersionFile

MediaTypeGT applies the GT predicate on the "media_type" field.

func MediaTypeGTE

func MediaTypeGTE(v string) predicate.SkillVersionFile

MediaTypeGTE applies the GTE predicate on the "media_type" field.

func MediaTypeHasPrefix

func MediaTypeHasPrefix(v string) predicate.SkillVersionFile

MediaTypeHasPrefix applies the HasPrefix predicate on the "media_type" field.

func MediaTypeHasSuffix

func MediaTypeHasSuffix(v string) predicate.SkillVersionFile

MediaTypeHasSuffix applies the HasSuffix predicate on the "media_type" field.

func MediaTypeIn

func MediaTypeIn(vs ...string) predicate.SkillVersionFile

MediaTypeIn applies the In predicate on the "media_type" field.

func MediaTypeLT

func MediaTypeLT(v string) predicate.SkillVersionFile

MediaTypeLT applies the LT predicate on the "media_type" field.

func MediaTypeLTE

func MediaTypeLTE(v string) predicate.SkillVersionFile

MediaTypeLTE applies the LTE predicate on the "media_type" field.

func MediaTypeNEQ

func MediaTypeNEQ(v string) predicate.SkillVersionFile

MediaTypeNEQ applies the NEQ predicate on the "media_type" field.

func MediaTypeNotIn

func MediaTypeNotIn(vs ...string) predicate.SkillVersionFile

MediaTypeNotIn applies the NotIn predicate on the "media_type" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Path

Path applies equality check predicate on the "path" field. It's identical to PathEQ.

func PathContains

func PathContains(v string) predicate.SkillVersionFile

PathContains applies the Contains predicate on the "path" field.

func PathContainsFold

func PathContainsFold(v string) predicate.SkillVersionFile

PathContainsFold applies the ContainsFold predicate on the "path" field.

func PathEQ

PathEQ applies the EQ predicate on the "path" field.

func PathEqualFold

func PathEqualFold(v string) predicate.SkillVersionFile

PathEqualFold applies the EqualFold predicate on the "path" field.

func PathGT

PathGT applies the GT predicate on the "path" field.

func PathGTE

PathGTE applies the GTE predicate on the "path" field.

func PathHasPrefix

func PathHasPrefix(v string) predicate.SkillVersionFile

PathHasPrefix applies the HasPrefix predicate on the "path" field.

func PathHasSuffix

func PathHasSuffix(v string) predicate.SkillVersionFile

PathHasSuffix applies the HasSuffix predicate on the "path" field.

func PathIn

func PathIn(vs ...string) predicate.SkillVersionFile

PathIn applies the In predicate on the "path" field.

func PathLT

PathLT applies the LT predicate on the "path" field.

func PathLTE

PathLTE applies the LTE predicate on the "path" field.

func PathNEQ

PathNEQ applies the NEQ predicate on the "path" field.

func PathNotIn

func PathNotIn(vs ...string) predicate.SkillVersionFile

PathNotIn applies the NotIn predicate on the "path" field.

func Sha256

Sha256 applies equality check predicate on the "sha256" field. It's identical to Sha256EQ.

func Sha256Contains

func Sha256Contains(v string) predicate.SkillVersionFile

Sha256Contains applies the Contains predicate on the "sha256" field.

func Sha256ContainsFold

func Sha256ContainsFold(v string) predicate.SkillVersionFile

Sha256ContainsFold applies the ContainsFold predicate on the "sha256" field.

func Sha256EQ

func Sha256EQ(v string) predicate.SkillVersionFile

Sha256EQ applies the EQ predicate on the "sha256" field.

func Sha256EqualFold

func Sha256EqualFold(v string) predicate.SkillVersionFile

Sha256EqualFold applies the EqualFold predicate on the "sha256" field.

func Sha256GT

func Sha256GT(v string) predicate.SkillVersionFile

Sha256GT applies the GT predicate on the "sha256" field.

func Sha256GTE

func Sha256GTE(v string) predicate.SkillVersionFile

Sha256GTE applies the GTE predicate on the "sha256" field.

func Sha256HasPrefix

func Sha256HasPrefix(v string) predicate.SkillVersionFile

Sha256HasPrefix applies the HasPrefix predicate on the "sha256" field.

func Sha256HasSuffix

func Sha256HasSuffix(v string) predicate.SkillVersionFile

Sha256HasSuffix applies the HasSuffix predicate on the "sha256" field.

func Sha256In

func Sha256In(vs ...string) predicate.SkillVersionFile

Sha256In applies the In predicate on the "sha256" field.

func Sha256LT

func Sha256LT(v string) predicate.SkillVersionFile

Sha256LT applies the LT predicate on the "sha256" field.

func Sha256LTE

func Sha256LTE(v string) predicate.SkillVersionFile

Sha256LTE applies the LTE predicate on the "sha256" field.

func Sha256NEQ

func Sha256NEQ(v string) predicate.SkillVersionFile

Sha256NEQ applies the NEQ predicate on the "sha256" field.

func Sha256NotIn

func Sha256NotIn(vs ...string) predicate.SkillVersionFile

Sha256NotIn applies the NotIn predicate on the "sha256" field.

func SizeBytes

func SizeBytes(v int64) predicate.SkillVersionFile

SizeBytes applies equality check predicate on the "size_bytes" field. It's identical to SizeBytesEQ.

func SizeBytesEQ

func SizeBytesEQ(v int64) predicate.SkillVersionFile

SizeBytesEQ applies the EQ predicate on the "size_bytes" field.

func SizeBytesGT

func SizeBytesGT(v int64) predicate.SkillVersionFile

SizeBytesGT applies the GT predicate on the "size_bytes" field.

func SizeBytesGTE

func SizeBytesGTE(v int64) predicate.SkillVersionFile

SizeBytesGTE applies the GTE predicate on the "size_bytes" field.

func SizeBytesIn

func SizeBytesIn(vs ...int64) predicate.SkillVersionFile

SizeBytesIn applies the In predicate on the "size_bytes" field.

func SizeBytesLT

func SizeBytesLT(v int64) predicate.SkillVersionFile

SizeBytesLT applies the LT predicate on the "size_bytes" field.

func SizeBytesLTE

func SizeBytesLTE(v int64) predicate.SkillVersionFile

SizeBytesLTE applies the LTE predicate on the "size_bytes" field.

func SizeBytesNEQ

func SizeBytesNEQ(v int64) predicate.SkillVersionFile

SizeBytesNEQ applies the NEQ predicate on the "size_bytes" field.

func SizeBytesNotIn

func SizeBytesNotIn(vs ...int64) predicate.SkillVersionFile

SizeBytesNotIn applies the NotIn predicate on the "size_bytes" field.

func SkillVersionID

func SkillVersionID(v uuid.UUID) predicate.SkillVersionFile

SkillVersionID applies equality check predicate on the "skill_version_id" field. It's identical to SkillVersionIDEQ.

func SkillVersionIDEQ

func SkillVersionIDEQ(v uuid.UUID) predicate.SkillVersionFile

SkillVersionIDEQ applies the EQ predicate on the "skill_version_id" field.

func SkillVersionIDIn

func SkillVersionIDIn(vs ...uuid.UUID) predicate.SkillVersionFile

SkillVersionIDIn applies the In predicate on the "skill_version_id" field.

func SkillVersionIDNEQ

func SkillVersionIDNEQ(v uuid.UUID) predicate.SkillVersionFile

SkillVersionIDNEQ applies the NEQ predicate on the "skill_version_id" field.

func SkillVersionIDNotIn

func SkillVersionIDNotIn(vs ...uuid.UUID) predicate.SkillVersionFile

SkillVersionIDNotIn applies the NotIn predicate on the "skill_version_id" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Encoding

type Encoding string

Encoding defines the type for the "encoding" enum field.

const (
	EncodingUTF8   Encoding = "utf8"
	EncodingBase64 Encoding = "base64"
	EncodingBinary Encoding = "binary"
)

Encoding values.

func (Encoding) String

func (e Encoding) String() string

type FileKind

type FileKind string

FileKind defines the type for the "file_kind" enum field.

const (
	FileKindEntrypoint FileKind = "entrypoint"
	FileKindMetadata   FileKind = "metadata"
	FileKindScript     FileKind = "script"
	FileKindReference  FileKind = "reference"
	FileKindAsset      FileKind = "asset"
)

FileKind values.

func (FileKind) String

func (fk FileKind) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the SkillVersionFile queries.

func ByContentBlobField

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

ByContentBlobField orders the results by content_blob field.

func ByContentBlobID

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

ByContentBlobID orders the results by the content_blob_id field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByEncoding

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

ByEncoding orders the results by the encoding field.

func ByFileKind

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

ByFileKind orders the results by the file_kind field.

func ByID

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

ByID orders the results by the id field.

func ByIsExecutable

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

ByIsExecutable orders the results by the is_executable field.

func ByMediaType

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

ByMediaType orders the results by the media_type field.

func ByPath

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

ByPath orders the results by the path field.

func BySha256

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

BySha256 orders the results by the sha256 field.

func BySizeBytes

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

BySizeBytes orders the results by the size_bytes field.

func BySkillVersionField

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

BySkillVersionField orders the results by skill_version field.

func BySkillVersionID

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

BySkillVersionID orders the results by the skill_version_id field.

Jump to

Keyboard shortcuts

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