divyadesai | 1900913 | 2020-03-04 12:58:08 +0000 | [diff] [blame] | 1 | package api |
2 | |||||
3 | // Operator can be used to perform low-level operator tasks for Consul. | ||||
4 | type Operator struct { | ||||
5 | c *Client | ||||
6 | } | ||||
7 | |||||
8 | // Operator returns a handle to the operator endpoints. | ||||
9 | func (c *Client) Operator() *Operator { | ||||
10 | return &Operator{c} | ||||
11 | } |