package
0.0.0-20180911130330-d3ccc4fb1d66
Repository: https://github.com/rglyons/kube-arangodb.git
Documentation: pkg.go.dev
# Functions
DefaultHTTPClient creates a new HTTP client configured for accessing a starter.
IsBadRequest returns true if the given error is caused by a BadRequestError.
IsCanceled returns true if the given error is caused by a context.Canceled.
IsInternalServer returns true if the given error is caused by a InternalServerError.
IsNotFound returns true if the given error is caused by a NotFoundError.
IsPreconditionFailed returns true if the given error is caused by a PreconditionFailedError.
IsRedirectTo returns true when the given error is caused by an RedirectToError.
IsRequestTimeout returns true if the given error is caused by a RequestTimeoutError.
IsServiceUnavailable returns true if the given error is caused by a ServiceUnavailableError.
IsSignificantDelayDiff returns true if there is a significant difference between the given delays.
IsStatusError returns the status code and true if the given error is caused by a StatusError.
IsStatusErrorWithCode returns true if the given error is caused by a StatusError with given code.
IsUnauthorized returns true if the given error is caused by a UnauthorizedError.
NewArangoSyncClient creates a new client implementation.
NewAuthentication creates a new Authentication from given arguments.
ParseResponseError returns an error from given response.
# Constants
AllowForwardRequestHeaderKey is a request header key.
ClientIDHeaderKey is the name of a request header containing the ID that is making the request.
No description provided by the author
No description provided by the author
SyncStatusCancelling indicates that the synchronization process is being cancelled.
SyncStatusFailed indicates that the synchronization process has encountered an unrecoverable failure.
SyncStatusInactive indicates that no synchronization is taking place.
SyncStatusInitializing indicates that synchronization tasks are being setup.
SyncStatusInitialSync indicates that initial synchronization of collections is ongoing.
SyncStatusRunning indicates that all collections have been initially synchronized and normal transaction synchronization is active.
# Variables
BadRequestError indicates invalid arguments.
InternalServerError indicates an unspecified error inside the server, perhaps a bug.
NotFoundError indicates that an object does not exist.
PreconditionFailedError indicates that the state of the system is such that the request cannot be executed.
RequestTimeoutError indicates that the request is taken longer than we're prepared to wait.
ServiceUnavailableError indicates that right now the service is not available, please retry later.
UnauthorizedError indicates that the request has not the correct authorization.
ValidSyncStatusValues is a list of all possible sync status values.
# Structs
Authentication contains all possible authentication methods for a client.
No description provided by the author
AuthProxy is a helper that implements github.com/arangodb-helper/go-certificates#TLSAuthentication.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CommitDirectMQMessageRequest is the JSON request body for CommitDirectMQMessage request.
ConfigureWorkerRequest is the JSON body for the ConfigureWorker request.
DirectMQMessage is a direct MQ message.
DirectMQToken provides a token with its TTL.
DirectMQTokenRequest is the JSON request body for Renew/Clone direct MQ token request.
DirectMQTopicEndpoint provides information about an endpoint for Direct MQ messages.
No description provided by the author
No description provided by the author
GetDirectMQMessagesResponse is the JSON body for GetDirectMQMessages response.
IsChannelRelevantResponse is the JSON response for a MasterAPI.IsChannelRelevant call.
MasterInfo contains information about a single master.
No description provided by the author
MessageQueueConfig contains all deployment configuration info for the local MQ.
OutgoingSynchronizationRequest holds the master->master request data for configuring an outgoing inventory stream.
OutgoingSynchronizationResponse holds the answer to an master->master request for configuring an outgoing synchronization.
OutgoingSynchronizeShardRequest holds the master->master request data for configuring an outgoing shard synchronization stream.
OutgoingSyncInfo holds JSON info returned as part of `GET /_api/sync` regarding a specific target for outgoing synchronization data.
No description provided by the author
No description provided by the author
SetDirectMQTopicTokenRequest is the JSON request body for SetDirectMQTopicToken request.
No description provided by the author
ShardSyncInfo holds JSON info returned as part of `GET /_api/sync` regarding a specific shard.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SynchronizationShardStatusRequest is the request body of a (Outgoing)SynchronizationShardStatus request.
SynchronizationShardStatusRequestEntry is a single entry in a SynchronizationShardStatusRequest.
SyncInfo holds the JSON info returned from `GET /_api/sync`.
TaskAssignment contains information of the assignment of a task to a worker.
TaskCompletedRequest holds the info for a TaskCompleted request.
TaskInfo contains all information known about a task.
TasksResponse is the JSON response for MasterAPI.Tasks method.
No description provided by the author
WorkerConfiguration contains configuration data passed from the master to the worker.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
API of a sync master/worker.
InternalDirectMQAPI contains the internal API of the sync master/worker wrt direct MQ messages.
InternalMasterAPI contains the internal API of the sync master.
InternalWorkerAPI contains the internal API of the sync worker.
MasterAPI contains API of sync master.
StatusAPI describes the API provided to task workers used to send status updates to the master.
WorkerAPI contains API of sync worker.
# Type aliases
Endpoint is a list of URL's that are considered to be off the same service.
No description provided by the author
No description provided by the author
TLSAuthentication contains configuration for using client certificates and TLS verification of the server.