package
1.24.0
Repository: https://github.com/elastic/cloud-sdk-go.git
Documentation: pkg.go.dev

# Functions

CheckVacateFailures iterates over the list of failures returning a multierror of VacateError if any of failures are found.
ComputeVacateRequest filters the tentative resources that would be moved and filters those by ID if it's specified, also setting any preferred allocators if that is sent.
DeleteAllocatorMetadataItem delete a single metadata item to a given allocators metadata.
FilterByTag filters a list of allocators based on metadata tags and returns a new matched list.
FilterConnectedOrWithInstances filters a list of allocators and returns only the connected ones or those who have more than one instance.
Get obtains an allocator from an ID.
GetAllocatorMetadata Retrieves the metadata for a given allocator.
List obtains the full list of allocators.
Search searches all the allocators using Query DSL.
SetAllocatorMetadataItem sets a single metadata item to a given allocators metadata.
StartMaintenance sets an allocator to maintenance mode.
StopMaintenance unsets an allocator to maintenance mode.
Vacate drains allocated resource instances away from the allocator list either to a specific allocator list or we let the constructor decide if that is empty.
VacateCluster moves a resource node off an allocator.
VacateClusterInPool vacates a resource from an allocator, complying with the pool.RunFunc signature.

# Constants

PlanPendingMessage is used to discard.
UnhealthyQuery is used to obtain the list of unhealthy allocators.

# Structs

GetParams is used to get an allocator.
ListParams is used to list allocators.
MaintenanceParams is used to set / unset maintenance mode.
MetadataDeleteParams is used to delete a single metadata key.
MetadataGetParams is used to retrieve allocator metadata.
MetadataSetParams is is used to set a single allocator metadata key.
PlanOverrides is used to override any API value that is returned by default with the specified value.
SearchParams contains parameters used to search allocator's data using Query DSL.
VacateClusterParams is used by VacateCluster to move a cluster node from an allocator.
VacateError wraps an error and enriches it with some fields to be able to have a consistent output (resourcePrefixErrFmt).
VacateParams used to vacate N allocators or clusters.nolint.