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 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 ¶ added in v0.4.2
func NewRestyClient ¶ added in v0.4.2
func NewRestyClient() *resty.Client
Types ¶
type MountList ¶ added in v0.4.2
type MountList struct {
MountPoints []MountPoints `json:"mountPoints"`
}
func GetMountList ¶ added in v0.4.2
type MountPoint ¶ added in v0.4.2
type MountPoints ¶ added in v0.4.3
type MountResult ¶ added in v0.4.2
type RemotesResult ¶ added in v0.4.2
type RemotesResult struct {
Remotes []string `json:"remotes"`
}
func GetAllConfigName ¶ added in v0.4.2
func GetAllConfigName() (RemotesResult, error)
Click to show internal directories.
Click to hide internal directories.