# Functions
DefaultRetentionPolicyInfo returns a new instance of RetentionPolicyInfo with default name, replication, and duration.
ErrInvalidSubscriptionURL is returned when the subscription's destination URL is invalid.
MarshalTime converts t to nanoseconds since epoch.
NewClient returns a new *Client.
NewConfig builds a new configuration with default values.
NewContextWithUser returns a new context with user added.
NewLeases returns a new instance of Leases.
NewQueryAuthorizer returns a new instance of QueryAuthorizer.
NewRetentionPolicyInfo returns a new instance of RetentionPolicyInfo with default replication and duration.
NewWriteAuthorizer returns a new instance of WriteAuthorizer.
NormalisedShardDuration returns normalised shard duration based on a policy duration.
UnmarshalTime converts nanoseconds since epoch to time.
UserFromContext returns the User associated with ctx or nil if no user has been assigned.
ValidName checks to see if the given name can would be valid for DB/RP name.
# Constants
DefaultLeaseDuration is the default duration for leases.
DefaultLoggingEnabled determines if log messages are printed for the meta service.
DefaultRetentionPolicyDuration is the default value of RetentionPolicyInfo.Duration.
DefaultRetentionPolicyName is the default name for auto generated retention policies.
DefaultRetentionPolicyReplicaN is the default value of RetentionPolicyInfo.ReplicaN.
Filename specifies the default name of the metadata file.
MaxNameLen is the maximum length of a database or retention policy name.
MinRetentionPolicyDuration represents the minimum duration for a policy.
SaltBytes is the number of bytes used for salts.
ShardGroupDeletedExpiration is the amount of time before a shard group info will be removed from cached data after it has been marked deleted (2 weeks).
# Variables
Name of the bucket to store TSM metadata.
ErrAuthenticate is returned when authentication fails.
ErrContinuousQueryExists is returned when creating an already existing continuous query.
ErrContinuousQueryNotFound is returned when removing a continuous query that doesn't exist.
ErrDatabaseExists is returned when creating an already existing database.
ErrDatabaseNameRequired is returned when creating a database without a name.
ErrDatabaseNotExists is returned when operating on a not existing database.
ErrIncompatibleDurations is returned when creating or updating a retention policy that has a duration lower than the current shard duration.
ErrInvalidName is returned when attempting to create a database or retention policy with an invalid name.
ErrNameTooLong is returned when attempting to create a database or retention policy with a name that is too long.
ErrReplicationFactorTooLow is returned when the replication factor is not in an acceptable range.
ErrRetentionPolicyConflict is returned when creating a retention policy conflicts with an existing policy.
ErrRetentionPolicyDefault is returned when attempting a prohibited operation on a default retention policy.
ErrRetentionPolicyDurationTooLow is returned when updating a retention policy that has a duration lower than the allowed minimum.
ErrRetentionPolicyExists is returned when creating an already existing policy.
ErrRetentionPolicyNameExists is returned when renaming a policy to the same name as another existing policy.
ErrRetentionPolicyNameRequired is returned when creating a policy without a name.
ErrRetentionPolicyNotFound is returned when an expected policy wasn't found.
ErrRetentionPolicyRequired is returned when a retention policy is required by an operation, but a nil policy was passed.
ErrService is returned when the meta service returns an error.
ErrServiceUnavailable is returned when the meta service is unavailable.
ErrShardGroupExists is returned when creating an already existing shard group.
ErrShardGroupNotFound is returned when mutating a shard group that doesn't exist.
ErrShardNotReplicated is returned if the node requested to be dropped has the last copy of a shard present and the force keyword was not used.
ErrStoreClosed is returned when closing an already closed store.
ErrStoreOpen is returned when opening an already open store.
ErrSubscriptionExists is returned when creating an already existing subscription.
ErrSubscriptionNotFound is returned when removing a subscription that doesn't exist.
ErrUserExists is returned when creating an already existing user.
ErrUsernameRequired is returned when creating a user without a username.
ErrUserNotFound is returned when mutating a user that doesn't exist.
# Structs
Client is used to execute commands on and read data from a meta service cluster.
Config represents the meta configuration.
ContinuousQueryInfo represents metadata about a continuous query.
Data represents the top level collection of all metadata.
DatabaseInfo represents information about a database in the system.
ErrAuthorize represents an authorization error.
Lease represents a lease held on a resource.
Leases is a concurrency-safe collection of leases keyed by name.
NodeInfo represents information about a single node in the cluster.
QueryAuthorizer determines whether a user is authorized to execute a given query.
RetentionPolicyInfo represents metadata about a retention policy.
RetentionPolicySpec represents the specification for a new retention policy.
RetentionPolicyUpdate represents retention policy fields to be updated.
ShardGroupInfo represents metadata about a shard group.
ShardInfo represents metadata about a shard.
ShardOwner represents a node that owns a shard.
SubscriptionInfo holds the subscription information.
UserInfo represents metadata about a user in the system.
WriteAuthorizer determines whether a user is authorized to write to a given database.
# Type aliases
NodeInfos is a slice of NodeInfo used for sorting.
ShardGroupInfos implements sort.Interface on []ShardGroupInfo, based on the StartTime field.