Documentation ¶ Index ¶ type AuthResponse type Client func New() *Client func (c *Client) Auth(ctx context.Context, code string) (*AuthResponse, error) func (c *Client) Upload(ctx context.Context, name string, r io.Reader, tok *Tokens) error type Tokens Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type AuthResponse ¶ type AuthResponse struct { Tokens Tokens } type Client ¶ type Client struct{} func New ¶ func New() *Client func (*Client) Auth ¶ func (c *Client) Auth(ctx context.Context, code string) (*AuthResponse, error) func (*Client) Upload ¶ func (c *Client) Upload(ctx context.Context, name string, r io.Reader, tok *Tokens) error type Tokens ¶ type Tokens struct { // Device token used to create and refresh user tokens. Device string // User tokens used for all operations. User string UserRefreshedAt time.Time } Source Files ¶ View all Source files apizips.go rmclient.go tokens.go Click to show internal directories. Click to hide internal directories.