remoterepoapi

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package remoterepoapi contains requests and responses for remote repository API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManifestWithMetadata

type ManifestWithMetadata struct {
	Payload  json.RawMessage         `json:"payload"`
	Metadata *manifest.EntryMetadata `json:"metadata"`
}

ManifestWithMetadata represents manifest payload and metadata.

type Parameters

type Parameters struct {
	HashFunction               string `json:"hash"`
	HMACSecret                 []byte `json:"hmacSecret"`
	SupportsContentCompression bool   `json:"supportsContentCompression"`

	object.Format
}

Parameters encapsulates all parameters for repository. returned by /api/v1/repo/parameters.

func (*Parameters) GetHashFunction

func (p *Parameters) GetHashFunction() string

GetHashFunction returns the name of the hash function for remote repository.

func (*Parameters) GetHmacSecret added in v0.8.0

func (p *Parameters) GetHmacSecret() []byte

GetHmacSecret returns the HMAC secret for the remote repository.

type PrefetchObjectsRequest added in v0.10.6

type PrefetchObjectsRequest struct {
	ObjectIDs []object.ID `json:"objects"`
}

PrefetchObjectsRequest represents a request to prefetch objects.

type PrefetchObjectsResponse added in v0.10.6

type PrefetchObjectsResponse struct {
	ContentIDs []content.ID `json:"contents"`
}

PrefetchObjectsResponse represents a request from request prefetch objects.

Jump to

Keyboard shortcuts

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