Documentation
¶
Overview ¶
Verifies the integrity of the contents of a snapshot repository
Index ¶
- Variables
- type NewRepositoryVerifyIntegrity
- type RepositoryVerifyIntegrity
- func (r *RepositoryVerifyIntegrity) BlobThreadPoolConcurrency(blobthreadpoolconcurrency int) *RepositoryVerifyIntegrity
- func (r RepositoryVerifyIntegrity) Do(providedCtx context.Context) (Response, error)
- func (r *RepositoryVerifyIntegrity) ErrorTrace(errortrace bool) *RepositoryVerifyIntegrity
- func (r *RepositoryVerifyIntegrity) FilterPath(filterpaths ...string) *RepositoryVerifyIntegrity
- func (r *RepositoryVerifyIntegrity) Header(key, value string) *RepositoryVerifyIntegrity
- func (r *RepositoryVerifyIntegrity) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r *RepositoryVerifyIntegrity) Human(human bool) *RepositoryVerifyIntegrity
- func (r *RepositoryVerifyIntegrity) IndexSnapshotVerificationConcurrency(indexsnapshotverificationconcurrency int) *RepositoryVerifyIntegrity
- func (r *RepositoryVerifyIntegrity) IndexVerificationConcurrency(indexverificationconcurrency int) *RepositoryVerifyIntegrity
- func (r RepositoryVerifyIntegrity) IsSuccess(providedCtx context.Context) (bool, error)
- func (r *RepositoryVerifyIntegrity) MaxBytesPerSec(maxbytespersec string) *RepositoryVerifyIntegrity
- func (r *RepositoryVerifyIntegrity) MaxFailedShardSnapshots(maxfailedshardsnapshots int) *RepositoryVerifyIntegrity
- func (r *RepositoryVerifyIntegrity) MetaThreadPoolConcurrency(metathreadpoolconcurrency int) *RepositoryVerifyIntegrity
- func (r RepositoryVerifyIntegrity) Perform(providedCtx context.Context) (*http.Response, error)
- func (r *RepositoryVerifyIntegrity) Pretty(pretty bool) *RepositoryVerifyIntegrity
- func (r *RepositoryVerifyIntegrity) SnapshotVerificationConcurrency(snapshotverificationconcurrency int) *RepositoryVerifyIntegrity
- func (r *RepositoryVerifyIntegrity) VerifyBlobContents(verifyblobcontents bool) *RepositoryVerifyIntegrity
- type Response
Constants ¶
This section is empty.
Variables ¶
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 New ¶
func New(tp elastictransport.Interface) *RepositoryVerifyIntegrity
Verifies the integrity of the contents of a snapshot repository
https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html
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 ¶
func (r RepositoryVerifyIntegrity) Do(providedCtx context.Context) (Response, error)
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 ¶
func (r *RepositoryVerifyIntegrity) Header(key, value string) *RepositoryVerifyIntegrity
Header set a key, value pair in the RepositoryVerifyIntegrity headers map.
func (*RepositoryVerifyIntegrity) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
func (*RepositoryVerifyIntegrity) Human ¶
func (r *RepositoryVerifyIntegrity) Human(human bool) *RepositoryVerifyIntegrity
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 ¶
Perform runs the http.Request through the provided transport and returns an http.Response.
func (*RepositoryVerifyIntegrity) Pretty ¶
func (r *RepositoryVerifyIntegrity) Pretty(pretty bool) *RepositoryVerifyIntegrity
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