internetproxy

package
v1.58.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Schemes = struct {
	HTTP  Scheme
	HTTPS Scheme
}{
	"http",
	"https",
}

Functions

This section is empty.

Types

type Scheme

type Scheme string

type Settings

type Settings struct {
	Scheme        Scheme   `json:"scheme"`                  // Protocol which proxy server uses
	Server        string   `json:"server"`                  // Address (either IP or Hostname) of proxy server
	Port          int      `json:"port"`                    // Port of proxy server
	User          *string  `json:"user,omitempty"`          // User of proxy server, null means do not change previous value
	Password      *string  `json:"password,omitempty"`      // Password of proxy server, null means do not change previous value
	NonProxyHosts []string `json:"nonProxyHosts,omitempty"` // Definition of hosts for which proxy won't be used. You can define multiple hosts. Each host can start or end with wildcard '*' for instance to match whole domain.
}

The configuration of the user

func (*Settings) MarshalHCL

func (me *Settings) MarshalHCL(properties hcl.Properties) error

func (*Settings) Schema

func (me *Settings) Schema() map[string]*schema.Schema

func (*Settings) UnmarshalHCL

func (me *Settings) UnmarshalHCL(decoder hcl.Decoder) error

Jump to

Keyboard shortcuts

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