fusemanager

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 28 Imported by: 3

Documentation

Index

Constants

View Source
const (
	FuseManagerNotReady = iota
	FuseManagerWaitInit
	FuseManagerReady
)

Variables

This section is empty.

Functions

func NewManagerClient

func NewManagerClient(ctx context.Context, root, socket string, config *Config) (snapshot.FileSystem, error)

func RegisterConfigFunc

func RegisterConfigFunc(f ConfigFunc)

func Run

func Run()

func StartFuseManager

func StartFuseManager(ctx context.Context, executable, address, fusestore, logLevel, logPath, metricsAddr string) (newlyStarted bool, err error)

Types

type Client

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

func (*Client) Check

func (cli *Client) Check(ctx context.Context, mountpoint string, labels map[string]string) error

func (*Client) Mount

func (cli *Client) Mount(ctx context.Context, mountpoint string, labels map[string]string) error

func (*Client) Unmount

func (cli *Client) Unmount(ctx context.Context, mountpoint string) error

type Config

type Config struct {
	Config                     service.Config
	IPFS                       bool   `toml:"ipfs" json:"ipfs"`
	MetadataStore              string `toml:"metadata_store" default:"memory" json:"metadata_store"`
	DefaultImageServiceAddress string `json:"default_image_service_address"`
	CRIContainerdAddress       string `toml:"cri_containerd_address" json:"cri_containerd_address"`
	CRIContainerdNamespace     string `toml:"cri_containerd_namespace" json:"cri_containerd_namespace"`
	CRIListenPath              string `toml:"cri_listen_path" json:"cri_listen_path"`
	StargzSnapshotterAddress   string `toml:"stargz_snapshotter_address" json:"stargz_snapshotter_address"`
}

type ConfigContext

type ConfigContext struct {
	Ctx        context.Context
	Config     *Config
	RootDir    string
	Server     *grpc.Server
	OpenBoltDB func(string) (*bolt.DB, error)
	Address    string
	CRIServer  *grpc.Server
}

type ConfigFunc

type ConfigFunc func(cc *ConfigContext) ([]service.Option, error)

type Server

type Server struct {
	pb.UnimplementedStargzFuseManagerServiceServer
	// contains filtered or unexported fields
}

func NewFuseManager

func NewFuseManager(ctx context.Context, listener net.Listener, server *grpc.Server, fuseStoreAddr string, serverAddr string) (*Server, error)

func (*Server) Check

func (fm *Server) Check(ctx context.Context, req *pb.CheckRequest) (*pb.Response, error)

func (*Server) Close

func (fm *Server) Close(ctx context.Context) error

func (*Server) Init

func (fm *Server) Init(ctx context.Context, req *pb.InitRequest) (*pb.Response, error)

func (*Server) Mount

func (fm *Server) Mount(ctx context.Context, req *pb.MountRequest) (*pb.Response, error)

func (*Server) Status

func (fm *Server) Status(ctx context.Context, _ *pb.StatusRequest) (*pb.StatusResponse, error)

func (*Server) Unmount

func (fm *Server) Unmount(ctx context.Context, req *pb.UnmountRequest) (*pb.Response, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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