cjdns

package
v2.0.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2016 License: GPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	Conn *admin.Conn
}

Conn wraps around a go-cjdns admin connection

func Connect

func Connect(addr string, port int, password string) (conn *Conn, err error)

Connect returns a connection to cjdns admin

func (*Conn) AddUser

func (c *Conn) AddUser(publicKey *key.Public, ip net.IP) error

AddUser adds a new user to the database and allows a new iptunnel connection for the user.

func (*Conn) DelUser

func (c *Conn) DelUser(publicKey *key.Public) error

DelUser looks up the user for the defined public key and deauthenticates the user from the iptunnel.

func (*Conn) LookupPubKey

func (c *Conn) LookupPubKey(ip string) (key string, err error)

LookupPubKey finds the public key for a ipv6 in the cjdns node store.

Jump to

Keyboard shortcuts

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