Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIAddresser ¶
type APIAddresser struct {
// contains filtered or unexported fields
}
APIAddresser provides common client-side API functions to call into apiserver.common.APIAddresser
func NewAPIAddresser ¶
func NewAPIAddresser(facadeName string, caller base.Caller) *APIAddresser
NewAPIAddresser returns a new APIAddresser that makes API calls using caller and the specified facade name.
func (*APIAddresser) APIAddresses ¶
func (a *APIAddresser) APIAddresses() ([]string, error)
APIAddresses returns the list of addresses used to connect to the API.
func (*APIAddresser) APIHostPorts ¶
func (a *APIAddresser) APIHostPorts() ([][]network.HostPort, error)
APIHostPorts returns the host/port addresses of the API servers.
func (*APIAddresser) CACert ¶
func (a *APIAddresser) CACert() (string, error)
CACert returns the certificate used to validate the API and state connections.
func (*APIAddresser) WatchAPIHostPorts ¶
func (a *APIAddresser) WatchAPIHostPorts() (watcher.NotifyWatcher, error)
WatchAPIHostPorts watches the host/port addresses of the API servers.
type EnvironWatcher ¶
type EnvironWatcher struct {
// contains filtered or unexported fields
}
EnvironWatcher provides common client-side API functions to call into apiserver.common.EnvironWatcher.
func NewEnvironWatcher ¶
func NewEnvironWatcher(facadeName string, caller base.Caller) *EnvironWatcher
NewEnvironWatcher creates a EnvironWatcher on the specified facade, and uses this name when calling through the caller.
func (*EnvironWatcher) EnvironConfig ¶
func (e *EnvironWatcher) EnvironConfig() (*config.Config, error)
EnvironConfig returns the current environment configuration.
func (*EnvironWatcher) WatchForEnvironConfigChanges ¶
func (e *EnvironWatcher) WatchForEnvironConfigChanges() (watcher.NotifyWatcher, error)
WatchForEnvironConfigChanges return a NotifyWatcher waiting for the environment configuration to change.