Documentation ¶
Index ¶
- type Config
- type Controller
- type Juju
- func (j *Juju) GetAddress(ctx context.Context, fqdn JujuFQDN) (net.IP, error)
- func (j *Juju) GetConnection(controllerName, modelUUID string, controller Controller) (api.Connection, error)
- func (j *Juju) GetModelTag(conn api.Connection, username string, fqdn JujuFQDN) (names.ModelTag, error)
- func (j *Juju) GetUnitAddress(ctx context.Context, controller Controller, modelTag names.ModelTag, ...) (net.IP, error)
- func (j *Juju) Name() string
- func (j *Juju) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)
- type JujuFQDN
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Ttl *uint32 `yaml:"ttl"` Controllers map[string]Controller `yaml:"controllers"` }
func FromConfigFile ¶
type Controller ¶
type Juju ¶
type Juju struct { Next plugin.Handler Controllers map[string]Controller Ttl uint32 }
func NewJuju ¶
func NewJuju(controllers map[string]Controller) *Juju
func (*Juju) GetAddress ¶
func (*Juju) GetConnection ¶
func (j *Juju) GetConnection(controllerName, modelUUID string, controller Controller) (api.Connection, error)
func (*Juju) GetModelTag ¶
func (*Juju) GetUnitAddress ¶
Click to show internal directories.
Click to hide internal directories.