internetgateway1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Overview

Client for UPnP Device Control Protocol Internet Gateway Device v1.

This DCP is documented in detail at: - http://upnp.org/specs/gw/UPnP-gw-InternetGatewayDevice-v1-Device.pdf

Typically, use one of the New* functions to create clients for services.

Index

Constants

View Source
const (
	URN_LANDevice_1           = "urn:schemas-upnp-org:device:LANDevice:1"
	URN_WANConnectionDevice_1 = "urn:schemas-upnp-org:device:WANConnectionDevice:1"
	URN_WANDevice_1           = "urn:schemas-upnp-org:device:WANDevice:1"
)

Device URNs:

View Source
const (
	URN_LANHostConfigManagement_1  = "urn:schemas-upnp-org:service:LANHostConfigManagement:1"
	URN_Layer3Forwarding_1         = "urn:schemas-upnp-org:service:Layer3Forwarding:1"
	URN_WANCableLinkConfig_1       = "urn:schemas-upnp-org:service:WANCableLinkConfig:1"
	URN_WANCommonInterfaceConfig_1 = "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1"
	URN_WANDSLLinkConfig_1         = "urn:schemas-upnp-org:service:WANDSLLinkConfig:1"
	URN_WANEthernetLinkConfig_1    = "urn:schemas-upnp-org:service:WANEthernetLinkConfig:1"
	URN_WANIPConnection_1          = "urn:schemas-upnp-org:service:WANIPConnection:1"
	URN_WANPOTSLinkConfig_1        = "urn:schemas-upnp-org:service:WANPOTSLinkConfig:1"
	URN_WANPPPConnection_1         = "urn:schemas-upnp-org:service:WANPPPConnection:1"
)

Service URNs:

Variables

This section is empty.

Functions

This section is empty.

Types

type LANHostConfigManagement1

type LANHostConfigManagement1 struct {
	goupnp.ServiceClient
}

LANHostConfigManagement1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:LANHostConfigManagement:1". See goupnp.ServiceClient, which contains RootDevice and Service attributes which are provided for informational value.

func NewLANHostConfigManagement1Clients

func NewLANHostConfigManagement1Clients() (clients []*LANHostConfigManagement1, errors []error, err error)

NewLANHostConfigManagement1Clients is the legacy version of NewLANHostConfigManagement1ClientsCtx, but uses context.Background() as the context.

func NewLANHostConfigManagement1ClientsByURL

func NewLANHostConfigManagement1ClientsByURL(loc *url.URL) ([]*LANHostConfigManagement1, error)

NewLANHostConfigManagement1ClientsByURL is the legacy version of NewLANHostConfigManagement1ClientsByURLCtx, but uses context.Background() as the context.

func NewLANHostConfigManagement1ClientsByURLCtx

func NewLANHostConfigManagement1ClientsByURLCtx(ctx context.Context, loc *url.URL) ([]*LANHostConfigManagement1, error)

NewLANHostConfigManagement1ClientsByURLCtx discovers instances of the service at the given URL, and returns clients to any that are found. An error is returned if there was an error probing the service.

This is a typical entry calling point into this package when reusing an previously discovered service URL.

func NewLANHostConfigManagement1ClientsCtx

func NewLANHostConfigManagement1ClientsCtx(ctx context.Context) (clients []*LANHostConfigManagement1, errors []error, err error)

NewLANHostConfigManagement1ClientsCtx discovers instances of the service on the network, and returns clients to any that are found. errors will contain an error for any devices that replied but which could not be queried, and err will be set if the discovery process failed outright.

This is a typical entry calling point into this package.

func NewLANHostConfigManagement1ClientsFromRootDevice

func NewLANHostConfigManagement1ClientsFromRootDevice(rootDevice *goupnp.RootDevice, loc *url.URL) ([]*LANHostConfigManagement1, error)

NewLANHostConfigManagement1ClientsFromRootDevice discovers instances of the service in a given root device, and returns clients to any that are found. An error is returned if there was not at least one instance of the service within the device. The location parameter is simply assigned to the Location attribute of the wrapped ServiceClient(s).

This is a typical entry calling point into this package when reusing an previously discovered root device.

func (*LANHostConfigManagement1) DeleteDNSServer

func (client *LANHostConfigManagement1) DeleteDNSServer(NewDNSServers string) (err error)

DeleteDNSServer is the legacy version of DeleteDNSServerCtx, but uses context.Background() as the context.

func (*LANHostConfigManagement1) DeleteDNSServerCtx

func (client *LANHostConfigManagement1) DeleteDNSServerCtx(
	ctx context.Context,
	NewDNSServers string,
) (err error)

func (*LANHostConfigManagement1) DeleteIPRouter

func (client *LANHostConfigManagement1) DeleteIPRouter(NewIPRouters string) (err error)

DeleteIPRouter is the legacy version of DeleteIPRouterCtx, but uses context.Background() as the context.

func (*LANHostConfigManagement1) DeleteIPRouterCtx

func (client *LANHostConfigManagement1) DeleteIPRouterCtx(
	ctx context.Context,
	NewIPRouters string,
) (err error)

func (*LANHostConfigManagement1) DeleteReservedAddress

func (client *LANHostConfigManagement1) DeleteReservedAddress(NewReservedAddresses string) (err error)

DeleteReservedAddress is the legacy version of DeleteReservedAddressCtx, but uses context.Background() as the context.

func (*LANHostConfigManagement1) DeleteReservedAddressCtx

func (client *LANHostConfigManagement1) DeleteReservedAddressCtx(
	ctx context.Context,
	NewReservedAddresses string,
) (err error)

func (*LANHostConfigManagement1) GetAddressRange

func (client *LANHostConfigManagement1) GetAddressRange() (NewMinAddress string, NewMaxAddress string, err error)

GetAddressRange is the legacy version of GetAddressRangeCtx, but uses context.Background() as the context.

func (*LANHostConfigManagement1) GetAddressRangeCtx

func (client *LANHostConfigManagement1) GetAddressRangeCtx(
	ctx context.Context,
) (NewMinAddress string, NewMaxAddress string, err error)

func (*LANHostConfigManagement1) GetDHCPRelay

func (client *LANHostConfigManagement1) GetDHCPRelay() (NewDHCPRelay bool, err error)

GetDHCPRelay is the legacy version of GetDHCPRelayCtx, but uses context.Background() as the context.

func (*LANHostConfigManagement1) GetDHCPRelayCtx

func (client *LANHostConfigManagement1) GetDHCPRelayCtx(
	ctx context.Context,
) (NewDHCPRelay bool, err error)

func (*LANHostConfigManagement1) GetDHCPServerConfigurable

func (client *LANHostConfigManagement1) GetDHCPServerConfigurable() (NewDHCPServerConfigurable bool, err error)

GetDHCPServerConfigurable is the legacy version of GetDHCPServerConfigurableCtx, but uses context.Background() as the context.

func (*LANHostConfigManagement1) GetDHCPServerConfigurableCtx

func (client *LANHostConfigManagement1) GetDHCPServerConfigurableCtx(
	ctx context.Context,
) (NewDHCPServerConfigurable bool, err error)

func (*LANHostConfigManagement1) GetDNSServers

func (client *LANHostConfigManagement1) GetDNSServers() (NewDNSServers string, err error)

GetDNSServers is the legacy version of GetDNSServersCtx, but uses context.Background() as the context.

func (*LANHostConfigManagement1) GetDNSServersCtx

func (client *LANHostConfigManagement1) GetDNSServersCtx(
	ctx context.Context,
) (NewDNSServers string, err error)

func (*LANHostConfigManagement1) GetDomainName

func (client *LANHostConfigManagement1) GetDomainName() (NewDomainName string, err error)

GetDomainName is the legacy version of GetDomainNameCtx, but uses context.Background() as the context.

func (*LANHostConfigManagement1) GetDomainNameCtx

func (client *LANHostConfigManagement1) GetDomainNameCtx(
	ctx context.Context,
) (NewDomainName string, err error)

func (*LANHostConfigManagement1) GetIPRoutersList

func (client *LANHostConfigManagement1) GetIPRoutersList() (NewIPRouters string, err error)

GetIPRoutersList is the legacy version of GetIPRoutersListCtx, but uses context.Background() as the context.

func (*LANHostConfigManagement1) GetIPRoutersListCtx

func (client *LANHostConfigManagement1) GetIPRoutersListCtx(
	ctx context.Context,
) (NewIPRouters string, err error)

func (*LANHostConfigManagement1) GetReservedAddresses

func (client *LANHostConfigManagement1) GetReservedAddresses() (NewReservedAddresses string, err error)

GetReservedAddresses is the legacy version of GetReservedAddressesCtx, but uses context.Background() as the context.

func (*LANHostConfigManagement1) GetReservedAddressesCtx

func (client *LANHostConfigManagement1) GetReservedAddressesCtx(
	ctx context.Context,
) (NewReservedAddresses string, err error)

func (*LANHostConfigManagement1) GetSubnetMask

func (client *LANHostConfigManagement1) GetSubnetMask() (NewSubnetMask string, err error)

GetSubnetMask is the legacy version of GetSubnetMaskCtx, but uses context.Background() as the context.

func (*LANHostConfigManagement1) GetSubnetMaskCtx

func (client *LANHostConfigManagement1) GetSubnetMaskCtx(
	ctx context.Context,
) (NewSubnetMask string, err error)

func (*LANHostConfigManagement1) SetAddressRange

func (client *LANHostConfigManagement1) SetAddressRange(NewMinAddress string, NewMaxAddress string) (err error)

SetAddressRange is the legacy version of SetAddressRangeCtx, but uses context.Background() as the context.

