Documentation
¶
Index ¶
- Constants
- func NewManagerClient(ctx context.Context, root, socket string, config *Config) (snapshot.FileSystem, error)
- func RegisterConfigFunc(f ConfigFunc)
- func Run()
- func StartFuseManager(ctx context.Context, ...) (newlyStarted bool, err error)
- type Client
- type Config
- type ConfigContext
- type ConfigFunc
- type Server
- func (fm *Server) Check(ctx context.Context, req *pb.CheckRequest) (*pb.Response, error)
- func (fm *Server) Close(ctx context.Context) error
- func (fm *Server) Init(ctx context.Context, req *pb.InitRequest) (*pb.Response, error)
- func (fm *Server) Mount(ctx context.Context, req *pb.MountRequest) (*pb.Response, error)
- func (fm *Server) Status(ctx context.Context, _ *pb.StatusRequest) (*pb.StatusResponse, error)
- func (fm *Server) Unmount(ctx context.Context, req *pb.UnmountRequest) (*pb.Response, error)
Constants ¶
View Source
const ( FuseManagerNotReady = iota FuseManagerWaitInit FuseManagerReady )
Variables ¶
This section is empty.
Functions ¶
func NewManagerClient ¶
func RegisterConfigFunc ¶
func RegisterConfigFunc(f ConfigFunc)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
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 ConfigFunc ¶
type ConfigFunc func(cc *ConfigContext) ([]service.Option, error)
type Server ¶
type Server struct {
pb.UnimplementedStargzFuseManagerServiceServer
// contains filtered or unexported fields
}
func NewFuseManager ¶
func (*Server) Status ¶
func (fm *Server) Status(ctx context.Context, _ *pb.StatusRequest) (*pb.StatusResponse, error)
Click to show internal directories.
Click to hide internal directories.