mirror of
https://github.com/status-im/consul.git
synced 2025-02-02 17:03:31 +00:00
56b46436c1
Refactoring of the agentpb package. First move the whole thing to the top-level proto package name. Secondly change some things around internally to have sub-packages. # Conflicts: # agent/consul/state/acl.go # agent/consul/state/acl_test.go
22 lines
407 B
Go
22 lines
407 B
Go
package pbautoconf
|
|
|
|
func (req *AutoConfigRequest) RequestDatacenter() string {
|
|
return req.Datacenter
|
|
}
|
|
|
|
func (req *AutoConfigRequest) IsRead() bool {
|
|
return false
|
|
}
|
|
|
|
func (req *AutoConfigRequest) AllowStaleRead() bool {
|
|
return false
|
|
}
|
|
|
|
func (req *AutoConfigRequest) TokenSecret() string {
|
|
return req.ConsulToken
|
|
}
|
|
|
|
func (req *AutoConfigRequest) SetTokenSecret(token string) {
|
|
req.ConsulToken = token
|
|
}
|