func (*LANHostConfigManagement1) SetAddressRangeCtx

func (client *LANHostConfigManagement1) SetAddressRangeCtx(
	ctx context.Context,
	NewMinAddress string,
	NewMaxAddress string,
) (err error)

func (*LANHostConfigManagement1) SetDHCPRelay

func (client *LANHostConfigManagement1) SetDHCPRelay(NewDHCPRelay bool) (err error)

SetDHCPRelay is the legacy version of SetDHCPRelayCtx, but uses context.Background() as the context.

func (*LANHostConfigManagement1) SetDHCPRelayCtx

func (client *LANHostConfigManagement1) SetDHCPRelayCtx(
	ctx context.Context,
	NewDHCPRelay bool,
) (err error)

func (*LANHostConfigManagement1) SetDHCPServerConfigurable

func (client *LANHostConfigManagement1) SetDHCPServerConfigurable(NewDHCPServerConfigurable bool) (err error)

SetDHCPServerConfigurable is the legacy version of SetDHCPServerConfigurableCtx, but uses context.Background() as the context.

func (*LANHostConfigManagement1) SetDHCPServerConfigurableCtx

func (client *LANHostConfigManagement1) SetDHCPServerConfigurableCtx(
	ctx context.Context,
	NewDHCPServerConfigurable bool,
) (err error)

func (*LANHostConfigManagement1) SetDNSServer

func (client *LANHostConfigManagement1) SetDNSServer(NewDNSServers string) (err error)

SetDNSServer is the legacy version of SetDNSServerCtx, but uses context.Background() as the context.

func (*LANHostConfigManagement1) SetDNSServerCtx

func (client *LANHostConfigManagement1) SetDNSServerCtx(
	ctx context.Context,
	NewDNSServers string,
) (err error)

func (*LANHostConfigManagement1) SetDomainName

func (client *LANHostConfigManagement1) SetDomainName(NewDomainName string) (err error)

SetDomainName is the legacy version of SetDomainNameCtx, but uses context.Background() as the context.

func (*LANHostConfigManagement1) SetDomainNameCtx

func (client *LANHostConfigManagement1) SetDomainNameCtx(
	ctx context.Context,
	NewDomainName string,
) (err error)

func (*LANHostConfigManagement1) SetIPRouter

func (client *LANHostConfigManagement1) SetIPRouter(NewIPRouters string) (err error)

SetIPRouter is the legacy version of SetIPRouterCtx, but uses context.Background() as the context.

func (*LANHostConfigManagement1) SetIPRouterCtx

func (client *LANHostConfigManagement1) SetIPRouterCtx(
	ctx context.Context,
	NewIPRouters string,
) (err error)

func (*LANHostConfigManagement1) SetReservedAddress

func (client *LANHostConfigManagement1) SetReservedAddress(NewReservedAddresses string) (err error)

SetReservedAddress is the legacy version of SetReservedAddressCtx, but uses context.Background() as the context.

func (*LANHostConfigManagement1) SetReservedAddressCtx

func (client *LANHostConfigManagement1) SetReservedAddressCtx(
	ctx context.Context,
	NewReservedAddresses string,
) (err error)

func (*LANHostConfigManagement1) SetSubnetMask

func (client *LANHostConfigManagement1) SetSubnetMask(NewSubnetMask string) (err error)

SetSubnetMask is the legacy version of SetSubnetMaskCtx, but uses context.Background() as the context.

func (*LANHostConfigManagement1) SetSubnetMaskCtx

func (client *LANHostConfigManagement1) SetSubnetMaskCtx(
	ctx context.Context,
	NewSubnetMask string,
) (err error)

type Layer3Forwarding1

type Layer3Forwarding1 struct {
	goupnp.ServiceClient
}

Layer3Forwarding1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:Layer3Forwarding:1". See goupnp.ServiceClient, which contains RootDevice and Service attributes which are provided for informational value.

func NewLayer3Forwarding1Clients

func NewLayer3Forwarding1Clients() (clients []*Layer3Forwarding1, errors []error, err error)

NewLayer3Forwarding1Clients is the legacy version of NewLayer3Forwarding1ClientsCtx, but uses context.Background() as the context.

func NewLayer3Forwarding1ClientsByURL

func NewLayer3Forwarding1ClientsByURL(loc *url.URL) ([]*Layer3Forwarding1, error)

NewLayer3Forwarding1ClientsByURL is the legacy version of NewLayer3Forwarding1ClientsByURLCtx, but uses context.Background() as the context.

func NewLayer3Forwarding1ClientsByURLCtx

func NewLayer3Forwarding1ClientsByURLCtx(ctx context.Context, loc *url.URL) ([]*Layer3Forwarding1, error)

NewLayer3Forwarding1ClientsByURLCtx discovers instances of the service at the given URL, and returns clients to any that are found. An error is returned if there was an error probing the service.

This is a typical entry calling point into this package when reusing an previously discovered service URL.

func NewLayer3Forwarding1ClientsCtx

func NewLayer3Forwarding1ClientsCtx(ctx context.Context) (clients []*Layer3Forwarding1, errors []error, err error)

NewLayer3Forwarding1ClientsCtx discovers instances of the service on the network, and returns clients to any that are found. errors will contain an error for any devices that replied but which could not be queried, and err will be set if the discovery process failed outright.

This is a typical entry calling point into this package.

func NewLayer3Forwarding1ClientsFromRootDevice

func NewLayer3Forwarding1ClientsFromRootDevice(rootDevice *goupnp.RootDevice, loc *url.URL) ([]*Layer3Forwarding1, error)

NewLayer3Forwarding1ClientsFromRootDevice discovers instances of the service in a given root device, and returns clients to any that are found. An error is returned if there was not at least one instance of the service within the device. The location parameter is simply assigned to the Location attribute of the wrapped ServiceClient(s).

This is a typical entry calling point into this package when reusing an previously discovered root device.

func (*Layer3Forwarding1) GetDefaultConnectionService

func (client *Layer3Forwarding1) GetDefaultConnectionService() (NewDefaultConnectionService string, err error)

GetDefaultConnectionService is the legacy version of GetDefaultConnectionServiceCtx, but uses context.Background() as the context.

func (*Layer3Forwarding1) GetDefaultConnectionServiceCtx

func (client *Layer3Forwarding1) GetDefaultConnectionServiceCtx(
	ctx context.Context,
) (NewDefaultConnectionService string, err error)

func (*Layer3Forwarding1) SetDefaultConnectionService

func (client *Layer3Forwarding1) SetDefaultConnectionService(NewDefaultConnectionService string) (err error)

SetDefaultConnectionService is the legacy version of SetDefaultConnectionServiceCtx, but uses context.Background() as the context.

func (*Layer3Forwarding1) SetDefaultConnectionServiceCtx

func (client *Layer3Forwarding1) SetDefaultConnectionServiceCtx(
	ctx context.Context,
	NewDefaultConnectionService string,
) (err error)

type WANCableLinkConfig1

type WANCableLinkConfig1 struct {
	goupnp.ServiceClient
}

WANCableLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANCableLinkConfig:1". See goupnp.ServiceClient, which contains RootDevice and Service attributes which are provided for informational value.

func NewWANCableLinkConfig1Clients

func NewWANCableLinkConfig1Clients() (clients []*WANCableLinkConfig1, errors []error, err error)

NewWANCableLinkConfig1Clients is the legacy version of NewWANCableLinkConfig1ClientsCtx, but uses context.Background() as the context.

func NewWANCableLinkConfig1ClientsByURL

func NewWANCableLinkConfig1ClientsByURL(loc *url.URL) ([]*WANCableLinkConfig1, error)

NewWANCableLinkConfig1ClientsByURL is the legacy version of NewWANCableLinkConfig1ClientsByURLCtx, but uses context.Background() as the context.

func NewWANCableLinkConfig1ClientsByURLCtx

func NewWANCableLinkConfig1ClientsByURLCtx(ctx context.Context, loc *url.URL) ([]*WANCableLinkConfig1, error)

NewWANCableLinkConfig1ClientsByURLCtx discovers instances of the service at the given URL, and returns clients to any that are found. An error is returned if there was an error probing the service.

This is a typical entry calling point into this package when reusing an previously discovered service URL.

func NewWANCableLinkConfig1ClientsCtx

func NewWANCableLinkConfig1ClientsCtx(ctx context.Context) (clients []*WANCableLinkConfig1, errors []error, err error)

NewWANCableLinkConfig1ClientsCtx discovers instances of the service on the network, and returns clients to any that are found. errors will contain an error for any devices that replied but which could not be queried, and err will be set if the discovery process failed outright.

This is a typical entry calling point into this package.

func NewWANCableLinkConfig1ClientsFromRootDevice

func NewWANCableLinkConfig1ClientsFromRootDevice(rootDevice *goupnp.RootDevice, loc *url.URL) ([]*WANCableLinkConfig1, error)

NewWANCableLinkConfig1ClientsFromRootDevice discovers instances of the service in a given root device, and returns clients to any that are found. An error is returned if there was not at least one instance of the service within the device. The location parameter is simply assigned to the Location attribute of the wrapped ServiceClient(s).

This is a typical entry calling point into this package when reusing an previously discovered root device.

func (*WANCableLinkConfig1) GetBPIEncryptionEnabled

func (client *WANCableLinkConfig1) GetBPIEncryptionEnabled() (NewBPIEncryptionEnabled bool, err error)

GetBPIEncryptionEnabled is the legacy version of GetBPIEncryptionEnabledCtx, but uses context.Background() as the context.

func (*WANCableLinkConfig1) GetBPIEncryptionEnabledCtx

