client

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgreementHash added in v0.6.0

func AgreementHash(ctx context.Context) (string, error)

AgreementHash returns the MD5 hash of the agreement the same way the GUI does it

func DownloadDevice

func DownloadDevice(ctx context.Context, device DeviceInfo) (io.ReadCloser, error)

func DownloadFont added in v0.6.0

func DownloadFont(ctx context.Context, fontFilename string) (io.ReadCloser, error)

func DownloadSDK added in v0.4.0

func DownloadSDK(ctx context.Context, sdk SDK) (io.ReadCloser, error)

func ExchangeTicket added in v0.4.0

func ExchangeTicket(ctx context.Context, ticket, serviceURL string) (connectiq.Token, error)

ExchangeTicket takes a ticket from the Oauth flow, and exhanges it for a token to be used in with the API

func Login

func Login(ctx context.Context, username, password string) (connectiq.Token, error)

func RefreshToken added in v0.4.0

func RefreshToken(ctx context.Context, rToken string) (connectiq.Token, error)

Types

type DeviceInfo

type DeviceInfo struct {
	DeviceUUID            string            `json:"deviceUuid"`
	PartNumber            string            `json:"partNumber"`
	Name                  string            `json:"name"`
	ProductInfoFileExists bool              `json:"productInfoFileExists"`
	CiqInfoFileExists     bool              `json:"ciqInfoFileExists"`
	Upcoming              bool              `json:"upcoming"`
	ProductInfoHash       string            `json:"productInfoHash"`
	CiqInfoHash           string            `json:"ciqInfoHash"`
	Group                 string            `json:"group"`
	DisplayName           string            `json:"displayName"`
	LastUpdateTime        datetime.DateTime `json:"lastUpdateTime"`
	Hidden                bool              `json:"hidden"`
	Faceit2Capable        bool              `json:"faceit2Capable"`
}

func GetDeviceInfo

func GetDeviceInfo(ctx context.Context) ([]DeviceInfo, error)

type SDK added in v0.4.0

type SDK struct {
	Version string `json:"version"`
	Title   string `json:"title"`
	Release string `json:"release"`
	Mac     string `json:"mac"`
	Windows string `json:"windows"`
	Linux   string `json:"linux"`
}

func GetSDKs added in v0.4.0

func GetSDKs(ctx context.Context) ([]SDK, error)

func (SDK) Filename added in v0.4.0

func (s SDK) Filename() (string, error)

Jump to

Keyboard shortcuts

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