repositoryverifyintegrity

package
v8.17.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Verifies the integrity of the contents of a snapshot repository

Index

Constants

This section is empty.

Variables

View Source
var ErrBuildPath = errors.New("cannot build path, check for missing path parameters")

ErrBuildPath is returned in case of missing parameters within the build of the request.

Functions

This section is empty.

Types

type NewRepositoryVerifyIntegrity

type NewRepositoryVerifyIntegrity func(repository string) *RepositoryVerifyIntegrity

NewRepositoryVerifyIntegrity type alias for index.

func NewRepositoryVerifyIntegrityFunc

func NewRepositoryVerifyIntegrityFunc(tp elastictransport.Interface) NewRepositoryVerifyIntegrity

NewRepositoryVerifyIntegrityFunc returns a new instance of RepositoryVerifyIntegrity with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.

type RepositoryVerifyIntegrity

type RepositoryVerifyIntegrity struct {
	// contains filtered or unexported fields
}

func (*RepositoryVerifyIntegrity) BlobThreadPoolConcurrency

func (r *RepositoryVerifyIntegrity) BlobThreadPoolConcurrency(blobthreadpoolconcurrency int) *RepositoryVerifyIntegrity

BlobThreadPoolConcurrency Number of threads to use for reading blob contents API name: blob_thread_pool_concurrency

func (RepositoryVerifyIntegrity) Do

Do runs the request through the transport, handle the response and returns a repositoryverifyintegrity.Response

func (*RepositoryVerifyIntegrity) ErrorTrace

func (r *RepositoryVerifyIntegrity) ErrorTrace(errortrace bool) *RepositoryVerifyIntegrity

ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors when they occur. API name: error_trace

func (*RepositoryVerifyIntegrity) FilterPath

func (r *RepositoryVerifyIntegrity) FilterPath(filterpaths ...string) *RepositoryVerifyIntegrity

FilterPath Comma-separated list of filters in dot notation which reduce the response returned by Elasticsearch. API name: filter_path

func (*RepositoryVerifyIntegrity) Header

Header set a key, value pair in the RepositoryVerifyIntegrity headers map.

func (*RepositoryVerifyIntegrity) HttpRequest

func (r *RepositoryVerifyIntegrity) HttpRequest(ctx context.Context) (*http.Request, error)

HttpRequest returns the http.Request object built from the given parameters.

func (*RepositoryVerifyIntegrity) Human

Human When set to `true` will return statistics in a format suitable for humans. For example `"exists_time": "1h"` for humans and `"eixsts_time_in_millis": 3600000` for computers. When disabled the human readable values will be omitted. This makes sense for responses being consumed only by machines. API name: human

func (*RepositoryVerifyIntegrity) IndexSnapshotVerificationConcurrency

func (r *RepositoryVerifyIntegrity) IndexSnapshotVerificationConcurrency(indexsnapshotverificationconcurrency int) *RepositoryVerifyIntegrity

IndexSnapshotVerificationConcurrency Number of snapshots to verify concurrently within each index API name: index_snapshot_verification_concurrency

func (*RepositoryVerifyIntegrity) IndexVerificationConcurrency

func (r *RepositoryVerifyIntegrity) IndexVerificationConcurrency(indexverificationconcurrency int) *RepositoryVerifyIntegrity

IndexVerificationConcurrency Number of indices to verify concurrently API name: index_verification_concurrency

func (RepositoryVerifyIntegrity) IsSuccess

func (r RepositoryVerifyIntegrity) IsSuccess(providedCtx context.Context) (bool, error)

IsSuccess allows to run a query with a context and retrieve the result as a boolean. This only exists for endpoints without a request payload and allows for quick control flow.

func (*RepositoryVerifyIntegrity) MaxBytesPerSec

func (r *RepositoryVerifyIntegrity) MaxBytesPerSec(maxbytespersec string) *RepositoryVerifyIntegrity

MaxBytesPerSec Rate limit for individual blob verification API name: max_bytes_per_sec

func (*RepositoryVerifyIntegrity) MaxFailedShardSnapshots

func (r *RepositoryVerifyIntegrity) MaxFailedShardSnapshots(maxfailedshardsnapshots int) *RepositoryVerifyIntegrity

MaxFailedShardSnapshots Maximum permitted number of failed shard snapshots API name: max_failed_shard_snapshots

func (*RepositoryVerifyIntegrity) MetaThreadPoolConcurrency

func (r *RepositoryVerifyIntegrity) MetaThreadPoolConcurrency(metathreadpoolconcurrency int) *RepositoryVerifyIntegrity

MetaThreadPoolConcurrency Number of threads to use for reading metadata API name: meta_thread_pool_concurrency

func (RepositoryVerifyIntegrity) Perform

func (r RepositoryVerifyIntegrity) Perform(providedCtx context.Context) (*http.Response, error)

Perform runs the http.Request through the provided transport and returns an http.Response.

func (*RepositoryVerifyIntegrity) Pretty

Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use this option for debugging only. API name: pretty

func (*RepositoryVerifyIntegrity) SnapshotVerificationConcurrency

func (r *RepositoryVerifyIntegrity) SnapshotVerificationConcurrency(snapshotverificationconcurrency int) *RepositoryVerifyIntegrity

SnapshotVerificationConcurrency Number of snapshots to verify concurrently API name: snapshot_verification_concurrency

func (*RepositoryVerifyIntegrity) VerifyBlobContents

func (r *RepositoryVerifyIntegrity) VerifyBlobContents(verifyblobcontents bool) *RepositoryVerifyIntegrity

VerifyBlobContents Whether to verify the contents of individual blobs API name: verify_blob_contents

type Response

type Response = json.RawMessage

func NewResponse

func NewResponse() *Response

Jump to

Keyboard shortcuts

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