Skip to content

Commit

Permalink
Merge pull request #2023 from Shopify/dnwe/admin-controller-func
Browse files Browse the repository at this point in the history
feat: add Controller() to ClusterAdmin interface
  • Loading branch information
dnwe authored Sep 14, 2021
2 parents c3c1c33 + 98a924b commit 98e5da8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ type ClusterAdmin interface {
// This operation is supported by brokers with version 2.6.0.0 or higher.
AlterClientQuotas(entity []QuotaEntityComponent, op ClientQuotasOp, validateOnly bool) error

// Controller returns the cluster controller broker. It will return a
// locally cached value if it's available.
Controller() (*Broker, error)

// Close shuts down the admin and closes underlying client.
Close() error
}
Expand Down

0 comments on commit 98e5da8

Please sign in to comment.