client

package
v0.0.0-...-f6a5d6d Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: GPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(apiurl, key string) *Client

NewClient key is 16 bytes hex string

func (*Client) GetFile

func (c *Client) GetFile(folder, name string) ([]byte, *[16]byte, error)

GetFile return data, md5, error

func (*Client) GetSecureFile

func (c *Client) GetSecureFile(folder, name string) ([]byte, *[16]byte, error)

GetSecureFile return data, md5, error

func (*Client) IsFileExist

func (c *Client) IsFileExist(folder, name string) (bool, *[16]byte, error)

IsFileExist return status, md5, error

func (*Client) IsSecureFileExist

func (c *Client) IsSecureFileExist(folder, name string) (bool, *[16]byte, error)

IsSecureFileExist return status, md5, error

func (*Client) ListFiles

func (c *Client) ListFiles(folder string) (m map[string][16]byte, err error)

ListFiles return map[name]md5, error

func (*Client) ListSecureFiles

func (c *Client) ListSecureFiles(folder string) (m map[string][16]byte, err error)

ListSecureFiles return map[name]md5, error

func (*Client) SetFile

func (c *Client) SetFile(folder, name string, data []byte) error

SetFile return error

Jump to

Keyboard shortcuts

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