client

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse struct {
	Error string          `json:"error,omitempty"`
	Data  json.RawMessage `json:"data,omitzero"`
	OK    bool            `json:"ok"`
}

type Client

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

func New

func New(controlPort string) *Client

func (*Client) List

func (c *Client) List() ([]MountInfo, error)

func (*Client) Mount

func (c *Client) Mount(path, route string) (*MountInfo, error)

func (*Client) Unmount

func (c *Client) Unmount(route string) error

type MountInfo

type MountInfo struct {
	Route     string `json:"route"`
	LocalPath string `json:"local_path"`
	Type      string `json:"type"`
	Pattern   string `json:"pattern"`
}

type MountRequest

type MountRequest struct {
	Path  string `json:"path"`
	Route string `json:"route"`
}

type UnmountRequest

type UnmountRequest struct {
	Route string `json:"route"`
}

Jump to

Keyboard shortcuts

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