scrolls

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

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
}

func New

func New() (*Client, error)

func (*Client) Delete

func (c *Client) Delete(path string) (*http.Response, error)

func (*Client) Get

func (c *Client) Get(path string, body io.Reader) (*http.Response, error)

func (*Client) Patch

func (c *Client) Patch(path string, body io.Reader) (*http.Response, error)

func (*Client) Post

func (c *Client) Post(path string, body io.Reader) (*http.Response, error)

func (*Client) Put

func (c *Client) Put(path string, body io.Reader) (*http.Response, error)

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) Get

func (c *StorageClient) Get(name string) (*library.Scroll, error)

func (*StorageClient) List

func (c *StorageClient) List() ([]*library.Scroll, error)

func (*StorageClient) New

func (c *StorageClient) New(name string, useTemplate bool, fromFile string) (*library.Scroll, 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) GetLatestReleaseVersion added in v0.6.2

func (u *VersionClient) GetLatestReleaseVersion() (VersionInfo, 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"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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