From 03e81eb9272634e326cad7789747dbd92b9dfdf1 Mon Sep 17 00:00:00 2001 From: Alexey Palazhchenko Date: Mon, 25 Feb 2019 10:33:11 +0300 Subject: [PATCH 1/2] PMM-3542 Update API. --- Gopkg.lock | 4 +- vendor/github.com/percona/pmm/README.md | 2 - .../github.com/percona/pmm/api/agent/agent.go | 13 + .../percona/pmm/api/inventory/agents.pb.go | 386 ++++++++++------ .../percona/pmm/api/inventory/agents.proto | 22 + .../pmm/api/inventory/agents.validator.pb.go | 10 + .../agents/add_external_exporter_responses.go | 6 + .../agents/add_my_sqld_exporter_responses.go | 6 + .../agents/add_node_exporter_responses.go | 6 + .../client/agents/add_pmm_agent_responses.go | 6 + .../agents/add_rds_exporter_responses.go | 6 + .../json/client/agents/get_agent_responses.go | 15 + .../client/agents/list_agents_responses.go | 15 + .../nodes/add_container_node_responses.go | 6 + .../nodes/add_generic_node_responses.go | 6 + .../add_remote_amazon_rds_node_responses.go | 6 + .../client/nodes/add_remote_node_responses.go | 6 + .../nodes/change_container_node_responses.go | 6 + .../nodes/change_generic_node_responses.go | 6 + ...change_remote_amazon_rds_node_responses.go | 6 + .../nodes/change_remote_node_responses.go | 6 + .../json/client/nodes/get_node_responses.go | 12 + .../json/client/nodes/list_nodes_responses.go | 12 + ...add_amazon_rds_my_sql_service_responses.go | 6 + .../services/add_my_sql_service_responses.go | 6 + ...nge_amazon_rds_my_sql_service_responses.go | 6 + .../change_my_sql_service_responses.go | 6 + .../client/services/get_service_responses.go | 6 + .../services/list_services_responses.go | 6 + .../pmm/api/inventory/json/inventory.json | 392 ++++++++++++++++ .../percona/pmm/api/inventory/nodes.pb.go | 432 ++++++++++++------ .../percona/pmm/api/inventory/nodes.proto | 24 + .../pmm/api/inventory/nodes.validator.pb.go | 12 + .../percona/pmm/api/inventory/services.pb.go | 261 +++++++---- .../percona/pmm/api/inventory/services.proto | 12 + .../api/inventory/services.validator.pb.go | 6 + 36 files changed, 1355 insertions(+), 389 deletions(-) diff --git a/Gopkg.lock b/Gopkg.lock index de70792809..9c5f9ef045 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -529,7 +529,7 @@ [[projects]] branch = "PMM-2.0" - digest = "1:2dc574cf7914cced153ebba1607be7de4969d286894535046276325ab7a477f3" + digest = "1:2ae929ee9ccce1729b52d662fda0ba62e6bfe8ab30e9d5401e335fbb89a98582" name = "github.com/percona/pmm" packages = [ "api/agent", @@ -537,7 +537,7 @@ "version", ] pruneopts = "T" - revision = "7411b82815b56670f7452a0039787333f03485b5" + revision = "98bb54042debf10d229c8d26c832bae0c29459a5" [[projects]] digest = "1:cf31692c14422fa27c83a05292eb5cbe0fb2775972e8f1f8446a71549bd8980b" diff --git a/vendor/github.com/percona/pmm/README.md b/vendor/github.com/percona/pmm/README.md index 42dcfacb38..1d80c8a8ef 100644 --- a/vendor/github.com/percona/pmm/README.md +++ b/vendor/github.com/percona/pmm/README.md @@ -17,11 +17,9 @@ See the [PMM docs](https://www.percona.com/doc/percona-monitoring-and-management * [pmm-server-packaging](https://github.com/percona/pmm-server-packaging) * [pmm-client](https://github.com/percona/pmm-client) * [qan-agent](https://github.com/percona/qan-agent) - * [kardianos-service](https://github.com/percona/kardianos-service) - based on `github.com/kardianos/service` * [node_exporter](https://github.com/percona/node_exporter) - based on `github.com/prometheus/node_exporter` * [mysqld_exporter](https://github.com/percona/mysqld_exporter) - based on `github.com/prometheus/mysqld_exporter` * [mongodb_exporter](https://github.com/percona/mongodb_exporter) - based on `github.com/dcu/mongodb_exporter` * [rds_exporter](https://github.com/percona/rds_exporter) - based on `github.com/Technofy/cloudwatch_exporter` * [postgres_exporter](https://github.com/percona/postgres_exporter) - based on `github.com/wrouesnel/postgres_exporter` * [proxysql_exporter](https://github.com/percona/proxysql_exporter) - diff --git a/vendor/github.com/percona/pmm/api/agent/agent.go b/vendor/github.com/percona/pmm/api/agent/agent.go index 39bfacf051..e730da896f 100644 --- a/vendor/github.com/percona/pmm/api/agent/agent.go +++ b/vendor/github.com/percona/pmm/api/agent/agent.go @@ -13,6 +13,19 @@ type ( AgentMessagePayload = isAgentMessage_Payload ) +type RequestPayload interface{ request() } +type ResponsePayload interface{ response() } + +func (*Ping) request() {} +func (*QANDataRequest) request() {} +func (*StateChangedRequest) request() {} +func (*SetStateRequest) request() {} + +func (*Pong) response() {} +func (*QANDataResponse) response() {} +func (*StateChangedResponse) response() {} +func (*SetStateResponse) response() {} + const ( mdID = "pmm-agent-id" mdVersion = "pmm-agent-version" diff --git a/vendor/github.com/percona/pmm/api/inventory/agents.pb.go b/vendor/github.com/percona/pmm/api/inventory/agents.pb.go index 97492b947c..99b21a0a8e 100644 --- a/vendor/github.com/percona/pmm/api/inventory/agents.pb.go +++ b/vendor/github.com/percona/pmm/api/inventory/agents.pb.go @@ -32,17 +32,19 @@ type PMMAgent struct { // Node identifier where this instance runs. NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` // True if Agent is running and connected to pmm-managed. - Connected bool `protobuf:"varint,3,opt,name=connected,proto3" json:"connected,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Connected bool `protobuf:"varint,3,opt,name=connected,proto3" json:"connected,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PMMAgent) Reset() { *m = PMMAgent{} } func (m *PMMAgent) String() string { return proto.CompactTextString(m) } func (*PMMAgent) ProtoMessage() {} func (*PMMAgent) Descriptor() ([]byte, []int) { - return fileDescriptor_agents_7daa4a67b732c89d, []int{0} + return fileDescriptor_agents_0ec89f0a0e3b93bf, []int{0} } func (m *PMMAgent) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PMMAgent.Unmarshal(m, b) @@ -83,6 +85,13 @@ func (m *PMMAgent) GetConnected() bool { return false } +func (m *PMMAgent) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + // NodeExporter runs on Generic on Container Node and exposes its metrics. type NodeExporter struct { // Unique randomly generated instance identifier. @@ -92,17 +101,19 @@ type NodeExporter struct { // Actual Agent process status. Status AgentStatus `protobuf:"varint,4,opt,name=status,proto3,enum=inventory.AgentStatus" json:"status,omitempty"` // Listen port for scraping metrics. - ListenPort uint32 `protobuf:"varint,5,opt,name=listen_port,json=listenPort,proto3" json:"listen_port,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ListenPort uint32 `protobuf:"varint,5,opt,name=listen_port,json=listenPort,proto3" json:"listen_port,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *NodeExporter) Reset() { *m = NodeExporter{} } func (m *NodeExporter) String() string { return proto.CompactTextString(m) } func (*NodeExporter) ProtoMessage() {} func (*NodeExporter) Descriptor() ([]byte, []int) { - return fileDescriptor_agents_7daa4a67b732c89d, []int{1} + return fileDescriptor_agents_0ec89f0a0e3b93bf, []int{1} } func (m *NodeExporter) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_NodeExporter.Unmarshal(m, b) @@ -150,6 +161,13 @@ func (m *NodeExporter) GetListenPort() uint32 { return 0 } +func (m *NodeExporter) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + // MySQLdExporter runs on Generic or Container Node and exposes MySQL and AmazonRDSMySQL Service metrics. type MySQLdExporter struct { // Unique randomly generated instance identifier. @@ -165,17 +183,19 @@ type MySQLdExporter struct { // Actual Agent process status. Status AgentStatus `protobuf:"varint,7,opt,name=status,proto3,enum=inventory.AgentStatus" json:"status,omitempty"` // Listen port for scraping metrics. - ListenPort uint32 `protobuf:"varint,8,opt,name=listen_port,json=listenPort,proto3" json:"listen_port,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ListenPort uint32 `protobuf:"varint,8,opt,name=listen_port,json=listenPort,proto3" json:"listen_port,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *MySQLdExporter) Reset() { *m = MySQLdExporter{} } func (m *MySQLdExporter) String() string { return proto.CompactTextString(m) } func (*MySQLdExporter) ProtoMessage() {} func (*MySQLdExporter) Descriptor() ([]byte, []int) { - return fileDescriptor_agents_7daa4a67b732c89d, []int{2} + return fileDescriptor_agents_0ec89f0a0e3b93bf, []int{2} } func (m *MySQLdExporter) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_MySQLdExporter.Unmarshal(m, b) @@ -244,6 +264,13 @@ func (m *MySQLdExporter) GetListenPort() uint32 { return 0 } +func (m *MySQLdExporter) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + // RDSExporter runs on Generic or Container Node and exposes RemoteAmazonRDS Node and AmazonRDSMySQL Service metrics. type RDSExporter struct { // Unique randomly generated instance identifier. @@ -255,17 +282,19 @@ type RDSExporter struct { // Actual Agent process status. Status AgentStatus `protobuf:"varint,5,opt,name=status,proto3,enum=inventory.AgentStatus" json:"status,omitempty"` // Listen port for scraping metrics. - ListenPort uint32 `protobuf:"varint,6,opt,name=listen_port,json=listenPort,proto3" json:"listen_port,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ListenPort uint32 `protobuf:"varint,6,opt,name=listen_port,json=listenPort,proto3" json:"listen_port,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *RDSExporter) Reset() { *m = RDSExporter{} } func (m *RDSExporter) String() string { return proto.CompactTextString(m) } func (*RDSExporter) ProtoMessage() {} func (*RDSExporter) Descriptor() ([]byte, []int) { - return fileDescriptor_agents_7daa4a67b732c89d, []int{3} + return fileDescriptor_agents_0ec89f0a0e3b93bf, []int{3} } func (m *RDSExporter) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RDSExporter.Unmarshal(m, b) @@ -320,22 +349,31 @@ func (m *RDSExporter) GetListenPort() uint32 { return 0 } +func (m *RDSExporter) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + // ExternalExporter does not run on any Inventory Node. type ExternalExporter struct { // Unique randomly generated instance identifier. AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` // URL for scraping metrics. - MetricsUrl string `protobuf:"bytes,2,opt,name=metrics_url,json=metricsUrl,proto3" json:"metrics_url,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + MetricsUrl string `protobuf:"bytes,2,opt,name=metrics_url,json=metricsUrl,proto3" json:"metrics_url,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ExternalExporter) Reset() { *m = ExternalExporter{} } func (m *ExternalExporter) String() string { return proto.CompactTextString(m) } func (*ExternalExporter) ProtoMessage() {} func (*ExternalExporter) Descriptor() ([]byte, []int) { - return fileDescriptor_agents_7daa4a67b732c89d, []int{4} + return fileDescriptor_agents_0ec89f0a0e3b93bf, []int{4} } func (m *ExternalExporter) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ExternalExporter.Unmarshal(m, b) @@ -369,6 +407,13 @@ func (m *ExternalExporter) GetMetricsUrl() string { return "" } +func (m *ExternalExporter) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + type ListAgentsRequest struct { // Types that are valid to be assigned to Filter: // *ListAgentsRequest_RunsOnNodeId @@ -384,7 +429,7 @@ func (m *ListAgentsRequest) Reset() { *m = ListAgentsRequest{} } func (m *ListAgentsRequest) String() string { return proto.CompactTextString(m) } func (*ListAgentsRequest) ProtoMessage() {} func (*ListAgentsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_agents_7daa4a67b732c89d, []int{5} + return fileDescriptor_agents_0ec89f0a0e3b93bf, []int{5} } func (m *ListAgentsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListAgentsRequest.Unmarshal(m, b) @@ -550,7 +595,7 @@ func (m *ListAgentsResponse) Reset() { *m = ListAgentsResponse{} } func (m *ListAgentsResponse) String() string { return proto.CompactTextString(m) } func (*ListAgentsResponse) ProtoMessage() {} func (*ListAgentsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_agents_7daa4a67b732c89d, []int{6} + return fileDescriptor_agents_0ec89f0a0e3b93bf, []int{6} } func (m *ListAgentsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListAgentsResponse.Unmarshal(m, b) @@ -617,7 +662,7 @@ func (m *GetAgentRequest) Reset() { *m = GetAgentRequest{} } func (m *GetAgentRequest) String() string { return proto.CompactTextString(m) } func (*GetAgentRequest) ProtoMessage() {} func (*GetAgentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_agents_7daa4a67b732c89d, []int{7} + return fileDescriptor_agents_0ec89f0a0e3b93bf, []int{7} } func (m *GetAgentRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetAgentRequest.Unmarshal(m, b) @@ -661,7 +706,7 @@ func (m *GetAgentResponse) Reset() { *m = GetAgentResponse{} } func (m *GetAgentResponse) String() string { return proto.CompactTextString(m) } func (*GetAgentResponse) ProtoMessage() {} func (*GetAgentResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_agents_7daa4a67b732c89d, []int{8} + return fileDescriptor_agents_0ec89f0a0e3b93bf, []int{8} } func (m *GetAgentResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetAgentResponse.Unmarshal(m, b) @@ -890,17 +935,19 @@ func _GetAgentResponse_OneofSizer(msg proto.Message) (n int) { type AddPMMAgentRequest struct { // Node identifier where this instance runs. - NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *AddPMMAgentRequest) Reset() { *m = AddPMMAgentRequest{} } func (m *AddPMMAgentRequest) String() string { return proto.CompactTextString(m) } func (*AddPMMAgentRequest) ProtoMessage() {} func (*AddPMMAgentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_agents_7daa4a67b732c89d, []int{9} + return fileDescriptor_agents_0ec89f0a0e3b93bf, []int{9} } func (m *AddPMMAgentRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddPMMAgentRequest.Unmarshal(m, b) @@ -927,6 +974,13 @@ func (m *AddPMMAgentRequest) GetNodeId() string { return "" } +func (m *AddPMMAgentRequest) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + type AddPMMAgentResponse struct { PmmAgent *PMMAgent `protobuf:"bytes,1,opt,name=pmm_agent,json=pmmAgent,proto3" json:"pmm_agent,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -938,7 +992,7 @@ func (m *AddPMMAgentResponse) Reset() { *m = AddPMMAgentResponse{} } func (m *AddPMMAgentResponse) String() string { return proto.CompactTextString(m) } func (*AddPMMAgentResponse) ProtoMessage() {} func (*AddPMMAgentResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_agents_7daa4a67b732c89d, []int{10} + return fileDescriptor_agents_0ec89f0a0e3b93bf, []int{10} } func (m *AddPMMAgentResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddPMMAgentResponse.Unmarshal(m, b) @@ -967,17 +1021,19 @@ func (m *AddPMMAgentResponse) GetPmmAgent() *PMMAgent { type AddNodeExporterRequest struct { // Node identifier where this instance runs. - NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *AddNodeExporterRequest) Reset() { *m = AddNodeExporterRequest{} } func (m *AddNodeExporterRequest) String() string { return proto.CompactTextString(m) } func (*AddNodeExporterRequest) ProtoMessage() {} func (*AddNodeExporterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_agents_7daa4a67b732c89d, []int{11} + return fileDescriptor_agents_0ec89f0a0e3b93bf, []int{11} } func (m *AddNodeExporterRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddNodeExporterRequest.Unmarshal(m, b) @@ -1004,6 +1060,13 @@ func (m *AddNodeExporterRequest) GetNodeId() string { return "" } +func (m *AddNodeExporterRequest) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + type AddNodeExporterResponse struct { NodeExporter *NodeExporter `protobuf:"bytes,1,opt,name=node_exporter,json=nodeExporter,proto3" json:"node_exporter,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1015,7 +1078,7 @@ func (m *AddNodeExporterResponse) Reset() { *m = AddNodeExporterResponse func (m *AddNodeExporterResponse) String() string { return proto.CompactTextString(m) } func (*AddNodeExporterResponse) ProtoMessage() {} func (*AddNodeExporterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_agents_7daa4a67b732c89d, []int{12} + return fileDescriptor_agents_0ec89f0a0e3b93bf, []int{12} } func (m *AddNodeExporterResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddNodeExporterResponse.Unmarshal(m, b) @@ -1050,17 +1113,19 @@ type AddMySQLdExporterRequest struct { // MySQL username for scraping metrics. Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` // MySQL password for scraping metrics. - Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *AddMySQLdExporterRequest) Reset() { *m = AddMySQLdExporterRequest{} } func (m *AddMySQLdExporterRequest) String() string { return proto.CompactTextString(m) } func (*AddMySQLdExporterRequest) ProtoMessage() {} func (*AddMySQLdExporterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_agents_7daa4a67b732c89d, []int{13} + return fileDescriptor_agents_0ec89f0a0e3b93bf, []int{13} } func (m *AddMySQLdExporterRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddMySQLdExporterRequest.Unmarshal(m, b) @@ -1108,6 +1173,13 @@ func (m *AddMySQLdExporterRequest) GetPassword() string { return "" } +func (m *AddMySQLdExporterRequest) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + type AddMySQLdExporterResponse struct { MysqldExporter *MySQLdExporter `protobuf:"bytes,1,opt,name=mysqld_exporter,json=mysqldExporter,proto3" json:"mysqld_exporter,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1119,7 +1191,7 @@ func (m *AddMySQLdExporterResponse) Reset() { *m = AddMySQLdExporterResp func (m *AddMySQLdExporterResponse) String() string { return proto.CompactTextString(m) } func (*AddMySQLdExporterResponse) ProtoMessage() {} func (*AddMySQLdExporterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_agents_7daa4a67b732c89d, []int{14} + return fileDescriptor_agents_0ec89f0a0e3b93bf, []int{14} } func (m *AddMySQLdExporterResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddMySQLdExporterResponse.Unmarshal(m, b) @@ -1150,17 +1222,19 @@ type AddRDSExporterRequest struct { // Node identifier where this instance runs. RunsOnNodeId string `protobuf:"bytes,2,opt,name=runs_on_node_id,json=runsOnNodeId,proto3" json:"runs_on_node_id,omitempty"` // A list of Service identifiers (Node identifiers are extracted from Services). - ServiceIds []string `protobuf:"bytes,3,rep,name=service_ids,json=serviceIds,proto3" json:"service_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ServiceIds []string `protobuf:"bytes,3,rep,name=service_ids,json=serviceIds,proto3" json:"service_ids,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *AddRDSExporterRequest) Reset() { *m = AddRDSExporterRequest{} } func (m *AddRDSExporterRequest) String() string { return proto.CompactTextString(m) } func (*AddRDSExporterRequest) ProtoMessage() {} func (*AddRDSExporterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_agents_7daa4a67b732c89d, []int{15} + return fileDescriptor_agents_0ec89f0a0e3b93bf, []int{15} } func (m *AddRDSExporterRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddRDSExporterRequest.Unmarshal(m, b) @@ -1194,6 +1268,13 @@ func (m *AddRDSExporterRequest) GetServiceIds() []string { return nil } +func (m *AddRDSExporterRequest) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + type AddRDSExporterResponse struct { RdsExporter *RDSExporter `protobuf:"bytes,1,opt,name=rds_exporter,json=rdsExporter,proto3" json:"rds_exporter,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1205,7 +1286,7 @@ func (m *AddRDSExporterResponse) Reset() { *m = AddRDSExporterResponse{} func (m *AddRDSExporterResponse) String() string { return proto.CompactTextString(m) } func (*AddRDSExporterResponse) ProtoMessage() {} func (*AddRDSExporterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_agents_7daa4a67b732c89d, []int{16} + return fileDescriptor_agents_0ec89f0a0e3b93bf, []int{16} } func (m *AddRDSExporterResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddRDSExporterResponse.Unmarshal(m, b) @@ -1234,17 +1315,19 @@ func (m *AddRDSExporterResponse) GetRdsExporter() *RDSExporter { type AddExternalExporterRequest struct { // URL for scraping metrics. - MetricsUrl string `protobuf:"bytes,2,opt,name=metrics_url,json=metricsUrl,proto3" json:"metrics_url,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + MetricsUrl string `protobuf:"bytes,2,opt,name=metrics_url,json=metricsUrl,proto3" json:"metrics_url,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *AddExternalExporterRequest) Reset() { *m = AddExternalExporterRequest{} } func (m *AddExternalExporterRequest) String() string { return proto.CompactTextString(m) } func (*AddExternalExporterRequest) ProtoMessage() {} func (*AddExternalExporterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_agents_7daa4a67b732c89d, []int{17} + return fileDescriptor_agents_0ec89f0a0e3b93bf, []int{17} } func (m *AddExternalExporterRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddExternalExporterRequest.Unmarshal(m, b) @@ -1271,6 +1354,13 @@ func (m *AddExternalExporterRequest) GetMetricsUrl() string { return "" } +func (m *AddExternalExporterRequest) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + type AddExternalExporterResponse struct { ExternalExporter *ExternalExporter `protobuf:"bytes,1,opt,name=external_exporter,json=externalExporter,proto3" json:"external_exporter,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1282,7 +1372,7 @@ func (m *AddExternalExporterResponse) Reset() { *m = AddExternalExporter func (m *AddExternalExporterResponse) String() string { return proto.CompactTextString(m) } func (*AddExternalExporterResponse) ProtoMessage() {} func (*AddExternalExporterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_agents_7daa4a67b732c89d, []int{18} + return fileDescriptor_agents_0ec89f0a0e3b93bf, []int{18} } func (m *AddExternalExporterResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddExternalExporterResponse.Unmarshal(m, b) @@ -1320,7 +1410,7 @@ func (m *RemoveAgentRequest) Reset() { *m = RemoveAgentRequest{} } func (m *RemoveAgentRequest) String() string { return proto.CompactTextString(m) } func (*RemoveAgentRequest) ProtoMessage() {} func (*RemoveAgentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_agents_7daa4a67b732c89d, []int{19} + return fileDescriptor_agents_0ec89f0a0e3b93bf, []int{19} } func (m *RemoveAgentRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RemoveAgentRequest.Unmarshal(m, b) @@ -1357,7 +1447,7 @@ func (m *RemoveAgentResponse) Reset() { *m = RemoveAgentResponse{} } func (m *RemoveAgentResponse) String() string { return proto.CompactTextString(m) } func (*RemoveAgentResponse) ProtoMessage() {} func (*RemoveAgentResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_agents_7daa4a67b732c89d, []int{20} + return fileDescriptor_agents_0ec89f0a0e3b93bf, []int{20} } func (m *RemoveAgentResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RemoveAgentResponse.Unmarshal(m, b) @@ -1379,23 +1469,33 @@ var xxx_messageInfo_RemoveAgentResponse proto.InternalMessageInfo func init() { proto.RegisterType((*PMMAgent)(nil), "inventory.PMMAgent") + proto.RegisterMapType((map[string]string)(nil), "inventory.PMMAgent.CustomLabelsEntry") proto.RegisterType((*NodeExporter)(nil), "inventory.NodeExporter") + proto.RegisterMapType((map[string]string)(nil), "inventory.NodeExporter.CustomLabelsEntry") proto.RegisterType((*MySQLdExporter)(nil), "inventory.MySQLdExporter") + proto.RegisterMapType((map[string]string)(nil), "inventory.MySQLdExporter.CustomLabelsEntry") proto.RegisterType((*RDSExporter)(nil), "inventory.RDSExporter") + proto.RegisterMapType((map[string]string)(nil), "inventory.RDSExporter.CustomLabelsEntry") proto.RegisterType((*ExternalExporter)(nil), "inventory.ExternalExporter") + proto.RegisterMapType((map[string]string)(nil), "inventory.ExternalExporter.CustomLabelsEntry") proto.RegisterType((*ListAgentsRequest)(nil), "inventory.ListAgentsRequest") proto.RegisterType((*ListAgentsResponse)(nil), "inventory.ListAgentsResponse") proto.RegisterType((*GetAgentRequest)(nil), "inventory.GetAgentRequest") proto.RegisterType((*GetAgentResponse)(nil), "inventory.GetAgentResponse") proto.RegisterType((*AddPMMAgentRequest)(nil), "inventory.AddPMMAgentRequest") + proto.RegisterMapType((map[string]string)(nil), "inventory.AddPMMAgentRequest.CustomLabelsEntry") proto.RegisterType((*AddPMMAgentResponse)(nil), "inventory.AddPMMAgentResponse") proto.RegisterType((*AddNodeExporterRequest)(nil), "inventory.AddNodeExporterRequest") + proto.RegisterMapType((map[string]string)(nil), "inventory.AddNodeExporterRequest.CustomLabelsEntry") proto.RegisterType((*AddNodeExporterResponse)(nil), "inventory.AddNodeExporterResponse") proto.RegisterType((*AddMySQLdExporterRequest)(nil), "inventory.AddMySQLdExporterRequest") + proto.RegisterMapType((map[string]string)(nil), "inventory.AddMySQLdExporterRequest.CustomLabelsEntry") proto.RegisterType((*AddMySQLdExporterResponse)(nil), "inventory.AddMySQLdExporterResponse") proto.RegisterType((*AddRDSExporterRequest)(nil), "inventory.AddRDSExporterRequest") + proto.RegisterMapType((map[string]string)(nil), "inventory.AddRDSExporterRequest.CustomLabelsEntry") proto.RegisterType((*AddRDSExporterResponse)(nil), "inventory.AddRDSExporterResponse") proto.RegisterType((*AddExternalExporterRequest)(nil), "inventory.AddExternalExporterRequest") + proto.RegisterMapType((map[string]string)(nil), "inventory.AddExternalExporterRequest.CustomLabelsEntry") proto.RegisterType((*AddExternalExporterResponse)(nil), "inventory.AddExternalExporterResponse") proto.RegisterType((*RemoveAgentRequest)(nil), "inventory.RemoveAgentRequest") proto.RegisterType((*RemoveAgentResponse)(nil), "inventory.RemoveAgentResponse") @@ -1720,81 +1820,91 @@ var _Agents_serviceDesc = grpc.ServiceDesc{ Metadata: "inventory/agents.proto", } -func init() { proto.RegisterFile("inventory/agents.proto", fileDescriptor_agents_7daa4a67b732c89d) } - -var fileDescriptor_agents_7daa4a67b732c89d = []byte{ - // 1156 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x4f, 0x6f, 0x1b, 0x45, - 0x14, 0xf7, 0xd8, 0x8d, 0x63, 0x3f, 0xa7, 0xf9, 0xb3, 0x51, 0x13, 0x67, 0x93, 0xd4, 0xce, 0xe4, - 0x0f, 0xa6, 0x55, 0x6c, 0x9a, 0x22, 0x10, 0x2d, 0x02, 0x39, 0x6a, 0x15, 0xa7, 0x34, 0xa1, 0x6c, - 0x84, 0x40, 0x08, 0xc9, 0x72, 0x33, 0x83, 0xbb, 0xc2, 0xbb, 0xe3, 0xee, 0xac, 0x93, 0xe6, 0x5a, - 0x89, 0x03, 0x47, 0xd4, 0x0b, 0x7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x65, - 0xca, 0xbb, 0x22, 0xe5, 0x36, 0xae, 0xa6, 0xa6, 0x54, 0x22, 0x82, 0xd4, 0x3f, 0x22, 0x98, 0x8b, - 0xc9, 0x93, 0xb1, 0xa1, 0x27, 0x48, 0xd1, 0x3e, 0x13, 0x8f, 0x73, 0x91, 0x38, 0x1a, 0x02, 0xc7, - 0xbb, 0x78, 0x6b, 0x14, 0x0e, 0x35, 0x2a, 0xc0, 0xf2, 0x13, 0x82, 0x85, 0x84, 0x30, 0x18, 0x9b, - 0x7a, 0xaa, 0x54, 0xb9, 0x33, 0xb7, 0xc6, 0x3b, 0x49, 0x44, 0xf7, 0x04, 0xa2, 0xbb, 0x78, 0x67, - 0x14, 0x22, 0x3d, 0x2e, 0xc0, 0xf4, 0x03, 0x82, 0x59, 0x7d, 0xb8, 0x8d, 0xaa, 0x9e, 0x2b, 0x29, - 0x33, 0xe6, 0xc6, 0x18, 0x0f, 0x09, 0xa5, 0x2e, 0xa0, 0xd4, 0xf0, 0xe6, 0x28, 0x28, 0x4a, 0x50, - 0x80, 0xe3, 0x17, 0x24, 0x16, 0x5a, 0xe2, 0x9f, 0xd9, 0x6d, 0x3d, 0xd5, 0x08, 0xbd, 0x30, 0x77, - 0x26, 0xb9, 0x49, 0x58, 0xf7, 0x05, 0xac, 0x5d, 0x5c, 0x1b, 0x05, 0x2b, 0x1e, 0x19, 0x60, 0xf3, - 0xa1, 0xa4, 0xcc, 0xae, 0xd6, 0xbe, 0x49, 0x31, 0xd0, 0xda, 0x37, 0x65, 0xe4, 0xf1, 0x8e, 0x80, - 0x50, 0xc5, 0xab, 0xa9, 0x10, 0xc2, 0x88, 0x07, 0xe8, 0xce, 0x7e, 0xe9, 0x9b, 0xe1, 0x0f, 0xe2, - 0xe7, 0x79, 0xf1, 0x1b, 0xf5, 0xfe, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x80, 0xda, 0x36, 0xe0, - 0x3c, 0x0f, 0x00, 0x00, +func init() { proto.RegisterFile("inventory/agents.proto", fileDescriptor_agents_0ec89f0a0e3b93bf) } + +var fileDescriptor_agents_0ec89f0a0e3b93bf = []byte{ + // 1325 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcd, 0x6f, 0xe3, 0x44, + 0x14, 0xcf, 0x38, 0xdb, 0x34, 0x79, 0xe9, 0xe7, 0x94, 0x6d, 0x53, 0xb7, 0xdd, 0xa4, 0xee, 0x07, + 0xd9, 0xad, 0x9a, 0xb0, 0x2d, 0xb0, 0x50, 0x10, 0x28, 0x65, 0xab, 0xa6, 0x55, 0x5b, 0x8a, 0x0b, + 0xda, 0xd5, 0x0a, 0x29, 0x4a, 0xe3, 0x21, 0x6b, 0x6d, 0x62, 0x67, 0x6d, 0x27, 0xdd, 0x5c, 0x57, + 0x42, 0x88, 0x03, 0x07, 0xc4, 0x05, 0xee, 0xfc, 0x3b, 0x1c, 0x60, 0x6f, 0x1c, 0x40, 0x02, 0x2e, + 0xf0, 0x57, 0x20, 0x8f, 0x5d, 0x67, 0x6c, 0x8f, 0x93, 0x50, 0xd1, 0xde, 0xea, 0x99, 0xf7, 0xf1, + 0x9b, 0xdf, 0x6f, 0xde, 0x9b, 0xd7, 0xc0, 0xac, 0xaa, 0x75, 0x88, 0x66, 0xe9, 0x46, 0xb7, 0x58, + 0xad, 0x13, 0xcd, 0x32, 0x0b, 0x2d, 0x43, 0xb7, 0x74, 0x9c, 0xf2, 0xd6, 0xc5, 0xb7, 0xeb, 0xaa, + 0xf5, 0xb4, 0x7d, 0x5e, 0xa8, 0xe9, 0xcd, 0x62, 0xf3, 0x42, 0xb5, 0x9e, 0xe9, 0x17, 0xc5, 0xba, + 0xbe, 0x49, 0xed, 0x36, 0x3b, 0xd5, 0x86, 0xaa, 0x54, 0x2d, 0xdd, 0x30, 0x8b, 0xde, 0x9f, 0x4e, + 0x08, 0x71, 0xb1, 0xae, 0xeb, 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61, 0x6d, 0x53, 0x58, + 0x9b, 0x52, 0x3e, 0x0a, 0x56, 0xd0, 0xd3, 0xc6, 0x66, 0x41, 0x9a, 0xa9, 0x5d, 0xdf, 0xf5, 0x0d, + 0x37, 0x03, 0xdf, 0xf5, 0xe5, 0x94, 0xbc, 0xb4, 0x4e, 0x21, 0xe4, 0xa4, 0x05, 0x2e, 0x04, 0xc7, + 0x63, 0x07, 0xdd, 0xdb, 0x4d, 0x3f, 0xe9, 0xfd, 0xe8, 0x79, 0x9e, 0xa0, 0xbf, 0x43, 0x6e, 0xff, + 0x1b, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x33, 0x61, 0x3a, 0x20, 0x15, 0x00, 0x00, } diff --git a/vendor/github.com/percona/pmm/api/inventory/agents.proto b/vendor/github.com/percona/pmm/api/inventory/agents.proto index 0d912a1153..0d5e6e589d 100644 --- a/vendor/github.com/percona/pmm/api/inventory/agents.proto +++ b/vendor/github.com/percona/pmm/api/inventory/agents.proto @@ -20,6 +20,8 @@ message PMMAgent { // True if Agent is running and connected to pmm-managed. bool connected = 3; + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } // NodeExporter runs on Generic on Container Node and exposes its metrics. @@ -40,6 +42,8 @@ message NodeExporter { AgentStatus status = 4; // Listen port for scraping metrics. uint32 listen_port = 5; + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } // MySQLdExporter runs on Generic or Container Node and exposes MySQL and AmazonRDSMySQL Service metrics. @@ -66,6 +70,8 @@ message MySQLdExporter { AgentStatus status = 7; // Listen port for scraping metrics. uint32 listen_port = 8; + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } // RDSExporter runs on Generic or Container Node and exposes RemoteAmazonRDS Node and AmazonRDSMySQL Service metrics. @@ -90,6 +96,8 @@ message RDSExporter { AgentStatus status = 5; // Listen port for scraping metrics. uint32 listen_port = 6; + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } // ExternalExporter does not run on any Inventory Node. @@ -106,6 +114,8 @@ message ExternalExporter { // TODO https://jira.percona.com/browse/PMM-3470 // bool enabled = 3; + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } // List @@ -161,6 +171,8 @@ message AddPMMAgentRequest { string_not_empty: true } ]; + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } message AddPMMAgentResponse { @@ -180,6 +192,8 @@ message AddNodeExporterRequest { string_not_empty: true } ]; + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } message AddNodeExporterResponse { @@ -213,6 +227,8 @@ message AddMySQLdExporterRequest { ]; // MySQL password for scraping metrics. string password = 5; + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } message AddMySQLdExporterResponse { @@ -234,8 +250,12 @@ message AddRDSExporterRequest { ]; // A list of Service identifiers (Node identifiers are extracted from Services). repeated string service_ids = 3; + // // TODO AWS credentials + // + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } message AddRDSExporterResponse { @@ -255,6 +275,8 @@ message AddExternalExporterRequest { string_not_empty: true } ]; + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } message AddExternalExporterResponse { diff --git a/vendor/github.com/percona/pmm/api/inventory/agents.validator.pb.go b/vendor/github.com/percona/pmm/api/inventory/agents.validator.pb.go index dac709bda9..ae87d611f2 100644 --- a/vendor/github.com/percona/pmm/api/inventory/agents.validator.pb.go +++ b/vendor/github.com/percona/pmm/api/inventory/agents.validator.pb.go @@ -16,18 +16,23 @@ var _ = fmt.Errorf var _ = math.Inf func (this *PMMAgent) Validate() error { + // Validation of proto3 map<> fields is unsupported. return nil } func (this *NodeExporter) Validate() error { + // Validation of proto3 map<> fields is unsupported. return nil } func (this *MySQLdExporter) Validate() error { + // Validation of proto3 map<> fields is unsupported. return nil } func (this *RDSExporter) Validate() error { + // Validation of proto3 map<> fields is unsupported. return nil } func (this *ExternalExporter) Validate() error { + // Validation of proto3 map<> fields is unsupported. return nil } func (this *ListAgentsRequest) Validate() error { @@ -119,6 +124,7 @@ func (this *AddPMMAgentRequest) Validate() error { if this.NodeId == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeId", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeId)) } + // Validation of proto3 map<> fields is unsupported. return nil } func (this *AddPMMAgentResponse) Validate() error { @@ -133,6 +139,7 @@ func (this *AddNodeExporterRequest) Validate() error { if this.NodeId == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeId", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeId)) } + // Validation of proto3 map<> fields is unsupported. return nil } func (this *AddNodeExporterResponse) Validate() error { @@ -153,6 +160,7 @@ func (this *AddMySQLdExporterRequest) Validate() error { if this.Username == "" { return github_com_mwitkow_go_proto_validators.FieldError("Username", fmt.Errorf(`value '%v' must not be an empty string`, this.Username)) } + // Validation of proto3 map<> fields is unsupported. return nil } func (this *AddMySQLdExporterResponse) Validate() error { @@ -167,6 +175,7 @@ func (this *AddRDSExporterRequest) Validate() error { if this.RunsOnNodeId == "" { return github_com_mwitkow_go_proto_validators.FieldError("RunsOnNodeId", fmt.Errorf(`value '%v' must not be an empty string`, this.RunsOnNodeId)) } + // Validation of proto3 map<> fields is unsupported. return nil } func (this *AddRDSExporterResponse) Validate() error { @@ -181,6 +190,7 @@ func (this *AddExternalExporterRequest) Validate() error { if this.MetricsUrl == "" { return github_com_mwitkow_go_proto_validators.FieldError("MetricsUrl", fmt.Errorf(`value '%v' must not be an empty string`, this.MetricsUrl)) } + // Validation of proto3 map<> fields is unsupported. return nil } func (this *AddExternalExporterResponse) Validate() error { diff --git a/vendor/github.com/percona/pmm/api/inventory/json/client/agents/add_external_exporter_responses.go b/vendor/github.com/percona/pmm/api/inventory/json/client/agents/add_external_exporter_responses.go index 370bd83bbd..23da9249af 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/client/agents/add_external_exporter_responses.go +++ b/vendor/github.com/percona/pmm/api/inventory/json/client/agents/add_external_exporter_responses.go @@ -71,6 +71,9 @@ swagger:model AddExternalExporterBody */ type AddExternalExporterBody struct { + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // URL for scraping metrics. MetricsURL string `json:"metrics_url,omitempty"` } @@ -165,6 +168,9 @@ type AddExternalExporterOKBodyExternalExporter struct { // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // URL for scraping metrics. MetricsURL string `json:"metrics_url,omitempty"` } diff --git a/vendor/github.com/percona/pmm/api/inventory/json/client/agents/add_my_sqld_exporter_responses.go b/vendor/github.com/percona/pmm/api/inventory/json/client/agents/add_my_sqld_exporter_responses.go index c3aea3dd56..36092c6441 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/client/agents/add_my_sqld_exporter_responses.go +++ b/vendor/github.com/percona/pmm/api/inventory/json/client/agents/add_my_sqld_exporter_responses.go @@ -73,6 +73,9 @@ swagger:model AddMySqldExporterBody */ type AddMySqldExporterBody struct { + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // MySQL password for scraping metrics. Password string `json:"password,omitempty"` @@ -176,6 +179,9 @@ type AddMySqldExporterOKBodyMysqldExporter struct { // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Listen port for scraping metrics. ListenPort int64 `json:"listen_port,omitempty"` diff --git a/vendor/github.com/percona/pmm/api/inventory/json/client/agents/add_node_exporter_responses.go b/vendor/github.com/percona/pmm/api/inventory/json/client/agents/add_node_exporter_responses.go index eea85cc00a..92e50896b0 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/client/agents/add_node_exporter_responses.go +++ b/vendor/github.com/percona/pmm/api/inventory/json/client/agents/add_node_exporter_responses.go @@ -73,6 +73,9 @@ swagger:model AddNodeExporterBody */ type AddNodeExporterBody struct { + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Node identifier where this instance runs. NodeID string `json:"node_id,omitempty"` } @@ -167,6 +170,9 @@ type AddNodeExporterOKBodyNodeExporter struct { // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Listen port for scraping metrics. ListenPort int64 `json:"listen_port,omitempty"` diff --git a/vendor/github.com/percona/pmm/api/inventory/json/client/agents/add_pmm_agent_responses.go b/vendor/github.com/percona/pmm/api/inventory/json/client/agents/add_pmm_agent_responses.go index 2b1d5f1ac8..619f999181 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/client/agents/add_pmm_agent_responses.go +++ b/vendor/github.com/percona/pmm/api/inventory/json/client/agents/add_pmm_agent_responses.go @@ -71,6 +71,9 @@ swagger:model AddPMMAgentBody */ type AddPMMAgentBody struct { + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Node identifier where this instance runs. NodeID string `json:"node_id,omitempty"` } @@ -168,6 +171,9 @@ type AddPMMAgentOKBodyPMMAgent struct { // True if Agent is running and connected to pmm-managed. Connected bool `json:"connected,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Node identifier where this instance runs. NodeID string `json:"node_id,omitempty"` } diff --git a/vendor/github.com/percona/pmm/api/inventory/json/client/agents/add_rds_exporter_responses.go b/vendor/github.com/percona/pmm/api/inventory/json/client/agents/add_rds_exporter_responses.go index 53cbde7d22..296086bf73 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/client/agents/add_rds_exporter_responses.go +++ b/vendor/github.com/percona/pmm/api/inventory/json/client/agents/add_rds_exporter_responses.go @@ -73,6 +73,9 @@ swagger:model AddRDSExporterBody */ type AddRDSExporterBody struct { + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Node identifier where this instance runs. RunsOnNodeID string `json:"runs_on_node_id,omitempty"` @@ -170,6 +173,9 @@ type AddRDSExporterOKBodyRDSExporter struct { // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Listen port for scraping metrics. ListenPort int64 `json:"listen_port,omitempty"` diff --git a/vendor/github.com/percona/pmm/api/inventory/json/client/agents/get_agent_responses.go b/vendor/github.com/percona/pmm/api/inventory/json/client/agents/get_agent_responses.go index 2f58c30fff..80b4e128c9 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/client/agents/get_agent_responses.go +++ b/vendor/github.com/percona/pmm/api/inventory/json/client/agents/get_agent_responses.go @@ -267,6 +267,9 @@ type GetAgentOKBodyExternalExporter struct { // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // URL for scraping metrics. MetricsURL string `json:"metrics_url,omitempty"` } @@ -302,6 +305,9 @@ type GetAgentOKBodyMysqldExporter struct { // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Listen port for scraping metrics. ListenPort int64 `json:"listen_port,omitempty"` @@ -417,6 +423,9 @@ type GetAgentOKBodyNodeExporter struct { // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Listen port for scraping metrics. ListenPort int64 `json:"listen_port,omitempty"` @@ -526,6 +535,9 @@ type GetAgentOKBodyPMMAgent struct { // True if Agent is running and connected to pmm-managed. Connected bool `json:"connected,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Node identifier where this instance runs. NodeID string `json:"node_id,omitempty"` } @@ -561,6 +573,9 @@ type GetAgentOKBodyRDSExporter struct { // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Listen port for scraping metrics. ListenPort int64 `json:"listen_port,omitempty"` diff --git a/vendor/github.com/percona/pmm/api/inventory/json/client/agents/list_agents_responses.go b/vendor/github.com/percona/pmm/api/inventory/json/client/agents/list_agents_responses.go index c4dee2d5f5..7d017fcc10 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/client/agents/list_agents_responses.go +++ b/vendor/github.com/percona/pmm/api/inventory/json/client/agents/list_agents_responses.go @@ -77,6 +77,9 @@ type ExternalExporterItems0 struct { // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // URL for scraping metrics. MetricsURL string `json:"metrics_url,omitempty"` } @@ -344,6 +347,9 @@ type MysqldExporterItems0 struct { // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Listen port for scraping metrics. ListenPort int64 `json:"listen_port,omitempty"` @@ -459,6 +465,9 @@ type NodeExporterItems0 struct { // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Listen port for scraping metrics. ListenPort int64 `json:"listen_port,omitempty"` @@ -568,6 +577,9 @@ type PMMAgentItems0 struct { // True if Agent is running and connected to pmm-managed. Connected bool `json:"connected,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Node identifier where this instance runs. NodeID string `json:"node_id,omitempty"` } @@ -603,6 +615,9 @@ type RDSExporterItems0 struct { // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Listen port for scraping metrics. ListenPort int64 `json:"listen_port,omitempty"` diff --git a/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/add_container_node_responses.go b/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/add_container_node_responses.go index 46cb3730f3..ca6cb03dac 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/add_container_node_responses.go +++ b/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/add_container_node_responses.go @@ -71,6 +71,9 @@ swagger:model AddContainerNodeBody */ type AddContainerNodeBody struct { + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Docker container identifier. If specified, must be a unique Docker container identifier. DockerContainerID string `json:"docker_container_id,omitempty"` @@ -171,6 +174,9 @@ swagger:model AddContainerNodeOKBodyContainer */ type AddContainerNodeOKBodyContainer struct { + // Custom user-assigned labels. Keys must start with "_". Can be changed. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Docker container identifier. If specified, must be a unique Docker container identifier. Can't be changed. DockerContainerID string `json:"docker_container_id,omitempty"` diff --git a/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/add_generic_node_responses.go b/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/add_generic_node_responses.go index 070a9dac93..8af2a45e85 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/add_generic_node_responses.go +++ b/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/add_generic_node_responses.go @@ -71,6 +71,9 @@ swagger:model AddGenericNodeBody */ type AddGenericNodeBody struct { + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Linux distribution (if any). Distro string `json:"distro,omitempty"` @@ -171,6 +174,9 @@ swagger:model AddGenericNodeOKBodyGeneric */ type AddGenericNodeOKBodyGeneric struct { + // Custom user-assigned labels. Keys must start with "_". Can be changed. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Linux distribution (if any). Can be changed. Distro string `json:"distro,omitempty"` diff --git a/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/add_remote_amazon_rds_node_responses.go b/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/add_remote_amazon_rds_node_responses.go index fc8327ea0a..507cb6261a 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/add_remote_amazon_rds_node_responses.go +++ b/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/add_remote_amazon_rds_node_responses.go @@ -71,6 +71,9 @@ swagger:model AddRemoteAmazonRDSNodeBody */ type AddRemoteAmazonRDSNodeBody struct { + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // DB instance identifier. Unique across all RemoteAmazonRDS Nodes in combination with region. Instance string `json:"instance,omitempty"` @@ -168,6 +171,9 @@ swagger:model AddRemoteAmazonRDSNodeOKBodyRemoteAmazonRDS */ type AddRemoteAmazonRDSNodeOKBodyRemoteAmazonRDS struct { + // Custom user-assigned labels. Keys must start with "_". Can be changed. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // DB instance identifier. Unique across all RemoteAmazonRDS Nodes in combination with region. Can be changed. Instance string `json:"instance,omitempty"` diff --git a/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/add_remote_node_responses.go b/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/add_remote_node_responses.go index fd48892ae9..2e67ac9564 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/add_remote_node_responses.go +++ b/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/add_remote_node_responses.go @@ -71,6 +71,9 @@ swagger:model AddRemoteNodeBody */ type AddRemoteNodeBody struct { + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` } @@ -162,6 +165,9 @@ swagger:model AddRemoteNodeOKBodyRemote */ type AddRemoteNodeOKBodyRemote struct { + // Custom user-assigned labels. Keys must start with "_". Can be changed. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Unique randomly generated instance identifier, can't be changed. NodeID string `json:"node_id,omitempty"` diff --git a/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/change_container_node_responses.go b/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/change_container_node_responses.go index c789bee9e6..142ac8feec 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/change_container_node_responses.go +++ b/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/change_container_node_responses.go @@ -71,6 +71,9 @@ swagger:model ChangeContainerNodeBody */ type ChangeContainerNodeBody struct { + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Container name. DockerContainerName string `json:"docker_container_name,omitempty"` @@ -168,6 +171,9 @@ swagger:model ChangeContainerNodeOKBodyContainer */ type ChangeContainerNodeOKBodyContainer struct { + // Custom user-assigned labels. Keys must start with "_". Can be changed. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Docker container identifier. If specified, must be a unique Docker container identifier. Can't be changed. DockerContainerID string `json:"docker_container_id,omitempty"` diff --git a/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/change_generic_node_responses.go b/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/change_generic_node_responses.go index af73ed03c1..05eafd6077 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/change_generic_node_responses.go +++ b/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/change_generic_node_responses.go @@ -71,6 +71,9 @@ swagger:model ChangeGenericNodeBody */ type ChangeGenericNodeBody struct { + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Linux distribution (if any). Distro string `json:"distro,omitempty"` @@ -171,6 +174,9 @@ swagger:model ChangeGenericNodeOKBodyGeneric */ type ChangeGenericNodeOKBodyGeneric struct { + // Custom user-assigned labels. Keys must start with "_". Can be changed. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Linux distribution (if any). Can be changed. Distro string `json:"distro,omitempty"` diff --git a/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/change_remote_amazon_rds_node_responses.go b/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/change_remote_amazon_rds_node_responses.go index 2e68226346..f80034c9f1 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/change_remote_amazon_rds_node_responses.go +++ b/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/change_remote_amazon_rds_node_responses.go @@ -71,6 +71,9 @@ swagger:model ChangeRemoteAmazonRDSNodeBody */ type ChangeRemoteAmazonRDSNodeBody struct { + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // DB instance identifier. Unique across all RemoteAmazonRDS Nodes in combination with region. Instance string `json:"instance,omitempty"` @@ -168,6 +171,9 @@ swagger:model ChangeRemoteAmazonRDSNodeOKBodyRemoteAmazonRDS */ type ChangeRemoteAmazonRDSNodeOKBodyRemoteAmazonRDS struct { + // Custom user-assigned labels. Keys must start with "_". Can be changed. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // DB instance identifier. Unique across all RemoteAmazonRDS Nodes in combination with region. Can be changed. Instance string `json:"instance,omitempty"` diff --git a/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/change_remote_node_responses.go b/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/change_remote_node_responses.go index cf287c409e..9c0190fc1f 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/change_remote_node_responses.go +++ b/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/change_remote_node_responses.go @@ -71,6 +71,9 @@ swagger:model ChangeRemoteNodeBody */ type ChangeRemoteNodeBody struct { + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -165,6 +168,9 @@ swagger:model ChangeRemoteNodeOKBodyRemote */ type ChangeRemoteNodeOKBodyRemote struct { + // Custom user-assigned labels. Keys must start with "_". Can be changed. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Unique randomly generated instance identifier, can't be changed. NodeID string `json:"node_id,omitempty"` diff --git a/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/get_node_responses.go b/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/get_node_responses.go index b552ef6c40..57463e89d6 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/get_node_responses.go +++ b/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/get_node_responses.go @@ -237,6 +237,9 @@ swagger:model GetNodeOKBodyContainer */ type GetNodeOKBodyContainer struct { + // Custom user-assigned labels. Keys must start with "_". Can be changed. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Docker container identifier. If specified, must be a unique Docker container identifier. Can't be changed. DockerContainerID string `json:"docker_container_id,omitempty"` @@ -281,6 +284,9 @@ swagger:model GetNodeOKBodyGeneric */ type GetNodeOKBodyGeneric struct { + // Custom user-assigned labels. Keys must start with "_". Can be changed. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Linux distribution (if any). Can be changed. Distro string `json:"distro,omitempty"` @@ -325,6 +331,9 @@ swagger:model GetNodeOKBodyRemote */ type GetNodeOKBodyRemote struct { + // Custom user-assigned labels. Keys must start with "_". Can be changed. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Unique randomly generated instance identifier, can't be changed. NodeID string `json:"node_id,omitempty"` @@ -360,6 +369,9 @@ swagger:model GetNodeOKBodyRemoteAmazonRDS */ type GetNodeOKBodyRemoteAmazonRDS struct { + // Custom user-assigned labels. Keys must start with "_". Can be changed. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // DB instance identifier. Unique across all RemoteAmazonRDS Nodes in combination with region. Can be changed. Instance string `json:"instance,omitempty"` diff --git a/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/list_nodes_responses.go b/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/list_nodes_responses.go index f6c82486db..b11b6dcef9 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/list_nodes_responses.go +++ b/vendor/github.com/percona/pmm/api/inventory/json/client/nodes/list_nodes_responses.go @@ -72,6 +72,9 @@ swagger:model ContainerItems0 */ type ContainerItems0 struct { + // Custom user-assigned labels. Keys must start with "_". Can be changed. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Docker container identifier. If specified, must be a unique Docker container identifier. Can't be changed. DockerContainerID string `json:"docker_container_id,omitempty"` @@ -116,6 +119,9 @@ swagger:model GenericItems0 */ type GenericItems0 struct { + // Custom user-assigned labels. Keys must start with "_". Can be changed. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Linux distribution (if any). Can be changed. Distro string `json:"distro,omitempty"` @@ -322,6 +328,9 @@ swagger:model RemoteAmazonRDSItems0 */ type RemoteAmazonRDSItems0 struct { + // Custom user-assigned labels. Keys must start with "_". Can be changed. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // DB instance identifier. Unique across all RemoteAmazonRDS Nodes in combination with region. Can be changed. Instance string `json:"instance,omitempty"` @@ -363,6 +372,9 @@ swagger:model RemoteItems0 */ type RemoteItems0 struct { + // Custom user-assigned labels. Keys must start with "_". Can be changed. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Unique randomly generated instance identifier, can't be changed. NodeID string `json:"node_id,omitempty"` diff --git a/vendor/github.com/percona/pmm/api/inventory/json/client/services/add_amazon_rds_my_sql_service_responses.go b/vendor/github.com/percona/pmm/api/inventory/json/client/services/add_amazon_rds_my_sql_service_responses.go index 6199fdbec5..6a4d20c750 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/client/services/add_amazon_rds_my_sql_service_responses.go +++ b/vendor/github.com/percona/pmm/api/inventory/json/client/services/add_amazon_rds_my_sql_service_responses.go @@ -74,6 +74,9 @@ type AddAmazonRDSMySQLServiceBody struct { // Instance endpoint (full DNS name). Address string `json:"address,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Node identifier where this instance runs. NodeID string `json:"node_id,omitempty"` @@ -174,6 +177,9 @@ type AddAmazonRDSMySQLServiceOKBodyAmazonRDSMysql struct { // Instance endpoint (full DNS name). Address string `json:"address,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Node identifier where this instance runs. NodeID string `json:"node_id,omitempty"` diff --git a/vendor/github.com/percona/pmm/api/inventory/json/client/services/add_my_sql_service_responses.go b/vendor/github.com/percona/pmm/api/inventory/json/client/services/add_my_sql_service_responses.go index be9f9cd57f..efeb166cb8 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/client/services/add_my_sql_service_responses.go +++ b/vendor/github.com/percona/pmm/api/inventory/json/client/services/add_my_sql_service_responses.go @@ -74,6 +74,9 @@ type AddMySQLServiceBody struct { // Access address (DNS name or IP). Required if unix_socket is absent. Address string `json:"address,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Node identifier where this instance runs. NodeID string `json:"node_id,omitempty"` @@ -177,6 +180,9 @@ type AddMySQLServiceOKBodyMysql struct { // Access address (DNS name or IP). Required if unix_socket is absent. Address string `json:"address,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Node identifier where this instance runs. NodeID string `json:"node_id,omitempty"` diff --git a/vendor/github.com/percona/pmm/api/inventory/json/client/services/change_amazon_rds_my_sql_service_responses.go b/vendor/github.com/percona/pmm/api/inventory/json/client/services/change_amazon_rds_my_sql_service_responses.go index 501e5afbd9..d213ccd781 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/client/services/change_amazon_rds_my_sql_service_responses.go +++ b/vendor/github.com/percona/pmm/api/inventory/json/client/services/change_amazon_rds_my_sql_service_responses.go @@ -74,6 +74,9 @@ type ChangeAmazonRDSMySQLServiceBody struct { // Instance endpoint (full DNS name). Address string `json:"address,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Instance port. Port int64 `json:"port,omitempty"` @@ -174,6 +177,9 @@ type ChangeAmazonRDSMySQLServiceOKBodyAmazonRDSMysql struct { // Instance endpoint (full DNS name). Address string `json:"address,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Node identifier where this instance runs. NodeID string `json:"node_id,omitempty"` diff --git a/vendor/github.com/percona/pmm/api/inventory/json/client/services/change_my_sql_service_responses.go b/vendor/github.com/percona/pmm/api/inventory/json/client/services/change_my_sql_service_responses.go index 04a60552d1..98f3f925ef 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/client/services/change_my_sql_service_responses.go +++ b/vendor/github.com/percona/pmm/api/inventory/json/client/services/change_my_sql_service_responses.go @@ -74,6 +74,9 @@ type ChangeMySQLServiceBody struct { // Access address (DNS name or IP). Required if unix_socket is absent. Address string `json:"address,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Node identifier where this instance runs. NodeID string `json:"node_id,omitempty"` @@ -180,6 +183,9 @@ type ChangeMySQLServiceOKBodyMysql struct { // Access address (DNS name or IP). Required if unix_socket is absent. Address string `json:"address,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Node identifier where this instance runs. NodeID string `json:"node_id,omitempty"` diff --git a/vendor/github.com/percona/pmm/api/inventory/json/client/services/get_service_responses.go b/vendor/github.com/percona/pmm/api/inventory/json/client/services/get_service_responses.go index d0a4e19cb7..a727d624ee 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/client/services/get_service_responses.go +++ b/vendor/github.com/percona/pmm/api/inventory/json/client/services/get_service_responses.go @@ -190,6 +190,9 @@ type GetServiceOKBodyAmazonRDSMysql struct { // Instance endpoint (full DNS name). Address string `json:"address,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Node identifier where this instance runs. NodeID string `json:"node_id,omitempty"` @@ -234,6 +237,9 @@ type GetServiceOKBodyMysql struct { // Access address (DNS name or IP). Required if unix_socket is absent. Address string `json:"address,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Node identifier where this instance runs. NodeID string `json:"node_id,omitempty"` diff --git a/vendor/github.com/percona/pmm/api/inventory/json/client/services/list_services_responses.go b/vendor/github.com/percona/pmm/api/inventory/json/client/services/list_services_responses.go index 6a9f3257bd..ba47514171 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/client/services/list_services_responses.go +++ b/vendor/github.com/percona/pmm/api/inventory/json/client/services/list_services_responses.go @@ -75,6 +75,9 @@ type AmazonRDSMysqlItems0 struct { // Instance endpoint (full DNS name). Address string `json:"address,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Node identifier where this instance runs. NodeID string `json:"node_id,omitempty"` @@ -249,6 +252,9 @@ type MysqlItems0 struct { // Access address (DNS name or IP). Required if unix_socket is absent. Address string `json:"address,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `json:"custom_labels,omitempty"` + // Node identifier where this instance runs. NodeID string `json:"node_id,omitempty"` diff --git a/vendor/github.com/percona/pmm/api/inventory/json/inventory.json b/vendor/github.com/percona/pmm/api/inventory/json/inventory.json index b36b5b3868..ae2f31199c 100644 --- a/vendor/github.com/percona/pmm/api/inventory/json/inventory.json +++ b/vendor/github.com/percona/pmm/api/inventory/json/inventory.json @@ -30,6 +30,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "metrics_url": { "description": "URL for scraping metrics.", "type": "string" @@ -52,6 +59,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "metrics_url": { "description": "URL for scraping metrics.", "type": "string" @@ -79,6 +93,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "password": { "description": "MySQL password for scraping metrics.", "type": "string" @@ -113,6 +134,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "listen_port": { "description": "Listen port for scraping metrics.", "type": "integer", @@ -170,6 +198,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -192,6 +227,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "listen_port": { "description": "Listen port for scraping metrics.", "type": "integer", @@ -237,6 +279,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -264,6 +313,13 @@ "type": "boolean", "format": "boolean" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -291,6 +347,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "runs_on_node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -320,6 +383,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "listen_port": { "description": "Listen port for scraping metrics.", "type": "integer", @@ -394,6 +464,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "metrics_url": { "description": "URL for scraping metrics.", "type": "string" @@ -408,6 +485,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "listen_port": { "description": "Listen port for scraping metrics.", "type": "integer", @@ -452,6 +536,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "listen_port": { "description": "Listen port for scraping metrics.", "type": "integer", @@ -489,6 +580,13 @@ "type": "boolean", "format": "boolean" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -503,6 +601,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "listen_port": { "description": "Listen port for scraping metrics.", "type": "integer", @@ -587,6 +692,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "metrics_url": { "description": "URL for scraping metrics.", "type": "string" @@ -604,6 +716,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "listen_port": { "description": "Listen port for scraping metrics.", "type": "integer", @@ -651,6 +770,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "listen_port": { "description": "Listen port for scraping metrics.", "type": "integer", @@ -691,6 +817,13 @@ "type": "boolean", "format": "boolean" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -708,6 +841,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "listen_port": { "description": "Listen port for scraping metrics.", "type": "integer", @@ -793,6 +933,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "docker_container_id": { "description": "Docker container identifier. If specified, must be a unique Docker container identifier.", "type": "string" @@ -823,6 +970,13 @@ "description": "ContainerNode represents a Docker container.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "docker_container_id": { "description": "Docker container identifier. If specified, must be a unique Docker container identifier. Can't be changed.", "type": "string" @@ -866,6 +1020,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "distro": { "description": "Linux distribution (if any).", "type": "string" @@ -896,6 +1057,13 @@ "description": "GenericNode represents a bare metal server or virtual machine.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "distro": { "description": "Linux distribution (if any). Can be changed.", "type": "string" @@ -939,6 +1107,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_name": { "description": "Unique across all Nodes user-defined name.", "type": "string" @@ -957,6 +1132,13 @@ "description": "RemoteNode represents generic remote Node. Agents can't run on Remote Nodes.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Unique randomly generated instance identifier, can't be changed.", "type": "string" @@ -988,6 +1170,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "instance": { "description": "DB instance identifier. Unique across all RemoteAmazonRDS Nodes in combination with region.", "type": "string" @@ -1014,6 +1203,13 @@ "description": "RemoteAmazonRDSNode represents a Remote Node for Amazon RDS. Agents can't run on Remote Nodes.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "instance": { "description": "DB instance identifier. Unique across all RemoteAmazonRDS Nodes in combination with region. Can be changed.", "type": "string" @@ -1053,6 +1249,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "docker_container_name": { "description": "Container name.", "type": "string" @@ -1079,6 +1282,13 @@ "description": "ContainerNode represents a Docker container.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "docker_container_id": { "description": "Docker container identifier. If specified, must be a unique Docker container identifier. Can't be changed.", "type": "string" @@ -1122,6 +1332,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "distro": { "description": "Linux distribution (if any).", "type": "string" @@ -1152,6 +1369,13 @@ "description": "GenericNode represents a bare metal server or virtual machine.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "distro": { "description": "Linux distribution (if any). Can be changed.", "type": "string" @@ -1195,6 +1419,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Unique randomly generated instance identifier.", "type": "string" @@ -1217,6 +1448,13 @@ "description": "RemoteNode represents generic remote Node. Agents can't run on Remote Nodes.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Unique randomly generated instance identifier, can't be changed.", "type": "string" @@ -1248,6 +1486,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "instance": { "description": "DB instance identifier. Unique across all RemoteAmazonRDS Nodes in combination with region.", "type": "string" @@ -1274,6 +1519,13 @@ "description": "RemoteAmazonRDSNode represents a Remote Node for Amazon RDS. Agents can't run on Remote Nodes.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "instance": { "description": "DB instance identifier. Unique across all RemoteAmazonRDS Nodes in combination with region. Can be changed.", "type": "string" @@ -1331,6 +1583,13 @@ "description": "ContainerNode represents a Docker container.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "docker_container_id": { "description": "Docker container identifier. If specified, must be a unique Docker container identifier. Can't be changed.", "type": "string" @@ -1357,6 +1616,13 @@ "description": "GenericNode represents a bare metal server or virtual machine.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "distro": { "description": "Linux distribution (if any). Can be changed.", "type": "string" @@ -1383,6 +1649,13 @@ "description": "RemoteNode represents generic remote Node. Agents can't run on Remote Nodes.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Unique randomly generated instance identifier, can't be changed.", "type": "string" @@ -1397,6 +1670,13 @@ "description": "RemoteAmazonRDSNode represents a Remote Node for Amazon RDS. Agents can't run on Remote Nodes.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "instance": { "description": "DB instance identifier. Unique across all RemoteAmazonRDS Nodes in combination with region. Can be changed.", "type": "string" @@ -1450,6 +1730,13 @@ "description": "ContainerNode represents a Docker container.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "docker_container_id": { "description": "Docker container identifier. If specified, must be a unique Docker container identifier. Can't be changed.", "type": "string" @@ -1479,6 +1766,13 @@ "description": "GenericNode represents a bare metal server or virtual machine.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "distro": { "description": "Linux distribution (if any). Can be changed.", "type": "string" @@ -1508,6 +1802,13 @@ "description": "RemoteNode represents generic remote Node. Agents can't run on Remote Nodes.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Unique randomly generated instance identifier, can't be changed.", "type": "string" @@ -1525,6 +1826,13 @@ "description": "RemoteAmazonRDSNode represents a Remote Node for Amazon RDS. Agents can't run on Remote Nodes.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "instance": { "description": "DB instance identifier. Unique across all RemoteAmazonRDS Nodes in combination with region. Can be changed.", "type": "string" @@ -1602,6 +1910,13 @@ "description": "Instance endpoint (full DNS name).", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -1633,6 +1948,13 @@ "description": "Instance endpoint (full DNS name).", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -1677,6 +1999,13 @@ "description": "Access address (DNS name or IP). Required if unix_socket is absent.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -1712,6 +2041,13 @@ "description": "Access address (DNS name or IP). Required if unix_socket is absent.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -1760,6 +2096,13 @@ "description": "Instance endpoint (full DNS name).", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "port": { "description": "Instance port.", "type": "integer", @@ -1791,6 +2134,13 @@ "description": "Instance endpoint (full DNS name).", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -1835,6 +2185,13 @@ "description": "Access address (DNS name or IP). Required if unix_socket is absent.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -1874,6 +2231,13 @@ "description": "Access address (DNS name or IP). Required if unix_socket is absent.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -1940,6 +2304,13 @@ "description": "Instance endpoint (full DNS name).", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -1967,6 +2338,13 @@ "description": "Access address (DNS name or IP). Required if unix_socket is absent.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -2035,6 +2413,13 @@ "description": "Instance endpoint (full DNS name).", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -2065,6 +2450,13 @@ "description": "Access address (DNS name or IP). Required if unix_socket is absent.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" diff --git a/vendor/github.com/percona/pmm/api/inventory/nodes.pb.go b/vendor/github.com/percona/pmm/api/inventory/nodes.pb.go index 19e5b7c34a..0d06ba2ae9 100644 --- a/vendor/github.com/percona/pmm/api/inventory/nodes.pb.go +++ b/vendor/github.com/percona/pmm/api/inventory/nodes.pb.go @@ -36,17 +36,19 @@ type GenericNode struct { // Linux distribution (if any). Can be changed. Distro string `protobuf:"bytes,4,opt,name=distro,proto3" json:"distro,omitempty"` // Linux distribution version (if any). Can be changed. - DistroVersion string `protobuf:"bytes,5,opt,name=distro_version,json=distroVersion,proto3" json:"distro_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + DistroVersion string `protobuf:"bytes,5,opt,name=distro_version,json=distroVersion,proto3" json:"distro_version,omitempty"` + // Custom user-assigned labels. Keys must start with "_". Can be changed. + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GenericNode) Reset() { *m = GenericNode{} } func (m *GenericNode) String() string { return proto.CompactTextString(m) } func (*GenericNode) ProtoMessage() {} func (*GenericNode) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{0} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{0} } func (m *GenericNode) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GenericNode.Unmarshal(m, b) @@ -101,6 +103,13 @@ func (m *GenericNode) GetDistroVersion() string { return "" } +func (m *GenericNode) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + // ContainerNode represents a Docker container. type ContainerNode struct { // Unique randomly generated instance identifier, can't be changed. @@ -112,17 +121,19 @@ type ContainerNode struct { // Docker container identifier. If specified, must be a unique Docker container identifier. Can't be changed. DockerContainerId string `protobuf:"bytes,4,opt,name=docker_container_id,json=dockerContainerId,proto3" json:"docker_container_id,omitempty"` // Container name. Can be changed. - DockerContainerName string `protobuf:"bytes,5,opt,name=docker_container_name,json=dockerContainerName,proto3" json:"docker_container_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + DockerContainerName string `protobuf:"bytes,5,opt,name=docker_container_name,json=dockerContainerName,proto3" json:"docker_container_name,omitempty"` + // Custom user-assigned labels. Keys must start with "_". Can be changed. + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ContainerNode) Reset() { *m = ContainerNode{} } func (m *ContainerNode) String() string { return proto.CompactTextString(m) } func (*ContainerNode) ProtoMessage() {} func (*ContainerNode) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{1} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{1} } func (m *ContainerNode) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ContainerNode.Unmarshal(m, b) @@ -177,22 +188,31 @@ func (m *ContainerNode) GetDockerContainerName() string { return "" } +func (m *ContainerNode) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + // RemoteNode represents generic remote Node. Agents can't run on Remote Nodes. type RemoteNode struct { // Unique randomly generated instance identifier, can't be changed. NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` // Unique across all Nodes user-defined name, can be changed. - NodeName string `protobuf:"bytes,2,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + NodeName string `protobuf:"bytes,2,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` + // Custom user-assigned labels. Keys must start with "_". Can be changed. + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *RemoteNode) Reset() { *m = RemoteNode{} } func (m *RemoteNode) String() string { return proto.CompactTextString(m) } func (*RemoteNode) ProtoMessage() {} func (*RemoteNode) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{2} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{2} } func (m *RemoteNode) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RemoteNode.Unmarshal(m, b) @@ -226,6 +246,13 @@ func (m *RemoteNode) GetNodeName() string { return "" } +func (m *RemoteNode) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + // RemoteAmazonRDSNode represents a Remote Node for Amazon RDS. Agents can't run on Remote Nodes. type RemoteAmazonRDSNode struct { // Unique randomly generated instance identifier, can't be changed. @@ -235,17 +262,19 @@ type RemoteAmazonRDSNode struct { // DB instance identifier. Unique across all RemoteAmazonRDS Nodes in combination with region. Can be changed. Instance string `protobuf:"bytes,3,opt,name=instance,proto3" json:"instance,omitempty"` // Unique across all RemoteAmazonRDS Nodes in combination with instance. Can't be changed. - Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"` + // Custom user-assigned labels. Keys must start with "_". Can be changed. + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *RemoteAmazonRDSNode) Reset() { *m = RemoteAmazonRDSNode{} } func (m *RemoteAmazonRDSNode) String() string { return proto.CompactTextString(m) } func (*RemoteAmazonRDSNode) ProtoMessage() {} func (*RemoteAmazonRDSNode) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{3} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{3} } func (m *RemoteAmazonRDSNode) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RemoteAmazonRDSNode.Unmarshal(m, b) @@ -293,6 +322,13 @@ func (m *RemoteAmazonRDSNode) GetRegion() string { return "" } +func (m *RemoteAmazonRDSNode) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + type ListNodesRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -303,7 +339,7 @@ func (m *ListNodesRequest) Reset() { *m = ListNodesRequest{} } func (m *ListNodesRequest) String() string { return proto.CompactTextString(m) } func (*ListNodesRequest) ProtoMessage() {} func (*ListNodesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{4} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{4} } func (m *ListNodesRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListNodesRequest.Unmarshal(m, b) @@ -337,7 +373,7 @@ func (m *ListNodesResponse) Reset() { *m = ListNodesResponse{} } func (m *ListNodesResponse) String() string { return proto.CompactTextString(m) } func (*ListNodesResponse) ProtoMessage() {} func (*ListNodesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{5} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{5} } func (m *ListNodesResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListNodesResponse.Unmarshal(m, b) @@ -397,7 +433,7 @@ func (m *GetNodeRequest) Reset() { *m = GetNodeRequest{} } func (m *GetNodeRequest) String() string { return proto.CompactTextString(m) } func (*GetNodeRequest) ProtoMessage() {} func (*GetNodeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{6} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{6} } func (m *GetNodeRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetNodeRequest.Unmarshal(m, b) @@ -440,7 +476,7 @@ func (m *GetNodeResponse) Reset() { *m = GetNodeResponse{} } func (m *GetNodeResponse) String() string { return proto.CompactTextString(m) } func (*GetNodeResponse) ProtoMessage() {} func (*GetNodeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{7} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{7} } func (m *GetNodeResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetNodeResponse.Unmarshal(m, b) @@ -643,17 +679,19 @@ type AddGenericNodeRequest struct { // Linux distribution (if any). Distro string `protobuf:"bytes,4,opt,name=distro,proto3" json:"distro,omitempty"` // Linux distribution version (if any). - DistroVersion string `protobuf:"bytes,5,opt,name=distro_version,json=distroVersion,proto3" json:"distro_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + DistroVersion string `protobuf:"bytes,5,opt,name=distro_version,json=distroVersion,proto3" json:"distro_version,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *AddGenericNodeRequest) Reset() { *m = AddGenericNodeRequest{} } func (m *AddGenericNodeRequest) String() string { return proto.CompactTextString(m) } func (*AddGenericNodeRequest) ProtoMessage() {} func (*AddGenericNodeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{8} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{8} } func (m *AddGenericNodeRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddGenericNodeRequest.Unmarshal(m, b) @@ -701,6 +739,13 @@ func (m *AddGenericNodeRequest) GetDistroVersion() string { return "" } +func (m *AddGenericNodeRequest) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + type AddGenericNodeResponse struct { Generic *GenericNode `protobuf:"bytes,1,opt,name=generic,proto3" json:"generic,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -712,7 +757,7 @@ func (m *AddGenericNodeResponse) Reset() { *m = AddGenericNodeResponse{} func (m *AddGenericNodeResponse) String() string { return proto.CompactTextString(m) } func (*AddGenericNodeResponse) ProtoMessage() {} func (*AddGenericNodeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{9} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{9} } func (m *AddGenericNodeResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddGenericNodeResponse.Unmarshal(m, b) @@ -747,17 +792,19 @@ type ChangeGenericNodeRequest struct { // Linux distribution (if any). Distro string `protobuf:"bytes,4,opt,name=distro,proto3" json:"distro,omitempty"` // Linux distribution version (if any). - DistroVersion string `protobuf:"bytes,5,opt,name=distro_version,json=distroVersion,proto3" json:"distro_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + DistroVersion string `protobuf:"bytes,5,opt,name=distro_version,json=distroVersion,proto3" json:"distro_version,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ChangeGenericNodeRequest) Reset() { *m = ChangeGenericNodeRequest{} } func (m *ChangeGenericNodeRequest) String() string { return proto.CompactTextString(m) } func (*ChangeGenericNodeRequest) ProtoMessage() {} func (*ChangeGenericNodeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{10} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{10} } func (m *ChangeGenericNodeRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ChangeGenericNodeRequest.Unmarshal(m, b) @@ -805,6 +852,13 @@ func (m *ChangeGenericNodeRequest) GetDistroVersion() string { return "" } +func (m *ChangeGenericNodeRequest) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + type ChangeGenericNodeResponse struct { Generic *GenericNode `protobuf:"bytes,1,opt,name=generic,proto3" json:"generic,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -816,7 +870,7 @@ func (m *ChangeGenericNodeResponse) Reset() { *m = ChangeGenericNodeResp func (m *ChangeGenericNodeResponse) String() string { return proto.CompactTextString(m) } func (*ChangeGenericNodeResponse) ProtoMessage() {} func (*ChangeGenericNodeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{11} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{11} } func (m *ChangeGenericNodeResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ChangeGenericNodeResponse.Unmarshal(m, b) @@ -851,17 +905,19 @@ type AddContainerNodeRequest struct { // Docker container identifier. If specified, must be a unique Docker container identifier. DockerContainerId string `protobuf:"bytes,4,opt,name=docker_container_id,json=dockerContainerId,proto3" json:"docker_container_id,omitempty"` // Container name. - DockerContainerName string `protobuf:"bytes,5,opt,name=docker_container_name,json=dockerContainerName,proto3" json:"docker_container_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + DockerContainerName string `protobuf:"bytes,5,opt,name=docker_container_name,json=dockerContainerName,proto3" json:"docker_container_name,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *AddContainerNodeRequest) Reset() { *m = AddContainerNodeRequest{} } func (m *AddContainerNodeRequest) String() string { return proto.CompactTextString(m) } func (*AddContainerNodeRequest) ProtoMessage() {} func (*AddContainerNodeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{12} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{12} } func (m *AddContainerNodeRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddContainerNodeRequest.Unmarshal(m, b) @@ -909,6 +965,13 @@ func (m *AddContainerNodeRequest) GetDockerContainerName() string { return "" } +func (m *AddContainerNodeRequest) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + type AddContainerNodeResponse struct { Container *ContainerNode `protobuf:"bytes,1,opt,name=container,proto3" json:"container,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -920,7 +983,7 @@ func (m *AddContainerNodeResponse) Reset() { *m = AddContainerNodeRespon func (m *AddContainerNodeResponse) String() string { return proto.CompactTextString(m) } func (*AddContainerNodeResponse) ProtoMessage() {} func (*AddContainerNodeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{13} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{13} } func (m *AddContainerNodeResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddContainerNodeResponse.Unmarshal(m, b) @@ -953,17 +1016,19 @@ type ChangeContainerNodeRequest struct { // Unique across all Nodes user-defined name. NodeName string `protobuf:"bytes,2,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` // Container name. - DockerContainerName string `protobuf:"bytes,5,opt,name=docker_container_name,json=dockerContainerName,proto3" json:"docker_container_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + DockerContainerName string `protobuf:"bytes,5,opt,name=docker_container_name,json=dockerContainerName,proto3" json:"docker_container_name,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ChangeContainerNodeRequest) Reset() { *m = ChangeContainerNodeRequest{} } func (m *ChangeContainerNodeRequest) String() string { return proto.CompactTextString(m) } func (*ChangeContainerNodeRequest) ProtoMessage() {} func (*ChangeContainerNodeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{14} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{14} } func (m *ChangeContainerNodeRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ChangeContainerNodeRequest.Unmarshal(m, b) @@ -1004,6 +1069,13 @@ func (m *ChangeContainerNodeRequest) GetDockerContainerName() string { return "" } +func (m *ChangeContainerNodeRequest) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + type ChangeContainerNodeResponse struct { Container *ContainerNode `protobuf:"bytes,1,opt,name=container,proto3" json:"container,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1015,7 +1087,7 @@ func (m *ChangeContainerNodeResponse) Reset() { *m = ChangeContainerNode func (m *ChangeContainerNodeResponse) String() string { return proto.CompactTextString(m) } func (*ChangeContainerNodeResponse) ProtoMessage() {} func (*ChangeContainerNodeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{15} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{15} } func (m *ChangeContainerNodeResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ChangeContainerNodeResponse.Unmarshal(m, b) @@ -1044,17 +1116,19 @@ func (m *ChangeContainerNodeResponse) GetContainer() *ContainerNode { type AddRemoteNodeRequest struct { // Unique across all Nodes user-defined name. - NodeName string `protobuf:"bytes,2,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + NodeName string `protobuf:"bytes,2,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *AddRemoteNodeRequest) Reset() { *m = AddRemoteNodeRequest{} } func (m *AddRemoteNodeRequest) String() string { return proto.CompactTextString(m) } func (*AddRemoteNodeRequest) ProtoMessage() {} func (*AddRemoteNodeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{16} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{16} } func (m *AddRemoteNodeRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddRemoteNodeRequest.Unmarshal(m, b) @@ -1081,6 +1155,13 @@ func (m *AddRemoteNodeRequest) GetNodeName() string { return "" } +func (m *AddRemoteNodeRequest) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + type AddRemoteNodeResponse struct { Remote *RemoteNode `protobuf:"bytes,1,opt,name=remote,proto3" json:"remote,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1092,7 +1173,7 @@ func (m *AddRemoteNodeResponse) Reset() { *m = AddRemoteNodeResponse{} } func (m *AddRemoteNodeResponse) String() string { return proto.CompactTextString(m) } func (*AddRemoteNodeResponse) ProtoMessage() {} func (*AddRemoteNodeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{17} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{17} } func (m *AddRemoteNodeResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddRemoteNodeResponse.Unmarshal(m, b) @@ -1123,17 +1204,19 @@ type ChangeRemoteNodeRequest struct { // Unique randomly generated instance identifier. NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` // Unique across all Nodes user-defined name. - NodeName string `protobuf:"bytes,2,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + NodeName string `protobuf:"bytes,2,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ChangeRemoteNodeRequest) Reset() { *m = ChangeRemoteNodeRequest{} } func (m *ChangeRemoteNodeRequest) String() string { return proto.CompactTextString(m) } func (*ChangeRemoteNodeRequest) ProtoMessage() {} func (*ChangeRemoteNodeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{18} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{18} } func (m *ChangeRemoteNodeRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ChangeRemoteNodeRequest.Unmarshal(m, b) @@ -1167,6 +1250,13 @@ func (m *ChangeRemoteNodeRequest) GetNodeName() string { return "" } +func (m *ChangeRemoteNodeRequest) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + type ChangeRemoteNodeResponse struct { Remote *RemoteNode `protobuf:"bytes,1,opt,name=remote,proto3" json:"remote,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1178,7 +1268,7 @@ func (m *ChangeRemoteNodeResponse) Reset() { *m = ChangeRemoteNodeRespon func (m *ChangeRemoteNodeResponse) String() string { return proto.CompactTextString(m) } func (*ChangeRemoteNodeResponse) ProtoMessage() {} func (*ChangeRemoteNodeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{19} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{19} } func (m *ChangeRemoteNodeResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ChangeRemoteNodeResponse.Unmarshal(m, b) @@ -1211,17 +1301,19 @@ type AddRemoteAmazonRDSNodeRequest struct { // DB instance identifier. Unique across all RemoteAmazonRDS Nodes in combination with region. Instance string `protobuf:"bytes,3,opt,name=instance,proto3" json:"instance,omitempty"` // Unique across all RemoteAmazonRDS Nodes in combination with instance. - Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *AddRemoteAmazonRDSNodeRequest) Reset() { *m = AddRemoteAmazonRDSNodeRequest{} } func (m *AddRemoteAmazonRDSNodeRequest) String() string { return proto.CompactTextString(m) } func (*AddRemoteAmazonRDSNodeRequest) ProtoMessage() {} func (*AddRemoteAmazonRDSNodeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{20} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{20} } func (m *AddRemoteAmazonRDSNodeRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddRemoteAmazonRDSNodeRequest.Unmarshal(m, b) @@ -1262,6 +1354,13 @@ func (m *AddRemoteAmazonRDSNodeRequest) GetRegion() string { return "" } +func (m *AddRemoteAmazonRDSNodeRequest) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + type AddRemoteAmazonRDSNodeResponse struct { RemoteAmazonRds *RemoteAmazonRDSNode `protobuf:"bytes,1,opt,name=remote_amazon_rds,json=remoteAmazonRds,proto3" json:"remote_amazon_rds,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1273,7 +1372,7 @@ func (m *AddRemoteAmazonRDSNodeResponse) Reset() { *m = AddRemoteAmazonR func (m *AddRemoteAmazonRDSNodeResponse) String() string { return proto.CompactTextString(m) } func (*AddRemoteAmazonRDSNodeResponse) ProtoMessage() {} func (*AddRemoteAmazonRDSNodeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{21} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{21} } func (m *AddRemoteAmazonRDSNodeResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddRemoteAmazonRDSNodeResponse.Unmarshal(m, b) @@ -1306,17 +1405,19 @@ type ChangeRemoteAmazonRDSNodeRequest struct { // Unique across all Nodes user-defined name. NodeName string `protobuf:"bytes,2,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` // DB instance identifier. Unique across all RemoteAmazonRDS Nodes in combination with region. - Instance string `protobuf:"bytes,3,opt,name=instance,proto3" json:"instance,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Instance string `protobuf:"bytes,3,opt,name=instance,proto3" json:"instance,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ChangeRemoteAmazonRDSNodeRequest) Reset() { *m = ChangeRemoteAmazonRDSNodeRequest{} } func (m *ChangeRemoteAmazonRDSNodeRequest) String() string { return proto.CompactTextString(m) } func (*ChangeRemoteAmazonRDSNodeRequest) ProtoMessage() {} func (*ChangeRemoteAmazonRDSNodeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{22} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{22} } func (m *ChangeRemoteAmazonRDSNodeRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ChangeRemoteAmazonRDSNodeRequest.Unmarshal(m, b) @@ -1357,6 +1458,13 @@ func (m *ChangeRemoteAmazonRDSNodeRequest) GetInstance() string { return "" } +func (m *ChangeRemoteAmazonRDSNodeRequest) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + type ChangeRemoteAmazonRDSNodeResponse struct { RemoteAmazonRds *RemoteAmazonRDSNode `protobuf:"bytes,1,opt,name=remote_amazon_rds,json=remoteAmazonRds,proto3" json:"remote_amazon_rds,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1368,7 +1476,7 @@ func (m *ChangeRemoteAmazonRDSNodeResponse) Reset() { *m = ChangeRemoteA func (m *ChangeRemoteAmazonRDSNodeResponse) String() string { return proto.CompactTextString(m) } func (*ChangeRemoteAmazonRDSNodeResponse) ProtoMessage() {} func (*ChangeRemoteAmazonRDSNodeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{23} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{23} } func (m *ChangeRemoteAmazonRDSNodeResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ChangeRemoteAmazonRDSNodeResponse.Unmarshal(m, b) @@ -1407,7 +1515,7 @@ func (m *RemoveNodeRequest) Reset() { *m = RemoveNodeRequest{} } func (m *RemoveNodeRequest) String() string { return proto.CompactTextString(m) } func (*RemoveNodeRequest) ProtoMessage() {} func (*RemoveNodeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{24} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{24} } func (m *RemoveNodeRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RemoveNodeRequest.Unmarshal(m, b) @@ -1444,7 +1552,7 @@ func (m *RemoveNodeResponse) Reset() { *m = RemoveNodeResponse{} } func (m *RemoveNodeResponse) String() string { return proto.CompactTextString(m) } func (*RemoveNodeResponse) ProtoMessage() {} func (*RemoveNodeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_nodes_8b13318b4f2f633d, []int{25} + return fileDescriptor_nodes_01f8de1ffed006d4, []int{25} } func (m *RemoveNodeResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RemoveNodeResponse.Unmarshal(m, b) @@ -1466,28 +1574,40 @@ var xxx_messageInfo_RemoveNodeResponse proto.InternalMessageInfo func init() { proto.RegisterType((*GenericNode)(nil), "inventory.GenericNode") + proto.RegisterMapType((map[string]string)(nil), "inventory.GenericNode.CustomLabelsEntry") proto.RegisterType((*ContainerNode)(nil), "inventory.ContainerNode") + proto.RegisterMapType((map[string]string)(nil), "inventory.ContainerNode.CustomLabelsEntry") proto.RegisterType((*RemoteNode)(nil), "inventory.RemoteNode") + proto.RegisterMapType((map[string]string)(nil), "inventory.RemoteNode.CustomLabelsEntry") proto.RegisterType((*RemoteAmazonRDSNode)(nil), "inventory.RemoteAmazonRDSNode") + proto.RegisterMapType((map[string]string)(nil), "inventory.RemoteAmazonRDSNode.CustomLabelsEntry") proto.RegisterType((*ListNodesRequest)(nil), "inventory.ListNodesRequest") proto.RegisterType((*ListNodesResponse)(nil), "inventory.ListNodesResponse") proto.RegisterType((*GetNodeRequest)(nil), "inventory.GetNodeRequest") proto.RegisterType((*GetNodeResponse)(nil), "inventory.GetNodeResponse") proto.RegisterType((*AddGenericNodeRequest)(nil), "inventory.AddGenericNodeRequest") + proto.RegisterMapType((map[string]string)(nil), "inventory.AddGenericNodeRequest.CustomLabelsEntry") proto.RegisterType((*AddGenericNodeResponse)(nil), "inventory.AddGenericNodeResponse") proto.RegisterType((*ChangeGenericNodeRequest)(nil), "inventory.ChangeGenericNodeRequest") + proto.RegisterMapType((map[string]string)(nil), "inventory.ChangeGenericNodeRequest.CustomLabelsEntry") proto.RegisterType((*ChangeGenericNodeResponse)(nil), "inventory.ChangeGenericNodeResponse") proto.RegisterType((*AddContainerNodeRequest)(nil), "inventory.AddContainerNodeRequest") + proto.RegisterMapType((map[string]string)(nil), "inventory.AddContainerNodeRequest.CustomLabelsEntry") proto.RegisterType((*AddContainerNodeResponse)(nil), "inventory.AddContainerNodeResponse") proto.RegisterType((*ChangeContainerNodeRequest)(nil), "inventory.ChangeContainerNodeRequest") + proto.RegisterMapType((map[string]string)(nil), "inventory.ChangeContainerNodeRequest.CustomLabelsEntry") proto.RegisterType((*ChangeContainerNodeResponse)(nil), "inventory.ChangeContainerNodeResponse") proto.RegisterType((*AddRemoteNodeRequest)(nil), "inventory.AddRemoteNodeRequest") + proto.RegisterMapType((map[string]string)(nil), "inventory.AddRemoteNodeRequest.CustomLabelsEntry") proto.RegisterType((*AddRemoteNodeResponse)(nil), "inventory.AddRemoteNodeResponse") proto.RegisterType((*ChangeRemoteNodeRequest)(nil), "inventory.ChangeRemoteNodeRequest") + proto.RegisterMapType((map[string]string)(nil), "inventory.ChangeRemoteNodeRequest.CustomLabelsEntry") proto.RegisterType((*ChangeRemoteNodeResponse)(nil), "inventory.ChangeRemoteNodeResponse") proto.RegisterType((*AddRemoteAmazonRDSNodeRequest)(nil), "inventory.AddRemoteAmazonRDSNodeRequest") + proto.RegisterMapType((map[string]string)(nil), "inventory.AddRemoteAmazonRDSNodeRequest.CustomLabelsEntry") proto.RegisterType((*AddRemoteAmazonRDSNodeResponse)(nil), "inventory.AddRemoteAmazonRDSNodeResponse") proto.RegisterType((*ChangeRemoteAmazonRDSNodeRequest)(nil), "inventory.ChangeRemoteAmazonRDSNodeRequest") + proto.RegisterMapType((map[string]string)(nil), "inventory.ChangeRemoteAmazonRDSNodeRequest.CustomLabelsEntry") proto.RegisterType((*ChangeRemoteAmazonRDSNodeResponse)(nil), "inventory.ChangeRemoteAmazonRDSNodeResponse") proto.RegisterType((*RemoveNodeRequest)(nil), "inventory.RemoveNodeRequest") proto.RegisterType((*RemoveNodeResponse)(nil), "inventory.RemoveNodeResponse") @@ -1917,80 +2037,92 @@ var _Nodes_serviceDesc = grpc.ServiceDesc{ Metadata: "inventory/nodes.proto", } -func init() { proto.RegisterFile("inventory/nodes.proto", fileDescriptor_nodes_8b13318b4f2f633d) } - -var fileDescriptor_nodes_8b13318b4f2f633d = []byte{ - // 1149 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x4f, 0x6f, 0xe3, 0x44, - 0x14, 0xef, 0x24, 0x69, 0xda, 0xbc, 0xaa, 0xdd, 0x64, 0xba, 0x6d, 0xbd, 0x6e, 0xd3, 0xa6, 0x13, - 0x5a, 0xa5, 0xdb, 0x6d, 0x4c, 0xcb, 0x6a, 0x85, 0xf6, 0x96, 0x2e, 0xa2, 0x7f, 0xb4, 0xec, 0x21, - 0x08, 0x84, 0xb8, 0x44, 0xde, 0x78, 0x94, 0x5a, 0x6d, 0x3c, 0xc5, 0xf6, 0x66, 0x05, 0x42, 0x02, - 0x71, 0x40, 0x1c, 0x10, 0x07, 0xe0, 0x03, 0x2c, 0x48, 0xdc, 0xf8, 0x1e, 0x70, 0xe7, 0xc8, 0x01, - 0x09, 0xf1, 0x21, 0x38, 0xae, 0x3c, 0x33, 0x71, 0xec, 0x78, 0x9c, 0xa6, 0x7f, 0xb6, 0x37, 0x7b, - 0xe6, 0xbd, 0x79, 0xbf, 0xf7, 0x7b, 0x6f, 0xde, 0x7b, 0x36, 0x2c, 0xd8, 0x4e, 0x8f, 0x3a, 0x3e, - 0x73, 0x3f, 0x37, 0x1c, 0x66, 0x51, 0xaf, 0x7e, 0xee, 0x32, 0x9f, 0xe1, 0x42, 0xb8, 0xac, 0x3f, - 0xea, 0xd8, 0xfe, 0xc9, 0x8b, 0xe7, 0xf5, 0x36, 0xeb, 0x1a, 0xdd, 0x97, 0xb6, 0x7f, 0xca, 0x5e, - 0x1a, 0x1d, 0xb6, 0xc3, 0xe5, 0x76, 0x7a, 0xe6, 0x99, 0x6d, 0x99, 0x3e, 0x73, 0x3d, 0x23, 0x7c, - 0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, 0x0b, 0x8d, 0x62, 0xeb, 0x70, 0x22, 0xca, - 0x97, 0x11, 0xe1, 0x0b, 0xa5, 0xf2, 0x75, 0x38, 0x11, 0x32, 0xf6, 0x54, 0xcd, 0x18, 0xba, 0x98, - 0xb1, 0xc3, 0x89, 0x04, 0x67, 0xfb, 0x79, 0xc8, 0x05, 0x54, 0x90, 0x57, 0x08, 0x16, 0x1a, 0x96, - 0x15, 0x4d, 0x05, 0xc9, 0x61, 0x35, 0x91, 0xb5, 0x21, 0x8b, 0xb7, 0x54, 0x77, 0x8e, 0x73, 0xd3, - 0xa8, 0x98, 0x21, 0xc7, 0xb0, 0x38, 0x8c, 0x50, 0x95, 0xdd, 0x68, 0x8c, 0xec, 0x26, 0xbf, 0x21, - 0xd0, 0x9e, 0x9c, 0x98, 0x4e, 0x87, 0x2a, 0x3c, 0xbe, 0x28, 0x6b, 0xc6, 0xa3, 0xe4, 0xda, 0x3e, - 0x67, 0x8b, 0x39, 0xf2, 0x01, 0xdc, 0x53, 0xc0, 0xbc, 0xb2, 0xdb, 0x7f, 0x20, 0x58, 0x6a, 0x58, - 0x56, 0xfc, 0xf2, 0xde, 0x60, 0x9c, 0x6f, 0xa1, 0x72, 0xcb, 0x64, 0x68, 0x82, 0x96, 0x74, 0x44, - 0xf2, 0x12, 0x2b, 0x5d, 0x68, 0xf4, 0x65, 0x8c, 0x5c, 0x45, 0xf2, 0x2b, 0x02, 0x5d, 0xb0, 0xad, - 0x24, 0xe8, 0x66, 0xd2, 0xe2, 0x6a, 0x2e, 0x67, 0x8b, 0xb9, 0xe3, 0xdc, 0x74, 0xae, 0x38, 0x49, - 0x3e, 0x82, 0x65, 0x25, 0xc6, 0x6b, 0xfa, 0xde, 0x80, 0xbb, 0x0d, 0xcb, 0x8a, 0x14, 0xe8, 0x4b, - 0x64, 0x85, 0x0c, 0xc9, 0xfb, 0xbc, 0x82, 0x44, 0x8f, 0x90, 0x98, 0x06, 0x2d, 0x01, 0x8d, 0x28, - 0x71,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 0x2a, 0xe7, 0x0f, 0x7d, 0x7d, 0x84, 0x84, 0xb4, - 0xbd, 0xc5, 0x6d, 0x57, 0xc9, 0xaa, 0xca, 0xf6, 0x40, 0x27, 0x80, 0xf0, 0x3d, 0x82, 0x52, 0xa2, - 0xa3, 0xe2, 0x6a, 0xb4, 0x44, 0xa6, 0x8c, 0x05, 0xfa, 0x5b, 0xa3, 0x85, 0x24, 0x96, 0x07, 0x1c, - 0xcb, 0x26, 0x59, 0x57, 0x61, 0x89, 0xa9, 0x05, 0x70, 0xbe, 0x43, 0x50, 0x1c, 0xee, 0x63, 0x98, - 0xc4, 0x3d, 0x56, 0x35, 0x23, 0xbd, 0x3a, 0x52, 0x46, 0x62, 0xd9, 0xe6, 0x58, 0x36, 0x48, 0x25, - 0x85, 0x97, 0x50, 0x2b, 0x80, 0xf2, 0x33, 0x82, 0x79, 0x45, 0x67, 0xc1, 0x1b, 0x09, 0xb7, 0x95, - 0x80, 0x36, 0x2f, 0x12, 0x93, 0x98, 0xea, 0x1c, 0x53, 0x8d, 0x54, 0xd3, 0xf9, 0x89, 0xc1, 0xfa, - 0x12, 0x66, 0x63, 0x5d, 0x05, 0xaf, 0xc5, 0x3d, 0x4f, 0x34, 0x09, 0xbd, 0x92, 0x2e, 0x20, 0x31, - 0xd4, 0x38, 0x06, 0x42, 0xca, 0x29, 0xbc, 0x08, 0x95, 0x7e, 0x7c, 0x86, 0x7b, 0x45, 0x2c, 0x3e, - 0x29, 0x9d, 0x4a, 0xaf, 0x8e, 0x94, 0x19, 0x27, 0x3e, 0x51, 0xad, 0x00, 0xca, 0x2b, 0xc4, 0xe7, - 0x5f, 0xd5, 0x17, 0x67, 0x4d, 0xe5, 0xb1, 0xaa, 0x16, 0xeb, 0x5b, 0x63, 0x48, 0x4a, 0x70, 0xbb, - 0x1c, 0xdc, 0x36, 0xd9, 0x1c, 0x49, 0x52, 0xa8, 0x1b, 0x40, 0xfc, 0x1d, 0xf5, 0xc7, 0x55, 0x15, - 0xca, 0xed, 0x14, 0x4a, 0x94, 0x40, 0x1f, 0x8c, 0x27, 0x2c, 0xb1, 0x3e, 0xe4, 0x58, 0xeb, 0x64, - 0xeb, 0x22, 0x22, 0x63, 0x70, 0xcf, 0xc5, 0x3f, 0x00, 0x51, 0x81, 0xf1, 0xca, 0x50, 0xd9, 0x8f, - 0x95, 0x73, 0xbd, 0x9c, 0xb2, 0x2b, 0x01, 0x6c, 0x70, 0x00, 0x6b, 0x44, 0x57, 0x01, 0x10, 0xf2, - 0x8f, 0xd1, 0xfd, 0xfd, 0x99, 0x4f, 0x07, 0xff, 0x91, 0x9e, 0xe7, 0xf9, 0x8f, 0x9f, 0x77, 0x5e, - 0x07, 0x00, 0x00, 0xff, 0xff, 0x42, 0x8c, 0x76, 0x71, 0x72, 0x12, 0x00, 0x00, +func init() { proto.RegisterFile("inventory/nodes.proto", fileDescriptor_nodes_01f8de1ffed006d4) } + +var fileDescriptor_nodes_01f8de1ffed006d4 = []byte{ + // 1335 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x59, 0x4f, 0x6f, 0xe3, 0x44, + 0x14, 0xef, 0x38, 0x69, 0xb7, 0x79, 0xa5, 0xbb, 0xc9, 0xf4, 0x9f, 0xd7, 0xfd, 0x97, 0x4e, 0x68, + 0x49, 0xdb, 0x6d, 0xb2, 0x2d, 0x65, 0x59, 0x55, 0x42, 0xa8, 0x2d, 0xd0, 0x3f, 0xea, 0x2e, 0x52, + 0xd0, 0x2e, 0xb0, 0x42, 0x8a, 0xdc, 0x78, 0x94, 0x5a, 0x4d, 0xec, 0x62, 0xbb, 0x59, 0x15, 0x71, + 0x40, 0x1c, 0x10, 0x07, 0x6e, 0x20, 0x71, 0xe5, 0x03, 0x70, 0x80, 0x13, 0x12, 0x37, 0xf8, 0x06, + 0x88, 0xdb, 0x72, 0x40, 0x02, 0x3e, 0x04, 0x12, 0x17, 0xe4, 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x68, 0xa8, 0x72, + 0xc0, 0xf3, 0x1d, 0x4a, 0x1a, 0x25, 0x1d, 0x6d, 0xc0, 0x31, 0x64, 0x19, 0x06, 0x42, 0x66, 0x23, + 0x78, 0xf1, 0x96, 0xd4, 0xf5, 0x69, 0xbe, 0x72, 0x43, 0xfa, 0x44, 0xd4, 0x02, 0x4a, 0xa6, 0xad, + 0x4d, 0x37, 0xfa, 0x04, 0x57, 0xb9, 0x50, 0xbe, 0x43, 0xac, 0xab, 0x16, 0xfd, 0xf2, 0x97, 0xed, + 0xf6, 0xaa, 0x54, 0x96, 0xbb, 0xb0, 0xe4, 0xe0, 0xd6, 0x19, 0xb8, 0x55, 0xb2, 0xd4, 0x96, 0x24, + 0x7f, 0xad, 0x0b, 0xf1, 0x7b, 0x54, 0xef, 0x33, 0x45, 0x28, 0x57, 0x2f, 0x71, 0x57, 0x28, 0x77, + 0xba, 0x33, 0xe6, 0x58, 0x37, 0x19, 0xd6, 0x1c, 0x59, 0xee, 0x44, 0x64, 0x08, 0xee, 0x99, 0xf7, + 0xdb, 0xb0, 0x77, 0x02, 0xe3, 0x99, 0xa6, 0x63, 0x3f, 0x74, 0x9c, 0x2b, 0xb3, 0x11, 0xb3, 0x1c, + 0xc0, 0x22, 0x03, 0x30, 0x4f, 0x14, 0x11, 0x00, 0xcf, 0x7e, 0x0b, 0xad, 0xec, 0x8c, 0x3c, 0x69, + 0xfc, 0x05, 0x73, 0x3c, 0xc4, 0xfe, 0x33, 0x79, 0xf5, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x38, + 0x71, 0x9f, 0xcd, 0xad, 0x19, 0x00, 0x00, } diff --git a/vendor/github.com/percona/pmm/api/inventory/nodes.proto b/vendor/github.com/percona/pmm/api/inventory/nodes.proto index befdc31ee6..530f4fd7ea 100644 --- a/vendor/github.com/percona/pmm/api/inventory/nodes.proto +++ b/vendor/github.com/percona/pmm/api/inventory/nodes.proto @@ -19,6 +19,8 @@ message GenericNode { string distro = 4; // Linux distribution version (if any). Can be changed. string distro_version = 5; + // Custom user-assigned labels. Keys must start with "_". Can be changed. + map custom_labels = 10; } // ContainerNode represents a Docker container. @@ -33,6 +35,8 @@ message ContainerNode { string docker_container_id = 4; // Container name. Can be changed. string docker_container_name = 5; + // Custom user-assigned labels. Keys must start with "_". Can be changed. + map custom_labels = 10; } // RemoteNode represents generic remote Node. Agents can't run on Remote Nodes. @@ -41,6 +45,8 @@ message RemoteNode { string node_id = 1; // Unique across all Nodes user-defined name, can be changed. string node_name = 2; + // Custom user-assigned labels. Keys must start with "_". Can be changed. + map custom_labels = 10; } // RemoteAmazonRDSNode represents a Remote Node for Amazon RDS. Agents can't run on Remote Nodes. @@ -53,6 +59,8 @@ message RemoteAmazonRDSNode { string instance = 3; // Unique across all RemoteAmazonRDS Nodes in combination with instance. Can't be changed. string region = 4; + // Custom user-assigned labels. Keys must start with "_". Can be changed. + map custom_labels = 10; } // List @@ -103,6 +111,8 @@ message AddGenericNodeRequest { string distro = 4; // Linux distribution version (if any). string distro_version = 5; + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } message AddGenericNodeResponse { @@ -128,6 +138,8 @@ message ChangeGenericNodeRequest { string distro = 4; // Linux distribution version (if any). string distro_version = 5; + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } message ChangeGenericNodeResponse { @@ -151,6 +163,8 @@ message AddContainerNodeRequest { string docker_container_id = 4; // Container name. string docker_container_name = 5; + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } message AddContainerNodeResponse { @@ -176,6 +190,8 @@ message ChangeContainerNodeRequest { reserved 4; // Container name. string docker_container_name = 5; + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } message ChangeContainerNodeResponse { @@ -193,6 +209,8 @@ message AddRemoteNodeRequest { string_not_empty: true } ]; + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } message AddRemoteNodeResponse { @@ -212,6 +230,8 @@ message ChangeRemoteNodeRequest { string_not_empty: true } ]; + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } message ChangeRemoteNodeResponse { @@ -241,6 +261,8 @@ message AddRemoteAmazonRDSNodeRequest { string_not_empty: true } ]; + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } message AddRemoteAmazonRDSNodeResponse { @@ -268,6 +290,8 @@ message ChangeRemoteAmazonRDSNodeRequest { ]; // Unique across all RemoteAmazonRDS Nodes in combination with instance. Can't be changed. reserved 4; + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } message ChangeRemoteAmazonRDSNodeResponse { diff --git a/vendor/github.com/percona/pmm/api/inventory/nodes.validator.pb.go b/vendor/github.com/percona/pmm/api/inventory/nodes.validator.pb.go index 60a08845d0..627700c9e3 100644 --- a/vendor/github.com/percona/pmm/api/inventory/nodes.validator.pb.go +++ b/vendor/github.com/percona/pmm/api/inventory/nodes.validator.pb.go @@ -16,15 +16,19 @@ var _ = fmt.Errorf var _ = math.Inf func (this *GenericNode) Validate() error { + // Validation of proto3 map<> fields is unsupported. return nil } func (this *ContainerNode) Validate() error { + // Validation of proto3 map<> fields is unsupported. return nil } func (this *RemoteNode) Validate() error { + // Validation of proto3 map<> fields is unsupported. return nil } func (this *RemoteAmazonRDSNode) Validate() error { + // Validation of proto3 map<> fields is unsupported. return nil } func (this *ListNodesRequest) Validate() error { @@ -102,6 +106,7 @@ func (this *AddGenericNodeRequest) Validate() error { if this.NodeName == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeName", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeName)) } + // Validation of proto3 map<> fields is unsupported. return nil } func (this *AddGenericNodeResponse) Validate() error { @@ -119,6 +124,7 @@ func (this *ChangeGenericNodeRequest) Validate() error { if this.NodeName == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeName", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeName)) } + // Validation of proto3 map<> fields is unsupported. return nil } func (this *ChangeGenericNodeResponse) Validate() error { @@ -133,6 +139,7 @@ func (this *AddContainerNodeRequest) Validate() error { if this.NodeName == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeName", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeName)) } + // Validation of proto3 map<> fields is unsupported. return nil } func (this *AddContainerNodeResponse) Validate() error { @@ -150,6 +157,7 @@ func (this *ChangeContainerNodeRequest) Validate() error { if this.NodeName == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeName", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeName)) } + // Validation of proto3 map<> fields is unsupported. return nil } func (this *ChangeContainerNodeResponse) Validate() error { @@ -164,6 +172,7 @@ func (this *AddRemoteNodeRequest) Validate() error { if this.NodeName == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeName", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeName)) } + // Validation of proto3 map<> fields is unsupported. return nil } func (this *AddRemoteNodeResponse) Validate() error { @@ -181,6 +190,7 @@ func (this *ChangeRemoteNodeRequest) Validate() error { if this.NodeName == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeName", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeName)) } + // Validation of proto3 map<> fields is unsupported. return nil } func (this *ChangeRemoteNodeResponse) Validate() error { @@ -201,6 +211,7 @@ func (this *AddRemoteAmazonRDSNodeRequest) Validate() error { if this.Region == "" { return github_com_mwitkow_go_proto_validators.FieldError("Region", fmt.Errorf(`value '%v' must not be an empty string`, this.Region)) } + // Validation of proto3 map<> fields is unsupported. return nil } func (this *AddRemoteAmazonRDSNodeResponse) Validate() error { @@ -221,6 +232,7 @@ func (this *ChangeRemoteAmazonRDSNodeRequest) Validate() error { if this.Instance == "" { return github_com_mwitkow_go_proto_validators.FieldError("Instance", fmt.Errorf(`value '%v' must not be an empty string`, this.Instance)) } + // Validation of proto3 map<> fields is unsupported. return nil } func (this *ChangeRemoteAmazonRDSNodeResponse) Validate() error { diff --git a/vendor/github.com/percona/pmm/api/inventory/services.pb.go b/vendor/github.com/percona/pmm/api/inventory/services.pb.go index 88749190f5..2f8374617b 100644 --- a/vendor/github.com/percona/pmm/api/inventory/services.pb.go +++ b/vendor/github.com/percona/pmm/api/inventory/services.pb.go @@ -38,17 +38,19 @@ type MySQLService struct { // Access port. Required if unix_socket is absent. Port uint32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"` // Access Unix socket. Required if address and port are absent. - UnixSocket string `protobuf:"bytes,6,opt,name=unix_socket,json=unixSocket,proto3" json:"unix_socket,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + UnixSocket string `protobuf:"bytes,6,opt,name=unix_socket,json=unixSocket,proto3" json:"unix_socket,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *MySQLService) Reset() { *m = MySQLService{} } func (m *MySQLService) String() string { return proto.CompactTextString(m) } func (*MySQLService) ProtoMessage() {} func (*MySQLService) Descriptor() ([]byte, []int) { - return fileDescriptor_services_daa459a95988729b, []int{0} + return fileDescriptor_services_29f39446918419f8, []int{0} } func (m *MySQLService) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_MySQLService.Unmarshal(m, b) @@ -110,6 +112,13 @@ func (m *MySQLService) GetUnixSocket() string { return "" } +func (m *MySQLService) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + // AmazonRDSMySQLService represents a MySQL instance running on a single RemoteAmazonRDS Node type AmazonRDSMySQLService struct { // Unique randomly generated instance identifier. @@ -121,17 +130,19 @@ type AmazonRDSMySQLService struct { // Instance endpoint (full DNS name). Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` // Instance port. - Port uint32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Port uint32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *AmazonRDSMySQLService) Reset() { *m = AmazonRDSMySQLService{} } func (m *AmazonRDSMySQLService) String() string { return proto.CompactTextString(m) } func (*AmazonRDSMySQLService) ProtoMessage() {} func (*AmazonRDSMySQLService) Descriptor() ([]byte, []int) { - return fileDescriptor_services_daa459a95988729b, []int{1} + return fileDescriptor_services_29f39446918419f8, []int{1} } func (m *AmazonRDSMySQLService) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AmazonRDSMySQLService.Unmarshal(m, b) @@ -186,6 +197,13 @@ func (m *AmazonRDSMySQLService) GetPort() uint32 { return 0 } +func (m *AmazonRDSMySQLService) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + type ListServicesRequest struct { // Types that are valid to be assigned to Filter: // *ListServicesRequest_NodeId @@ -199,7 +217,7 @@ func (m *ListServicesRequest) Reset() { *m = ListServicesRequest{} } func (m *ListServicesRequest) String() string { return proto.CompactTextString(m) } func (*ListServicesRequest) ProtoMessage() {} func (*ListServicesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_services_daa459a95988729b, []int{2} + return fileDescriptor_services_29f39446918419f8, []int{2} } func (m *ListServicesRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListServicesRequest.Unmarshal(m, b) @@ -306,7 +324,7 @@ func (m *ListServicesResponse) Reset() { *m = ListServicesResponse{} } func (m *ListServicesResponse) String() string { return proto.CompactTextString(m) } func (*ListServicesResponse) ProtoMessage() {} func (*ListServicesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_services_daa459a95988729b, []int{3} + return fileDescriptor_services_29f39446918419f8, []int{3} } func (m *ListServicesResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListServicesResponse.Unmarshal(m, b) @@ -352,7 +370,7 @@ func (m *GetServiceRequest) Reset() { *m = GetServiceRequest{} } func (m *GetServiceRequest) String() string { return proto.CompactTextString(m) } func (*GetServiceRequest) ProtoMessage() {} func (*GetServiceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_services_daa459a95988729b, []int{4} + return fileDescriptor_services_29f39446918419f8, []int{4} } func (m *GetServiceRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetServiceRequest.Unmarshal(m, b) @@ -393,7 +411,7 @@ func (m *GetServiceResponse) Reset() { *m = GetServiceResponse{} } func (m *GetServiceResponse) String() string { return proto.CompactTextString(m) } func (*GetServiceResponse) ProtoMessage() {} func (*GetServiceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_services_daa459a95988729b, []int{5} + return fileDescriptor_services_29f39446918419f8, []int{5} } func (m *GetServiceResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetServiceResponse.Unmarshal(m, b) @@ -534,17 +552,19 @@ type AddMySQLServiceRequest struct { // Access port. Required if unix_socket is absent. Port uint32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"` // Access Unix socket. Required if address and port are absent. - UnixSocket string `protobuf:"bytes,6,opt,name=unix_socket,json=unixSocket,proto3" json:"unix_socket,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + UnixSocket string `protobuf:"bytes,6,opt,name=unix_socket,json=unixSocket,proto3" json:"unix_socket,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *AddMySQLServiceRequest) Reset() { *m = AddMySQLServiceRequest{} } func (m *AddMySQLServiceRequest) String() string { return proto.CompactTextString(m) } func (*AddMySQLServiceRequest) ProtoMessage() {} func (*AddMySQLServiceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_services_daa459a95988729b, []int{6} + return fileDescriptor_services_29f39446918419f8, []int{6} } func (m *AddMySQLServiceRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddMySQLServiceRequest.Unmarshal(m, b) @@ -599,6 +619,13 @@ func (m *AddMySQLServiceRequest) GetUnixSocket() string { return "" } +func (m *AddMySQLServiceRequest) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + type AddMySQLServiceResponse struct { Mysql *MySQLService `protobuf:"bytes,1,opt,name=mysql,proto3" json:"mysql,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -610,7 +637,7 @@ func (m *AddMySQLServiceResponse) Reset() { *m = AddMySQLServiceResponse func (m *AddMySQLServiceResponse) String() string { return proto.CompactTextString(m) } func (*AddMySQLServiceResponse) ProtoMessage() {} func (*AddMySQLServiceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_services_daa459a95988729b, []int{7} + return fileDescriptor_services_29f39446918419f8, []int{7} } func (m *AddMySQLServiceResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddMySQLServiceResponse.Unmarshal(m, b) @@ -649,17 +676,19 @@ type ChangeMySQLServiceRequest struct { // Access port. Required if unix_socket is absent. Port uint32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"` // Access Unix socket. Required if address and port are absent. - UnixSocket string `protobuf:"bytes,6,opt,name=unix_socket,json=unixSocket,proto3" json:"unix_socket,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + UnixSocket string `protobuf:"bytes,6,opt,name=unix_socket,json=unixSocket,proto3" json:"unix_socket,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ChangeMySQLServiceRequest) Reset() { *m = ChangeMySQLServiceRequest{} } func (m *ChangeMySQLServiceRequest) String() string { return proto.CompactTextString(m) } func (*ChangeMySQLServiceRequest) ProtoMessage() {} func (*ChangeMySQLServiceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_services_daa459a95988729b, []int{8} + return fileDescriptor_services_29f39446918419f8, []int{8} } func (m *ChangeMySQLServiceRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ChangeMySQLServiceRequest.Unmarshal(m, b) @@ -721,6 +750,13 @@ func (m *ChangeMySQLServiceRequest) GetUnixSocket() string { return "" } +func (m *ChangeMySQLServiceRequest) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + type ChangeMySQLServiceResponse struct { Mysql *MySQLService `protobuf:"bytes,1,opt,name=mysql,proto3" json:"mysql,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -732,7 +768,7 @@ func (m *ChangeMySQLServiceResponse) Reset() { *m = ChangeMySQLServiceRe func (m *ChangeMySQLServiceResponse) String() string { return proto.CompactTextString(m) } func (*ChangeMySQLServiceResponse) ProtoMessage() {} func (*ChangeMySQLServiceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_services_daa459a95988729b, []int{9} + return fileDescriptor_services_29f39446918419f8, []int{9} } func (m *ChangeMySQLServiceResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ChangeMySQLServiceResponse.Unmarshal(m, b) @@ -767,17 +803,19 @@ type AddAmazonRDSMySQLServiceRequest struct { // Instance endpoint (full DNS name). Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` // Instance port. - Port uint32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Port uint32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *AddAmazonRDSMySQLServiceRequest) Reset() { *m = AddAmazonRDSMySQLServiceRequest{} } func (m *AddAmazonRDSMySQLServiceRequest) String() string { return proto.CompactTextString(m) } func (*AddAmazonRDSMySQLServiceRequest) ProtoMessage() {} func (*AddAmazonRDSMySQLServiceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_services_daa459a95988729b, []int{10} + return fileDescriptor_services_29f39446918419f8, []int{10} } func (m *AddAmazonRDSMySQLServiceRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddAmazonRDSMySQLServiceRequest.Unmarshal(m, b) @@ -825,6 +863,13 @@ func (m *AddAmazonRDSMySQLServiceRequest) GetPort() uint32 { return 0 } +func (m *AddAmazonRDSMySQLServiceRequest) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + type AddAmazonRDSMySQLServiceResponse struct { AmazonRdsMysql *AmazonRDSMySQLService `protobuf:"bytes,1,opt,name=amazon_rds_mysql,json=amazonRdsMysql,proto3" json:"amazon_rds_mysql,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -836,7 +881,7 @@ func (m *AddAmazonRDSMySQLServiceResponse) Reset() { *m = AddAmazonRDSMy func (m *AddAmazonRDSMySQLServiceResponse) String() string { return proto.CompactTextString(m) } func (*AddAmazonRDSMySQLServiceResponse) ProtoMessage() {} func (*AddAmazonRDSMySQLServiceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_services_daa459a95988729b, []int{11} + return fileDescriptor_services_29f39446918419f8, []int{11} } func (m *AddAmazonRDSMySQLServiceResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddAmazonRDSMySQLServiceResponse.Unmarshal(m, b) @@ -871,17 +916,19 @@ type ChangeAmazonRDSMySQLServiceRequest struct { // Instance endpoint (full DNS name). Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` // Instance port. - Port uint32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Port uint32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"` + // Custom user-assigned labels. Keys must start with "_". + CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *ChangeAmazonRDSMySQLServiceRequest) Reset() { *m = ChangeAmazonRDSMySQLServiceRequest{} } func (m *ChangeAmazonRDSMySQLServiceRequest) String() string { return proto.CompactTextString(m) } func (*ChangeAmazonRDSMySQLServiceRequest) ProtoMessage() {} func (*ChangeAmazonRDSMySQLServiceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_services_daa459a95988729b, []int{12} + return fileDescriptor_services_29f39446918419f8, []int{12} } func (m *ChangeAmazonRDSMySQLServiceRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ChangeAmazonRDSMySQLServiceRequest.Unmarshal(m, b) @@ -929,6 +976,13 @@ func (m *ChangeAmazonRDSMySQLServiceRequest) GetPort() uint32 { return 0 } +func (m *ChangeAmazonRDSMySQLServiceRequest) GetCustomLabels() map[string]string { + if m != nil { + return m.CustomLabels + } + return nil +} + type ChangeAmazonRDSMySQLServiceResponse struct { AmazonRdsMysql *AmazonRDSMySQLService `protobuf:"bytes,1,opt,name=amazon_rds_mysql,json=amazonRdsMysql,proto3" json:"amazon_rds_mysql,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -940,7 +994,7 @@ func (m *ChangeAmazonRDSMySQLServiceResponse) Reset() { *m = ChangeAmazo func (m *ChangeAmazonRDSMySQLServiceResponse) String() string { return proto.CompactTextString(m) } func (*ChangeAmazonRDSMySQLServiceResponse) ProtoMessage() {} func (*ChangeAmazonRDSMySQLServiceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_services_daa459a95988729b, []int{13} + return fileDescriptor_services_29f39446918419f8, []int{13} } func (m *ChangeAmazonRDSMySQLServiceResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ChangeAmazonRDSMySQLServiceResponse.Unmarshal(m, b) @@ -979,7 +1033,7 @@ func (m *RemoveServiceRequest) Reset() { *m = RemoveServiceRequest{} } func (m *RemoveServiceRequest) String() string { return proto.CompactTextString(m) } func (*RemoveServiceRequest) ProtoMessage() {} func (*RemoveServiceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_services_daa459a95988729b, []int{14} + return fileDescriptor_services_29f39446918419f8, []int{14} } func (m *RemoveServiceRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RemoveServiceRequest.Unmarshal(m, b) @@ -1016,7 +1070,7 @@ func (m *RemoveServiceResponse) Reset() { *m = RemoveServiceResponse{} } func (m *RemoveServiceResponse) String() string { return proto.CompactTextString(m) } func (*RemoveServiceResponse) ProtoMessage() {} func (*RemoveServiceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_services_daa459a95988729b, []int{15} + return fileDescriptor_services_29f39446918419f8, []int{15} } func (m *RemoveServiceResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_RemoveServiceResponse.Unmarshal(m, b) @@ -1038,18 +1092,24 @@ var xxx_messageInfo_RemoveServiceResponse proto.InternalMessageInfo func init() { proto.RegisterType((*MySQLService)(nil), "inventory.MySQLService") + proto.RegisterMapType((map[string]string)(nil), "inventory.MySQLService.CustomLabelsEntry") proto.RegisterType((*AmazonRDSMySQLService)(nil), "inventory.AmazonRDSMySQLService") + proto.RegisterMapType((map[string]string)(nil), "inventory.AmazonRDSMySQLService.CustomLabelsEntry") proto.RegisterType((*ListServicesRequest)(nil), "inventory.ListServicesRequest") proto.RegisterType((*ListServicesResponse)(nil), "inventory.ListServicesResponse") proto.RegisterType((*GetServiceRequest)(nil), "inventory.GetServiceRequest") proto.RegisterType((*GetServiceResponse)(nil), "inventory.GetServiceResponse") proto.RegisterType((*AddMySQLServiceRequest)(nil), "inventory.AddMySQLServiceRequest") + proto.RegisterMapType((map[string]string)(nil), "inventory.AddMySQLServiceRequest.CustomLabelsEntry") proto.RegisterType((*AddMySQLServiceResponse)(nil), "inventory.AddMySQLServiceResponse") proto.RegisterType((*ChangeMySQLServiceRequest)(nil), "inventory.ChangeMySQLServiceRequest") + proto.RegisterMapType((map[string]string)(nil), "inventory.ChangeMySQLServiceRequest.CustomLabelsEntry") proto.RegisterType((*ChangeMySQLServiceResponse)(nil), "inventory.ChangeMySQLServiceResponse") proto.RegisterType((*AddAmazonRDSMySQLServiceRequest)(nil), "inventory.AddAmazonRDSMySQLServiceRequest") + proto.RegisterMapType((map[string]string)(nil), "inventory.AddAmazonRDSMySQLServiceRequest.CustomLabelsEntry") proto.RegisterType((*AddAmazonRDSMySQLServiceResponse)(nil), "inventory.AddAmazonRDSMySQLServiceResponse") proto.RegisterType((*ChangeAmazonRDSMySQLServiceRequest)(nil), "inventory.ChangeAmazonRDSMySQLServiceRequest") + proto.RegisterMapType((map[string]string)(nil), "inventory.ChangeAmazonRDSMySQLServiceRequest.CustomLabelsEntry") proto.RegisterType((*ChangeAmazonRDSMySQLServiceResponse)(nil), "inventory.ChangeAmazonRDSMySQLServiceResponse") proto.RegisterType((*RemoveServiceRequest)(nil), "inventory.RemoveServiceRequest") proto.RegisterType((*RemoveServiceResponse)(nil), "inventory.RemoveServiceResponse") @@ -1339,61 +1399,68 @@ var _Services_serviceDesc = grpc.ServiceDesc{ Metadata: "inventory/services.proto", } -func init() { proto.RegisterFile("inventory/services.proto", fileDescriptor_services_daa459a95988729b) } - -var fileDescriptor_services_daa459a95988729b = []byte{ - // 836 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x97, 0xcf, 0x6e, 0xfb, 0x44, - 0x10, 0xc7, 0xb3, 0x69, 0x9a, 0x34, 0x93, 0x16, 0xc2, 0xd2, 0x12, 0xd7, 0x6d, 0x89, 0xbb, 0xb4, - 0x10, 0x52, 0x25, 0x86, 0x56, 0xea, 0x21, 0x12, 0x87, 0x06, 0xa4, 0xa6, 0xa5, 0x45, 0xc2, 0xb9, - 0x20, 0x2e, 0x91, 0x5b, 0x2f, 0xa9, 0xd5, 0xc4, 0x9b, 0xda, 0x6e, 0x4a, 0x11, 0x27, 0xc4, 0x03, - 0x80, 0xb8, 0x23, 0x8e, 0x5c, 0x91, 0x38, 0x00, 0xaf, 0xc1, 0x19, 0x21, 0x21, 0xee, 0xbc, 0x02, - 0xca, 0x7a, 0x9d, 0x38, 0xf1, 0x9f, 0x46, 0xfd, 0xfd, 0x2a, 0xf5, 0x16, 0xef, 0xce, 0xec, 0x7c, - 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0x00, 0xff, 0xff, 0x61, 0x9e, 0x6d, 0x46, - 0x6c, 0x0c, 0x00, 0x00, +func init() { proto.RegisterFile("inventory/services.proto", fileDescriptor_services_29f39446918419f8) } + +var fileDescriptor_services_29f39446918419f8 = []byte{ + // 957 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0x41, 0x73, 0xdb, 0x44, + 0x14, 0xce, 0x2a, 0x89, 0x93, 0xbc, 0x24, 0xe0, 0x2e, 0x29, 0x51, 0xd5, 0x06, 0xab, 0x4b, 0x03, + 0x6e, 0x3a, 0xb6, 0x20, 0x99, 0xc9, 0x30, 0x1e, 0x98, 0x4e, 0x52, 0x98, 0xa6, 0x25, 0xed, 0x0c, + 0xca, 0x81, 0x0e, 0x1c, 0x3c, 0x8a, 0xb5, 0xb8, 0x9a, 0x58, 0x5a, 0x47, 0x2b, 0x3b, 0x98, 0xe1, + 0xc4, 0xf0, 0x03, 0x60, 0xb8, 0x73, 0xe6, 0x07, 0x70, 0xe2, 0x1f, 0x70, 0x06, 0xce, 0x0c, 0x0c, + 0x77, 0x7e, 0x00, 0x17, 0x46, 0xab, 0x95, 0x2d, 0x5b, 0x92, 0x6d, 0x0a, 0xa6, 0xb9, 0x49, 0xda, + 0xf7, 0xf6, 0x7d, 0xdf, 0xfb, 0xde, 0x7b, 0xbb, 0x02, 0xd5, 0xf1, 0xba, 0xd4, 0x0b, 0x98, 0xdf, + 0x33, 0x38, 0xf5, 0xbb, 0x4e, 0x83, 0xf2, 0x6a, 0xdb, 0x67, 0x01, 0xc3, 0x2b, 0xfd, 0x15, 0x6d, + 0xbf, 0xe9, 0x04, 0x4f, 0x3b, 0xa7, 0xd5, 0x06, 0x73, 0x0d, 0xf7, 0xc2, 0x09, 0xce, 0xd8, 0x85, + 0xd1, 0x64, 0x15, 0x61, 0x57, 0xe9, 0x5a, 0x2d, 0xc7, 0xb6, 0x02, 0x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xc0, + 0x86, 0x49, 0x5d, 0xd6, 0xa5, 0xcf, 0x76, 0xd4, 0x6f, 0xc2, 0xd5, 0x11, 0xf7, 0x08, 0xe3, 0xee, + 0x9f, 0x4b, 0xb0, 0x1c, 0xdf, 0x67, 0xf0, 0x05, 0xac, 0x25, 0xef, 0x37, 0xf8, 0x95, 0x04, 0xcc, + 0x8c, 0x5b, 0x93, 0x56, 0xca, 0x5d, 0x8f, 0x76, 0x27, 0xaf, 0x7d, 0xf1, 0xd3, 0x1f, 0xdf, 0x28, + 0x3a, 0xb9, 0x6e, 0x74, 0xdf, 0x34, 0x06, 0x7f, 0x1f, 0xb1, 0x9d, 0x11, 0x3a, 0xd5, 0xd0, 0x0e, + 0x6e, 0x03, 0x0c, 0x2e, 0x22, 0xf8, 0x46, 0x62, 0xdb, 0xd4, 0xe5, 0x46, 0xdb, 0xca, 0x59, 0x95, + 0x21, 0xb7, 0x45, 0xc8, 0x12, 0xd1, 0x72, 0x42, 0xde, 0xa7, 0x22, 0xe2, 0x97, 0x08, 0x5e, 0x1c, + 0x39, 0x04, 0xf1, 0xcd, 0x89, 0x27, 0xb4, 0x46, 0xc6, 0x99, 0x48, 0x04, 0x3b, 0x02, 0xc1, 0x2d, + 0x52, 0xca, 0x41, 0x10, 0xfb, 0x85, 0x30, 0xbe, 0x42, 0x80, 0xd3, 0x33, 0x1c, 0xdf, 0x9a, 0xe6, + 0x80, 0xd1, 0xb6, 0x27, 0x58, 0x49, 0x3c, 0x15, 0x81, 0xe7, 0x75, 0x42, 0x72, 0xf0, 0x24, 0x5c, + 0x43, 0x48, 0xdf, 0x21, 0x50, 0xf3, 0x26, 0x16, 0xde, 0x99, 0x7e, 0xc0, 0x6a, 0x77, 0xa6, 0xb2, + 0x95, 0x20, 0xf7, 0x04, 0xc8, 0x0a, 0x29, 0xe7, 0x27, 0x6d, 0x78, 0x83, 0x10, 0xea, 0xf7, 0x08, + 0xae, 0x8f, 0x69, 0x44, 0x5c, 0xf9, 0x47, 0xd3, 0x43, 0xab, 0x4e, 0x6b, 0x2e, 0x31, 0xef, 0x0b, + 0xcc, 0x6f, 0x90, 0x3b, 0x63, 0x13, 0x9b, 0x86, 0xfd, 0x39, 0xac, 0x0f, 0x35, 0x23, 0x4e, 0xf6, + 0x51, 0x56, 0x97, 0x6b, 0x7a, 0xbe, 0x81, 0xc4, 0x52, 0x16, 0x58, 0x08, 0xd9, 0xca, 0xc1, 0x12, + 0x79, 0xd5, 0xd0, 0xce, 0xe1, 0xea, 0x47, 0x83, 0xbf, 0xfd, 0xd3, 0x82, 0xf8, 0x3d, 0xdf, 0xfb, + 0x3b, 0x00, 0x00, 0xff, 0xff, 0x27, 0xaf, 0x47, 0x2b, 0x1b, 0x10, 0x00, 0x00, } diff --git a/vendor/github.com/percona/pmm/api/inventory/services.proto b/vendor/github.com/percona/pmm/api/inventory/services.proto index bf1e0708d8..d095b5aff2 100644 --- a/vendor/github.com/percona/pmm/api/inventory/services.proto +++ b/vendor/github.com/percona/pmm/api/inventory/services.proto @@ -21,6 +21,8 @@ message MySQLService { uint32 port = 5; // Access Unix socket. Required if address and port are absent. string unix_socket = 6; + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } // AmazonRDSMySQLService represents a MySQL instance running on a single RemoteAmazonRDS Node @@ -35,6 +37,8 @@ message AmazonRDSMySQLService { string address = 4; // Instance port. uint32 port = 5; + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } // List @@ -92,6 +96,8 @@ message AddMySQLServiceRequest { uint32 port = 5; // Access Unix socket. Required if address and port are absent. string unix_socket = 6; + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } message AddMySQLServiceResponse { @@ -123,6 +129,8 @@ message ChangeMySQLServiceRequest { uint32 port = 5; // Access Unix socket. Required if address and port are absent. string unix_socket = 6; + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } message ChangeMySQLServiceResponse { @@ -158,6 +166,8 @@ message AddAmazonRDSMySQLServiceRequest { int_gt: 0 } ]; + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } message AddAmazonRDSMySQLServiceResponse { @@ -191,6 +201,8 @@ message ChangeAmazonRDSMySQLServiceRequest { int_gt: 0 } ]; + // Custom user-assigned labels. Keys must start with "_". + map custom_labels = 10; } message ChangeAmazonRDSMySQLServiceResponse { diff --git a/vendor/github.com/percona/pmm/api/inventory/services.validator.pb.go b/vendor/github.com/percona/pmm/api/inventory/services.validator.pb.go index 6ad2763cc9..b4029cedcf 100644 --- a/vendor/github.com/percona/pmm/api/inventory/services.validator.pb.go +++ b/vendor/github.com/percona/pmm/api/inventory/services.validator.pb.go @@ -16,9 +16,11 @@ var _ = fmt.Errorf var _ = math.Inf func (this *MySQLService) Validate() error { + // Validation of proto3 map<> fields is unsupported. return nil } func (this *AmazonRDSMySQLService) Validate() error { + // Validation of proto3 map<> fields is unsupported. return nil } func (this *ListServicesRequest) Validate() error { @@ -71,6 +73,7 @@ func (this *AddMySQLServiceRequest) Validate() error { if this.NodeId == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeId", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeId)) } + // Validation of proto3 map<> fields is unsupported. return nil } func (this *AddMySQLServiceResponse) Validate() error { @@ -91,6 +94,7 @@ func (this *ChangeMySQLServiceRequest) Validate() error { if this.NodeId == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeId", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeId)) } + // Validation of proto3 map<> fields is unsupported. return nil } func (this *ChangeMySQLServiceResponse) Validate() error { @@ -114,6 +118,7 @@ func (this *AddAmazonRDSMySQLServiceRequest) Validate() error { if !(this.Port > 0) { return github_com_mwitkow_go_proto_validators.FieldError("Port", fmt.Errorf(`value '%v' must be greater than '0'`, this.Port)) } + // Validation of proto3 map<> fields is unsupported. return nil } func (this *AddAmazonRDSMySQLServiceResponse) Validate() error { @@ -137,6 +142,7 @@ func (this *ChangeAmazonRDSMySQLServiceRequest) Validate() error { if !(this.Port > 0) { return github_com_mwitkow_go_proto_validators.FieldError("Port", fmt.Errorf(`value '%v' must be greater than '0'`, this.Port)) } + // Validation of proto3 map<> fields is unsupported. return nil } func (this *ChangeAmazonRDSMySQLServiceResponse) Validate() error { From 3a329e61a777d49ee42a5e715322295800e8cc83 Mon Sep 17 00:00:00 2001 From: Alexey Palazhchenko Date: Mon, 25 Feb 2019 10:43:46 +0300 Subject: [PATCH 2/2] PMM-3542 Remove old APIs. --- api/client.go | 35 -- api/mysql.pb.go | 602 ------------------------------ api/mysql.pb.gw.go | 199 ---------- api/mysql.proto | 72 ---- api/postgresql.pb.go | 602 ------------------------------ api/postgresql.pb.gw.go | 199 ---------- api/postgresql.proto | 72 ---- api/rds.pb.go | 775 --------------------------------------- api/rds.pb.gw.go | 230 ------------ api/rds.proto | 94 ----- api/remote.pb.go | 372 ------------------- api/remote.pb.gw.go | 107 ------ api/remote.proto | 44 --- api/swagger/swagger.json | 392 ++++++++++++++++++++ main.go | 4 - 15 files changed, 392 insertions(+), 3407 deletions(-) delete mode 100644 api/client.go delete mode 100644 api/mysql.pb.go delete mode 100644 api/mysql.pb.gw.go delete mode 100644 api/mysql.proto delete mode 100644 api/postgresql.pb.go delete mode 100644 api/postgresql.pb.gw.go delete mode 100644 api/postgresql.proto delete mode 100644 api/rds.pb.go delete mode 100644 api/rds.pb.gw.go delete mode 100644 api/rds.proto delete mode 100644 api/remote.pb.go delete mode 100644 api/remote.pb.gw.go delete mode 100644 api/remote.proto diff --git a/api/client.go b/api/client.go deleted file mode 100644 index 2200a3349f..0000000000 --- a/api/client.go +++ /dev/null @@ -1,35 +0,0 @@ -// pmm-managed -// Copyright (C) 2017 Percona LLC -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. -// -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see . - -package api - -import ( - "google.golang.org/grpc" -) - -// Client is a client for pmm-managed APIs. -type Client struct { - BaseClient - ScrapeConfigsClient -} - -// NewClient creates new Client for a given connection. -func NewClient(cc *grpc.ClientConn) *Client { - return &Client{ - BaseClient: NewBaseClient(cc), - ScrapeConfigsClient: NewScrapeConfigsClient(cc), - } -} diff --git a/api/mysql.pb.go b/api/mysql.pb.go deleted file mode 100644 index 209b248aa2..0000000000 --- a/api/mysql.pb.go +++ /dev/null @@ -1,602 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: mysql.proto - -package api - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import _ "google.golang.org/genproto/googleapis/api/annotations" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package - -type MySQLNode struct { - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MySQLNode) Reset() { *m = MySQLNode{} } -func (m *MySQLNode) String() string { return proto.CompactTextString(m) } -func (*MySQLNode) ProtoMessage() {} -func (*MySQLNode) Descriptor() ([]byte, []int) { - return fileDescriptor_mysql_ec59ee5ec9efbcab, []int{0} -} -func (m *MySQLNode) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MySQLNode.Unmarshal(m, b) -} -func (m *MySQLNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MySQLNode.Marshal(b, m, deterministic) -} -func (dst *MySQLNode) XXX_Merge(src proto.Message) { - xxx_messageInfo_MySQLNode.Merge(dst, src) -} -func (m *MySQLNode) XXX_Size() int { - return xxx_messageInfo_MySQLNode.Size(m) -} -func (m *MySQLNode) XXX_DiscardUnknown() { - xxx_messageInfo_MySQLNode.DiscardUnknown(m) -} - -var xxx_messageInfo_MySQLNode proto.InternalMessageInfo - -func (m *MySQLNode) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type MySQLService struct { - Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` - Port uint32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"` - Engine string `protobuf:"bytes,6,opt,name=engine,proto3" json:"engine,omitempty"` - EngineVersion string `protobuf:"bytes,7,opt,name=engine_version,json=engineVersion,proto3" json:"engine_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MySQLService) Reset() { *m = MySQLService{} } -func (m *MySQLService) String() string { return proto.CompactTextString(m) } -func (*MySQLService) ProtoMessage() {} -func (*MySQLService) Descriptor() ([]byte, []int) { - return fileDescriptor_mysql_ec59ee5ec9efbcab, []int{1} -} -func (m *MySQLService) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MySQLService.Unmarshal(m, b) -} -func (m *MySQLService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MySQLService.Marshal(b, m, deterministic) -} -func (dst *MySQLService) XXX_Merge(src proto.Message) { - xxx_messageInfo_MySQLService.Merge(dst, src) -} -func (m *MySQLService) XXX_Size() int { - return xxx_messageInfo_MySQLService.Size(m) -} -func (m *MySQLService) XXX_DiscardUnknown() { - xxx_messageInfo_MySQLService.DiscardUnknown(m) -} - -var xxx_messageInfo_MySQLService proto.InternalMessageInfo - -func (m *MySQLService) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *MySQLService) GetPort() uint32 { - if m != nil { - return m.Port - } - return 0 -} - -func (m *MySQLService) GetEngine() string { - if m != nil { - return m.Engine - } - return "" -} - -func (m *MySQLService) GetEngineVersion() string { - if m != nil { - return m.EngineVersion - } - return "" -} - -type MySQLInstance struct { - Node *MySQLNode `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` - Service *MySQLService `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MySQLInstance) Reset() { *m = MySQLInstance{} } -func (m *MySQLInstance) String() string { return proto.CompactTextString(m) } -func (*MySQLInstance) ProtoMessage() {} -func (*MySQLInstance) Descriptor() ([]byte, []int) { - return fileDescriptor_mysql_ec59ee5ec9efbcab, []int{2} -} -func (m *MySQLInstance) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MySQLInstance.Unmarshal(m, b) -} -func (m *MySQLInstance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MySQLInstance.Marshal(b, m, deterministic) -} -func (dst *MySQLInstance) XXX_Merge(src proto.Message) { - xxx_messageInfo_MySQLInstance.Merge(dst, src) -} -func (m *MySQLInstance) XXX_Size() int { - return xxx_messageInfo_MySQLInstance.Size(m) -} -func (m *MySQLInstance) XXX_DiscardUnknown() { - xxx_messageInfo_MySQLInstance.DiscardUnknown(m) -} - -var xxx_messageInfo_MySQLInstance proto.InternalMessageInfo - -func (m *MySQLInstance) GetNode() *MySQLNode { - if m != nil { - return m.Node - } - return nil -} - -func (m *MySQLInstance) GetService() *MySQLService { - if m != nil { - return m.Service - } - return nil -} - -type MySQLListRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MySQLListRequest) Reset() { *m = MySQLListRequest{} } -func (m *MySQLListRequest) String() string { return proto.CompactTextString(m) } -func (*MySQLListRequest) ProtoMessage() {} -func (*MySQLListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_mysql_ec59ee5ec9efbcab, []int{3} -} -func (m *MySQLListRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MySQLListRequest.Unmarshal(m, b) -} -func (m *MySQLListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MySQLListRequest.Marshal(b, m, deterministic) -} -func (dst *MySQLListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MySQLListRequest.Merge(dst, src) -} -func (m *MySQLListRequest) XXX_Size() int { - return xxx_messageInfo_MySQLListRequest.Size(m) -} -func (m *MySQLListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MySQLListRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_MySQLListRequest proto.InternalMessageInfo - -type MySQLListResponse struct { - Instances []*MySQLInstance `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MySQLListResponse) Reset() { *m = MySQLListResponse{} } -func (m *MySQLListResponse) String() string { return proto.CompactTextString(m) } -func (*MySQLListResponse) ProtoMessage() {} -func (*MySQLListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_mysql_ec59ee5ec9efbcab, []int{4} -} -func (m *MySQLListResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MySQLListResponse.Unmarshal(m, b) -} -func (m *MySQLListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MySQLListResponse.Marshal(b, m, deterministic) -} -func (dst *MySQLListResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MySQLListResponse.Merge(dst, src) -} -func (m *MySQLListResponse) XXX_Size() int { - return xxx_messageInfo_MySQLListResponse.Size(m) -} -func (m *MySQLListResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MySQLListResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MySQLListResponse proto.InternalMessageInfo - -func (m *MySQLListResponse) GetInstances() []*MySQLInstance { - if m != nil { - return m.Instances - } - return nil -} - -type MySQLAddRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` - Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` - Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MySQLAddRequest) Reset() { *m = MySQLAddRequest{} } -func (m *MySQLAddRequest) String() string { return proto.CompactTextString(m) } -func (*MySQLAddRequest) ProtoMessage() {} -func (*MySQLAddRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_mysql_ec59ee5ec9efbcab, []int{5} -} -func (m *MySQLAddRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MySQLAddRequest.Unmarshal(m, b) -} -func (m *MySQLAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MySQLAddRequest.Marshal(b, m, deterministic) -} -func (dst *MySQLAddRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MySQLAddRequest.Merge(dst, src) -} -func (m *MySQLAddRequest) XXX_Size() int { - return xxx_messageInfo_MySQLAddRequest.Size(m) -} -func (m *MySQLAddRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MySQLAddRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_MySQLAddRequest proto.InternalMessageInfo - -func (m *MySQLAddRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *MySQLAddRequest) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *MySQLAddRequest) GetPort() uint32 { - if m != nil { - return m.Port - } - return 0 -} - -func (m *MySQLAddRequest) GetUsername() string { - if m != nil { - return m.Username - } - return "" -} - -func (m *MySQLAddRequest) GetPassword() string { - if m != nil { - return m.Password - } - return "" -} - -type MySQLAddResponse struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MySQLAddResponse) Reset() { *m = MySQLAddResponse{} } -func (m *MySQLAddResponse) String() string { return proto.CompactTextString(m) } -func (*MySQLAddResponse) ProtoMessage() {} -func (*MySQLAddResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_mysql_ec59ee5ec9efbcab, []int{6} -} -func (m *MySQLAddResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MySQLAddResponse.Unmarshal(m, b) -} -func (m *MySQLAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MySQLAddResponse.Marshal(b, m, deterministic) -} -func (dst *MySQLAddResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MySQLAddResponse.Merge(dst, src) -} -func (m *MySQLAddResponse) XXX_Size() int { - return xxx_messageInfo_MySQLAddResponse.Size(m) -} -func (m *MySQLAddResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MySQLAddResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MySQLAddResponse proto.InternalMessageInfo - -func (m *MySQLAddResponse) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type MySQLRemoveRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MySQLRemoveRequest) Reset() { *m = MySQLRemoveRequest{} } -func (m *MySQLRemoveRequest) String() string { return proto.CompactTextString(m) } -func (*MySQLRemoveRequest) ProtoMessage() {} -func (*MySQLRemoveRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_mysql_ec59ee5ec9efbcab, []int{7} -} -func (m *MySQLRemoveRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MySQLRemoveRequest.Unmarshal(m, b) -} -func (m *MySQLRemoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MySQLRemoveRequest.Marshal(b, m, deterministic) -} -func (dst *MySQLRemoveRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MySQLRemoveRequest.Merge(dst, src) -} -func (m *MySQLRemoveRequest) XXX_Size() int { - return xxx_messageInfo_MySQLRemoveRequest.Size(m) -} -func (m *MySQLRemoveRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MySQLRemoveRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_MySQLRemoveRequest proto.InternalMessageInfo - -func (m *MySQLRemoveRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type MySQLRemoveResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MySQLRemoveResponse) Reset() { *m = MySQLRemoveResponse{} } -func (m *MySQLRemoveResponse) String() string { return proto.CompactTextString(m) } -func (*MySQLRemoveResponse) ProtoMessage() {} -func (*MySQLRemoveResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_mysql_ec59ee5ec9efbcab, []int{8} -} -func (m *MySQLRemoveResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MySQLRemoveResponse.Unmarshal(m, b) -} -func (m *MySQLRemoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MySQLRemoveResponse.Marshal(b, m, deterministic) -} -func (dst *MySQLRemoveResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MySQLRemoveResponse.Merge(dst, src) -} -func (m *MySQLRemoveResponse) XXX_Size() int { - return xxx_messageInfo_MySQLRemoveResponse.Size(m) -} -func (m *MySQLRemoveResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MySQLRemoveResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MySQLRemoveResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*MySQLNode)(nil), "api.MySQLNode") - proto.RegisterType((*MySQLService)(nil), "api.MySQLService") - proto.RegisterType((*MySQLInstance)(nil), "api.MySQLInstance") - proto.RegisterType((*MySQLListRequest)(nil), "api.MySQLListRequest") - proto.RegisterType((*MySQLListResponse)(nil), "api.MySQLListResponse") - proto.RegisterType((*MySQLAddRequest)(nil), "api.MySQLAddRequest") - proto.RegisterType((*MySQLAddResponse)(nil), "api.MySQLAddResponse") - proto.RegisterType((*MySQLRemoveRequest)(nil), "api.MySQLRemoveRequest") - proto.RegisterType((*MySQLRemoveResponse)(nil), "api.MySQLRemoveResponse") -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// MySQLClient is the client API for MySQL service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type MySQLClient interface { - List(ctx context.Context, in *MySQLListRequest, opts ...grpc.CallOption) (*MySQLListResponse, error) - Add(ctx context.Context, in *MySQLAddRequest, opts ...grpc.CallOption) (*MySQLAddResponse, error) - Remove(ctx context.Context, in *MySQLRemoveRequest, opts ...grpc.CallOption) (*MySQLRemoveResponse, error) -} - -type mySQLClient struct { - cc *grpc.ClientConn -} - -func NewMySQLClient(cc *grpc.ClientConn) MySQLClient { - return &mySQLClient{cc} -} - -func (c *mySQLClient) List(ctx context.Context, in *MySQLListRequest, opts ...grpc.CallOption) (*MySQLListResponse, error) { - out := new(MySQLListResponse) - err := c.cc.Invoke(ctx, "/api.MySQL/List", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *mySQLClient) Add(ctx context.Context, in *MySQLAddRequest, opts ...grpc.CallOption) (*MySQLAddResponse, error) { - out := new(MySQLAddResponse) - err := c.cc.Invoke(ctx, "/api.MySQL/Add", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *mySQLClient) Remove(ctx context.Context, in *MySQLRemoveRequest, opts ...grpc.CallOption) (*MySQLRemoveResponse, error) { - out := new(MySQLRemoveResponse) - err := c.cc.Invoke(ctx, "/api.MySQL/Remove", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// MySQLServer is the server API for MySQL service. -type MySQLServer interface { - List(context.Context, *MySQLListRequest) (*MySQLListResponse, error) - Add(context.Context, *MySQLAddRequest) (*MySQLAddResponse, error) - Remove(context.Context, *MySQLRemoveRequest) (*MySQLRemoveResponse, error) -} - -func RegisterMySQLServer(s *grpc.Server, srv MySQLServer) { - s.RegisterService(&_MySQL_serviceDesc, srv) -} - -func _MySQL_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MySQLListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MySQLServer).List(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.MySQL/List", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MySQLServer).List(ctx, req.(*MySQLListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MySQL_Add_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MySQLAddRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MySQLServer).Add(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.MySQL/Add", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MySQLServer).Add(ctx, req.(*MySQLAddRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MySQL_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MySQLRemoveRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MySQLServer).Remove(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.MySQL/Remove", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MySQLServer).Remove(ctx, req.(*MySQLRemoveRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _MySQL_serviceDesc = grpc.ServiceDesc{ - ServiceName: "api.MySQL", - HandlerType: (*MySQLServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "List", - Handler: _MySQL_List_Handler, - }, - { - MethodName: "Add", - Handler: _MySQL_Add_Handler, - }, - { - MethodName: "Remove", - Handler: _MySQL_Remove_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "mysql.proto", -} - -func init() { proto.RegisterFile("mysql.proto", fileDescriptor_mysql_ec59ee5ec9efbcab) } - -var fileDescriptor_mysql_ec59ee5ec9efbcab = []byte{ - // 486 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x53, 0x4d, 0x6f, 0xd3, 0x40, - 0x10, 0xd5, 0xda, 0x6e, 0x3e, 0x26, 0x24, 0x24, 0x43, 0x13, 0x56, 0x16, 0x87, 0x68, 0x05, 0x52, - 0xd4, 0x4a, 0x71, 0x15, 0x6e, 0xdc, 0x7a, 0x40, 0x2a, 0x51, 0x41, 0xc2, 0x91, 0xb8, 0x82, 0xe9, - 0xae, 0xa2, 0x95, 0x9a, 0x5d, 0xd7, 0xeb, 0x06, 0x55, 0x88, 0x0b, 0x57, 0xc4, 0x89, 0x9f, 0xc6, - 0x5f, 0xe0, 0x07, 0xf0, 0x13, 0x50, 0xc6, 0x8e, 0xed, 0x86, 0xde, 0x76, 0xe6, 0xbd, 0x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17, 0x9f, 0xd6, 0x63, - 0xf7, 0xf6, 0x0c, 0xf9, 0xff, 0x40, 0x29, 0x39, 0x21, 0xc9, 0xe1, 0xc9, 0xa0, 0x92, 0x8c, 0xbe, - 0x6a, 0xf9, 0xed, 0x73, 0x8b, 0x7e, 0xb1, 0x97, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xcd, 0x19, - 0x4a, 0x4f, 0x94, 0x03, 0x00, 0x00, -} diff --git a/api/mysql.pb.gw.go b/api/mysql.pb.gw.go deleted file mode 100644 index c9f7affea7..0000000000 --- a/api/mysql.pb.gw.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: mysql.proto - -/* -Package api is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package api - -import ( - "io" - "net/http" - - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "golang.org/x/net/context" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/status" -) - -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray - -func request_MySQL_List_0(ctx context.Context, marshaler runtime.Marshaler, client MySQLClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MySQLListRequest - var metadata runtime.ServerMetadata - - msg, err := client.List(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_MySQL_Add_0(ctx context.Context, marshaler runtime.Marshaler, client MySQLClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MySQLAddRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.Add(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_MySQL_Remove_0(ctx context.Context, marshaler runtime.Marshaler, client MySQLClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MySQLRemoveRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.Remove(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -// RegisterMySQLHandlerFromEndpoint is same as RegisterMySQLHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterMySQLHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterMySQLHandler(ctx, mux, conn) -} - -// RegisterMySQLHandler registers the http handlers for service MySQL to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterMySQLHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterMySQLHandlerClient(ctx, mux, NewMySQLClient(conn)) -} - -// RegisterMySQLHandlerClient registers the http handlers for service MySQL -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MySQLClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MySQLClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "MySQLClient" to call the correct interceptors. -func RegisterMySQLHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MySQLClient) error { - - mux.Handle("GET", pattern_MySQL_List_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_MySQL_List_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_MySQL_List_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_MySQL_Add_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_MySQL_Add_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_MySQL_Add_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_MySQL_Remove_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_MySQL_Remove_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_MySQL_Remove_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_MySQL_List_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v0", "mysql"}, "")) - - pattern_MySQL_Add_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v0", "mysql"}, "")) - - pattern_MySQL_Remove_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"v0", "mysql", "id"}, "")) -) - -var ( - forward_MySQL_List_0 = runtime.ForwardResponseMessage - - forward_MySQL_Add_0 = runtime.ForwardResponseMessage - - forward_MySQL_Remove_0 = runtime.ForwardResponseMessage -) diff --git a/api/mysql.proto b/api/mysql.proto deleted file mode 100644 index aa9241c457..0000000000 --- a/api/mysql.proto +++ /dev/null @@ -1,72 +0,0 @@ -syntax = "proto3"; - -package api; - -import "google/api/annotations.proto"; - -message MySQLNode { - reserved 1, 2; // id and type - - string name = 3; -} - -message MySQLService { - reserved 1, 2, 3; // id, type, and node_id - - string address = 4; - uint32 port = 5; - string engine = 6; - string engine_version = 7; -} - -message MySQLInstance { - MySQLNode node = 1; - MySQLService service = 2; -} - -message MySQLListRequest { -} - -message MySQLListResponse { - repeated MySQLInstance instances = 1; -} - -message MySQLAddRequest { - string name = 1; - string address = 2; - uint32 port = 3; - string username = 4; - string password = 5; -} - -message MySQLAddResponse { - string id = 1; -} - -message MySQLRemoveRequest { - string id = 1; -} - -message MySQLRemoveResponse { -} - -service MySQL { - rpc List(MySQLListRequest) returns (MySQLListResponse) { - option (google.api.http) = { - get: "/v0/mysql" - }; - } - - rpc Add(MySQLAddRequest) returns (MySQLAddResponse) { - option (google.api.http) = { - post: "/v0/mysql" - body: "*" - }; - } - - rpc Remove(MySQLRemoveRequest) returns (MySQLRemoveResponse) { - option (google.api.http) = { - delete: "/v0/mysql/{id}" - }; - } -} diff --git a/api/postgresql.pb.go b/api/postgresql.pb.go deleted file mode 100644 index f5e7b10292..0000000000 --- a/api/postgresql.pb.go +++ /dev/null @@ -1,602 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: postgresql.proto - -package api - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import _ "google.golang.org/genproto/googleapis/api/annotations" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package - -type PostgreSQLNode struct { - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PostgreSQLNode) Reset() { *m = PostgreSQLNode{} } -func (m *PostgreSQLNode) String() string { return proto.CompactTextString(m) } -func (*PostgreSQLNode) ProtoMessage() {} -func (*PostgreSQLNode) Descriptor() ([]byte, []int) { - return fileDescriptor_postgresql_0f6c1d50fb6884b1, []int{0} -} -func (m *PostgreSQLNode) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PostgreSQLNode.Unmarshal(m, b) -} -func (m *PostgreSQLNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PostgreSQLNode.Marshal(b, m, deterministic) -} -func (dst *PostgreSQLNode) XXX_Merge(src proto.Message) { - xxx_messageInfo_PostgreSQLNode.Merge(dst, src) -} -func (m *PostgreSQLNode) XXX_Size() int { - return xxx_messageInfo_PostgreSQLNode.Size(m) -} -func (m *PostgreSQLNode) XXX_DiscardUnknown() { - xxx_messageInfo_PostgreSQLNode.DiscardUnknown(m) -} - -var xxx_messageInfo_PostgreSQLNode proto.InternalMessageInfo - -func (m *PostgreSQLNode) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type PostgreSQLService struct { - Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` - Port uint32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"` - Engine string `protobuf:"bytes,6,opt,name=engine,proto3" json:"engine,omitempty"` - EngineVersion string `protobuf:"bytes,7,opt,name=engine_version,json=engineVersion,proto3" json:"engine_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PostgreSQLService) Reset() { *m = PostgreSQLService{} } -func (m *PostgreSQLService) String() string { return proto.CompactTextString(m) } -func (*PostgreSQLService) ProtoMessage() {} -func (*PostgreSQLService) Descriptor() ([]byte, []int) { - return fileDescriptor_postgresql_0f6c1d50fb6884b1, []int{1} -} -func (m *PostgreSQLService) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PostgreSQLService.Unmarshal(m, b) -} -func (m *PostgreSQLService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PostgreSQLService.Marshal(b, m, deterministic) -} -func (dst *PostgreSQLService) XXX_Merge(src proto.Message) { - xxx_messageInfo_PostgreSQLService.Merge(dst, src) -} -func (m *PostgreSQLService) XXX_Size() int { - return xxx_messageInfo_PostgreSQLService.Size(m) -} -func (m *PostgreSQLService) XXX_DiscardUnknown() { - xxx_messageInfo_PostgreSQLService.DiscardUnknown(m) -} - -var xxx_messageInfo_PostgreSQLService proto.InternalMessageInfo - -func (m *PostgreSQLService) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *PostgreSQLService) GetPort() uint32 { - if m != nil { - return m.Port - } - return 0 -} - -func (m *PostgreSQLService) GetEngine() string { - if m != nil { - return m.Engine - } - return "" -} - -func (m *PostgreSQLService) GetEngineVersion() string { - if m != nil { - return m.EngineVersion - } - return "" -} - -type PostgreSQLInstance struct { - Node *PostgreSQLNode `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` - Service *PostgreSQLService `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PostgreSQLInstance) Reset() { *m = PostgreSQLInstance{} } -func (m *PostgreSQLInstance) String() string { return proto.CompactTextString(m) } -func (*PostgreSQLInstance) ProtoMessage() {} -func (*PostgreSQLInstance) Descriptor() ([]byte, []int) { - return fileDescriptor_postgresql_0f6c1d50fb6884b1, []int{2} -} -func (m *PostgreSQLInstance) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PostgreSQLInstance.Unmarshal(m, b) -} -func (m *PostgreSQLInstance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PostgreSQLInstance.Marshal(b, m, deterministic) -} -func (dst *PostgreSQLInstance) XXX_Merge(src proto.Message) { - xxx_messageInfo_PostgreSQLInstance.Merge(dst, src) -} -func (m *PostgreSQLInstance) XXX_Size() int { - return xxx_messageInfo_PostgreSQLInstance.Size(m) -} -func (m *PostgreSQLInstance) XXX_DiscardUnknown() { - xxx_messageInfo_PostgreSQLInstance.DiscardUnknown(m) -} - -var xxx_messageInfo_PostgreSQLInstance proto.InternalMessageInfo - -func (m *PostgreSQLInstance) GetNode() *PostgreSQLNode { - if m != nil { - return m.Node - } - return nil -} - -func (m *PostgreSQLInstance) GetService() *PostgreSQLService { - if m != nil { - return m.Service - } - return nil -} - -type PostgreSQLListRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PostgreSQLListRequest) Reset() { *m = PostgreSQLListRequest{} } -func (m *PostgreSQLListRequest) String() string { return proto.CompactTextString(m) } -func (*PostgreSQLListRequest) ProtoMessage() {} -func (*PostgreSQLListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_postgresql_0f6c1d50fb6884b1, []int{3} -} -func (m *PostgreSQLListRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PostgreSQLListRequest.Unmarshal(m, b) -} -func (m *PostgreSQLListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PostgreSQLListRequest.Marshal(b, m, deterministic) -} -func (dst *PostgreSQLListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PostgreSQLListRequest.Merge(dst, src) -} -func (m *PostgreSQLListRequest) XXX_Size() int { - return xxx_messageInfo_PostgreSQLListRequest.Size(m) -} -func (m *PostgreSQLListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PostgreSQLListRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_PostgreSQLListRequest proto.InternalMessageInfo - -type PostgreSQLListResponse struct { - Instances []*PostgreSQLInstance `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PostgreSQLListResponse) Reset() { *m = PostgreSQLListResponse{} } -func (m *PostgreSQLListResponse) String() string { return proto.CompactTextString(m) } -func (*PostgreSQLListResponse) ProtoMessage() {} -func (*PostgreSQLListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_postgresql_0f6c1d50fb6884b1, []int{4} -} -func (m *PostgreSQLListResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PostgreSQLListResponse.Unmarshal(m, b) -} -func (m *PostgreSQLListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PostgreSQLListResponse.Marshal(b, m, deterministic) -} -func (dst *PostgreSQLListResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PostgreSQLListResponse.Merge(dst, src) -} -func (m *PostgreSQLListResponse) XXX_Size() int { - return xxx_messageInfo_PostgreSQLListResponse.Size(m) -} -func (m *PostgreSQLListResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PostgreSQLListResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_PostgreSQLListResponse proto.InternalMessageInfo - -func (m *PostgreSQLListResponse) GetInstances() []*PostgreSQLInstance { - if m != nil { - return m.Instances - } - return nil -} - -type PostgreSQLAddRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` - Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` - Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PostgreSQLAddRequest) Reset() { *m = PostgreSQLAddRequest{} } -func (m *PostgreSQLAddRequest) String() string { return proto.CompactTextString(m) } -func (*PostgreSQLAddRequest) ProtoMessage() {} -func (*PostgreSQLAddRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_postgresql_0f6c1d50fb6884b1, []int{5} -} -func (m *PostgreSQLAddRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PostgreSQLAddRequest.Unmarshal(m, b) -} -func (m *PostgreSQLAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PostgreSQLAddRequest.Marshal(b, m, deterministic) -} -func (dst *PostgreSQLAddRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PostgreSQLAddRequest.Merge(dst, src) -} -func (m *PostgreSQLAddRequest) XXX_Size() int { - return xxx_messageInfo_PostgreSQLAddRequest.Size(m) -} -func (m *PostgreSQLAddRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PostgreSQLAddRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_PostgreSQLAddRequest proto.InternalMessageInfo - -func (m *PostgreSQLAddRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *PostgreSQLAddRequest) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *PostgreSQLAddRequest) GetPort() uint32 { - if m != nil { - return m.Port - } - return 0 -} - -func (m *PostgreSQLAddRequest) GetUsername() string { - if m != nil { - return m.Username - } - return "" -} - -func (m *PostgreSQLAddRequest) GetPassword() string { - if m != nil { - return m.Password - } - return "" -} - -type PostgreSQLAddResponse struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PostgreSQLAddResponse) Reset() { *m = PostgreSQLAddResponse{} } -func (m *PostgreSQLAddResponse) String() string { return proto.CompactTextString(m) } -func (*PostgreSQLAddResponse) ProtoMessage() {} -func (*PostgreSQLAddResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_postgresql_0f6c1d50fb6884b1, []int{6} -} -func (m *PostgreSQLAddResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PostgreSQLAddResponse.Unmarshal(m, b) -} -func (m *PostgreSQLAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PostgreSQLAddResponse.Marshal(b, m, deterministic) -} -func (dst *PostgreSQLAddResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PostgreSQLAddResponse.Merge(dst, src) -} -func (m *PostgreSQLAddResponse) XXX_Size() int { - return xxx_messageInfo_PostgreSQLAddResponse.Size(m) -} -func (m *PostgreSQLAddResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PostgreSQLAddResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_PostgreSQLAddResponse proto.InternalMessageInfo - -func (m *PostgreSQLAddResponse) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type PostgreSQLRemoveRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PostgreSQLRemoveRequest) Reset() { *m = PostgreSQLRemoveRequest{} } -func (m *PostgreSQLRemoveRequest) String() string { return proto.CompactTextString(m) } -func (*PostgreSQLRemoveRequest) ProtoMessage() {} -func (*PostgreSQLRemoveRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_postgresql_0f6c1d50fb6884b1, []int{7} -} -func (m *PostgreSQLRemoveRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PostgreSQLRemoveRequest.Unmarshal(m, b) -} -func (m *PostgreSQLRemoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PostgreSQLRemoveRequest.Marshal(b, m, deterministic) -} -func (dst *PostgreSQLRemoveRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PostgreSQLRemoveRequest.Merge(dst, src) -} -func (m *PostgreSQLRemoveRequest) XXX_Size() int { - return xxx_messageInfo_PostgreSQLRemoveRequest.Size(m) -} -func (m *PostgreSQLRemoveRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PostgreSQLRemoveRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_PostgreSQLRemoveRequest proto.InternalMessageInfo - -func (m *PostgreSQLRemoveRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type PostgreSQLRemoveResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PostgreSQLRemoveResponse) Reset() { *m = PostgreSQLRemoveResponse{} } -func (m *PostgreSQLRemoveResponse) String() string { return proto.CompactTextString(m) } -func (*PostgreSQLRemoveResponse) ProtoMessage() {} -func (*PostgreSQLRemoveResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_postgresql_0f6c1d50fb6884b1, []int{8} -} -func (m *PostgreSQLRemoveResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PostgreSQLRemoveResponse.Unmarshal(m, b) -} -func (m *PostgreSQLRemoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PostgreSQLRemoveResponse.Marshal(b, m, deterministic) -} -func (dst *PostgreSQLRemoveResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PostgreSQLRemoveResponse.Merge(dst, src) -} -func (m *PostgreSQLRemoveResponse) XXX_Size() int { - return xxx_messageInfo_PostgreSQLRemoveResponse.Size(m) -} -func (m *PostgreSQLRemoveResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PostgreSQLRemoveResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_PostgreSQLRemoveResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*PostgreSQLNode)(nil), "api.PostgreSQLNode") - proto.RegisterType((*PostgreSQLService)(nil), "api.PostgreSQLService") - proto.RegisterType((*PostgreSQLInstance)(nil), "api.PostgreSQLInstance") - proto.RegisterType((*PostgreSQLListRequest)(nil), "api.PostgreSQLListRequest") - proto.RegisterType((*PostgreSQLListResponse)(nil), "api.PostgreSQLListResponse") - proto.RegisterType((*PostgreSQLAddRequest)(nil), "api.PostgreSQLAddRequest") - proto.RegisterType((*PostgreSQLAddResponse)(nil), "api.PostgreSQLAddResponse") - proto.RegisterType((*PostgreSQLRemoveRequest)(nil), "api.PostgreSQLRemoveRequest") - proto.RegisterType((*PostgreSQLRemoveResponse)(nil), "api.PostgreSQLRemoveResponse") -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// PostgreSQLClient is the client API for PostgreSQL service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type PostgreSQLClient interface { - List(ctx context.Context, in *PostgreSQLListRequest, opts ...grpc.CallOption) (*PostgreSQLListResponse, error) - Add(ctx context.Context, in *PostgreSQLAddRequest, opts ...grpc.CallOption) (*PostgreSQLAddResponse, error) - Remove(ctx context.Context, in *PostgreSQLRemoveRequest, opts ...grpc.CallOption) (*PostgreSQLRemoveResponse, error) -} - -type postgreSQLClient struct { - cc *grpc.ClientConn -} - -func NewPostgreSQLClient(cc *grpc.ClientConn) PostgreSQLClient { - return &postgreSQLClient{cc} -} - -func (c *postgreSQLClient) List(ctx context.Context, in *PostgreSQLListRequest, opts ...grpc.CallOption) (*PostgreSQLListResponse, error) { - out := new(PostgreSQLListResponse) - err := c.cc.Invoke(ctx, "/api.PostgreSQL/List", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *postgreSQLClient) Add(ctx context.Context, in *PostgreSQLAddRequest, opts ...grpc.CallOption) (*PostgreSQLAddResponse, error) { - out := new(PostgreSQLAddResponse) - err := c.cc.Invoke(ctx, "/api.PostgreSQL/Add", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *postgreSQLClient) Remove(ctx context.Context, in *PostgreSQLRemoveRequest, opts ...grpc.CallOption) (*PostgreSQLRemoveResponse, error) { - out := new(PostgreSQLRemoveResponse) - err := c.cc.Invoke(ctx, "/api.PostgreSQL/Remove", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// PostgreSQLServer is the server API for PostgreSQL service. -type PostgreSQLServer interface { - List(context.Context, *PostgreSQLListRequest) (*PostgreSQLListResponse, error) - Add(context.Context, *PostgreSQLAddRequest) (*PostgreSQLAddResponse, error) - Remove(context.Context, *PostgreSQLRemoveRequest) (*PostgreSQLRemoveResponse, error) -} - -func RegisterPostgreSQLServer(s *grpc.Server, srv PostgreSQLServer) { - s.RegisterService(&_PostgreSQL_serviceDesc, srv) -} - -func _PostgreSQL_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PostgreSQLListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PostgreSQLServer).List(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.PostgreSQL/List", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PostgreSQLServer).List(ctx, req.(*PostgreSQLListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PostgreSQL_Add_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PostgreSQLAddRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PostgreSQLServer).Add(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.PostgreSQL/Add", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PostgreSQLServer).Add(ctx, req.(*PostgreSQLAddRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PostgreSQL_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PostgreSQLRemoveRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PostgreSQLServer).Remove(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.PostgreSQL/Remove", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PostgreSQLServer).Remove(ctx, req.(*PostgreSQLRemoveRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _PostgreSQL_serviceDesc = grpc.ServiceDesc{ - ServiceName: "api.PostgreSQL", - HandlerType: (*PostgreSQLServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "List", - Handler: _PostgreSQL_List_Handler, - }, - { - MethodName: "Add", - Handler: _PostgreSQL_Add_Handler, - }, - { - MethodName: "Remove", - Handler: _PostgreSQL_Remove_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "postgresql.proto", -} - -func init() { proto.RegisterFile("postgresql.proto", fileDescriptor_postgresql_0f6c1d50fb6884b1) } - -var fileDescriptor_postgresql_0f6c1d50fb6884b1 = []byte{ - // 495 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x53, 0x4b, 0x6e, 0xdb, 0x30, - 0x10, 0x05, 0x25, 0xd5, 0x9f, 0x09, 0x62, 0xa8, 0x74, 0x63, 0x33, 0x4a, 0x0a, 0x18, 0x04, 0x8a, - 0xb8, 0x59, 0x58, 0x86, 0x8b, 0x6e, 0xba, 0xcb, 0xb2, 0x46, 0xd0, 0x8f, 0x02, 0x34, 0xcb, 0x82, - 0x09, 0x09, 0x83, 0x40, 0x42, 0x2a, 0xa2, 0xec, 0x2e, 0x8a, 0x6e, 0x7a, 0x82, 0xa2, 0xbd, 0x41, - 0xaf, 0xd4, 0x2b, 0xf4, 0x20, 0x85, 0x49, 0xd9, 0x94, 0x55, 0x67, 0xc7, 0xd1, 0x7b, 0xf3, 0xe6, - 0xcd, 0x3c, 0x08, 0xe2, 0x5c, 0x9b, 0x72, 0x51, 0x08, 0xf3, 0x70, 0x37, 0xc9, 0x0b, 0x5d, 0x6a, - 0x1c, 0xb2, 0x5c, 0x26, 0xa7, 0x0b, 0xad, 0x17, 0x77, 0x22, 0x65, 0xb9, 0x4c, 0x99, 0x52, 0xba, - 0x64, 0xa5, 0xd4, 0xca, 0x38, 0x0a, 0x9d, 0x42, 0xef, 0x83, 0x6b, 0xbb, 0xfa, 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, 0x04, 0x00, 0x00, -} diff --git a/api/postgresql.pb.gw.go b/api/postgresql.pb.gw.go deleted file mode 100644 index 477716547f..0000000000 --- a/api/postgresql.pb.gw.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: postgresql.proto - -/* -Package api is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package api - -import ( - "io" - "net/http" - - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "golang.org/x/net/context" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/status" -) - -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray - -func request_PostgreSQL_List_0(ctx context.Context, marshaler runtime.Marshaler, client PostgreSQLClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PostgreSQLListRequest - var metadata runtime.ServerMetadata - - msg, err := client.List(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_PostgreSQL_Add_0(ctx context.Context, marshaler runtime.Marshaler, client PostgreSQLClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PostgreSQLAddRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.Add(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_PostgreSQL_Remove_0(ctx context.Context, marshaler runtime.Marshaler, client PostgreSQLClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PostgreSQLRemoveRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.Remove(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -// RegisterPostgreSQLHandlerFromEndpoint is same as RegisterPostgreSQLHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterPostgreSQLHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterPostgreSQLHandler(ctx, mux, conn) -} - -// RegisterPostgreSQLHandler registers the http handlers for service PostgreSQL to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterPostgreSQLHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterPostgreSQLHandlerClient(ctx, mux, NewPostgreSQLClient(conn)) -} - -// RegisterPostgreSQLHandlerClient registers the http handlers for service PostgreSQL -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PostgreSQLClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PostgreSQLClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "PostgreSQLClient" to call the correct interceptors. -func RegisterPostgreSQLHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PostgreSQLClient) error { - - mux.Handle("GET", pattern_PostgreSQL_List_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_PostgreSQL_List_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_PostgreSQL_List_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_PostgreSQL_Add_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_PostgreSQL_Add_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_PostgreSQL_Add_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_PostgreSQL_Remove_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_PostgreSQL_Remove_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_PostgreSQL_Remove_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_PostgreSQL_List_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v0", "postgresql"}, "")) - - pattern_PostgreSQL_Add_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v0", "postgresql"}, "")) - - pattern_PostgreSQL_Remove_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"v0", "postgresql", "id"}, "")) -) - -var ( - forward_PostgreSQL_List_0 = runtime.ForwardResponseMessage - - forward_PostgreSQL_Add_0 = runtime.ForwardResponseMessage - - forward_PostgreSQL_Remove_0 = runtime.ForwardResponseMessage -) diff --git a/api/postgresql.proto b/api/postgresql.proto deleted file mode 100644 index c9a2c2627a..0000000000 --- a/api/postgresql.proto +++ /dev/null @@ -1,72 +0,0 @@ -syntax = "proto3"; - -package api; - -import "google/api/annotations.proto"; - -message PostgreSQLNode { - reserved 1, 2; // id and type - - string name = 3; -} - -message PostgreSQLService { - reserved 1, 2, 3; // id, type, and node_id - - string address = 4; - uint32 port = 5; - string engine = 6; - string engine_version = 7; -} - -message PostgreSQLInstance { - PostgreSQLNode node = 1; - PostgreSQLService service = 2; -} - -message PostgreSQLListRequest { -} - -message PostgreSQLListResponse { - repeated PostgreSQLInstance instances = 1; -} - -message PostgreSQLAddRequest { - string name = 1; - string address = 2; - uint32 port = 3; - string username = 4; - string password = 5; -} - -message PostgreSQLAddResponse { - string id = 1; -} - -message PostgreSQLRemoveRequest { - string id = 1; -} - -message PostgreSQLRemoveResponse { -} - -service PostgreSQL { - rpc List(PostgreSQLListRequest) returns (PostgreSQLListResponse) { - option (google.api.http) = { - get: "/v0/postgresql" - }; - } - - rpc Add(PostgreSQLAddRequest) returns (PostgreSQLAddResponse) { - option (google.api.http) = { - post: "/v0/postgresql" - body: "*" - }; - } - - rpc Remove(PostgreSQLRemoveRequest) returns (PostgreSQLRemoveResponse) { - option (google.api.http) = { - delete: "/v0/postgresql/{id}" - }; - } -} diff --git a/api/rds.pb.go b/api/rds.pb.go deleted file mode 100644 index 7c835496a0..0000000000 --- a/api/rds.pb.go +++ /dev/null @@ -1,775 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: rds.proto - -package api - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import _ "google.golang.org/genproto/googleapis/api/annotations" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package - -type RDSNode struct { - Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RDSNode) Reset() { *m = RDSNode{} } -func (m *RDSNode) String() string { return proto.CompactTextString(m) } -func (*RDSNode) ProtoMessage() {} -func (*RDSNode) Descriptor() ([]byte, []int) { - return fileDescriptor_rds_b2bbb8c123f60b23, []int{0} -} -func (m *RDSNode) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RDSNode.Unmarshal(m, b) -} -func (m *RDSNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RDSNode.Marshal(b, m, deterministic) -} -func (dst *RDSNode) XXX_Merge(src proto.Message) { - xxx_messageInfo_RDSNode.Merge(dst, src) -} -func (m *RDSNode) XXX_Size() int { - return xxx_messageInfo_RDSNode.Size(m) -} -func (m *RDSNode) XXX_DiscardUnknown() { - xxx_messageInfo_RDSNode.DiscardUnknown(m) -} - -var xxx_messageInfo_RDSNode proto.InternalMessageInfo - -func (m *RDSNode) GetRegion() string { - if m != nil { - return m.Region - } - return "" -} - -func (m *RDSNode) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type RDSService struct { - Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` - Port uint32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"` - Engine string `protobuf:"bytes,6,opt,name=engine,proto3" json:"engine,omitempty"` - EngineVersion string `protobuf:"bytes,7,opt,name=engine_version,json=engineVersion,proto3" json:"engine_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RDSService) Reset() { *m = RDSService{} } -func (m *RDSService) String() string { return proto.CompactTextString(m) } -func (*RDSService) ProtoMessage() {} -func (*RDSService) Descriptor() ([]byte, []int) { - return fileDescriptor_rds_b2bbb8c123f60b23, []int{1} -} -func (m *RDSService) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RDSService.Unmarshal(m, b) -} -func (m *RDSService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RDSService.Marshal(b, m, deterministic) -} -func (dst *RDSService) XXX_Merge(src proto.Message) { - xxx_messageInfo_RDSService.Merge(dst, src) -} -func (m *RDSService) XXX_Size() int { - return xxx_messageInfo_RDSService.Size(m) -} -func (m *RDSService) XXX_DiscardUnknown() { - xxx_messageInfo_RDSService.DiscardUnknown(m) -} - -var xxx_messageInfo_RDSService proto.InternalMessageInfo - -func (m *RDSService) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *RDSService) GetPort() uint32 { - if m != nil { - return m.Port - } - return 0 -} - -func (m *RDSService) GetEngine() string { - if m != nil { - return m.Engine - } - return "" -} - -func (m *RDSService) GetEngineVersion() string { - if m != nil { - return m.EngineVersion - } - return "" -} - -type RDSInstanceID struct { - Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RDSInstanceID) Reset() { *m = RDSInstanceID{} } -func (m *RDSInstanceID) String() string { return proto.CompactTextString(m) } -func (*RDSInstanceID) ProtoMessage() {} -func (*RDSInstanceID) Descriptor() ([]byte, []int) { - return fileDescriptor_rds_b2bbb8c123f60b23, []int{2} -} -func (m *RDSInstanceID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RDSInstanceID.Unmarshal(m, b) -} -func (m *RDSInstanceID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RDSInstanceID.Marshal(b, m, deterministic) -} -func (dst *RDSInstanceID) XXX_Merge(src proto.Message) { - xxx_messageInfo_RDSInstanceID.Merge(dst, src) -} -func (m *RDSInstanceID) XXX_Size() int { - return xxx_messageInfo_RDSInstanceID.Size(m) -} -func (m *RDSInstanceID) XXX_DiscardUnknown() { - xxx_messageInfo_RDSInstanceID.DiscardUnknown(m) -} - -var xxx_messageInfo_RDSInstanceID proto.InternalMessageInfo - -func (m *RDSInstanceID) GetRegion() string { - if m != nil { - return m.Region - } - return "" -} - -func (m *RDSInstanceID) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type RDSInstance struct { - Node *RDSNode `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` - Service *RDSService `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RDSInstance) Reset() { *m = RDSInstance{} } -func (m *RDSInstance) String() string { return proto.CompactTextString(m) } -func (*RDSInstance) ProtoMessage() {} -func (*RDSInstance) Descriptor() ([]byte, []int) { - return fileDescriptor_rds_b2bbb8c123f60b23, []int{3} -} -func (m *RDSInstance) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RDSInstance.Unmarshal(m, b) -} -func (m *RDSInstance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RDSInstance.Marshal(b, m, deterministic) -} -func (dst *RDSInstance) XXX_Merge(src proto.Message) { - xxx_messageInfo_RDSInstance.Merge(dst, src) -} -func (m *RDSInstance) XXX_Size() int { - return xxx_messageInfo_RDSInstance.Size(m) -} -func (m *RDSInstance) XXX_DiscardUnknown() { - xxx_messageInfo_RDSInstance.DiscardUnknown(m) -} - -var xxx_messageInfo_RDSInstance proto.InternalMessageInfo - -func (m *RDSInstance) GetNode() *RDSNode { - if m != nil { - return m.Node - } - return nil -} - -func (m *RDSInstance) GetService() *RDSService { - if m != nil { - return m.Service - } - return nil -} - -type RDSDiscoverRequest struct { - AwsAccessKeyId string `protobuf:"bytes,1,opt,name=aws_access_key_id,json=awsAccessKeyId,proto3" json:"aws_access_key_id,omitempty"` - AwsSecretAccessKey string `protobuf:"bytes,2,opt,name=aws_secret_access_key,json=awsSecretAccessKey,proto3" json:"aws_secret_access_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RDSDiscoverRequest) Reset() { *m = RDSDiscoverRequest{} } -func (m *RDSDiscoverRequest) String() string { return proto.CompactTextString(m) } -func (*RDSDiscoverRequest) ProtoMessage() {} -func (*RDSDiscoverRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_rds_b2bbb8c123f60b23, []int{4} -} -func (m *RDSDiscoverRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RDSDiscoverRequest.Unmarshal(m, b) -} -func (m *RDSDiscoverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RDSDiscoverRequest.Marshal(b, m, deterministic) -} -func (dst *RDSDiscoverRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RDSDiscoverRequest.Merge(dst, src) -} -func (m *RDSDiscoverRequest) XXX_Size() int { - return xxx_messageInfo_RDSDiscoverRequest.Size(m) -} -func (m *RDSDiscoverRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RDSDiscoverRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RDSDiscoverRequest proto.InternalMessageInfo - -func (m *RDSDiscoverRequest) GetAwsAccessKeyId() string { - if m != nil { - return m.AwsAccessKeyId - } - return "" -} - -func (m *RDSDiscoverRequest) GetAwsSecretAccessKey() string { - if m != nil { - return m.AwsSecretAccessKey - } - return "" -} - -type RDSDiscoverResponse struct { - Instances []*RDSInstance `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RDSDiscoverResponse) Reset() { *m = RDSDiscoverResponse{} } -func (m *RDSDiscoverResponse) String() string { return proto.CompactTextString(m) } -func (*RDSDiscoverResponse) ProtoMessage() {} -func (*RDSDiscoverResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_rds_b2bbb8c123f60b23, []int{5} -} -func (m *RDSDiscoverResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RDSDiscoverResponse.Unmarshal(m, b) -} -func (m *RDSDiscoverResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RDSDiscoverResponse.Marshal(b, m, deterministic) -} -func (dst *RDSDiscoverResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RDSDiscoverResponse.Merge(dst, src) -} -func (m *RDSDiscoverResponse) XXX_Size() int { - return xxx_messageInfo_RDSDiscoverResponse.Size(m) -} -func (m *RDSDiscoverResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RDSDiscoverResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RDSDiscoverResponse proto.InternalMessageInfo - -func (m *RDSDiscoverResponse) GetInstances() []*RDSInstance { - if m != nil { - return m.Instances - } - return nil -} - -type RDSListRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RDSListRequest) Reset() { *m = RDSListRequest{} } -func (m *RDSListRequest) String() string { return proto.CompactTextString(m) } -func (*RDSListRequest) ProtoMessage() {} -func (*RDSListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_rds_b2bbb8c123f60b23, []int{6} -} -func (m *RDSListRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RDSListRequest.Unmarshal(m, b) -} -func (m *RDSListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RDSListRequest.Marshal(b, m, deterministic) -} -func (dst *RDSListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RDSListRequest.Merge(dst, src) -} -func (m *RDSListRequest) XXX_Size() int { - return xxx_messageInfo_RDSListRequest.Size(m) -} -func (m *RDSListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RDSListRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RDSListRequest proto.InternalMessageInfo - -type RDSListResponse struct { - Instances []*RDSInstance `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RDSListResponse) Reset() { *m = RDSListResponse{} } -func (m *RDSListResponse) String() string { return proto.CompactTextString(m) } -func (*RDSListResponse) ProtoMessage() {} -func (*RDSListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_rds_b2bbb8c123f60b23, []int{7} -} -func (m *RDSListResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RDSListResponse.Unmarshal(m, b) -} -func (m *RDSListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RDSListResponse.Marshal(b, m, deterministic) -} -func (dst *RDSListResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RDSListResponse.Merge(dst, src) -} -func (m *RDSListResponse) XXX_Size() int { - return xxx_messageInfo_RDSListResponse.Size(m) -} -func (m *RDSListResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RDSListResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RDSListResponse proto.InternalMessageInfo - -func (m *RDSListResponse) GetInstances() []*RDSInstance { - if m != nil { - return m.Instances - } - return nil -} - -type RDSAddRequest struct { - AwsAccessKeyId string `protobuf:"bytes,1,opt,name=aws_access_key_id,json=awsAccessKeyId,proto3" json:"aws_access_key_id,omitempty"` - AwsSecretAccessKey string `protobuf:"bytes,2,opt,name=aws_secret_access_key,json=awsSecretAccessKey,proto3" json:"aws_secret_access_key,omitempty"` - Id *RDSInstanceID `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` - Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` - Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RDSAddRequest) Reset() { *m = RDSAddRequest{} } -func (m *RDSAddRequest) String() string { return proto.CompactTextString(m) } -func (*RDSAddRequest) ProtoMessage() {} -func (*RDSAddRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_rds_b2bbb8c123f60b23, []int{8} -} -func (m *RDSAddRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RDSAddRequest.Unmarshal(m, b) -} -func (m *RDSAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RDSAddRequest.Marshal(b, m, deterministic) -} -func (dst *RDSAddRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RDSAddRequest.Merge(dst, src) -} -func (m *RDSAddRequest) XXX_Size() int { - return xxx_messageInfo_RDSAddRequest.Size(m) -} -func (m *RDSAddRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RDSAddRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RDSAddRequest proto.InternalMessageInfo - -func (m *RDSAddRequest) GetAwsAccessKeyId() string { - if m != nil { - return m.AwsAccessKeyId - } - return "" -} - -func (m *RDSAddRequest) GetAwsSecretAccessKey() string { - if m != nil { - return m.AwsSecretAccessKey - } - return "" -} - -func (m *RDSAddRequest) GetId() *RDSInstanceID { - if m != nil { - return m.Id - } - return nil -} - -func (m *RDSAddRequest) GetUsername() string { - if m != nil { - return m.Username - } - return "" -} - -func (m *RDSAddRequest) GetPassword() string { - if m != nil { - return m.Password - } - return "" -} - -type RDSAddResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RDSAddResponse) Reset() { *m = RDSAddResponse{} } -func (m *RDSAddResponse) String() string { return proto.CompactTextString(m) } -func (*RDSAddResponse) ProtoMessage() {} -func (*RDSAddResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_rds_b2bbb8c123f60b23, []int{9} -} -func (m *RDSAddResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RDSAddResponse.Unmarshal(m, b) -} -func (m *RDSAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RDSAddResponse.Marshal(b, m, deterministic) -} -func (dst *RDSAddResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RDSAddResponse.Merge(dst, src) -} -func (m *RDSAddResponse) XXX_Size() int { - return xxx_messageInfo_RDSAddResponse.Size(m) -} -func (m *RDSAddResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RDSAddResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RDSAddResponse proto.InternalMessageInfo - -type RDSRemoveRequest struct { - Id *RDSInstanceID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RDSRemoveRequest) Reset() { *m = RDSRemoveRequest{} } -func (m *RDSRemoveRequest) String() string { return proto.CompactTextString(m) } -func (*RDSRemoveRequest) ProtoMessage() {} -func (*RDSRemoveRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_rds_b2bbb8c123f60b23, []int{10} -} -func (m *RDSRemoveRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RDSRemoveRequest.Unmarshal(m, b) -} -func (m *RDSRemoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RDSRemoveRequest.Marshal(b, m, deterministic) -} -func (dst *RDSRemoveRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RDSRemoveRequest.Merge(dst, src) -} -func (m *RDSRemoveRequest) XXX_Size() int { - return xxx_messageInfo_RDSRemoveRequest.Size(m) -} -func (m *RDSRemoveRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RDSRemoveRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RDSRemoveRequest proto.InternalMessageInfo - -func (m *RDSRemoveRequest) GetId() *RDSInstanceID { - if m != nil { - return m.Id - } - return nil -} - -type RDSRemoveResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RDSRemoveResponse) Reset() { *m = RDSRemoveResponse{} } -func (m *RDSRemoveResponse) String() string { return proto.CompactTextString(m) } -func (*RDSRemoveResponse) ProtoMessage() {} -func (*RDSRemoveResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_rds_b2bbb8c123f60b23, []int{11} -} -func (m *RDSRemoveResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RDSRemoveResponse.Unmarshal(m, b) -} -func (m *RDSRemoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RDSRemoveResponse.Marshal(b, m, deterministic) -} -func (dst *RDSRemoveResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RDSRemoveResponse.Merge(dst, src) -} -func (m *RDSRemoveResponse) XXX_Size() int { - return xxx_messageInfo_RDSRemoveResponse.Size(m) -} -func (m *RDSRemoveResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RDSRemoveResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RDSRemoveResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*RDSNode)(nil), "api.RDSNode") - proto.RegisterType((*RDSService)(nil), "api.RDSService") - proto.RegisterType((*RDSInstanceID)(nil), "api.RDSInstanceID") - proto.RegisterType((*RDSInstance)(nil), "api.RDSInstance") - proto.RegisterType((*RDSDiscoverRequest)(nil), "api.RDSDiscoverRequest") - proto.RegisterType((*RDSDiscoverResponse)(nil), "api.RDSDiscoverResponse") - proto.RegisterType((*RDSListRequest)(nil), "api.RDSListRequest") - proto.RegisterType((*RDSListResponse)(nil), "api.RDSListResponse") - proto.RegisterType((*RDSAddRequest)(nil), "api.RDSAddRequest") - proto.RegisterType((*RDSAddResponse)(nil), "api.RDSAddResponse") - proto.RegisterType((*RDSRemoveRequest)(nil), "api.RDSRemoveRequest") - proto.RegisterType((*RDSRemoveResponse)(nil), "api.RDSRemoveResponse") -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// RDSClient is the client API for RDS service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RDSClient interface { - Discover(ctx context.Context, in *RDSDiscoverRequest, opts ...grpc.CallOption) (*RDSDiscoverResponse, error) - List(ctx context.Context, in *RDSListRequest, opts ...grpc.CallOption) (*RDSListResponse, error) - Add(ctx context.Context, in *RDSAddRequest, opts ...grpc.CallOption) (*RDSAddResponse, error) - Remove(ctx context.Context, in *RDSRemoveRequest, opts ...grpc.CallOption) (*RDSRemoveResponse, error) -} - -type rDSClient struct { - cc *grpc.ClientConn -} - -func NewRDSClient(cc *grpc.ClientConn) RDSClient { - return &rDSClient{cc} -} - -func (c *rDSClient) Discover(ctx context.Context, in *RDSDiscoverRequest, opts ...grpc.CallOption) (*RDSDiscoverResponse, error) { - out := new(RDSDiscoverResponse) - err := c.cc.Invoke(ctx, "/api.RDS/Discover", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rDSClient) List(ctx context.Context, in *RDSListRequest, opts ...grpc.CallOption) (*RDSListResponse, error) { - out := new(RDSListResponse) - err := c.cc.Invoke(ctx, "/api.RDS/List", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rDSClient) Add(ctx context.Context, in *RDSAddRequest, opts ...grpc.CallOption) (*RDSAddResponse, error) { - out := new(RDSAddResponse) - err := c.cc.Invoke(ctx, "/api.RDS/Add", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *rDSClient) Remove(ctx context.Context, in *RDSRemoveRequest, opts ...grpc.CallOption) (*RDSRemoveResponse, error) { - out := new(RDSRemoveResponse) - err := c.cc.Invoke(ctx, "/api.RDS/Remove", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// RDSServer is the server API for RDS service. -type RDSServer interface { - Discover(context.Context, *RDSDiscoverRequest) (*RDSDiscoverResponse, error) - List(context.Context, *RDSListRequest) (*RDSListResponse, error) - Add(context.Context, *RDSAddRequest) (*RDSAddResponse, error) - Remove(context.Context, *RDSRemoveRequest) (*RDSRemoveResponse, error) -} - -func RegisterRDSServer(s *grpc.Server, srv RDSServer) { - s.RegisterService(&_RDS_serviceDesc, srv) -} - -func _RDS_Discover_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RDSDiscoverRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RDSServer).Discover(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.RDS/Discover", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RDSServer).Discover(ctx, req.(*RDSDiscoverRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RDS_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RDSListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RDSServer).List(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.RDS/List", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RDSServer).List(ctx, req.(*RDSListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RDS_Add_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RDSAddRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RDSServer).Add(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.RDS/Add", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RDSServer).Add(ctx, req.(*RDSAddRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RDS_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RDSRemoveRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RDSServer).Remove(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.RDS/Remove", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RDSServer).Remove(ctx, req.(*RDSRemoveRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _RDS_serviceDesc = grpc.ServiceDesc{ - ServiceName: "api.RDS", - HandlerType: (*RDSServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Discover", - Handler: _RDS_Discover_Handler, - }, - { - MethodName: "List", - Handler: _RDS_List_Handler, - }, - { - MethodName: "Add", - Handler: _RDS_Add_Handler, - }, - { - MethodName: "Remove", - Handler: _RDS_Remove_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "rds.proto", -} - -func init() { proto.RegisterFile("rds.proto", fileDescriptor_rds_b2bbb8c123f60b23) } - -var fileDescriptor_rds_b2bbb8c123f60b23 = []byte{ - // 594 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0xbb, 0x6e, 0x13, 0x4d, - 0x14, 0xd6, 0x5e, 0x7e, 0x5f, 0x8e, 0x73, 0xd9, 0x1c, 0xff, 0x09, 0x2b, 0x43, 0x61, 0x8d, 0x84, - 0x94, 0xa4, 0xb0, 0xc1, 0x48, 0x14, 0x50, 0x39, 0x5a, 0x0a, 0x27, 0x88, 0x62, 0x56, 0xa2, 0x48, - 0x63, 0x0d, 0x9e, 0x91, 0x35, 0x82, 0xec, 0x2c, 0x33, 0x1b, 0x5b, 0x69, 0x69, 0x29, 0x79, 0x17, - 0xde, 0x81, 0x9a, 0x57, 0xe0, 0x41, 0xd0, 0xce, 0xce, 0x3a, 0x6b, 0x83, 0x28, 0x28, 0xe8, 0xf6, - 0x5c, 0xbe, 0x6f, 0xbe, 0xef, 0x9c, 0xa3, 0x85, 0xae, 0xe6, 0x66, 0x94, 0x6b, 0x55, 0x28, 0x0c, - 0x58, 0x2e, 0x07, 0x8f, 0x96, 0x4a, 0x2d, 0x3f, 0x88, 0x31, 0xcb, 0xe5, 0x98, 0x65, 0x99, 0x2a, -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6b, 0xe8, 0xd4, 0xbb, 0xc4, - 0x07, 0x35, 0xc1, 0xce, 0x45, 0x0d, 0xe2, 0x5f, 0x0b, 0x4e, 0xd3, 0xc3, 0x4f, 0xdf, 0x7f, 0x7c, - 0xf1, 0x8f, 0x49, 0x34, 0x5e, 0x3d, 0x19, 0x6b, 0x6e, 0xc6, 0xdc, 0x75, 0xbc, 0xf0, 0xce, 0xf1, - 0x02, 0xc2, 0x72, 0x9d, 0xd8, 0xaf, 0xe1, 0x8d, 0x75, 0x0f, 0xfe, 0xdf, 0x4e, 0x3a, 0xbe, 0x43, - 0xcb, 0xd7, 0xc5, 0xb6, 0xe3, 0xc3, 0x0b, 0x08, 0xa6, 0x9c, 0xe3, 0xc6, 0xdb, 0xfd, 0x6e, 0x07, - 0xfd, 0xad, 0x9c, 0x23, 0x40, 0x4b, 0xb0, 0x47, 0x6a, 0x82, 0x52, 0xc7, 0x15, 0xb4, 0x2a, 0xf7, - 0x78, 0x5c, 0x43, 0xb6, 0xa6, 0x38, 0x38, 0xd9, 0x4d, 0x6f, 0x93, 0x9d, 0x37, 0xc8, 0xde, 0xb5, - 0xec, 0x4f, 0xee, 0xd9, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xda, 0xdd, 0x47, 0x2b, 0x14, 0x05, - 0x00, 0x00, -} diff --git a/api/rds.pb.gw.go b/api/rds.pb.gw.go deleted file mode 100644 index e10570141f..0000000000 --- a/api/rds.pb.gw.go +++ /dev/null @@ -1,230 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: rds.proto - -/* -Package api is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package api - -import ( - "io" - "net/http" - - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "golang.org/x/net/context" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/status" -) - -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray - -func request_RDS_Discover_0(ctx context.Context, marshaler runtime.Marshaler, client RDSClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RDSDiscoverRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.Discover(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_RDS_List_0(ctx context.Context, marshaler runtime.Marshaler, client RDSClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RDSListRequest - var metadata runtime.ServerMetadata - - msg, err := client.List(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_RDS_Add_0(ctx context.Context, marshaler runtime.Marshaler, client RDSClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RDSAddRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.Add(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_RDS_Remove_0(ctx context.Context, marshaler runtime.Marshaler, client RDSClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RDSRemoveRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.Remove(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -// RegisterRDSHandlerFromEndpoint is same as RegisterRDSHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterRDSHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterRDSHandler(ctx, mux, conn) -} - -// RegisterRDSHandler registers the http handlers for service RDS to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterRDSHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterRDSHandlerClient(ctx, mux, NewRDSClient(conn)) -} - -// RegisterRDSHandlerClient registers the http handlers for service RDS -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RDSClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RDSClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "RDSClient" to call the correct interceptors. -func RegisterRDSHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RDSClient) error { - - mux.Handle("POST", pattern_RDS_Discover_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_RDS_Discover_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_RDS_Discover_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_RDS_List_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_RDS_List_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_RDS_List_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_RDS_Add_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_RDS_Add_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_RDS_Add_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_RDS_Remove_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_RDS_Remove_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_RDS_Remove_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_RDS_Discover_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v0", "rds", "discover"}, "")) - - pattern_RDS_List_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v0", "rds"}, "")) - - pattern_RDS_Add_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v0", "rds"}, "")) - - pattern_RDS_Remove_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v0", "rds"}, "")) -) - -var ( - forward_RDS_Discover_0 = runtime.ForwardResponseMessage - - forward_RDS_List_0 = runtime.ForwardResponseMessage - - forward_RDS_Add_0 = runtime.ForwardResponseMessage - - forward_RDS_Remove_0 = runtime.ForwardResponseMessage -) diff --git a/api/rds.proto b/api/rds.proto deleted file mode 100644 index 91e16ece6d..0000000000 --- a/api/rds.proto +++ /dev/null @@ -1,94 +0,0 @@ -syntax = "proto3"; - -package api; - -import "google/api/annotations.proto"; - -message RDSNode { - reserved 1, 2; // id and type - - string region = 3; - string name = 4; -} - -message RDSService { - reserved 1, 2, 3; // id, type, and node_id - - string address = 4; - uint32 port = 5; - string engine = 6; - string engine_version = 7; -} - -message RDSInstanceID { - string region = 1; - string name = 2; -} - -message RDSInstance { - RDSNode node = 1; - RDSService service = 2; -} - -message RDSDiscoverRequest { - string aws_access_key_id = 1; - string aws_secret_access_key = 2; -} - -message RDSDiscoverResponse { - repeated RDSInstance instances = 1; -} - -message RDSListRequest { -} - -message RDSListResponse { - repeated RDSInstance instances = 1; -} - -message RDSAddRequest { - string aws_access_key_id = 1; - string aws_secret_access_key = 2; - RDSInstanceID id = 3; - string username = 4; - string password = 5; -} - -message RDSAddResponse { -} - -message RDSRemoveRequest { - RDSInstanceID id = 1; -} - -message RDSRemoveResponse { -} - -service RDS { - rpc Discover(RDSDiscoverRequest) returns (RDSDiscoverResponse) { - option (google.api.http) = { - post: "/v0/rds/discover" - body: "*" - }; - } - - rpc List(RDSListRequest) returns (RDSListResponse) { - option (google.api.http) = { - get: "/v0/rds" - }; - } - - rpc Add(RDSAddRequest) returns (RDSAddResponse) { - option (google.api.http) = { - post: "/v0/rds" - body: "*" - }; - } - - rpc Remove(RDSRemoveRequest) returns (RDSRemoveResponse) { - option (google.api.http) = { - delete: "/v0/rds" - body: "*" - }; - } -} diff --git a/api/remote.pb.go b/api/remote.pb.go deleted file mode 100644 index 084c8421cf..0000000000 --- a/api/remote.pb.go +++ /dev/null @@ -1,372 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: remote.proto - -package api - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import _ "google.golang.org/genproto/googleapis/api/annotations" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package - -type RemoteNode struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RemoteNode) Reset() { *m = RemoteNode{} } -func (m *RemoteNode) String() string { return proto.CompactTextString(m) } -func (*RemoteNode) ProtoMessage() {} -func (*RemoteNode) Descriptor() ([]byte, []int) { - return fileDescriptor_remote_a7640025f49c97cc, []int{0} -} -func (m *RemoteNode) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RemoteNode.Unmarshal(m, b) -} -func (m *RemoteNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RemoteNode.Marshal(b, m, deterministic) -} -func (dst *RemoteNode) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoteNode.Merge(dst, src) -} -func (m *RemoteNode) XXX_Size() int { - return xxx_messageInfo_RemoteNode.Size(m) -} -func (m *RemoteNode) XXX_DiscardUnknown() { - xxx_messageInfo_RemoteNode.DiscardUnknown(m) -} - -var xxx_messageInfo_RemoteNode proto.InternalMessageInfo - -func (m *RemoteNode) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *RemoteNode) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *RemoteNode) GetRegion() string { - if m != nil { - return m.Region - } - return "" -} - -type RemoteService struct { - Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` - Port uint32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"` - Engine string `protobuf:"bytes,6,opt,name=engine,proto3" json:"engine,omitempty"` - EngineVersion string `protobuf:"bytes,7,opt,name=engine_version,json=engineVersion,proto3" json:"engine_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RemoteService) Reset() { *m = RemoteService{} } -func (m *RemoteService) String() string { return proto.CompactTextString(m) } -func (*RemoteService) ProtoMessage() {} -func (*RemoteService) Descriptor() ([]byte, []int) { - return fileDescriptor_remote_a7640025f49c97cc, []int{1} -} -func (m *RemoteService) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RemoteService.Unmarshal(m, b) -} -func (m *RemoteService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RemoteService.Marshal(b, m, deterministic) -} -func (dst *RemoteService) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoteService.Merge(dst, src) -} -func (m *RemoteService) XXX_Size() int { - return xxx_messageInfo_RemoteService.Size(m) -} -func (m *RemoteService) XXX_DiscardUnknown() { - xxx_messageInfo_RemoteService.DiscardUnknown(m) -} - -var xxx_messageInfo_RemoteService proto.InternalMessageInfo - -func (m *RemoteService) GetType() string { - if m != nil { - return m.Type - } - return "" -} - -func (m *RemoteService) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *RemoteService) GetPort() uint32 { - if m != nil { - return m.Port - } - return 0 -} - -func (m *RemoteService) GetEngine() string { - if m != nil { - return m.Engine - } - return "" -} - -func (m *RemoteService) GetEngineVersion() string { - if m != nil { - return m.EngineVersion - } - return "" -} - -type RemoteInstance struct { - Node *RemoteNode `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` - Service *RemoteService `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RemoteInstance) Reset() { *m = RemoteInstance{} } -func (m *RemoteInstance) String() string { return proto.CompactTextString(m) } -func (*RemoteInstance) ProtoMessage() {} -func (*RemoteInstance) Descriptor() ([]byte, []int) { - return fileDescriptor_remote_a7640025f49c97cc, []int{2} -} -func (m *RemoteInstance) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RemoteInstance.Unmarshal(m, b) -} -func (m *RemoteInstance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RemoteInstance.Marshal(b, m, deterministic) -} -func (dst *RemoteInstance) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoteInstance.Merge(dst, src) -} -func (m *RemoteInstance) XXX_Size() int { - return xxx_messageInfo_RemoteInstance.Size(m) -} -func (m *RemoteInstance) XXX_DiscardUnknown() { - xxx_messageInfo_RemoteInstance.DiscardUnknown(m) -} - -var xxx_messageInfo_RemoteInstance proto.InternalMessageInfo - -func (m *RemoteInstance) GetNode() *RemoteNode { - if m != nil { - return m.Node - } - return nil -} - -func (m *RemoteInstance) GetService() *RemoteService { - if m != nil { - return m.Service - } - return nil -} - -type RemoteListRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RemoteListRequest) Reset() { *m = RemoteListRequest{} } -func (m *RemoteListRequest) String() string { return proto.CompactTextString(m) } -func (*RemoteListRequest) ProtoMessage() {} -func (*RemoteListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_remote_a7640025f49c97cc, []int{3} -} -func (m *RemoteListRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RemoteListRequest.Unmarshal(m, b) -} -func (m *RemoteListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RemoteListRequest.Marshal(b, m, deterministic) -} -func (dst *RemoteListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoteListRequest.Merge(dst, src) -} -func (m *RemoteListRequest) XXX_Size() int { - return xxx_messageInfo_RemoteListRequest.Size(m) -} -func (m *RemoteListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RemoteListRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RemoteListRequest proto.InternalMessageInfo - -type RemoteListResponse struct { - Instances []*RemoteInstance `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RemoteListResponse) Reset() { *m = RemoteListResponse{} } -func (m *RemoteListResponse) String() string { return proto.CompactTextString(m) } -func (*RemoteListResponse) ProtoMessage() {} -func (*RemoteListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_remote_a7640025f49c97cc, []int{4} -} -func (m *RemoteListResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RemoteListResponse.Unmarshal(m, b) -} -func (m *RemoteListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RemoteListResponse.Marshal(b, m, deterministic) -} -func (dst *RemoteListResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoteListResponse.Merge(dst, src) -} -func (m *RemoteListResponse) XXX_Size() int { - return xxx_messageInfo_RemoteListResponse.Size(m) -} -func (m *RemoteListResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RemoteListResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RemoteListResponse proto.InternalMessageInfo - -func (m *RemoteListResponse) GetInstances() []*RemoteInstance { - if m != nil { - return m.Instances - } - return nil -} - -func init() { - proto.RegisterType((*RemoteNode)(nil), "api.RemoteNode") - proto.RegisterType((*RemoteService)(nil), "api.RemoteService") - proto.RegisterType((*RemoteInstance)(nil), "api.RemoteInstance") - proto.RegisterType((*RemoteListRequest)(nil), "api.RemoteListRequest") - proto.RegisterType((*RemoteListResponse)(nil), "api.RemoteListResponse") -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// RemoteClient is the client API for Remote service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RemoteClient interface { - List(ctx context.Context, in *RemoteListRequest, opts ...grpc.CallOption) (*RemoteListResponse, error) -} - -type remoteClient struct { - cc *grpc.ClientConn -} - -func NewRemoteClient(cc *grpc.ClientConn) RemoteClient { - return &remoteClient{cc} -} - -func (c *remoteClient) List(ctx context.Context, in *RemoteListRequest, opts ...grpc.CallOption) (*RemoteListResponse, error) { - out := new(RemoteListResponse) - err := c.cc.Invoke(ctx, "/api.Remote/List", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// RemoteServer is the server API for Remote service. -type RemoteServer interface { - List(context.Context, *RemoteListRequest) (*RemoteListResponse, error) -} - -func RegisterRemoteServer(s *grpc.Server, srv RemoteServer) { - s.RegisterService(&_Remote_serviceDesc, srv) -} - -func _Remote_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoteListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RemoteServer).List(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/api.Remote/List", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RemoteServer).List(ctx, req.(*RemoteListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Remote_serviceDesc = grpc.ServiceDesc{ - ServiceName: "api.Remote", - HandlerType: (*RemoteServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "List", - Handler: _Remote_List_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "remote.proto", -} - -func init() { proto.RegisterFile("remote.proto", fileDescriptor_remote_a7640025f49c97cc) } - -var fileDescriptor_remote_a7640025f49c97cc = []byte{ - // 364 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x52, 0xcd, 0x6a, 0xe3, 0x30, - 0x10, 0xc6, 0xb6, 0xd6, 0x49, 0x26, 0x3f, 0x9b, 0x9d, 0x40, 0x56, 0x84, 0x3d,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, 0x1c, 0xf5, 0xdc, 0x7c, 0xec, 0xd1, 0x5b, 0x0f, 0x6e, 0x58, 0x3f, 0x98, 0x86, - 0x1b, 0xd6, 0x8f, 0xa6, 0x2c, 0xd9, 0xc1, 0xc4, 0xbb, 0xbb, 0x50, 0xc6, 0x0a, 0xb5, 0x23, 0xfc, - 0x0d, 0x4c, 0xe9, 0x82, 0x5c, 0xe8, 0x61, 0xf6, 0x7d, 0x2d, 0x2a, 0xb9, 0x3e, 0xfd, 0x48, 0xee, - 0x86, 0xf8, 0x17, 0x7a, 0xc6, 0xc7, 0x71, 0x31, 0x86, 0x19, 0x76, 0x78, 0x6d, 0xd0, 0xfc, 0x48, - 0x49, 0x66, 0xf0, 0xc3, 0x4f, 0xae, 0xa4, 0xb1, 0x39, 0x3d, 0x3e, 0x91, 0xb1, 0xc9, 0x39, 0x60, - 0x17, 0x34, 0x95, 0x56, 0x86, 0xf0, 0x3f, 0x0c, 0x64, 0xeb, 0xc4, 0xf0, 0x60, 0x19, 0xad, 0x86, - 0xd9, 0xac, 0x23, 0x7d, 0x74, 0x99, 0x9f, 0x58, 0xd9, 0x0d, 0xc4, 0x7e, 0x88, 0x97, 0xc0, 0x1a, - 0x31, 0x9c, 0x77, 0x5e, 0x74, 0x56, 0x2e, 0x7e, 0x7e, 0xc1, 0xfd, 0xd6, 0x04, 0x5f, 0xde, 0x3f, - 0x5e, 0xc3, 0x11, 0x42, 0x7a, 0xf8, 0x97, 0xfa, 0x8b, 0xb9, 0x8f, 0xdd, 0x3d, 0x9c, 0x7d, 0x06, - 0x00, 0x00, 0xff, 0xff, 0xeb, 0x5b, 0xc6, 0x6a, 0x42, 0x02, 0x00, 0x00, -} diff --git a/api/remote.pb.gw.go b/api/remote.pb.gw.go deleted file mode 100644 index a041c5dcfd..0000000000 --- a/api/remote.pb.gw.go +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: remote.proto - -/* -Package api is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package api - -import ( - "io" - "net/http" - - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "golang.org/x/net/context" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/status" -) - -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray - -func request_Remote_List_0(ctx context.Context, marshaler runtime.Marshaler, client RemoteClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RemoteListRequest - var metadata runtime.ServerMetadata - - msg, err := client.List(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -// RegisterRemoteHandlerFromEndpoint is same as RegisterRemoteHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterRemoteHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterRemoteHandler(ctx, mux, conn) -} - -// RegisterRemoteHandler registers the http handlers for service Remote to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterRemoteHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterRemoteHandlerClient(ctx, mux, NewRemoteClient(conn)) -} - -// RegisterRemoteHandlerClient registers the http handlers for service Remote -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RemoteClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RemoteClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "RemoteClient" to call the correct interceptors. -func RegisterRemoteHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RemoteClient) error { - - mux.Handle("GET", pattern_Remote_List_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Remote_List_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Remote_List_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_Remote_List_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v0", "remote"}, "")) -) - -var ( - forward_Remote_List_0 = runtime.ForwardResponseMessage -) diff --git a/api/remote.proto b/api/remote.proto deleted file mode 100644 index d9486e9dd8..0000000000 --- a/api/remote.proto +++ /dev/null @@ -1,44 +0,0 @@ -syntax = "proto3"; - -package api; - -import "google/api/annotations.proto"; - -message RemoteNode { - reserved 2; // type - - string id = 1; - string name = 3; - string region = 4; -} - -message RemoteService { - reserved 1, 3; // id, and node_id - - string type = 2; - string address = 4; - uint32 port = 5; - string engine = 6; - string engine_version = 7; -} - -message RemoteInstance { - RemoteNode node = 1; - RemoteService service = 2; -} - - -message RemoteListRequest { -} - -message RemoteListResponse { - repeated RemoteInstance instances = 1; -} - -service Remote { - rpc List(RemoteListRequest) returns (RemoteListResponse) { - option (google.api.http) = { - get: "/v0/remote" - }; - } -} diff --git a/api/swagger/swagger.json b/api/swagger/swagger.json index b36b5b3868..ae2f31199c 100644 --- a/api/swagger/swagger.json +++ b/api/swagger/swagger.json @@ -30,6 +30,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "metrics_url": { "description": "URL for scraping metrics.", "type": "string" @@ -52,6 +59,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "metrics_url": { "description": "URL for scraping metrics.", "type": "string" @@ -79,6 +93,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "password": { "description": "MySQL password for scraping metrics.", "type": "string" @@ -113,6 +134,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "listen_port": { "description": "Listen port for scraping metrics.", "type": "integer", @@ -170,6 +198,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -192,6 +227,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "listen_port": { "description": "Listen port for scraping metrics.", "type": "integer", @@ -237,6 +279,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -264,6 +313,13 @@ "type": "boolean", "format": "boolean" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -291,6 +347,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "runs_on_node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -320,6 +383,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "listen_port": { "description": "Listen port for scraping metrics.", "type": "integer", @@ -394,6 +464,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "metrics_url": { "description": "URL for scraping metrics.", "type": "string" @@ -408,6 +485,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "listen_port": { "description": "Listen port for scraping metrics.", "type": "integer", @@ -452,6 +536,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "listen_port": { "description": "Listen port for scraping metrics.", "type": "integer", @@ -489,6 +580,13 @@ "type": "boolean", "format": "boolean" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -503,6 +601,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "listen_port": { "description": "Listen port for scraping metrics.", "type": "integer", @@ -587,6 +692,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "metrics_url": { "description": "URL for scraping metrics.", "type": "string" @@ -604,6 +716,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "listen_port": { "description": "Listen port for scraping metrics.", "type": "integer", @@ -651,6 +770,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "listen_port": { "description": "Listen port for scraping metrics.", "type": "integer", @@ -691,6 +817,13 @@ "type": "boolean", "format": "boolean" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -708,6 +841,13 @@ "description": "Unique randomly generated instance identifier.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "listen_port": { "description": "Listen port for scraping metrics.", "type": "integer", @@ -793,6 +933,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "docker_container_id": { "description": "Docker container identifier. If specified, must be a unique Docker container identifier.", "type": "string" @@ -823,6 +970,13 @@ "description": "ContainerNode represents a Docker container.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "docker_container_id": { "description": "Docker container identifier. If specified, must be a unique Docker container identifier. Can't be changed.", "type": "string" @@ -866,6 +1020,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "distro": { "description": "Linux distribution (if any).", "type": "string" @@ -896,6 +1057,13 @@ "description": "GenericNode represents a bare metal server or virtual machine.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "distro": { "description": "Linux distribution (if any). Can be changed.", "type": "string" @@ -939,6 +1107,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_name": { "description": "Unique across all Nodes user-defined name.", "type": "string" @@ -957,6 +1132,13 @@ "description": "RemoteNode represents generic remote Node. Agents can't run on Remote Nodes.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Unique randomly generated instance identifier, can't be changed.", "type": "string" @@ -988,6 +1170,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "instance": { "description": "DB instance identifier. Unique across all RemoteAmazonRDS Nodes in combination with region.", "type": "string" @@ -1014,6 +1203,13 @@ "description": "RemoteAmazonRDSNode represents a Remote Node for Amazon RDS. Agents can't run on Remote Nodes.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "instance": { "description": "DB instance identifier. Unique across all RemoteAmazonRDS Nodes in combination with region. Can be changed.", "type": "string" @@ -1053,6 +1249,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "docker_container_name": { "description": "Container name.", "type": "string" @@ -1079,6 +1282,13 @@ "description": "ContainerNode represents a Docker container.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "docker_container_id": { "description": "Docker container identifier. If specified, must be a unique Docker container identifier. Can't be changed.", "type": "string" @@ -1122,6 +1332,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "distro": { "description": "Linux distribution (if any).", "type": "string" @@ -1152,6 +1369,13 @@ "description": "GenericNode represents a bare metal server or virtual machine.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "distro": { "description": "Linux distribution (if any). Can be changed.", "type": "string" @@ -1195,6 +1419,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Unique randomly generated instance identifier.", "type": "string" @@ -1217,6 +1448,13 @@ "description": "RemoteNode represents generic remote Node. Agents can't run on Remote Nodes.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Unique randomly generated instance identifier, can't be changed.", "type": "string" @@ -1248,6 +1486,13 @@ "schema": { "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "instance": { "description": "DB instance identifier. Unique across all RemoteAmazonRDS Nodes in combination with region.", "type": "string" @@ -1274,6 +1519,13 @@ "description": "RemoteAmazonRDSNode represents a Remote Node for Amazon RDS. Agents can't run on Remote Nodes.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "instance": { "description": "DB instance identifier. Unique across all RemoteAmazonRDS Nodes in combination with region. Can be changed.", "type": "string" @@ -1331,6 +1583,13 @@ "description": "ContainerNode represents a Docker container.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "docker_container_id": { "description": "Docker container identifier. If specified, must be a unique Docker container identifier. Can't be changed.", "type": "string" @@ -1357,6 +1616,13 @@ "description": "GenericNode represents a bare metal server or virtual machine.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "distro": { "description": "Linux distribution (if any). Can be changed.", "type": "string" @@ -1383,6 +1649,13 @@ "description": "RemoteNode represents generic remote Node. Agents can't run on Remote Nodes.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Unique randomly generated instance identifier, can't be changed.", "type": "string" @@ -1397,6 +1670,13 @@ "description": "RemoteAmazonRDSNode represents a Remote Node for Amazon RDS. Agents can't run on Remote Nodes.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "instance": { "description": "DB instance identifier. Unique across all RemoteAmazonRDS Nodes in combination with region. Can be changed.", "type": "string" @@ -1450,6 +1730,13 @@ "description": "ContainerNode represents a Docker container.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "docker_container_id": { "description": "Docker container identifier. If specified, must be a unique Docker container identifier. Can't be changed.", "type": "string" @@ -1479,6 +1766,13 @@ "description": "GenericNode represents a bare metal server or virtual machine.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "distro": { "description": "Linux distribution (if any). Can be changed.", "type": "string" @@ -1508,6 +1802,13 @@ "description": "RemoteNode represents generic remote Node. Agents can't run on Remote Nodes.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Unique randomly generated instance identifier, can't be changed.", "type": "string" @@ -1525,6 +1826,13 @@ "description": "RemoteAmazonRDSNode represents a Remote Node for Amazon RDS. Agents can't run on Remote Nodes.", "type": "object", "properties": { + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\". Can be changed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "instance": { "description": "DB instance identifier. Unique across all RemoteAmazonRDS Nodes in combination with region. Can be changed.", "type": "string" @@ -1602,6 +1910,13 @@ "description": "Instance endpoint (full DNS name).", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -1633,6 +1948,13 @@ "description": "Instance endpoint (full DNS name).", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -1677,6 +1999,13 @@ "description": "Access address (DNS name or IP). Required if unix_socket is absent.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -1712,6 +2041,13 @@ "description": "Access address (DNS name or IP). Required if unix_socket is absent.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -1760,6 +2096,13 @@ "description": "Instance endpoint (full DNS name).", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "port": { "description": "Instance port.", "type": "integer", @@ -1791,6 +2134,13 @@ "description": "Instance endpoint (full DNS name).", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -1835,6 +2185,13 @@ "description": "Access address (DNS name or IP). Required if unix_socket is absent.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -1874,6 +2231,13 @@ "description": "Access address (DNS name or IP). Required if unix_socket is absent.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -1940,6 +2304,13 @@ "description": "Instance endpoint (full DNS name).", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -1967,6 +2338,13 @@ "description": "Access address (DNS name or IP). Required if unix_socket is absent.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -2035,6 +2413,13 @@ "description": "Instance endpoint (full DNS name).", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" @@ -2065,6 +2450,13 @@ "description": "Access address (DNS name or IP). Required if unix_socket is absent.", "type": "string" }, + "custom_labels": { + "description": "Custom user-assigned labels. Keys must start with \"_\".", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "node_id": { "description": "Node identifier where this instance runs.", "type": "string" diff --git a/main.go b/main.go index 721163246d..443f1fa256 100644 --- a/main.go +++ b/main.go @@ -223,10 +223,6 @@ func runJSONServer(ctx context.Context, logs *logs.Logs) { api.RegisterBaseHandlerFromEndpoint, api.RegisterDemoHandlerFromEndpoint, api.RegisterScrapeConfigsHandlerFromEndpoint, - api.RegisterRDSHandlerFromEndpoint, - api.RegisterMySQLHandlerFromEndpoint, - api.RegisterPostgreSQLHandlerFromEndpoint, - api.RegisterRemoteHandlerFromEndpoint, api.RegisterLogsHandlerFromEndpoint, api.RegisterAnnotationsHandlerFromEndpoint,