dns

package
v0.18.3-0...-c90ca1e Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package dns ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(entry string) error

Add ...

func Entry

func Entry(ip, name, env string) string

Entry generate the DNS entry to be added

func Exists

func Exists(entry string) bool

Exists ...

func Remove

func Remove(entry string) error

Remove ...

func RemoveAll

func RemoveAll() error

RemoveAll removes all dns entries added by nanobox

Types

type DomainName

type DomainName struct {
	IP     string
	Domain string
}

func List

func List(filter string) []DomainName

type DomainRPC

type DomainRPC struct{}

func (*DomainRPC) Add

func (drpc *DomainRPC) Add(req Request, resp *Response) error

the rpc function run from the server

func (*DomainRPC) Remove

func (drpc *DomainRPC) Remove(req Request, resp *Response) error

the rpc function run from the server

type Request

type Request struct {
	Entry string
}

type Response

type Response struct {
	Message string
	Success bool
}

Jump to

Keyboard shortcuts

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