routeros

package
v0.0.0-...-c10c226 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultAddress specifies the default hostname / ip address
	// of the RouterOS target.
	DefaultAddress = "192.168.88.1"
	// DefaultPortInsecure specifies the default non-TLS port.
	DefaultPortInsecure = "8728"
	// DefaultPortSecure specifies the default TLS port.
	DefaultPortSecure = "8789"
)

Variables

This section is empty.

Functions

func Provider

func Provider() terraform.ResourceProvider

Provider creates a new RouterOS terraform provider instance.

Types

type Client

type Client interface {
	Run(sentence ...string) (*wrapped.Reply, error)
	Close()
}

type Config

type Config interface {
	Client() (Client, error)
}

Config provides a way to wrap/encapsulate all the stuff that is necessary to interact with the RouterOS API.

func NewConfig

func NewConfig(address string, port string, username string, password string, tlsEnabled bool) (Config, error)

NewConfig creates a new configuration structure to be used provider-internally.

Jump to

Keyboard shortcuts

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