fs

package
v0.0.0-...-41c09db Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(logger *zap.Logger, cfg *rest.Config) (fs.FS, error)

func StringsToDirents

func StringsToDirents(xs []string) []fuse.Dirent

StringsToDirents converts a slice of strings into a slice of Dirents of type directory.

Types

type ConfigMapDir

type ConfigMapDir struct {
	// contains filtered or unexported fields
}

func (ConfigMapDir) Attr

func (d ConfigMapDir) Attr(ctx context.Context, attr *fuse.Attr) error

func (ConfigMapDir) Lookup

func (d ConfigMapDir) Lookup(ctx context.Context, name string) (fs.Node, error)

func (ConfigMapDir) ReadDirAll

func (d ConfigMapDir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)

type DataDir

type DataDir struct {
	// contains filtered or unexported fields
}

func (DataDir) Attr

func (d DataDir) Attr(ctx context.Context, attr *fuse.Attr) error

func (DataDir) Lookup

func (d DataDir) Lookup(ctx context.Context, name string) (fs.Node, error)

func (DataDir) ReadDirAll

func (d DataDir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)

type File

type File struct {
	// contains filtered or unexported fields
}

func (*File) Attr

func (f *File) Attr(ctx context.Context, attr *fuse.Attr) error

func (*File) ReadAll

func (f *File) ReadAll(ctx context.Context) ([]byte, error)

type GroupVersionsDir

type GroupVersionsDir struct {
	// contains filtered or unexported fields
}

func (GroupVersionsDir) Attr

func (d GroupVersionsDir) Attr(ctx context.Context, attr *fuse.Attr) error

func (GroupVersionsDir) Lookup

func (d GroupVersionsDir) Lookup(ctx context.Context, name string) (fs.Node, error)

func (GroupVersionsDir) ReadDirAll

func (d GroupVersionsDir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)

type GroupsDir

type GroupsDir struct {
	// contains filtered or unexported fields
}

func (GroupsDir) Attr

func (d GroupsDir) Attr(ctx context.Context, attr *fuse.Attr) error

func (GroupsDir) Lookup

func (d GroupsDir) Lookup(ctx context.Context, name string) (fs.Node, error)

func (GroupsDir) ReadDirAll

func (d GroupsDir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)

type ObjectDir

type ObjectDir struct {
	// contains filtered or unexported fields
}

func (ObjectDir) Attr

func (d ObjectDir) Attr(ctx context.Context, attr *fuse.Attr) error

func (ObjectDir) Lookup

func (d ObjectDir) Lookup(ctx context.Context, name string) (fs.Node, error)

func (ObjectDir) ReadDirAll

func (d ObjectDir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)

type ResourceDir

type ResourceDir struct {
	// contains filtered or unexported fields
}

func (ResourceDir) Attr

func (d ResourceDir) Attr(ctx context.Context, attr *fuse.Attr) error

func (ResourceDir) Lookup

func (d ResourceDir) Lookup(ctx context.Context, name string) (fs.Node, error)

func (ResourceDir) ReadDirAll

func (d ResourceDir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)

type ResourceNamespacesDir

type ResourceNamespacesDir struct {
	// contains filtered or unexported fields
}

func (ResourceNamespacesDir) Attr

func (d ResourceNamespacesDir) Attr(ctx context.Context, attr *fuse.Attr) error

func (ResourceNamespacesDir) Lookup

func (d ResourceNamespacesDir) Lookup(ctx context.Context, name string) (fs.Node, error)

func (ResourceNamespacesDir) ReadDirAll

func (d ResourceNamespacesDir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)

type ResourcesDir

type ResourcesDir struct {
	// contains filtered or unexported fields
}

func (ResourcesDir) Attr

func (d ResourcesDir) Attr(ctx context.Context, attr *fuse.Attr) error

func (ResourcesDir) Lookup

func (d ResourcesDir) Lookup(ctx context.Context, name string) (fs.Node, error)

func (ResourcesDir) ReadDirAll

func (d ResourcesDir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)

type RootDir

type RootDir struct {
	// contains filtered or unexported fields
}

func (RootDir) Root

func (d RootDir) Root() (fs.Node, error)

type SpecificObjectDir

type SpecificObjectDir interface {
	fs.Node
	fs.HandleReadDirAller
}

func NewConfigMapDir

func NewConfigMapDir(logger *zap.Logger, client *kubeutil.Client, u *unstructured.Unstructured) SpecificObjectDir

type ViewsDir

type ViewsDir struct {
	// contains filtered or unexported fields
}

func (ViewsDir) Attr

func (d ViewsDir) Attr(ctx context.Context, attr *fuse.Attr) error

func (ViewsDir) Lookup

func (d ViewsDir) Lookup(ctx context.Context, name string) (fs.Node, error)

func (ViewsDir) ReadDirAll

func (d ViewsDir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)

Jump to

Keyboard shortcuts

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