Documentation
¶
Overview ¶
Package volume is the contract between a caller's sandbox driver and the node plugin: the volume attributes of a workspace.
Index ¶
Constants ¶
const ( CtlDir = "/run/motte-vfs" CtlSocket = "ctl.sock" SockEnv = "MOTTE_VFS_SOCK" PodUIDAttr = "csi.storage.k8s.io/pod.uid" )
The workspace sees the control socket of its mount at CtlDir/CtlSocket, bound by a volume with CtlAttributes.
const GrantEnv = "MOTTE_VFS_GRANT"
GrantEnv names the environment variable that carries a bearer grant to motte-vfsd.
const GrantRefused = "the store refused the node grant"
GrantRefused is the text of the error that the node plugin returns when the store refuses a node grant.
Variables ¶
This section is empty.
Functions ¶
func CtlAttributes ¶
CtlAttributes returns the attributes of the volume that binds the control socket into a pod.
Types ¶
type Publication ¶
type Publication struct {
Workspace string
Epoch uint64
Repo string // "<prefix>:<path>"
Commit string
// Runtime names the sandbox runtime of the node; it only labels telemetry.
Runtime string
}
Publication is what the caller tells the node plugin about one workspace volume. It travels as the volume attributes of the inline CSI volume of the pod.
func ParsePublication ¶
func ParsePublication(attrs map[string]string) (Publication, error)
ParsePublication reads the volume attributes of a publish request.
func (Publication) Attributes ¶
func (p Publication) Attributes() map[string]string
Attributes returns the CSI volume attributes of p.