Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
// GetRules returns the rules for this namespace that match the filter.
GetRules(f rules.Filter) (RuleResponse, error)
}
Client for the controller.
type Config ¶
type Config struct {
// URL of the controller server.
URL string
// AuthToken is the token to be used for authentication with the controller.
// If left empty, no authentication is used.
AuthToken string
// HTTPClient can be used to customize the underlying HTTP client behavior,
// such as enabling TLS, setting timeouts, etc.
// If left nil, a default HTTP client will be used.
HTTPClient *http.Client
}
Config stores the configurable attributes of the client.
Source Files
¶
- client.go
Click to show internal directories.
Click to hide internal directories.