resfsdir

package
v3.0.0-beta16 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: Apache-2.0 Imports: 16 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
	resource.Restart
	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(_ context.Context) string

Label implements Label from resource.Driver interface, it 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(ctx context.Context) (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