func (client *WANCableLinkConfig1) GetBPIEncryptionEnabledCtx(
	ctx context.Context,
) (NewBPIEncryptionEnabled bool, err error)

func (*WANCableLinkConfig1) GetCableLinkConfigInfo

func (client *WANCableLinkConfig1) GetCableLinkConfigInfo() (NewCableLinkConfigState string, NewLinkType string, err error)

GetCableLinkConfigInfo is the legacy version of GetCableLinkConfigInfoCtx, but uses context.Background() as the context.

func (*WANCableLinkConfig1) GetCableLinkConfigInfoCtx

func (client *WANCableLinkConfig1) GetCableLinkConfigInfoCtx(
	ctx context.Context,
) (NewCableLinkConfigState string, NewLinkType string, err error)

Return values:

* NewCableLinkConfigState: allowed values: notReady, dsSyncComplete, usParamAcquired, rangingComplete, ipComplete, todEstablished, paramTransferComplete, registrationComplete, operational, accessDenied

* NewLinkType: allowed values: Ethernet

func (*WANCableLinkConfig1) GetConfigFile

func (client *WANCableLinkConfig1) GetConfigFile() (NewConfigFile string, err error)

GetConfigFile is the legacy version of GetConfigFileCtx, but uses context.Background() as the context.

func (*WANCableLinkConfig1) GetConfigFileCtx

func (client *WANCableLinkConfig1) GetConfigFileCtx(
	ctx context.Context,
) (NewConfigFile string, err error)

func (*WANCableLinkConfig1) GetDownstreamFrequency

func (client *WANCableLinkConfig1) GetDownstreamFrequency() (NewDownstreamFrequency uint32, err error)

GetDownstreamFrequency is the legacy version of GetDownstreamFrequencyCtx, but uses context.Background() as the context.

func (*WANCableLinkConfig1) GetDownstreamFrequencyCtx

func (client *WANCableLinkConfig1) GetDownstreamFrequencyCtx(
	ctx context.Context,
) (NewDownstreamFrequency uint32, err error)

func (*WANCableLinkConfig1) GetDownstreamModulation

func (client *WANCableLinkConfig1) GetDownstreamModulation() (NewDownstreamModulation string, err error)

GetDownstreamModulation is the legacy version of GetDownstreamModulationCtx, but uses context.Background() as the context.

func (*WANCableLinkConfig1) GetDownstreamModulationCtx

func (client *WANCableLinkConfig1) GetDownstreamModulationCtx(
	ctx context.Context,
) (NewDownstreamModulation string, err error)

Return values:

* NewDownstreamModulation: allowed values: 64QAM, 256QAM

func (*WANCableLinkConfig1) GetTFTPServer

func (client *WANCableLinkConfig1) GetTFTPServer() (NewTFTPServer string, err error)

GetTFTPServer is the legacy version of GetTFTPServerCtx, but uses context.Background() as the context.

func (*WANCableLinkConfig1) GetTFTPServerCtx

func (client *WANCableLinkConfig1) GetTFTPServerCtx(
	ctx context.Context,
) (NewTFTPServer string, err error)

func (*WANCableLinkConfig1) GetUpstreamChannelID

func (client *WANCableLinkConfig1) GetUpstreamChannelID() (NewUpstreamChannelID uint32, err error)

GetUpstreamChannelID is the legacy version of GetUpstreamChannelIDCtx, but uses context.Background() as the context.

func (*WANCableLinkConfig1) GetUpstreamChannelIDCtx

func (client *WANCableLinkConfig1) GetUpstreamChannelIDCtx(
	ctx context.Context,
) (NewUpstreamChannelID uint32, err error)

func (*WANCableLinkConfig1) GetUpstreamFrequency

func (client *WANCableLinkConfig1) GetUpstreamFrequency() (NewUpstreamFrequency uint32, err error)

GetUpstreamFrequency is the legacy version of GetUpstreamFrequencyCtx, but uses context.Background() as the context.

func (*WANCableLinkConfig1) GetUpstreamFrequencyCtx

func (client *WANCableLinkConfig1) GetUpstreamFrequencyCtx(
	ctx context.Context,
) (NewUpstreamFrequency uint32, err error)

func (*WANCableLinkConfig1) GetUpstreamModulation

func (client *WANCableLinkConfig1) GetUpstreamModulation() (NewUpstreamModulation string, err error)

GetUpstreamModulation is the legacy version of GetUpstreamModulationCtx, but uses context.Background() as the context.

func (*WANCableLinkConfig1) GetUpstreamModulationCtx

func (client *WANCableLinkConfig1) GetUpstreamModulationCtx(
	ctx context.Context,
) (NewUpstreamModulation string, err error)

Return values:

* NewUpstreamModulation: allowed values: QPSK, 16QAM

func (*WANCableLinkConfig1) GetUpstreamPowerLevel

func (client *WANCableLinkConfig1) GetUpstreamPowerLevel() (NewUpstreamPowerLevel uint32, err error)

GetUpstreamPowerLevel is the legacy version of GetUpstreamPowerLevelCtx, but uses context.Background() as the context.

func (*WANCableLinkConfig1) GetUpstreamPowerLevelCtx

func (client *WANCableLinkConfig1) GetUpstreamPowerLevelCtx(
	ctx context.Context,
) (NewUpstreamPowerLevel uint32, err error)

type WANCommonInterfaceConfig1

type WANCommonInterfaceConfig1 struct {
	goupnp.ServiceClient
}

WANCommonInterfaceConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1". See goupnp.ServiceClient, which contains RootDevice and Service attributes which are provided for informational value.

func NewWANCommonInterfaceConfig1Clients

func NewWANCommonInterfaceConfig1Clients() (clients []*WANCommonInterfaceConfig1, errors []error, err error)

NewWANCommonInterfaceConfig1Clients is the legacy version of NewWANCommonInterfaceConfig1ClientsCtx, but uses context.Background() as the context.

func NewWANCommonInterfaceConfig1ClientsByURL

func NewWANCommonInterfaceConfig1ClientsByURL(loc *url.URL) ([]*WANCommonInterfaceConfig1, error)

NewWANCommonInterfaceConfig1ClientsByURL is the legacy version of NewWANCommonInterfaceConfig1ClientsByURLCtx, but uses context.Background() as the context.

func NewWANCommonInterfaceConfig1ClientsByURLCtx

func NewWANCommonInterfaceConfig1ClientsByURLCtx(ctx context.Context, loc *url.URL) ([]*WANCommonInterfaceConfig1, error)

NewWANCommonInterfaceConfig1ClientsByURLCtx discovers instances of the service at the given URL, and returns clients to any that are found. An error is returned if there was an error probing the service.

This is a typical entry calling point into this package when reusing an previously discovered service URL.

func NewWANCommonInterfaceConfig1ClientsCtx

func NewWANCommonInterfaceConfig1ClientsCtx(ctx context.Context) (clients []*WANCommonInterfaceConfig1, errors []error, err error)

NewWANCommonInterfaceConfig1ClientsCtx discovers instances of the service on the network, and returns clients to any that are found. errors will contain an error for any devices that replied but which could not be queried, and err will be set if the discovery process failed outright.

This is a typical entry calling point into this package.

func NewWANCommonInterfaceConfig1ClientsFromRootDevice

func NewWANCommonInterfaceConfig1ClientsFromRootDevice(rootDevice *goupnp.RootDevice, loc *url.URL) ([]*WANCommonInterfaceConfig1, error)

NewWANCommonInterfaceConfig1ClientsFromRootDevice discovers instances of the service in a given root device, and returns clients to any that are found. An error is returned if there was not at least one instance of the service within the device. The location parameter is simply assigned to the Location attribute of the wrapped ServiceClient(s).

This is a typical entry calling point into this package when reusing an previously discovered root device.

func (*WANCommonInterfaceConfig1) GetActiveConnection

func (client *WANCommonInterfaceConfig1) GetActiveConnection(NewActiveConnectionIndex uint16) (NewActiveConnDeviceContainer string, NewActiveConnectionServiceID string, err error)

GetActiveConnection is the legacy version of GetActiveConnectionCtx, but uses context.Background() as the context.

func (*WANCommonInterfaceConfig1) GetActiveConnectionCtx

func (client *WANCommonInterfaceConfig1) GetActiveConnectionCtx(
	ctx context.Context,
	NewActiveConnectionIndex uint16,
) (NewActiveConnDeviceContainer string, NewActiveConnectionServiceID string, err error)

func (*WANCommonInterfaceConfig1) GetCommonLinkProperties

func (client *WANCommonInterfaceConfig1) GetCommonLinkProperties() (NewWANAccessType string, NewLayer1UpstreamMaxBitRate uint32, NewLayer1DownstreamMaxBitRate uint32, NewPhysicalLinkStatus string, err error)

GetCommonLinkProperties is the legacy version of GetCommonLinkPropertiesCtx, but uses context.Background() as the context.

func (*WANCommonInterfaceConfig1) GetCommonLinkPropertiesCtx

func (client *WANCommonInterfaceConfig1) GetCommonLinkPropertiesCtx(
	ctx context.Context,
) (NewWANAccessType string, NewLayer1UpstreamMaxBitRate uint32, NewLayer1DownstreamMaxBitRate uint32, NewPhysicalLinkStatus string, err error)

Return values:

* NewWANAccessType: allowed values: DSL, POTS, Cable, Ethernet

* NewPhysicalLinkStatus: allowed values: Up, Down

func (*WANCommonInterfaceConfig1) GetEnabledForInternet

func (client *WANCommonInterfaceConfig1) GetEnabledForInternet() (NewEnabledForInternet bool, err error)

GetEnabledForInternet is the legacy version of GetEnabledForInternetCtx, but uses context.Background() as the context.

