nfs

package
v0.0.12-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 19 Imported by: 0 modules, 0 packages

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

Package nfs implements workspace storage on an operator-mounted kernel NFS filesystem.

Index

Constants

View Source
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) Check

func (a *Filesystem) Check(ctx context.Context) error

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 (*Filesystem) Resolve

type Registration

type Registration struct{}

Registration implements every workspacefs.Adapter role for kernel NFS.

func (Registration) Control

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL