Documentation
¶
Index ¶
- type Client
- func (c *Client) Delete(path string) (*http.Response, error)
- func (c *Client) Get(path string, body io.Reader) (*http.Response, error)
- func (c *Client) Patch(path string, body io.Reader) (*http.Response, error)
- func (c *Client) Post(path string, body io.Reader) (*http.Response, error)
- func (c *Client) Put(path string, body io.Reader) (*http.Response, error)
- type ExecCommand
- type FileHandler
- type StorageClient
- func (c *StorageClient) Delete(name string) error
- func (c *StorageClient) EditText(name string) error
- func (c *StorageClient) Get(name string) (*library.Scroll, error)
- func (c *StorageClient) List() ([]*library.Scroll, error)
- func (c *StorageClient) New(name string, useTemplate bool, fromFile string) (*library.Scroll, error)
- func (c *StorageClient) NewTempFile(scroll *library.Scroll) (*FileHandler, error)
- func (c *StorageClient) Rename(src, dist string) error
- type VersionClient
- type VersionInfo
- type VersionInfoResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Settings *settings.Settings
Library *library.Library
// Files *FileClient
Version *VersionClient
Storage *StorageClient
// contains filtered or unexported fields
}
type ExecCommand ¶
type ExecCommand struct {
Exec file_types.ExecArgs
TempFile *FileHandler
}
type FileHandler ¶
type FileHandler struct {
Type string
// contains filtered or unexported fields
}
func NewFile ¶
func NewFile(file_path, file_name, file_ext string) *FileHandler
func (*FileHandler) Body ¶
func (f *FileHandler) Body() []byte
func (*FileHandler) Delete ¶
func (f *FileHandler) Delete() error
func (*FileHandler) Path ¶
func (f *FileHandler) Path() string
func (*FileHandler) Read ¶
func (f *FileHandler) Read() ([]byte, error)
func (*FileHandler) Write ¶
func (f *FileHandler) Write(payload []byte) error
type StorageClient ¶
type StorageClient client
func (*StorageClient) Delete ¶
func (c *StorageClient) Delete(name string) error
func (*StorageClient) EditText ¶
func (c *StorageClient) EditText(name string) error
func (*StorageClient) NewTempFile ¶
func (c *StorageClient) NewTempFile(scroll *library.Scroll) (*FileHandler, error)
func (*StorageClient) Rename ¶
func (c *StorageClient) Rename(src, dist string) error
type VersionClient ¶
type VersionClient client
func (*VersionClient) CheckForUpdates ¶
func (u *VersionClient) CheckForUpdates(autoUpdate bool) (currentVersion, latestVersion string, updateAvailable bool, updateError error)
func (*VersionClient) Update ¶
func (u *VersionClient) Update() error
type VersionInfo ¶
type VersionInfo struct {
Version string `json:"latest"`
}
type VersionInfoResponse ¶
type VersionInfoResponse struct {
Version VersionInfo `json:"latest"`
}
Click to show internal directories.
Click to hide internal directories.