Documentation
¶
Index ¶
- Variables
- func CreateConfig(data map[string]string, name, t string) error
- func DeleteConfigByName(name string) error
- func Get(url string, head map[string]string) (response string)
- func GetConfigByName(name string) (map[string]string, error)
- func Mount(mountPoint string, fs string) error
- func NewRestyClient() *resty.Client
- func OasisGet(url string) (response string)
- func PersonGet(url string) (response string)
- func Post(url string, data []byte, contentType string, head map[string]string) (content string)
- func Unmount(mountPoint string) error
- func ZTGet(url string) ([]byte, error)
- func ZTPost(url string, body string) ([]byte, error)
- func ZeroTierGet(url string, head map[string]string) (content string, code int)
- type MountList
- type MountPoint
- type MountPoints
- type MountResult
- type RemotesResult
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTimeout = time.Second * 30
View Source
var UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"
Functions ¶
func DeleteConfigByName ¶
func NewRestyClient ¶
Types ¶
type MountList ¶
type MountList struct {
MountPoints []MountPoints `json:"mountPoints"`
}
func GetMountList ¶
type MountPoint ¶
type MountPoints ¶
type MountResult ¶
type RemotesResult ¶
type RemotesResult struct {
Remotes []string `json:"remotes"`
}
func GetAllConfigName ¶
func GetAllConfigName() (RemotesResult, error)
Click to show internal directories.
Click to hide internal directories.