edgeapi

package
v0.19.14 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeltaApiClient added in v0.10.0

type DeltaApiClient interface {
	ReadDeltaAsync(from, to string, acceptedAlgorithms []string) (res *apicommon.ReadDeltaResponse, exists bool, err error)
	ReadDelta(from, to string, acceptedAlgorithms []string) (*apicommon.ReadDeltaResponse, error)
	ReadDeltaAsStream(from, to string, acceptedAlgorithms []string) (*v1.Descriptor, string, io.ReadCloser, error)
}

DeltaApiClient abstracts around a client that can request deltas from Doras servers.

func NewEdgeClient

func NewEdgeClient(serverURL string, allowHttp bool, credentialFunc auth2.CredentialFunc) (DeltaApiClient, error)

NewEdgeClient returns a client that can be used to interact with the Doras server API.

Jump to

Keyboard shortcuts

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