-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfilesystem.go
32 lines (25 loc) · 981 Bytes
/
filesystem.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright 2015 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
package storage
import "github.com/juju/names"
// Filesystem describes a filesystem, either
// local or remote (NFS, Ceph etc).
type Filesystem struct {
// Tag is a unique name assigned by Juju to the filesystem.
Tag names.FilesystemTag
// Size is the size of the filesystem, in MiB.
Size uint64
}
// FilesystemAttachment describes machine-specific filesystem attachment information,
// including how the filesystem is exposed on the machine.
type FilesystemAttachment struct {
// Filesystem is the unique tag assigned by Juju for the filesystem
// that this attachment corresponds to.
Filesystem names.FilesystemTag
// Machine is the unique tag assigned by Juju for the machine that
// this attachment corresponds to.
Machine names.MachineTag
// Path is the path at which the filesystem is mounted on the machine that
// this attachment corresponds to.
Path string
}