rmclient

package
v0.0.0-...-dc915fa Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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
}

Jump to

Keyboard shortcuts

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