func (*WANCommonInterfaceConfig1) GetEnabledForInternetCtx

func (client *WANCommonInterfaceConfig1) GetEnabledForInternetCtx(
	ctx context.Context,
) (NewEnabledForInternet bool, err error)

func (*WANCommonInterfaceConfig1) GetMaximumActiveConnections

func (client *WANCommonInterfaceConfig1) GetMaximumActiveConnections() (NewMaximumActiveConnections uint16, err error)

GetMaximumActiveConnections is the legacy version of GetMaximumActiveConnectionsCtx, but uses context.Background() as the context.

func (*WANCommonInterfaceConfig1) GetMaximumActiveConnectionsCtx

func (client *WANCommonInterfaceConfig1) GetMaximumActiveConnectionsCtx(
	ctx context.Context,
) (NewMaximumActiveConnections uint16, err error)

Return values:

* NewMaximumActiveConnections: allowed value range: minimum=1, step=1

func (*WANCommonInterfaceConfig1) GetTotalBytesReceived

func (client *WANCommonInterfaceConfig1) GetTotalBytesReceived() (NewTotalBytesReceived uint64, err error)

GetTotalBytesReceived is the legacy version of GetTotalBytesReceivedCtx, but uses context.Background() as the context.

func (*WANCommonInterfaceConfig1) GetTotalBytesReceivedCtx

func (client *WANCommonInterfaceConfig1) GetTotalBytesReceivedCtx(
	ctx context.Context,
) (NewTotalBytesReceived uint64, err error)

func (*WANCommonInterfaceConfig1) GetTotalBytesSent

func (client *WANCommonInterfaceConfig1) GetTotalBytesSent() (NewTotalBytesSent uint64, err error)

GetTotalBytesSent is the legacy version of GetTotalBytesSentCtx, but uses context.Background() as the context.

func (*WANCommonInterfaceConfig1) GetTotalBytesSentCtx

func (client *WANCommonInterfaceConfig1) GetTotalBytesSentCtx(
	ctx context.Context,
) (NewTotalBytesSent uint64, err error)

func (*WANCommonInterfaceConfig1) GetTotalPacketsReceived

func (client *WANCommonInterfaceConfig1) GetTotalPacketsReceived() (NewTotalPacketsReceived uint32, err error)

GetTotalPacketsReceived is the legacy version of GetTotalPacketsReceivedCtx, but uses context.Background() as the context.

func (*WANCommonInterfaceConfig1) GetTotalPacketsReceivedCtx

func (client *WANCommonInterfaceConfig1) GetTotalPacketsReceivedCtx(
	ctx context.Context,
) (NewTotalPacketsReceived uint32, err error)

func (*WANCommonInterfaceConfig1) GetTotalPacketsSent

func (client *WANCommonInterfaceConfig1) GetTotalPacketsSent() (NewTotalPacketsSent uint32, err error)

GetTotalPacketsSent is the legacy version of GetTotalPacketsSentCtx, but uses context.Background() as the context.

func (*WANCommonInterfaceConfig1) GetTotalPacketsSentCtx

func (client *WANCommonInterfaceConfig1) GetTotalPacketsSentCtx(
	ctx context.Context,
) (NewTotalPacketsSent uint32, err error)

func (*WANCommonInterfaceConfig1) GetWANAccessProvider

func (client *WANCommonInterfaceConfig1) GetWANAccessProvider() (NewWANAccessProvider string, err error)

GetWANAccessProvider is the legacy version of GetWANAccessProviderCtx, but uses context.Background() as the context.

func (*WANCommonInterfaceConfig1) GetWANAccessProviderCtx

func (client *WANCommonInterfaceConfig1) GetWANAccessProviderCtx(
	ctx context.Context,
) (NewWANAccessProvider string, err error)

func (*WANCommonInterfaceConfig1) SetEnabledForInternet

func (client *WANCommonInterfaceConfig1) SetEnabledForInternet(NewEnabledForInternet bool) (err error)

SetEnabledForInternet is the legacy version of SetEnabledForInternetCtx, but uses context.Background() as the context.

func (*WANCommonInterfaceConfig1) SetEnabledForInternetCtx

func (client *WANCommonInterfaceConfig1) SetEnabledForInternetCtx(
	ctx context.Context,
	NewEnabledForInternet bool,
) (err error)

type WANDSLLinkConfig1

type WANDSLLinkConfig1 struct {
	goupnp.ServiceClient
}

WANDSLLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANDSLLinkConfig:1". See goupnp.ServiceClient, which contains RootDevice and Service attributes which are provided for informational value.

func NewWANDSLLinkConfig1Clients

func NewWANDSLLinkConfig1Clients() (clients []*WANDSLLinkConfig1, errors []error, err error)

NewWANDSLLinkConfig1Clients is the legacy version of NewWANDSLLinkConfig1ClientsCtx, but uses context.Background() as the context.

func NewWANDSLLinkConfig1ClientsByURL

func NewWANDSLLinkConfig1ClientsByURL(loc *url.URL) ([]*WANDSLLinkConfig1, error)

NewWANDSLLinkConfig1ClientsByURL is the legacy version of NewWANDSLLinkConfig1ClientsByURLCtx, but uses context.Background() as the context.

func NewWANDSLLinkConfig1ClientsByURLCtx

func NewWANDSLLinkConfig1ClientsByURLCtx(ctx context.Context, loc *url.URL) ([]*WANDSLLinkConfig1, error)

NewWANDSLLinkConfig1ClientsByURLCtx discovers instances of the service at the given URL, and returns clients to any that are found. An error is returned if there was an error probing the service.

This is a typical entry calling point into this package when reusing an previously discovered service URL.

func NewWANDSLLinkConfig1ClientsCtx

func NewWANDSLLinkConfig1ClientsCtx(ctx context.Context) (clients []*WANDSLLinkConfig1, errors []error, err error)

NewWANDSLLinkConfig1ClientsCtx discovers instances of the service on the network, and returns clients to any that are found. errors will contain an error for any devices that replied but which could not be queried, and err will be set if the discovery process failed outright.

This is a typical entry calling point into this package.

func NewWANDSLLinkConfig1ClientsFromRootDevice

func NewWANDSLLinkConfig1ClientsFromRootDevice(rootDevice *goupnp.RootDevice, loc *url.URL) ([]*WANDSLLinkConfig1, error)

NewWANDSLLinkConfig1ClientsFromRootDevice discovers instances of the service in a given root device, and returns clients to any that are found. An error is returned if there was not at least one instance of the service within the device. The location parameter is simply assigned to the Location attribute of the wrapped ServiceClient(s).

This is a typical entry calling point into this package when reusing an previously discovered root device.

func (*WANDSLLinkConfig1) GetATMEncapsulation

func (client *WANDSLLinkConfig1) GetATMEncapsulation() (NewATMEncapsulation string, err error)

GetATMEncapsulation is the legacy version of GetATMEncapsulationCtx, but uses context.Background() as the context.

func (*WANDSLLinkConfig1) GetATMEncapsulationCtx

func (client *WANDSLLinkConfig1) GetATMEncapsulationCtx(
	ctx context.Context,
) (NewATMEncapsulation string, err error)

func (*WANDSLLinkConfig1) GetAutoConfig

func (client *WANDSLLinkConfig1) GetAutoConfig() (NewAutoConfig bool, err error)

GetAutoConfig is the legacy version of GetAutoConfigCtx, but uses context.Background() as the context.

func (*WANDSLLinkConfig1) GetAutoConfigCtx

func (client *WANDSLLinkConfig1) GetAutoConfigCtx(
	ctx context.Context,
) (NewAutoConfig bool, err error)

func (*WANDSLLinkConfig1) GetDSLLinkInfo

func (client *WANDSLLinkConfig1) GetDSLLinkInfo() (NewLinkType string, NewLinkStatus string, err error)

GetDSLLinkInfo is the legacy version of GetDSLLinkInfoCtx, but uses context.Background() as the context.

func (*WANDSLLinkConfig1) GetDSLLinkInfoCtx

func (client *WANDSLLinkConfig1) GetDSLLinkInfoCtx(
	ctx context.Context,
) (NewLinkType string, NewLinkStatus string, err error)

Return values:

* NewLinkStatus: allowed values: Up, Down

func (*WANDSLLinkConfig1) GetDestinationAddress

func (client *WANDSLLinkConfig1) GetDestinationAddress() (NewDestinationAddress string, err error)

GetDestinationAddress is the legacy version of GetDestinationAddressCtx, but uses context.Background() as the context.

func (*WANDSLLinkConfig1) GetDestinationAddressCtx

func (client *WANDSLLinkConfig1) GetDestinationAddressCtx(
	ctx context.Context,
) (NewDestinationAddress string, err error)

func (*WANDSLLinkConfig1) GetFCSPreserved

func (client *WANDSLLinkConfig1) GetFCSPreserved() (NewFCSPreserved bool, err error)

GetFCSPreserved is the legacy version of GetFCSPreservedCtx, but uses context.Background() as the context.

func (*WANDSLLinkConfig1) GetFCSPreservedCtx

func (client *WANDSLLinkConfig1) GetFCSPreservedCtx(
	ctx context.Context,
) (NewFCSPreserved bool, err error)

func (*WANDSLLinkConfig1) GetModulationType

func (client *WANDSLLinkConfig1) GetModulationType() (NewModulationType string, err error)

GetModulationType is the legacy version of GetModulationTypeCtx, but uses context.Background() as the context.

func (*WANDSLLinkConfig1) GetModulationTypeCtx

func (client *WANDSLLinkConfig1) GetModulationTypeCtx(
	ctx context.Context,
) (NewModulationType string, err error)

