Documentation
¶
Overview ¶
Package nfs implements workspace storage on an operator-mounted kernel NFS filesystem.
Index ¶
- Constants
- func CanonicalParameters(raw json.RawMessage) (json.RawMessage, error)
- type Filesystem
- func (a *Filesystem) Check(ctx context.Context) error
- func (a *Filesystem) Create(ctx context.Context, ref workspacefs.Reference, capacityMiB uint32) (workspacefs.Attachment, error)
- func (f *Filesystem) Declaration() workspacefs.Declaration
- func (a *Filesystem) Delete(ctx context.Context, ref workspacefs.Reference) error
- func (a *Filesystem) Observe(ctx context.Context, ref workspacefs.Reference) (workspacefs.Attachment, error)
- func (f *Filesystem) Resolve(ctx context.Context, b workspacefs.Binding) (workspacefs.Directory, error)
- type Registration
Constants ¶
const Name = "nfs"
Variables ¶
This section is empty.
Functions ¶
func CanonicalParameters ¶
func CanonicalParameters(raw json.RawMessage) (json.RawMessage, error)
CanonicalParameters rejects unknown, duplicate, missing and malformed settings.
Types ¶
type Filesystem ¶
type Filesystem struct {
// contains filtered or unexported fields
}
Filesystem holds immutable configuration only; construction performs no I/O. quota is set only for a Control constructed with the configured credential.
func (*Filesystem) Create ¶
func (a *Filesystem) Create(ctx context.Context, ref workspacefs.Reference, capacityMiB uint32) (workspacefs.Attachment, error)
func (*Filesystem) Declaration ¶
func (f *Filesystem) Declaration() workspacefs.Declaration
func (*Filesystem) Delete ¶
func (a *Filesystem) Delete(ctx context.Context, ref workspacefs.Reference) error
func (*Filesystem) Observe ¶
func (a *Filesystem) Observe(ctx context.Context, ref workspacefs.Reference) (workspacefs.Attachment, error)
func (*Filesystem) Resolve ¶
func (f *Filesystem) Resolve(ctx context.Context, b workspacefs.Binding) (workspacefs.Directory, error)
type Registration ¶
type Registration struct{}
Registration implements every workspacefs.Adapter role for kernel NFS.
func (Registration) Control ¶
func (Registration) Control(record workspacefs.ConfigurationRecord) (workspacefs.Control, error)
Control requires exactly the credential its parameters declare.
func (Registration) Normalize ¶
func (Registration) Normalize(raw, credential json.RawMessage) (json.RawMessage, []byte, error)
func (Registration) Resolver ¶
func (Registration) Resolver(configuration workspacefs.Configuration) (workspacefs.Resolver, error)
Resolver never receives a credential; it validates bindings and resolves paths.