awsnmgr

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LanInterfaces []string `yaml:"lan-interfaces"`
}

Config struct

type NMgr

type NMgr struct {
	Config     *Config
	ConfigFile *string

	ClientNMgr *networkmanager.Client
	// contains filtered or unexported fields
}

NMgr structure that holds the structure of the network manager

func NewAWsNMgrNuage

func NewAWsNMgrNuage(opts ...Option) (*NMgr, error)

NewAWsNMgrNuage function defines a new dns-proxy

func (*NMgr) CreateGlobalNetwork

func (c *NMgr) CreateGlobalNetwork(n *string) (*networkmanager.CreateGlobalNetworkOutput, error)

CreateGlobalNetwork function

type Option

type Option func(n *NMgr)

Option struct

func WithConfigFile

func WithConfigFile(file string) Option

WithConfigFile function

func WithDebug

func WithDebug(d bool) Option

WithDebug function

func WithTimeout

func WithTimeout(dur time.Duration) Option

WithTimeout function

Jump to

Keyboard shortcuts

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