func (*WANDSLLinkConfig1) SetATMEncapsulation

func (client *WANDSLLinkConfig1) SetATMEncapsulation(NewATMEncapsulation string) (err error)

SetATMEncapsulation is the legacy version of SetATMEncapsulationCtx, but uses context.Background() as the context.

func (*WANDSLLinkConfig1) SetATMEncapsulationCtx

func (client *WANDSLLinkConfig1) SetATMEncapsulationCtx(
	ctx context.Context,
	NewATMEncapsulation string,
) (err error)

func (*WANDSLLinkConfig1) SetDSLLinkType

func (client *WANDSLLinkConfig1) SetDSLLinkType(NewLinkType string) (err error)

SetDSLLinkType is the legacy version of SetDSLLinkTypeCtx, but uses context.Background() as the context.

func (*WANDSLLinkConfig1) SetDSLLinkTypeCtx

func (client *WANDSLLinkConfig1) SetDSLLinkTypeCtx(
	ctx context.Context,
	NewLinkType string,
) (err error)

func (*WANDSLLinkConfig1) SetDestinationAddress

func (client *WANDSLLinkConfig1) SetDestinationAddress(NewDestinationAddress string) (err error)

SetDestinationAddress is the legacy version of SetDestinationAddressCtx, but uses context.Background() as the context.

func (*WANDSLLinkConfig1) SetDestinationAddressCtx

func (client *WANDSLLinkConfig1) SetDestinationAddressCtx(
	ctx context.Context,
	NewDestinationAddress string,
) (err error)

func (*WANDSLLinkConfig1) SetFCSPreserved

func (client *WANDSLLinkConfig1) SetFCSPreserved(NewFCSPreserved bool) (err error)

SetFCSPreserved is the legacy version of SetFCSPreservedCtx, but uses context.Background() as the context.

func (*WANDSLLinkConfig1) SetFCSPreservedCtx

func (client *WANDSLLinkConfig1) SetFCSPreservedCtx(
	ctx context.Context,
	NewFCSPreserved bool,
) (err error)

type WANEthernetLinkConfig1

type WANEthernetLinkConfig1 struct {
	goupnp.ServiceClient
}

WANEthernetLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANEthernetLinkConfig:1". See goupnp.ServiceClient, which contains RootDevice and Service attributes which are provided for informational value.

func NewWANEthernetLinkConfig1Clients

func NewWANEthernetLinkConfig1Clients() (clients []*WANEthernetLinkConfig1, errors []error, err error)

NewWANEthernetLinkConfig1Clients is the legacy version of NewWANEthernetLinkConfig1ClientsCtx, but uses context.Background() as the context.

func NewWANEthernetLinkConfig1ClientsByURL

func NewWANEthernetLinkConfig1ClientsByURL(loc *url.URL) ([]*WANEthernetLinkConfig1, error)

NewWANEthernetLinkConfig1ClientsByURL is the legacy version of NewWANEthernetLinkConfig1ClientsByURLCtx, but uses context.Background() as the context.

func NewWANEthernetLinkConfig1ClientsByURLCtx

func NewWANEthernetLinkConfig1ClientsByURLCtx(ctx context.Context, loc *url.URL) ([]*WANEthernetLinkConfig1, error)

NewWANEthernetLinkConfig1ClientsByURLCtx discovers instances of the service at the given URL, and returns clients to any that are found. An error is returned if there was an error probing the service.

This is a typical entry calling point into this package when reusing an previously discovered service URL.

func NewWANEthernetLinkConfig1ClientsCtx

func NewWANEthernetLinkConfig1ClientsCtx(ctx context.Context) (clients []*WANEthernetLinkConfig1, errors []error, err error)

NewWANEthernetLinkConfig1ClientsCtx discovers instances of the service on the network, and returns clients to any that are found. errors will contain an error for any devices that replied but which could not be queried, and err will be set if the discovery process failed outright.

This is a typical entry calling point into this package.

func NewWANEthernetLinkConfig1ClientsFromRootDevice

func NewWANEthernetLinkConfig1ClientsFromRootDevice(rootDevice *goupnp.RootDevice, loc *url.URL) ([]*WANEthernetLinkConfig1, error)

NewWANEthernetLinkConfig1ClientsFromRootDevice discovers instances of the service in a given root device, and returns clients to any that are found. An error is returned if there was not at least one instance of the service within the device. The location parameter is simply assigned to the Location attribute of the wrapped ServiceClient(s).

This is a typical entry calling point into this package when reusing an previously discovered root device.

func (*WANEthernetLinkConfig1) GetEthernetLinkStatus

func (client *WANEthernetLinkConfig1) GetEthernetLinkStatus() (NewEthernetLinkStatus string, err error)

GetEthernetLinkStatus is the legacy version of GetEthernetLinkStatusCtx, but uses context.Background() as the context.

func (*WANEthernetLinkConfig1) GetEthernetLinkStatusCtx

func (client *WANEthernetLinkConfig1) GetEthernetLinkStatusCtx(
	ctx context.Context,
) (NewEthernetLinkStatus string, err error)

Return values:

* NewEthernetLinkStatus: allowed values: Up, Down

type WANIPConnection1

type WANIPConnection1 struct {
	goupnp.ServiceClient
}

WANIPConnection1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANIPConnection:1". See goupnp.ServiceClient, which contains RootDevice and Service attributes which are provided for informational value.

func NewWANIPConnection1Clients

func NewWANIPConnection1Clients() (clients []*WANIPConnection1, errors []error, err error)

NewWANIPConnection1Clients is the legacy version of NewWANIPConnection1ClientsCtx, but uses context.Background() as the context.

func NewWANIPConnection1ClientsByURL

func NewWANIPConnection1ClientsByURL(loc *url.URL) ([]*WANIPConnection1, error)

NewWANIPConnection1ClientsByURL is the legacy version of NewWANIPConnection1ClientsByURLCtx, but uses context.Background() as the context.

func NewWANIPConnection1ClientsByURLCtx

func NewWANIPConnection1ClientsByURLCtx(ctx context.Context, loc *url.URL) ([]*WANIPConnection1, error)

NewWANIPConnection1ClientsByURLCtx discovers instances of the service at the given URL, and returns clients to any that are found. An error is returned if there was an error probing the service.

This is a typical entry calling point into this package when reusing an previously discovered service URL.

func NewWANIPConnection1ClientsCtx

func NewWANIPConnection1ClientsCtx(ctx context.Context) (clients []*WANIPConnection1, errors []error, err error)

NewWANIPConnection1ClientsCtx discovers instances of the service on the network, and returns clients to any that are found. errors will contain an error for any devices that replied but which could not be queried, and err will be set if the discovery process failed outright.

This is a typical entry calling point into this package.

func NewWANIPConnection1ClientsFromRootDevice

func NewWANIPConnection1ClientsFromRootDevice(rootDevice *goupnp.RootDevice, loc *url.URL) ([]*WANIPConnection1, error)

NewWANIPConnection1ClientsFromRootDevice discovers instances of the service in a given root device, and returns clients to any that are found. An error is returned if there was not at least one instance of the service within the device. The location parameter is simply assigned to the Location attribute of the wrapped ServiceClient(s).

This is a typical entry calling point into this package when reusing an previously discovered root device.

func (*WANIPConnection1) AddPortMapping

func (client *WANIPConnection1) AddPortMapping(NewRemoteHost string, NewExternalPort uint16, NewProtocol string, NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32) (err error)

AddPortMapping is the legacy version of AddPortMappingCtx, but uses context.Background() as the context.

func (*WANIPConnection1) AddPortMappingCtx

func (client *WANIPConnection1) AddPortMappingCtx(
	ctx context.Context,
	NewRemoteHost string,
	NewExternalPort uint16,
	NewProtocol string,
	NewInternalPort uint16,
	NewInternalClient string,
	NewEnabled bool,
	NewPortMappingDescription string,
	NewLeaseDuration uint32,
) (err error)

func (*WANIPConnection1) DeletePortMapping

func (client *WANIPConnection1) DeletePortMapping(NewRemoteHost string, NewExternalPort uint16, NewProtocol string) (err error)

DeletePortMapping is the legacy version of DeletePortMappingCtx, but uses context.Background() as the context.

func (*WANIPConnection1) DeletePortMappingCtx

func (client *WANIPConnection1) DeletePortMappingCtx(
	ctx context.Context,
	NewRemoteHost string,
	NewExternalPort uint16,
	NewProtocol string,
) (err error)

func (*WANIPConnection1) ForceTermination

func (client *WANIPConnection1) ForceTermination() (err error)

ForceTermination is the legacy version of ForceTerminationCtx, but uses context.Background() as the context.

func (*WANIPConnection1) ForceTerminationCtx

func (client *WANIPConnection1) ForceTerminationCtx(
	ctx context.Context,
) (err error)

func (*WANIPConnection1) GetAutoDisconnectTime

func (client *WANIPConnection1) GetAutoDisconnectTime() (NewAutoDisconnectTime uint32, err error)

GetAutoDisconnectTime is the legacy version of GetAutoDisconnectTimeCtx, but uses context.Background() as the context.

func (*WANIPConnection1) GetAutoDisconnectTimeCtx

func (client *WANIPConnection1) GetAutoDisconnectTimeCtx(
	ctx context.Context,
) (NewAutoDisconnectTime uint32, err error)

func (*WANIPConnection1) GetConnectionTypeInfo

func (client *WANIPConnection1) GetConnectionTypeInfo() (NewConnectionType string, NewPossibleConnectionTypes string, err error)

GetConnectionTypeInfo is the legacy version of GetConnectionTypeInfoCtx, but uses context.Background() as the context.

