Documentation ¶
Index ¶
Constants ¶
View Source
const ( TECH_FILE = Technology("File") TECH_LTO1 = Technology("LTO-1") TECH_LTO2 = Technology("LTO-2") TECH_LTO3 = Technology("LTO-3") TECH_LTO4 = Technology("LTO-4") TECH_LTO5 = Technology("LTO-5") TECH_LTO6 = Technology("LTO-6") )
View Source
const ( STATUS_ERROR = VolStatus("Error") STATUS_FULL_RESTORED = VolStatus("Full Restored") STATUS_RESTORED = VolStatus("Restored") STATUS_SENT = VolStatus("Sent") STATUS_STORED = VolStatus("Stored") STATUS_TESTED = VolStatus("Tested") STATUS_VAULT = VolStatus("Vault Stored") )
View Source
const (
C_VENDORS_NAME = "vendors"
)
View Source
const (
C_VOLUMES_NAME = "volumes"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Product ¶
type Product struct { Id bson.ObjectId `bson:"_id,omitempty" json:"id,omitempty"` Technology Technology `bson:"technology" json:"technology"` Name string `bson:"name" json:"name"` }
type Technology ¶
type Technology string
type Vendor ¶
type Vendor struct { Id bson.ObjectId `bson:"_id,omitempty" json:"id,omitempty"` Name string `bson:"name" json:"name"` Products []Product `bson:"products" json:"products"` }
func PreInitVendors ¶
func PreInitVendors() []Vendor
type VolHistory ¶
type Volume ¶
type Volume struct { Id bson.ObjectId `bson:"_id" json:"id"` ProductId bson.ObjectId `bson:"product_id" json:"productId"` PoolId bson.ObjectId `bson:"pool_id" json:"poolId"` Serial string `bson:"serial" json:"serial"` Label string `bson:"label" json:"label"` LastWrite time.Time `bson:"last_write" json:"lastWrite"` History []VolHistory `bson:"history" json:"history"` }
Click to show internal directories.
Click to hide internal directories.