Documentation ¶
Index ¶
- Constants
- type Clerk
- func (c *Clerk) Authenticate(mode, key, checksum string) (string, http.Header, string, error)
- func (c *Clerk) DeviceName() (string, error)
- func (c *Clerk) GetObject(path string) ([]byte, error)
- func (c *Clerk) GetObjectStream(path string) (io.ReadCloser, error)
- func (c *Clerk) ListObjectsV2() (*s3.ListObjectsV2Output, error)
- func (c *Clerk) PutObject(pathInfix string, data []byte) (string, error)
- func (c *Clerk) PutObjectStream(pathInfix string, data io.ReadSeeker) (string, error)
- type ClerkConfig
Constants ¶
View Source
const ( ModeList = "List" ModeGet = "Get" ModePut = "Put" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clerk ¶
type Clerk struct { Client http.Client Config ClerkConfig }
func (*Clerk) Authenticate ¶
func (*Clerk) DeviceName ¶
func (*Clerk) GetObjectStream ¶
func (c *Clerk) GetObjectStream(path string) (io.ReadCloser, error)
func (*Clerk) ListObjectsV2 ¶
func (c *Clerk) ListObjectsV2() (*s3.ListObjectsV2Output, error)
func (*Clerk) PutObjectStream ¶
Note: this WILL seek the stream to position 0 before beginning
Click to show internal directories.
Click to hide internal directories.