func (*WANIPConnection1) GetConnectionTypeInfoCtx

func (client *WANIPConnection1) GetConnectionTypeInfoCtx(
	ctx context.Context,
) (NewConnectionType string, NewPossibleConnectionTypes string, err error)

Return values:

* NewPossibleConnectionTypes: allowed values: Unconfigured, IP_Routed, IP_Bridged

func (*WANIPConnection1) GetExternalIPAddress

func (client *WANIPConnection1) GetExternalIPAddress() (NewExternalIPAddress string, err error)

GetExternalIPAddress is the legacy version of GetExternalIPAddressCtx, but uses context.Background() as the context.

func (*WANIPConnection1) GetExternalIPAddressCtx

func (client *WANIPConnection1) GetExternalIPAddressCtx(
	ctx context.Context,
) (NewExternalIPAddress string, err error)

func (*WANIPConnection1) GetGenericPortMappingEntry

func (client *WANIPConnection1) GetGenericPortMappingEntry(NewPortMappingIndex uint16) (NewRemoteHost string, NewExternalPort uint16, NewProtocol string, NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32, err error)

GetGenericPortMappingEntry is the legacy version of GetGenericPortMappingEntryCtx, but uses context.Background() as the context.

func (*WANIPConnection1) GetGenericPortMappingEntryCtx

func (client *WANIPConnection1) GetGenericPortMappingEntryCtx(
	ctx context.Context,
	NewPortMappingIndex uint16,
) (NewRemoteHost string, NewExternalPort uint16, NewProtocol string, NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32, err error)

Return values:

* NewProtocol: allowed values: TCP, UDP

func (*WANIPConnection1) GetIdleDisconnectTime

func (client *WANIPConnection1) GetIdleDisconnectTime() (NewIdleDisconnectTime uint32, err error)

GetIdleDisconnectTime is the legacy version of GetIdleDisconnectTimeCtx, but uses context.Background() as the context.

func (*WANIPConnection1) GetIdleDisconnectTimeCtx

func (client *WANIPConnection1) GetIdleDisconnectTimeCtx(
	ctx context.Context,
) (NewIdleDisconnectTime uint32, err error)

func (*WANIPConnection1) GetNATRSIPStatus

func (client *WANIPConnection1) GetNATRSIPStatus() (NewRSIPAvailable bool, NewNATEnabled bool, err error)

GetNATRSIPStatus is the legacy version of GetNATRSIPStatusCtx, but uses context.Background() as the context.

func (*WANIPConnection1) GetNATRSIPStatusCtx

func (client *WANIPConnection1) GetNATRSIPStatusCtx(
	ctx context.Context,
) (NewRSIPAvailable bool, NewNATEnabled bool, err error)

func (*WANIPConnection1) GetSpecificPortMappingEntry

func (client *WANIPConnection1) GetSpecificPortMappingEntry(NewRemoteHost string, NewExternalPort uint16, NewProtocol string) (NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32, err error)

GetSpecificPortMappingEntry is the legacy version of GetSpecificPortMappingEntryCtx, but uses context.Background() as the context.

func (*WANIPConnection1) GetSpecificPortMappingEntryCtx

func (client *WANIPConnection1) GetSpecificPortMappingEntryCtx(
	ctx context.Context,
	NewRemoteHost string,
	NewExternalPort uint16,
	NewProtocol string,
) (NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32, err error)

func (*WANIPConnection1) GetStatusInfo

func (client *WANIPConnection1) GetStatusInfo() (NewConnectionStatus string, NewLastConnectionError string, NewUptime uint32, err error)

GetStatusInfo is the legacy version of GetStatusInfoCtx, but uses context.Background() as the context.

func (*WANIPConnection1) GetStatusInfoCtx

func (client *WANIPConnection1) GetStatusInfoCtx(
	ctx context.Context,
) (NewConnectionStatus string, NewLastConnectionError string, NewUptime uint32, err error)

Return values:

* NewConnectionStatus: allowed values: Unconfigured, Connected, Disconnected

* NewLastConnectionError: allowed values: ERROR_NONE

func (*WANIPConnection1) GetWarnDisconnectDelay

func (client *WANIPConnection1) GetWarnDisconnectDelay() (NewWarnDisconnectDelay uint32, err error)

GetWarnDisconnectDelay is the legacy version of GetWarnDisconnectDelayCtx, but uses context.Background() as the context.

func (*WANIPConnection1) GetWarnDisconnectDelayCtx

func (client *WANIPConnection1) GetWarnDisconnectDelayCtx(
	ctx context.Context,
) (NewWarnDisconnectDelay uint32, err error)

func (*WANIPConnection1) RequestConnection

func (client *WANIPConnection1) RequestConnection() (err error)

RequestConnection is the legacy version of RequestConnectionCtx, but uses context.Background() as the context.

func (*WANIPConnection1) RequestConnectionCtx

func (client *WANIPConnection1) RequestConnectionCtx(
	ctx context.Context,
) (err error)

func (*WANIPConnection1) RequestTermination

func (client *WANIPConnection1) RequestTermination() (err error)

RequestTermination is the legacy version of RequestTerminationCtx, but uses context.Background() as the context.

func (*WANIPConnection1) RequestTerminationCtx

func (client *WANIPConnection1) RequestTerminationCtx(
	ctx context.Context,
) (err error)

func (*WANIPConnection1) SetAutoDisconnectTime

func (client *WANIPConnection1) SetAutoDisconnectTime(NewAutoDisconnectTime uint32) (err error)

SetAutoDisconnectTime is the legacy version of SetAutoDisconnectTimeCtx, but uses context.Background() as the context.

func (*WANIPConnection1) SetAutoDisconnectTimeCtx

func (client *WANIPConnection1) SetAutoDisconnectTimeCtx(
	ctx context.Context,
	NewAutoDisconnectTime uint32,
) (err error)

func (*WANIPConnection1) SetConnectionType

func (client *WANIPConnection1) SetConnectionType(NewConnectionType string) (err error)

SetConnectionType is the legacy version of SetConnectionTypeCtx, but uses context.Background() as the context.

func (*WANIPConnection1) SetConnectionTypeCtx

func (client *WANIPConnection1) SetConnectionTypeCtx(
	ctx context.Context,
	NewConnectionType string,
) (err error)

func (*WANIPConnection1) SetIdleDisconnectTime

func (client *WANIPConnection1) SetIdleDisconnectTime(NewIdleDisconnectTime uint32) (err error)

SetIdleDisconnectTime is the legacy version of SetIdleDisconnectTimeCtx, but uses context.Background() as the context.

func (*WANIPConnection1) SetIdleDisconnectTimeCtx

func (client *WANIPConnection1) SetIdleDisconnectTimeCtx(
	ctx context.Context,
	NewIdleDisconnectTime uint32,
) (err error)

func (*WANIPConnection1) SetWarnDisconnectDelay

func (client *WANIPConnection1) SetWarnDisconnectDelay(NewWarnDisconnectDelay uint32) (err error)

SetWarnDisconnectDelay is the legacy version of SetWarnDisconnectDelayCtx, but uses context.Background() as the context.

func (*WANIPConnection1) SetWarnDisconnectDelayCtx

func (client *WANIPConnection1) SetWarnDisconnectDelayCtx(
	ctx context.Context,
	NewWarnDisconnectDelay uint32,
) (err error)

type WANPOTSLinkConfig1

type WANPOTSLinkConfig1 struct {
	goupnp.ServiceClient
}

WANPOTSLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANPOTSLinkConfig:1". See goupnp.ServiceClient, which contains RootDevice and Service attributes which are provided for informational value.

func NewWANPOTSLinkConfig1Clients

func NewWANPOTSLinkConfig1Clients() (clients []*WANPOTSLinkConfig1, errors []error, err error)

NewWANPOTSLinkConfig1Clients is the legacy version of NewWANPOTSLinkConfig1ClientsCtx, but uses context.Background() as the context.

func NewWANPOTSLinkConfig1ClientsByURL

func NewWANPOTSLinkConfig1ClientsByURL(loc *url.URL) ([]*WANPOTSLinkConfig1, error)

NewWANPOTSLinkConfig1ClientsByURL is the legacy version of NewWANPOTSLinkConfig1ClientsByURLCtx, but uses context.Background() as the context.

func NewWANPOTSLinkConfig1ClientsByURLCtx

func NewWANPOTSLinkConfig1ClientsByURLCtx(ctx context.Context, loc *url.URL) ([]*WANPOTSLinkConfig1, error)

NewWANPOTSLinkConfig1ClientsByURLCtx discovers instances of the service at the given URL, and returns clients to any that are found. An error is returned if there was an error probing the service.

This is a typical entry calling point into this package when reusing an previously discovered service URL.

func NewWANPOTSLinkConfig1ClientsCtx

func NewWANPOTSLinkConfig1ClientsCtx(ctx context.Context) (clients []*WANPOTSLinkConfig1, errors []error, err error)

NewWANPOTSLinkConfig1ClientsCtx discovers instances of the service on the network, and returns clients to any that are found. errors will contain an error for any devices that replied but which could not be queried, and err will be set if the discovery process failed outright.

This is a typical entry calling point into this package.

func NewWANPOTSLinkConfig1ClientsFromRootDevice

func NewWANPOTSLinkConfig1ClientsFromRootDevice(rootDevice *goupnp.RootDevice, loc *url.URL) ([]*WANPOTSLinkConfig1, error)

NewWANPOTSLinkConfig1ClientsFromRootDevice discovers instances of the service in a given root device, and returns clients to any that are found. An error is returned if there was not at least one instance of the service within the device. The location parameter is simply assigned to the Location attribute of the wrapped ServiceClient(s).

