# README
V1 Meta Protobufs
For compatibility with backups made via the v2.0.x influx
CLI, we include logic
for opening & reading backed-up KV stores to derive bucket manifests. Part of that
process requires reading & unmarshalling V1 database info, serialized as protobuf.
To support that requirement, we've copied the meta.proto
definition out of influxdb
and into this repository. This file isn't intended to be modified.
If meta.pb.go
ever needs to be re-generated, follow these steps:
- Install
protoc
(i.e. viabrew install protobuf
) - Run
go install google.golang.org/protobuf/cmd/protoc-gen-go
from within this repository - Run
go generate <path to internal/backup_restore>
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ExtractBucketMetadata reads a boltdb backed up from InfluxDB 2.0.x, converting a subset of the metadata it contains into a set of 2.1.x bucket manifests.
ServerIsLegacy checks if the InfluxDB server targeted by the backup is running v2.0.x, which used different APIs for backups.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
Enum value maps for Command_Type.
Enum value maps for Command_Type.
optional internal.CreateContinuousQueryCommand command = 111;.
optional internal.CreateDatabaseCommand command = 103;.
optional internal.CreateDataNodeCommand command = 125;.
optional internal.CreateMetaNodeCommand command = 124;.
optional internal.CreateNodeCommand command = 101;.
optional internal.CreateRetentionPolicyCommand command = 105;.
optional internal.CreateShardGroupCommand command = 109;.
optional internal.CreateSubscriptionCommand command = 121;.
optional internal.CreateUserCommand command = 113;.
optional internal.DeleteDataNodeCommand command = 128;.
optional internal.DeleteMetaNodeCommand command = 127;.
optional internal.DeleteNodeCommand command = 102;.
optional internal.DeleteShardGroupCommand command = 110;.
optional internal.DropContinuousQueryCommand command = 112;.
optional internal.DropDatabaseCommand command = 104;.
optional internal.DropRetentionPolicyCommand command = 106;.
optional internal.DropShardCommand command = 130;.
optional internal.DropSubscriptionCommand command = 122;.
optional internal.DropUserCommand command = 114;.
optional internal.RemovePeerCommand command = 123;.
optional internal.SetAdminPrivilegeCommand command = 118;.
optional internal.SetDataCommand command = 117;.
optional internal.SetDefaultRetentionPolicyCommand command = 107;.
optional internal.SetMetaNodeCommand command = 129;.
optional internal.SetPrivilegeCommand command = 116;.
optional internal.UpdateDataNodeCommand command = 126;.
optional internal.UpdateNodeCommand command = 119;.
optional internal.UpdateRetentionPolicyCommand command = 108;.
optional internal.UpdateUserCommand command = 115;.
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
This isn't used in >= 0.10.0.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SetMetaNodeCommand is for the initial metanode in a cluster or if the single host restarts and its hostname changes, this will update it.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author