endpoints

package
v0.89.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package endpoints defines common, internal contracts used by sdk/endpoints packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CreateRequest(
		ctx context.Context,
		method, endpoint string,
		headers http.Header,
		q url.Values,
		body io.Reader,
	) (*http.Request, error)
	Do(req *http.Request) (*http.Response, error)
}

type OrganizationGetter

type OrganizationGetter interface {
	GetOrganization(ctx context.Context) (string, error)
}

type ReadObjectsFunc

type ReadObjectsFunc func(ctx context.Context, reader io.Reader) ([]manifest.Object, error)

Jump to

Keyboard shortcuts

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