rest

package
v1.27.0-beta.8 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAsset added in v1.27.0

func NewAsset(f *factory.Factory) *asset

func NewLedger added in v1.26.0

func NewLedger(f *factory.Factory) *ledger

func NewOrganization added in v1.25.0

func NewOrganization(f *factory.Factory) *organization

Types

type APIError added in v1.27.0

type APIError struct {
	Title   string            `json:"title"`
	Code    string            `json:"code"`
	Message string            `json:"message"`
	Fields  map[string]string `json:"fields,omitempty"`
}

APIError struct to represent the error received

type Auth

type Auth struct {
	Factory *factory.Factory
}

func NewAuth

func NewAuth(f *factory.Factory) *Auth

func (*Auth) AuthenticateWithCredentials

func (r *Auth) AuthenticateWithCredentials(
	username, password string) (*model.TokenResponse, error)

func (*Auth) ExchangeToken

func (r *Auth) ExchangeToken(code string) (*model.TokenResponse, error)

Jump to

Keyboard shortcuts

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