resfsdir

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtPerm

func ExtPerm(m os.FileMode) os.FileMode

ExtPerm returns the bits of mode m relevant to ugo permissions, plus sticky, setuid and setgid bits.

func New

func New() resource.Driver

Types

type T

type T struct {
	resource.T
	Path  string       `json:"path"`
	User  *user.User   `json:"user"`
	Group *user.Group  `json:"group"`
	Perm  *os.FileMode `json:"perm"`
	Zone  string       `json:"zone"`
}

func (T) Head

func (t T) Head() string

func (T) Label

func (t T) Label() string

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

func (*T) Status

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

func (T) Stop

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

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