remote

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2019 License: AGPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	ListGateways() ([]Gateway, error)

	ListRules(iface string) ([]FirewallRule, error)
	AddRule(iface, source, destination, gateway, description string) (FirewallRule, error)
}

Client connects to the remote Web UI

func NewSensemillaClient

func NewSensemillaClient(host, username, password string) Client

NewSensemillaClient returns a new remote.Client compatible with Sensemilla-ish Web UI

type FirewallRule

type FirewallRule interface {
	Source() string
	Destination() string
	Gateway() string
	Description() string

	Delete() error
}

FirewallRule from remote interface

type Gateway

type Gateway interface {
	Name() string
	Description() string

	GatewayAddress() string
	RoundtripTime() string
	Online() bool
}

Gateway configured on remote interface

Jump to

Keyboard shortcuts

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