sdk

package module
v0.0.0-...-b0f85b3 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MPL-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatAPIError

func FormatAPIError(err error) error

func IsNotFoundError

func IsNotFoundError(err error) bool

Types

type RTRequestAdapter

type RTRequestAdapter struct {
	khttp.NetHttpRequestAdapter
	Client *nethttp.Client
}

DefaultRequestAdapter is the core service used by GraphServiceClient to make requests to Microsoft Graph.

func NewRequestAdapter

func NewRequestAdapter(authenticationProvider absauth.AuthenticationProvider, httpClient *nethttp.Client) (*RTRequestAdapter, error)

NewRequestAdapter creates a new RTRequestAdapter with the given parameters

type SDK

type SDK interface {
	Api() *api.ApiRequestBuilder
	WellKnown() *wellknown.WellKnownRequestBuilder
	Client() *nethttp.Client
	Endpoint() *u.URL
	UploadFileArchive(ctx context.Context, key string, archive io.ReadSeeker) (*string, error)
}

func NewInsecureSDKForTesting

func NewInsecureSDKForTesting(host string) (SDK, error)

func NewSDK

func NewSDK(host, clientID, clientSecret string) (SDK, error)

func NewSDKWithAccessToken

func NewSDKWithAccessToken(host, accessToken string) (SDK, error)

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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