This is a typical entry calling point into this package when reusing an previously discovered root device.

func (*WANPOTSLinkConfig1) GetCallRetryInfo

func (client *WANPOTSLinkConfig1) GetCallRetryInfo() (NewNumberOfRetries uint32, NewDelayBetweenRetries uint32, err error)

GetCallRetryInfo is the legacy version of GetCallRetryInfoCtx, but uses context.Background() as the context.

func (*WANPOTSLinkConfig1) GetCallRetryInfoCtx

func (client *WANPOTSLinkConfig1) GetCallRetryInfoCtx(
	ctx context.Context,
) (NewNumberOfRetries uint32, NewDelayBetweenRetries uint32, err error)

func (*WANPOTSLinkConfig1) GetDataCompression

func (client *WANPOTSLinkConfig1) GetDataCompression() (NewDataCompression string, err error)

GetDataCompression is the legacy version of GetDataCompressionCtx, but uses context.Background() as the context.

func (*WANPOTSLinkConfig1) GetDataCompressionCtx

func (client *WANPOTSLinkConfig1) GetDataCompressionCtx(
	ctx context.Context,
) (NewDataCompression string, err error)

func (*WANPOTSLinkConfig1) GetDataModulationSupported

func (client *WANPOTSLinkConfig1) GetDataModulationSupported() (NewDataModulationSupported string, err error)

GetDataModulationSupported is the legacy version of GetDataModulationSupportedCtx, but uses context.Background() as the context.

func (*WANPOTSLinkConfig1) GetDataModulationSupportedCtx

func (client *WANPOTSLinkConfig1) GetDataModulationSupportedCtx(
	ctx context.Context,
) (NewDataModulationSupported string, err error)

func (*WANPOTSLinkConfig1) GetDataProtocol

func (client *WANPOTSLinkConfig1) GetDataProtocol() (NewDataProtocol string, err error)

GetDataProtocol is the legacy version of GetDataProtocolCtx, but uses context.Background() as the context.

func (*WANPOTSLinkConfig1) GetDataProtocolCtx

func (client *WANPOTSLinkConfig1) GetDataProtocolCtx(
	ctx context.Context,
) (NewDataProtocol string, err error)

func (*WANPOTSLinkConfig1) GetFclass

func (client *WANPOTSLinkConfig1) GetFclass() (NewFclass string, err error)

GetFclass is the legacy version of GetFclassCtx, but uses context.Background() as the context.

func (*WANPOTSLinkConfig1) GetFclassCtx

func (client *WANPOTSLinkConfig1) GetFclassCtx(
	ctx context.Context,
) (NewFclass string, err error)

func (*WANPOTSLinkConfig1) GetISPInfo

func (client *WANPOTSLinkConfig1) GetISPInfo() (NewISPPhoneNumber string, NewISPInfo string, NewLinkType string, err error)

GetISPInfo is the legacy version of GetISPInfoCtx, but uses context.Background() as the context.

func (*WANPOTSLinkConfig1) GetISPInfoCtx

func (client *WANPOTSLinkConfig1) GetISPInfoCtx(
	ctx context.Context,
) (NewISPPhoneNumber string, NewISPInfo string, NewLinkType string, err error)

Return values:

* NewLinkType: allowed values: PPP_Dialup

func (*WANPOTSLinkConfig1) GetPlusVTRCommandSupported

func (client *WANPOTSLinkConfig1) GetPlusVTRCommandSupported() (NewPlusVTRCommandSupported bool, err error)

GetPlusVTRCommandSupported is the legacy version of GetPlusVTRCommandSupportedCtx, but uses context.Background() as the context.

func (*WANPOTSLinkConfig1) GetPlusVTRCommandSupportedCtx

func (client *WANPOTSLinkConfig1) GetPlusVTRCommandSupportedCtx(
	ctx context.Context,
) (NewPlusVTRCommandSupported bool, err error)

func (*WANPOTSLinkConfig1) SetCallRetryInfo

func (client *WANPOTSLinkConfig1) SetCallRetryInfo(NewNumberOfRetries uint32, NewDelayBetweenRetries uint32) (err error)

SetCallRetryInfo is the legacy version of SetCallRetryInfoCtx, but uses context.Background() as the context.

func (*WANPOTSLinkConfig1) SetCallRetryInfoCtx

func (client *WANPOTSLinkConfig1) SetCallRetryInfoCtx(
	ctx context.Context,
	NewNumberOfRetries uint32,
	NewDelayBetweenRetries uint32,
) (err error)

func (*WANPOTSLinkConfig1) SetISPInfo

func (client *WANPOTSLinkConfig1) SetISPInfo(NewISPPhoneNumber string, NewISPInfo string, NewLinkType string) (err error)

SetISPInfo is the legacy version of SetISPInfoCtx, but uses context.Background() as the context.

func (*WANPOTSLinkConfig1) SetISPInfoCtx

func (client *WANPOTSLinkConfig1) SetISPInfoCtx(
	ctx context.Context,
	NewISPPhoneNumber string,
	NewISPInfo string,
	NewLinkType string,
) (err error)

type WANPPPConnection1

type WANPPPConnection1 struct {
	goupnp.ServiceClient
}

WANPPPConnection1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANPPPConnection:1". See goupnp.ServiceClient, which contains RootDevice and Service attributes which are provided for informational value.

func NewWANPPPConnection1Clients

func NewWANPPPConnection1Clients() (clients []*WANPPPConnection1, errors []error, err error)

NewWANPPPConnection1Clients is the legacy version of NewWANPPPConnection1ClientsCtx, but uses context.Background() as the context.

func NewWANPPPConnection1ClientsByURL

func NewWANPPPConnection1ClientsByURL(loc *url.URL) ([]*WANPPPConnection1, error)

NewWANPPPConnection1ClientsByURL is the legacy version of NewWANPPPConnection1ClientsByURLCtx, but uses context.Background() as the context.

func NewWANPPPConnection1ClientsByURLCtx

func NewWANPPPConnection1ClientsByURLCtx(ctx context.Context, loc *url.URL) ([]*WANPPPConnection1, error)

NewWANPPPConnection1ClientsByURLCtx discovers instances of the service at the given URL, and returns clients to any that are found. An error is returned if there was an error probing the service.

This is a typical entry calling point into this package when reusing an previously discovered service URL.

func NewWANPPPConnection1ClientsCtx

func NewWANPPPConnection1ClientsCtx(ctx context.Context) (clients []*WANPPPConnection1, errors []error, err error)

NewWANPPPConnection1ClientsCtx discovers instances of the service on the network, and returns clients to any that are found. errors will contain an error for any devices that replied but which could not be queried, and err will be set if the discovery process failed outright.

This is a typical entry calling point into this package.

func NewWANPPPConnection1ClientsFromRootDevice

func NewWANPPPConnection1ClientsFromRootDevice(rootDevice *goupnp.RootDevice, loc *url.URL) ([]*WANPPPConnection1, error)

NewWANPPPConnection1ClientsFromRootDevice discovers instances of the service in a given root device, and returns clients to any that are found. An error is returned if there was not at least one instance of the service within the device. The location parameter is simply assigned to the Location attribute of the wrapped ServiceClient(s).

This is a typical entry calling point into this package when reusing an previously discovered root device.

func (*WANPPPConnection1) AddPortMapping

func (client *WANPPPConnection1) AddPortMapping(NewRemoteHost string, NewExternalPort uint16, NewProtocol string, NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32) (err error)

AddPortMapping is the legacy version of AddPortMappingCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) AddPortMappingCtx

func (client *WANPPPConnection1) AddPortMappingCtx(
	ctx context.Context,
	NewRemoteHost string,
	NewExternalPort uint16,
	NewProtocol string,
	NewInternalPort uint16,
	NewInternalClient string,
	NewEnabled bool,
	NewPortMappingDescription string,
	NewLeaseDuration uint32,
) (err error)

func (*WANPPPConnection1) ConfigureConnection

func (client *WANPPPConnection1) ConfigureConnection(NewUserName string, NewPassword string) (err error)

ConfigureConnection is the legacy version of ConfigureConnectionCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) ConfigureConnectionCtx

func (client *WANPPPConnection1) ConfigureConnectionCtx(
	ctx context.Context,
	NewUserName string,
	NewPassword string,
) (err error)

func (*WANPPPConnection1) DeletePortMapping

func (client *WANPPPConnection1) DeletePortMapping(NewRemoteHost string, NewExternalPort uint16, NewProtocol string) (err error)

DeletePortMapping is the legacy version of DeletePortMappingCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) DeletePortMappingCtx

func (client *WANPPPConnection1) DeletePortMappingCtx(
	ctx context.Context,
	NewRemoteHost string,
	NewExternalPort uint16,
	NewProtocol string,
) (err error)

func (*WANPPPConnection1) ForceTermination

func (client *WANPPPConnection1) ForceTermination() (err error)

ForceTermination is the legacy version of ForceTerminationCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) ForceTerminationCtx

func (client *WANPPPConnection1) ForceTerminationCtx(
	ctx context.Context,
) (err error)

func (*WANPPPConnection1) GetAutoDisconnectTime

func (client *WANPPPConnection1) GetAutoDisconnectTime() (NewAutoDisconnectTime uint32, err error)

GetAutoDisconnectTime is the legacy version of GetAutoDisconnectTimeCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) GetAutoDisconnectTimeCtx

func (client *WANPPPConnection1) GetAutoDisconnectTimeCtx(
	ctx context.Context,
) (NewAutoDisconnectTime uint32, err error)

func (*WANPPPConnection1) GetConnectionTypeInfo

