net

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: Apache-2.0 Imports: 28 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

type Cert added in v0.4.0

type Cert struct {
	IssuerCaID     int    `json:"issuer_ca_id"`
	IssuerName     string `json:"issuer_name"`
	NameValue      string `json:"name_value"`
	ID             int64  `json:"id"`
	EntryTimestamp string `json:"entry_timestamp"`
	NotBefore      string `json:"not_before"`
	NotAfter       string `json:"not_after"`
	SerialNumber   string `json:"serial_number"`
}

type OCSP added in v0.4.0

type OCSP struct {
	StatusString           string     `json:"status"`
	RevokedAt              *time.Time `json:"revoked_at,omitempty"`
	RevocationReasonString string     `json:"revocation_reason,omitempty"`
}

Jump to

Keyboard shortcuts

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