resources

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	UnauthenticatedClient
	MakeRequest(accessToken, method, path, contentType string, query url.Values, data []byte, isBeta bool) ([]byte, error)
}

type MockClient

type MockClient struct {
	Err        error
	Input      []byte
	Response   []byte
	StatusCode int
}

func (*MockClient) MakeRequest

func (c *MockClient) MakeRequest(
	accessToken, method, path, contentType string,
	query url.Values,
	data []byte,
	isBeta bool,
) ([]byte, error)

func (*MockClient) MakeUnauthenticatedRequest added in v1.2.0

func (c *MockClient) MakeUnauthenticatedRequest(
	method string,
	path string,
	data []byte,
) ([]byte, error)

type ResourcesClient

type ResourcesClient struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cliVersion string) ResourcesClient

func (ResourcesClient) MakeRequest

func (c ResourcesClient) MakeRequest(
	accessToken, method, path, contentType string,
	query url.Values,
	data []byte,
	isBeta bool,
) ([]byte, error)

func (ResourcesClient) MakeUnauthenticatedRequest added in v1.2.0

func (c ResourcesClient) MakeUnauthenticatedRequest(
	method string,
	path string,
	data []byte,
) ([]byte, error)

type UnauthenticatedClient added in v1.2.0

type UnauthenticatedClient interface {
	MakeUnauthenticatedRequest(
		method string,
		path string,
		data []byte,
	) ([]byte, error)
}

Jump to

Keyboard shortcuts

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