ressharenfs

package
v0.0.0-...-3f873ad Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() resource.Driver

Types

type Export

type Export struct {
	Client string
	Path   string
	Opts   []string
}

func (Export) HasOpts

func (t Export) HasOpts(l []string) bool

func (Export) IsZero

func (t Export) IsZero() bool

type Exports

type Exports []Export

func (Exports) ByPath

func (t Exports) ByPath(s string) Exports

func (Exports) Client

func (t Exports) Client(s string) Export

type Mount

type Mount struct {
	Path    string
	Clients []string
}

func (Mount) HasClient

func (t Mount) HasClient(s string) bool

func (Mount) IsZero

func (t Mount) IsZero() bool

type Mounts

type Mounts []Mount

func (Mounts) ByPath

func (t Mounts) ByPath(s string) Mounts

type Opts

type Opts []OptsEntry

type OptsEntry

type OptsEntry struct {
	Client string
	Opts   []string
}

type T

type T struct {
	resource.T
	SharePath string `json:"path"`
	ShareOpts string `json:"opts"`
	// contains filtered or unexported fields
}

T is the driver structure.

func (T) Label

func (t T) Label() string

Label returns a formatted short description of the Resource

func (T) Manifest

func (t T) Manifest() *manifest.T

Manifest exposes to the core the input expected by the driver.

func (T) Provision

func (t T) Provision(ctx context.Context) error

func (T) Provisioned

func (t T) Provisioned() (provisioned.T, error)

func (T) Start

func (t T) Start(ctx context.Context) error

Start the Resource

func (*T) Status

func (t *T) Status(ctx context.Context) status.T

Status evaluates and display the Resource status and logs

func (T) Stop

func (t T) Stop(ctx context.Context) error

Stop the Resource

func (T) Unprovision

func (t T) Unprovision(ctx context.Context) error

Jump to

Keyboard shortcuts

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