remoterepoapi

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 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 ApplyRetentionPolicyRequest added in v0.14.0

type ApplyRetentionPolicyRequest struct {
	SourcePath   string `json:"sourcePath"`
	ReallyDelete bool   `json:"reallyDelete"`
}

ApplyRetentionPolicyRequest represents a request to apply retention policy to a given source path.

type ApplyRetentionPolicyResponse added in v0.14.0

type ApplyRetentionPolicyResponse struct {
	ManifestIDs []manifest.ID `json:"manifests"`
}

ApplyRetentionPolicyResponse represents a response to a request to apply retention policy.

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"`

	format.ObjectFormat
}

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 PrefetchContentsRequest added in v0.10.7

type PrefetchContentsRequest struct {
	ContentIDs []content.ID `json:"contents"`
	Hint       string       `json:"hint"`
}

PrefetchContentsRequest represents a request to prefetch contents.

type PrefetchContentsResponse added in v0.10.7

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

PrefetchContentsResponse represents a response from request to prefetch contents.

Jump to

Keyboard shortcuts

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