model

package
v0.0.0-...-33b86ef Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

View Source
const (
	MergeSourceBasePath = "SourceBasePath"
	MergeSourceVolumes  = "SourceVolumes"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Merge

type Merge struct {
	ID             uint      `gorm:"primarykey"`
	FSType         string    `json:"fstype"`
	MountPoint     string    `json:"mount_point" gorm:"uniqueIndex,check:mount_point<>''"`
	SourceBasePath *string   `json:"source_base_path"`
	SourceVolumes  []*Volume `json:"source_volumes" gorm:"many2many:o_merge_disk;"`
	CreatedAt      time.Time `json:"created_at"`
	UpdatedAt      time.Time `json:"updated_at"`
}

Merge

func (*Merge) TableName

func (p *Merge) TableName() string

type Volume

type Volume struct {
	ID         uint   `gorm:"column:id;primary_key" json:"id"`
	UUID       string `json:"uuid"`
	MountPoint string `json:"mount_point"`
	CreatedAt  int64  `json:"created_at"`
}

func (*Volume) TableName

func (p *Volume) TableName() string

Jump to

Keyboard shortcuts

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