cwmp

package
v0.0.0-...-d8abc3d Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2018 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CancelTransfer

func CancelTransfer() string

func ChangeDuState

func ChangeDuState(ops []fmt.Stringer) string

func Download

func Download(filetype, url, username, password, filesize string) string

func FactoryReset

func FactoryReset() string

func GetParameterMultiValues

func GetParameterMultiValues(leaves []string) string

func GetParameterNames

func GetParameterNames(leaf string, nextlevel int) string

func GetParameterValues

func GetParameterValues(leaf string) string

func Inform

func Inform(serial string) string

func InformResponse

func InformResponse(mustUnderstand string) string

func ScheduleDownload

func ScheduleDownload(filetype, url, username, password, filesize string, windowslist []fmt.Stringer) string

func SetParameterMultiValues

func SetParameterMultiValues(data map[string]string) string

func SetParameterValues

func SetParameterValues(leaf string, value string) string

Types

type CWMPInform

type CWMPInform struct {
	DeviceId      DeviceID               `xml:"Body>Inform>DeviceId"`
	Events        []EventStruct          `xml:"Body>Inform>Event>EventStruct"`
	ParameterList []ParameterValueStruct `xml:"Body>Inform>ParameterList>ParameterValueStruct"`
}

func (*CWMPInform) GetConnectionRequest

func (i *CWMPInform) GetConnectionRequest() string

func (*CWMPInform) GetDataModelType

func (i *CWMPInform) GetDataModelType() string

func (*CWMPInform) GetEvents

func (i *CWMPInform) GetEvents() string

func (*CWMPInform) GetHardwareVersion

func (i *CWMPInform) GetHardwareVersion() string

func (*CWMPInform) GetSoftwareVersion

func (i *CWMPInform) GetSoftwareVersion() string

type CWMPMessage

type CWMPMessage struct {
	XMLName xml.Name
}

type DeviceID

type DeviceID struct {
	Manufacturer string
	OUI          string
	SerialNumber string
}

type EventStruct

type EventStruct struct {
	EventCode  string
	CommandKey string
}

type GetParameterNamesResponse

type GetParameterNamesResponse struct {
	ParameterList []ParameterInfoStruct `xml:"Body>GetParameterNamesResponse>ParameterList>ParameterInfoStruct"`
}

type GetParameterNames_

type GetParameterNames_ struct {
	ParameterPath []string `xml:"Body>GetParameterNames>ParameterPath"`
	NextLevel     string   `xml:"Body>GetParameterNames>NextLevel"`
}

type GetParameterValuesResponse

type GetParameterValuesResponse struct {
	ParameterList []ParameterValueStruct `xml:"Body>GetParameterValuesResponse>ParameterList>ParameterValueStruct"`
}

type GetParameterValues_

type GetParameterValues_ struct {
	ParameterNames []string `xml:"Body>GetParameterValues>ParameterNames>string"`
}

type InstallOpStruct

type InstallOpStruct struct {
	Url                  string
	Uuid                 string
	Username             string
	Password             string
	ExecutionEnvironment string
}

func (*InstallOpStruct) String

func (op *InstallOpStruct) String() string

type ParameterInfoStruct

type ParameterInfoStruct struct {
	Name     string
	Writable string
}

type ParameterValueStruct

type ParameterValueStruct struct {
	Name  string
	Value string
}

type SetParameterValuesResponse

type SetParameterValuesResponse struct {
	Status string `xml:"Body>SetParameterValuesResponse>Status"`
}

type SetParameterValues_

type SetParameterValues_ struct {
	ParameterList []ParameterValueStruct `xml:"Body>SetParameterValues>ParameterList>ParameterValueStruct"`
	ParameterKey  string                 `xml:"Body>SetParameterValues>ParameterKey>string"`
}

type SoapBody

type SoapBody struct {
	CWMPMessage CWMPMessage `xml:",any"`
}

type SoapEnvelope

type SoapEnvelope struct {
	XMLName xml.Name
	Header  SoapHeader
	Body    SoapBody
}

func (*SoapEnvelope) KindOf

func (s *SoapEnvelope) KindOf() string

type SoapHeader

type SoapHeader struct {
	Id string `xml:"ID"`
}

type TimeWindowStruct

type TimeWindowStruct struct {
	WindowStart string
	WindowEnd   string
	WindowMode  string
	UserMessage string
	MaxRetries  string
}

func (*TimeWindowStruct) String

func (window *TimeWindowStruct) String() string

type UninstallOpStruct

type UninstallOpStruct struct {
	Uuid                 string
	Version              string
	ExecutionEnvironment string
}

func (*UninstallOpStruct) String

func (op *UninstallOpStruct) String() string

type UpdateOpStruct

type UpdateOpStruct struct {
	Uuid     string
	Version  string
	Url      string
	Username string
	Password string
}

func (*UpdateOpStruct) String

func (op *UpdateOpStruct) String() string

Jump to

Keyboard shortcuts

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