models

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketScope

type BucketScope struct {
	Organization string `db:"organization"`
	ProjectID    string `db:"project_id"`
	Bucket       string `db:"bucket"`
	PathPrefix   string `db:"path_prefix"`
}

type DrsObjectRecord

type DrsObjectRecord struct {
	ID          string
	Size        int64
	CreatedTime time.Time
	UpdatedTime time.Time
	Name        string
	Version     string
	Description string
}

DrsObjectRecord mirrors the subset of drs_object columns returned by storage queries.

type DrsObjectWithAuthz

type DrsObjectWithAuthz = InternalObject

DrsObjectWithAuthz is a compatibility alias for InternalObject.

type FileUsage

type FileUsage struct {
	ObjectID         string
	Name             string
	Size             int64
	UploadCount      int64
	DownloadCount    int64
	LastUploadTime   *time.Time
	LastDownloadTime *time.Time
	LastAccessTime   *time.Time
}

FileUsage captures per-object transfer activity that can drive lifecycle policies.

type FileUsageSummary

type FileUsageSummary struct {
	TotalFiles        int64
	TotalUploads      int64
	TotalDownloads    int64
	InactiveFileCount int64
}

FileUsageSummary aggregates transfer activity for a set of objects.

type InternalObject

type InternalObject struct {
	drs.DrsObject
	Authorizations []string               `json:"authorizations,omitempty"`
	Properties     map[string]interface{} `json:"-"`
}

InternalObject is the primary DRS domain model. It wraps the GA4GH DrsObject and adds Syfon-specific authorization metadata.

func (InternalObject) External

func (o InternalObject) External() drs.DrsObject

func (InternalObject) MarshalJSON

func (o InternalObject) MarshalJSON() ([]byte, error)

func (*InternalObject) UnmarshalJSON

func (o *InternalObject) UnmarshalJSON(data []byte) error

type PendingLFSMeta

type PendingLFSMeta struct {
	OID       string
	Candidate drs.DrsObjectCandidate
	CreatedAt time.Time
	ExpiresAt time.Time
}

PendingLFSMeta stores a staged LFS metadata packet keyed by object checksum. It is submitted before transfer and consumed at verify-time.

type S3Credential

type S3Credential struct {
	Bucket    string `db:"bucket"`
	Provider  string `db:"provider"`
	Region    string `db:"region"`
	AccessKey string `db:"access_key"`
	SecretKey string `db:"secret_key"`
	Endpoint  string `db:"endpoint"`
}

S3Credential represents the 's3_credential' table

Jump to

Keyboard shortcuts

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