qsecure_client

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: MIT Imports: 4 Imported by: 0

README

qsecure-client

Q-Secure Server to Server client

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Connection   http.Client
	ClientId     string
	ClientSecret string
	TokenUrl     string
	FileUrl      string
	Scopes       []string
}

func NewQSecureClient

func NewQSecureClient(clientId string, clientSecret string, tokenUrl string, fileUrl string) Client

func (Client) Upload

func (c Client) Upload(request UploadRequest, stream io.Reader) error

type UploadRequest

type UploadRequest struct {
	FileName  string `json:"file_name"`
	FileType  string `json:"file_type"`
	Recipient string `json:"recipient"`
}

type UploadResponse

type UploadResponse struct {
	Data UploadResponseEnvelope `json:"data"`
}

type UploadResponseEnvelope

type UploadResponseEnvelope struct {
	UploadUrl string `json:"upload_url"`
}

Jump to

Keyboard shortcuts

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