Documentation ¶
Index ¶
- Constants
- func BufferInFile(r io.Reader) (rc io.ReadSeekCloser, e error)
- func SplitPath(path string) (device, infix, hash string, e error)
- type Clerk
- func (c *Clerk) DeviceName() (string, error)
- func (c *Clerk) GetDecryptObject(path string) (b []byte, err error)
- func (c *Clerk) GetDecryptObjectStream(path string) (rc io.ReadCloser, err error)
- func (c *Clerk) HMAC(key string) string
- func (c *Clerk) ListObjects() ([]string, error)
- func (c *Clerk) PutEncryptObject(pathInfix string, data []byte) (string, error)
- func (c *Clerk) PutEncryptObjectStream(pathInfix string, data io.Reader) (createdFilename string, err error)
- type ClerkConfig
- type CombinedReadCloser
- type StreamHeader
Constants ¶
View Source
const Version = 1
Variables ¶
This section is empty.
Functions ¶
func BufferInFile ¶
func BufferInFile(r io.Reader) (rc io.ReadSeekCloser, e error)
Types ¶
type Clerk ¶
type Clerk struct { RemoteClerk demonapi.Clerk Config ClerkConfig }
func LoadConfig ¶
func NewClerk ¶
func NewClerk(config ClerkConfig) (*Clerk, error)
func (*Clerk) DeviceName ¶
func (*Clerk) GetDecryptObject ¶
func (*Clerk) GetDecryptObjectStream ¶
func (c *Clerk) GetDecryptObjectStream(path string) (rc io.ReadCloser, err error)
func (*Clerk) ListObjects ¶
func (*Clerk) PutEncryptObject ¶
type ClerkConfig ¶
type ClerkConfig struct { SecretKey string `json:"secret-key"` SpaceConfig demonapi.ClerkConfig `json:"space"` WorkFactor int `json:"age-work-factor"` }
type StreamHeader ¶
Click to show internal directories.
Click to hide internal directories.