resources

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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