model

package
v0.4.1-alpha1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Overview

@Author: LinkLeong link@icewhale.org

*@Date: 2021-12-07 17:14:41
*@LastEditors: LinkLeong
*@LastEditTime: 2022-08-17 18:46:43
*@FilePath: /CasaOS/service/model/o_disk.go
*@Description:
*@Website: https://www.casaos.io
*Copyright (c) 2022 by icewhale, All Rights Reserved.

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