func (client *WANPPPConnection1) GetConnectionTypeInfo() (NewConnectionType string, NewPossibleConnectionTypes string, err error)

GetConnectionTypeInfo is the legacy version of GetConnectionTypeInfoCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) GetConnectionTypeInfoCtx

func (client *WANPPPConnection1) GetConnectionTypeInfoCtx(
	ctx context.Context,
) (NewConnectionType string, NewPossibleConnectionTypes string, err error)

Return values:

* NewPossibleConnectionTypes: allowed values: Unconfigured, IP_Routed, DHCP_Spoofed, PPPoE_Bridged, PPTP_Relay, L2TP_Relay, PPPoE_Relay

func (*WANPPPConnection1) GetExternalIPAddress

func (client *WANPPPConnection1) GetExternalIPAddress() (NewExternalIPAddress string, err error)

GetExternalIPAddress is the legacy version of GetExternalIPAddressCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) GetExternalIPAddressCtx

func (client *WANPPPConnection1) GetExternalIPAddressCtx(
	ctx context.Context,
) (NewExternalIPAddress string, err error)

func (*WANPPPConnection1) GetGenericPortMappingEntry

func (client *WANPPPConnection1) GetGenericPortMappingEntry(NewPortMappingIndex uint16) (NewRemoteHost string, NewExternalPort uint16, NewProtocol string, NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32, err error)

GetGenericPortMappingEntry is the legacy version of GetGenericPortMappingEntryCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) GetGenericPortMappingEntryCtx

func (client *WANPPPConnection1) GetGenericPortMappingEntryCtx(
	ctx context.Context,
	NewPortMappingIndex uint16,
) (NewRemoteHost string, NewExternalPort uint16, NewProtocol string, NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32, err error)

Return values:

* NewProtocol: allowed values: TCP, UDP

func (*WANPPPConnection1) GetIdleDisconnectTime

func (client *WANPPPConnection1) GetIdleDisconnectTime() (NewIdleDisconnectTime uint32, err error)

GetIdleDisconnectTime is the legacy version of GetIdleDisconnectTimeCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) GetIdleDisconnectTimeCtx

func (client *WANPPPConnection1) GetIdleDisconnectTimeCtx(
	ctx context.Context,
) (NewIdleDisconnectTime uint32, err error)

func (*WANPPPConnection1) GetLinkLayerMaxBitRates

func (client *WANPPPConnection1) GetLinkLayerMaxBitRates() (NewUpstreamMaxBitRate uint32, NewDownstreamMaxBitRate uint32, err error)

GetLinkLayerMaxBitRates is the legacy version of GetLinkLayerMaxBitRatesCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) GetLinkLayerMaxBitRatesCtx

func (client *WANPPPConnection1) GetLinkLayerMaxBitRatesCtx(
	ctx context.Context,
) (NewUpstreamMaxBitRate uint32, NewDownstreamMaxBitRate uint32, err error)

func (*WANPPPConnection1) GetNATRSIPStatus

func (client *WANPPPConnection1) GetNATRSIPStatus() (NewRSIPAvailable bool, NewNATEnabled bool, err error)

GetNATRSIPStatus is the legacy version of GetNATRSIPStatusCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) GetNATRSIPStatusCtx

func (client *WANPPPConnection1) GetNATRSIPStatusCtx(
	ctx context.Context,
) (NewRSIPAvailable bool, NewNATEnabled bool, err error)

func (*WANPPPConnection1) GetPPPAuthenticationProtocol

func (client *WANPPPConnection1) GetPPPAuthenticationProtocol() (NewPPPAuthenticationProtocol string, err error)

GetPPPAuthenticationProtocol is the legacy version of GetPPPAuthenticationProtocolCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) GetPPPAuthenticationProtocolCtx

func (client *WANPPPConnection1) GetPPPAuthenticationProtocolCtx(
	ctx context.Context,
) (NewPPPAuthenticationProtocol string, err error)

func (*WANPPPConnection1) GetPPPCompressionProtocol

func (client *WANPPPConnection1) GetPPPCompressionProtocol() (NewPPPCompressionProtocol string, err error)

GetPPPCompressionProtocol is the legacy version of GetPPPCompressionProtocolCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) GetPPPCompressionProtocolCtx

func (client *WANPPPConnection1) GetPPPCompressionProtocolCtx(
	ctx context.Context,
) (NewPPPCompressionProtocol string, err error)

func (*WANPPPConnection1) GetPPPEncryptionProtocol

func (client *WANPPPConnection1) GetPPPEncryptionProtocol() (NewPPPEncryptionProtocol string, err error)

GetPPPEncryptionProtocol is the legacy version of GetPPPEncryptionProtocolCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) GetPPPEncryptionProtocolCtx

func (client *WANPPPConnection1) GetPPPEncryptionProtocolCtx(
	ctx context.Context,
) (NewPPPEncryptionProtocol string, err error)

func (*WANPPPConnection1) GetPassword

func (client *WANPPPConnection1) GetPassword() (NewPassword string, err error)

GetPassword is the legacy version of GetPasswordCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) GetPasswordCtx

func (client *WANPPPConnection1) GetPasswordCtx(
	ctx context.Context,
) (NewPassword string, err error)

func (*WANPPPConnection1) GetSpecificPortMappingEntry

func (client *WANPPPConnection1) GetSpecificPortMappingEntry(NewRemoteHost string, NewExternalPort uint16, NewProtocol string) (NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32, err error)

GetSpecificPortMappingEntry is the legacy version of GetSpecificPortMappingEntryCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) GetSpecificPortMappingEntryCtx

func (client *WANPPPConnection1) GetSpecificPortMappingEntryCtx(
	ctx context.Context,
	NewRemoteHost string,
	NewExternalPort uint16,
	NewProtocol string,
) (NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32, err error)

func (*WANPPPConnection1) GetStatusInfo

func (client *WANPPPConnection1) GetStatusInfo() (NewConnectionStatus string, NewLastConnectionError string, NewUptime uint32, err error)

GetStatusInfo is the legacy version of GetStatusInfoCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) GetStatusInfoCtx

func (client *WANPPPConnection1) GetStatusInfoCtx(
	ctx context.Context,
) (NewConnectionStatus string, NewLastConnectionError string, NewUptime uint32, err error)

Return values:

* NewConnectionStatus: allowed values: Unconfigured, Connected, Disconnected

* NewLastConnectionError: allowed values: ERROR_NONE

func (*WANPPPConnection1) GetUserName

func (client *WANPPPConnection1) GetUserName() (NewUserName string, err error)

GetUserName is the legacy version of GetUserNameCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) GetUserNameCtx

func (client *WANPPPConnection1) GetUserNameCtx(
	ctx context.Context,
) (NewUserName string, err error)

func (*WANPPPConnection1) GetWarnDisconnectDelay

func (client *WANPPPConnection1) GetWarnDisconnectDelay() (NewWarnDisconnectDelay uint32, err error)

GetWarnDisconnectDelay is the legacy version of GetWarnDisconnectDelayCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) GetWarnDisconnectDelayCtx

func (client *WANPPPConnection1) GetWarnDisconnectDelayCtx(
	ctx context.Context,
) (NewWarnDisconnectDelay uint32, err error)

func (*WANPPPConnection1) RequestConnection

func (client *WANPPPConnection1) RequestConnection() (err error)

RequestConnection is the legacy version of RequestConnectionCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) RequestConnectionCtx

func (client *WANPPPConnection1) RequestConnectionCtx(
	ctx context.Context,
) (err error)

func (*WANPPPConnection1) RequestTermination

func (client *WANPPPConnection1) RequestTermination() (err error)

RequestTermination is the legacy version of RequestTerminationCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) RequestTerminationCtx

func (client *WANPPPConnection1) RequestTerminationCtx(
	ctx context.Context,
) (err error)

func (*WANPPPConnection1) SetAutoDisconnectTime

func (client *WANPPPConnection1) SetAutoDisconnectTime(NewAutoDisconnectTime uint32) (err error)

SetAutoDisconnectTime is the legacy version of SetAutoDisconnectTimeCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) SetAutoDisconnectTimeCtx

func (client *WANPPPConnection1) SetAutoDisconnectTimeCtx(
	ctx context.Context,
	NewAutoDisconnectTime uint32,
) (err error)

func (*WANPPPConnection1) SetConnectionType

func (client *WANPPPConnection1) SetConnectionType(NewConnectionType string) (err error)

SetConnectionType is the legacy version of SetConnectionTypeCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) SetConnectionTypeCtx

func (client *WANPPPConnection1) SetConnectionTypeCtx(
	ctx context.Context,
	NewConnectionType string,
) (err error)

func (*WANPPPConnection1) SetIdleDisconnectTime

func (client *WANPPPConnection1) SetIdleDisconnectTime(NewIdleDisconnectTime uint32) (err error)

SetIdleDisconnectTime is the legacy version of SetIdleDisconnectTimeCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) SetIdleDisconnectTimeCtx

func (client *WANPPPConnection1) SetIdleDisconnectTimeCtx(
	ctx context.Context,
	NewIdleDisconnectTime uint32,
) (err error)

func (*WANPPPConnection1) SetWarnDisconnectDelay

func (client *WANPPPConnection1) SetWarnDisconnectDelay(NewWarnDisconnectDelay uint32) (err error)

SetWarnDisconnectDelay is the legacy version of SetWarnDisconnectDelayCtx, but uses context.Background() as the context.

func (*WANPPPConnection1) SetWarnDisconnectDelayCtx

func (client *WANPPPConnection1) SetWarnDisconnectDelayCtx(
	ctx context.Context,
	NewWarnDisconnectDelay uint32,
) (err error)

Jump to

Keyboard shortcuts

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