package
1.3.1
Repository: https://github.com/tarantool/tt.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

ConnectEtcd creates a new client object for a etcd from the specified options.
GetClusterConfig returns a cluster configuration loaded from a path to a config file.
GetInstanceConfig returns a full configuration for an instance with the name from a cluster config.
HasInstance returns true if an instance with the name exists in the config.
Instances returns a list of instance names from the cluster config.
Instantiate returns a fetched instance config from the cluster config.
MakeAllowedValidator creates a new AllowedValidator object.
MakeArrayValidator create a new ArrayValidator object with a validator for values.
MakeClusterConfig creates a ClusterConfig object from a configuration.
MakeEtcdOptsFromUrl creates etcd options from a URL.
MakeInstanceConfig creates an InstanceConfig object from a configuration.
MakeMapValidator create a new MapValidator object with specified a key and a value validator.
MakeRecordValidator create a new RecordValidator object with a specified record schema.
MakeSequenceValidator creates a new SequenceValidator object.
NewConfig creates a new empty configuration.
NewEnvCollector creates a new EnvCollector.
NewEtcdCollector creates a new collector for etcd from the path.
NewEtcdDataPublisher creates a new EtcdDataPublisher object to publish a data to etcd with the prefix during the timeout.
NewFileCollector create a new file collector for a path.
NewFileDataPublisher creates a new FileDataPublisher object to publish a data into a file for the given path.
NewYamlCollector create a new YAML collector.
NewYamlConfigPublisher creates a new YamlConfigPublisher object to publish a configuration via the publisher.
ReplaceInstanceConfig replaces an instance configuration.
Validate validates a configuration with the schema.

# Constants

No description provided by the author

# Variables

No description provided by the author
No description provided by the author

# Structs

AllowedValidator allows a set of values.
AnyValidator allows any values, but not nil.
ArrayValidator allows an array of values.
BooleanValidator allows only boolean-compatible values.
ClusterConfig describes a cluster configuration.
Config is a container for deserialized configuration.
EnvCollector collects a configuration from environment variables.
EtcdCollector collects data from a etcd connection.
EtcdDataPublisher publishes a data into etcd.
EtcdOpts is a way to configure a etcd client.
FileCollector collects data from a YAML file.
FileDataPublisher publishes a data into a file as is.
GroupConfig describes a group configuration.
InstanceConfig describes an instance configuration.
IntegerValidator allows only integer-compatible values.
MapValidator allows only a map.
NotExistError error type for non-existing path.
NumberValidator allows only number-compatible values.
RecordValidator allows only a record values.
ReplicasetConfig describes a replicaset configuration.
SchemaPath describes a validation schema for a configuration.
SequenceValidator allows to combine validators in a sequence.
StringValidator allows only string-compatible values.
ValidateError describes a schema validation error.
YamlCollector collects a configuration from YAML data.
YamlConfigPublisher publishes a configuration as YAML via the base publisher.

# Interfaces

Collector interface must be implemented by a configuration source collector.
ConfigPublisher interface must be implemented by a config publisher.
DataPublisher interface must be implemented by a raw data publisher.
EtcdGetter is the interface that wraps get from etcd method.
EtcdUpdater is the interface that adds Txn method to EtcdGetter.
Validator validates a value.