Tweaks ACL replication status struct name.

This commit is contained in:
James Phillips 2017-04-25 16:31:20 -07:00 committed by GitHub
parent 822cf7ec20
commit a59f503c13
1 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ type ACLEntry struct {
Rules string Rules string
} }
// ACLReplicationEntry is used to represent an ACLReplication entry // ACLReplicationStatus is used to represent the status of ACL replication.
type ACLReplicationEntry struct { type ACLReplicationEntry struct {
Enabled bool Enabled bool
Running bool Running bool
@ -154,7 +154,7 @@ func (a *ACL) List(q *QueryOptions) ([]*ACLEntry, *QueryMeta, error) {
} }
// Replication returns the status of the ACL replication process in the datacenter // Replication returns the status of the ACL replication process in the datacenter
func (a *ACL) Replication(q *QueryOptions) (*ACLReplicationEntry, *QueryMeta, error) { func (a *ACL) Replication(q *QueryOptions) (*ACLReplicationStatus, *QueryMeta, error) {
r := a.c.newRequest("GET", "/v1/acl/replication") r := a.c.newRequest("GET", "/v1/acl/replication")
r.setQueryOptions(q) r.setQueryOptions(q)
rtt, resp, err := requireOK(a.c.doRequest(r)) rtt, resp, err := requireOK(a.c.doRequest(r))
@ -167,7 +167,7 @@ func (a *ACL) Replication(q *QueryOptions) (*ACLReplicationEntry, *QueryMeta, er
parseQueryMeta(resp, qm) parseQueryMeta(resp, qm)
qm.RequestTime = rtt qm.RequestTime = rtt
var entries *ACLReplicationEntry var entries *ACLReplicationStatus
if err := decodeBody(resp, &entries); err != nil { if err := decodeBody(resp, &entries); err != nil {
return nil, nil, err return nil, nil, err
} }