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.
Click to show internal directories.
Click to hide internal directories.