plugin

package module
v0.0.0-...-8df84b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

⚠ This project is not maintained anymore.


openstack

Name

openstack — adds the ability to convert server names into their floating IPs.

Description

This plugin allows resolving names build like <server_name>.<project_name> into the corresponding floating IP.

Syntax

openstack {
    auth_url AUTHENTICATION_URL
    username USERNAME
    passwork PASSWORD
    domain_name DOMAIN_NAME
    region REGION_NAME
    wildcard
}
  • auth_url specifies the Keystone authentication URL. Required.
  • username specifies the name of a user who can list tenants and list all servers. Defaults to coredns.
  • password specifies the password of the user. Required.
  • domain_name specifies the Keystone domain which the user belongs to. Defaults to default.
  • region specifies the OpenStack region for your servers. Defaults to RegionOne.
  • wildcard set this option to resolve every names that end by <server_name>.<project_name>.

Examples

openstack {
    openstack {
        auth_url "http://your.keystone.endoint/v3"
        username "coredns"
        passwork "SET HERE YOUR PASSWORD"
        domain_name "default"
        region "RegionOne"
        wildcard
    }
    errors
    log
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSEntries

type DNSEntries map[string][]string

DNSEntries represents a list of hostname assiociated with a list of IPs

type OpenStack

type OpenStack struct {
	Zone           string
	Entries        *DNSEntries
	AuthOptions    *gophercloud.AuthOptions
	Region         string
	EnableWildcard bool
}

OpenStack is a plugin to talk to an OpenStack API.

func (OpenStack) Name

func (os OpenStack) Name() string

Name implements the plugin.Handler interface.

func (OpenStack) ServeDNS

func (os OpenStack) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)

ServeDNS implements the plugin.Handler interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址