Documentation
¶
Index ¶
- func LoadPrivateKey(privFile string) (*rsa.PrivateKey, error)
- func SavePrivateKey(priv *rsa.PrivateKey, dst string) error
- type Client
- func (c *Client) AuthToken() string
- func (c *Client) List(ctx context.Context, path string) ([]string, []string, error)
- func (c *Client) Login(ctx context.Context, user, pass string) error
- func (c *Client) PrivateKey() *rsa.PrivateKey
- func (c *Client) Start(ctx context.Context) error
- func (c *Client) UnlockCrypto(ctx context.Context, cryptoPass string) error
- func (c *Client) UploadFile(ctx context.Context, src, dst string) error
- type Metadata
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadPrivateKey ¶
func LoadPrivateKey(privFile string) (*rsa.PrivateKey, error)
func SavePrivateKey ¶
func SavePrivateKey(priv *rsa.PrivateKey, dst string) error
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) PrivateKey ¶
func (c *Client) PrivateKey() *rsa.PrivateKey
func (*Client) UnlockCrypto ¶
type Option ¶
type Option func(*Client)
func WithCredentials ¶
func WithCryptoPassword ¶
func WithPrivateKey ¶
func WithPrivateKey(priv *rsa.PrivateKey) Option
Click to show internal directories.
Click to hide internal directories.