net

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigSchema = map[string]*schema.Attribute{
	"timeout": {
		Type: schema.TypeInt,
	},
	"dns_server": {
		Type: schema.TypeString,
	},
}

Functions

func ConfigInstance

func ConfigInstance() interface{}

func GetConfig

func GetConfig(connection *plugin.Connection) netConfig

GetConfig :: retrieve and cast connection config from query data

func GetConfigDNSServerAndPort

func GetConfigDNSServerAndPort(ctx context.Context, d *plugin.QueryData) string

func GetConfigTimeout

func GetConfigTimeout(ctx context.Context, d *plugin.QueryData) time.Duration

func Plugin

func Plugin(ctx context.Context) *plugin.Plugin

Types

This section is empty.

Jump to

Keyboard shortcuts

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