model

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 1 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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