wifi

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CIM_WiFiEndpoint         string = "CIM_WiFiEndpoint"
	CIM_WiFiEndpointSettings string = "CIM_WiFiEndpointSettings"
	CIM_WiFiPort             string = "CIM_WiFiPort"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationMethod

type AuthenticationMethod int
const (
	AuthenticationMethod_Other AuthenticationMethod = iota + 1
	AuthenticationMethod_OpenSystem
	AuthenticationMethod_SharedKey
	AuthenticationMethod_WPA_PSK
	AuthenticationMethod_WPA_IEEE8021x
	AuthenticationMethod_WPA2_PSK
	AuthenticationMethod_WPA2_IEEE8021x
	AuthenticationMethod_DMTFReserved
)
const (
	AuthenticationMethod_WPA3_SAE AuthenticationMethod = iota + 32768
	AuthenticationMethod_WPA3_OWE
	AuthenticationMethod_VendorReserved
)

type BSSType

type BSSType int
const (
	BSSType_Unknown        BSSType = 0
	BSSType_Independent    BSSType = 2
	BSSType_Infrastructure BSSType = 3
)

type Body

type Body struct {
	XMLName                   xml.Name `xml:"Body"`
	WiFiPortGetResponse       WiFiPort
	EnumerateResponse         common.EnumerateResponse
	PullResponse              PullResponse
	RequestStateChange_OUTPUT common.ReturnValue
}

OUTPUT Response Types

type EncryptionMethod

type EncryptionMethod int
const (
	EncryptionMethod_Other EncryptionMethod = iota + 1
	EncryptionMethod_WEP
	EncryptionMethod_TKIP
	EncryptionMethod_CCMP
	EncryptionMethod_None
	EncryptionMethod_DMTFReserved
)

type EndpointSettings

type EndpointSettings struct {
	// contains filtered or unexported fields
}

func NewWiFiEndpointSettingsWithClient

func NewWiFiEndpointSettingsWithClient(wsmanMessageCreator *message.WSManMessageCreator, client client.WSMan) EndpointSettings

NewWiFiEndpointSettings returns a new instance of the WiFiEndpointSettings struct.

func (EndpointSettings) Delete

func (endpointSettings EndpointSettings) Delete(handle string) (response Response, err error)

Delete removes a the specified instance

func (EndpointSettings) Enumerate

func (endpointSettings EndpointSettings) Enumerate() (response Response, err error)

Enumerate returns an enumeration context which is used in a subsequent Pull call

func (EndpointSettings) Pull

func (endpointSettings EndpointSettings) Pull(enumerationContext string) (response Response, err error)

Pull returns the instances of this class. An enumeration context provided by the Enumerate call is used as input.

type LinkTechnology

type LinkTechnology int
const (
	LinkTechnologyUnknown LinkTechnology = iota
	LinkTechnologyOther
	LinkTechnologyEthernet
	LinkTechnologyIB
	LinkTechnologyFC
	LinkTechnologyFDDI
	LinkTechnologyATM
	LinkTechnologyTokenRing
	LinkTechnologyFrameRelay
	LinkTechnologyInfrared
	LinkTechnologyBlueTooth
	LinkTechnologyWirelessLAN
)

type Port

type Port struct {
	// contains filtered or unexported fields
}

func NewWiFiPortWithClient

func NewWiFiPortWithClient(wsmanMessageCreator *message.WSManMessageCreator, client client.WSMan) Port

NewWiFiPort returns a new instance of the WiFiPort struct.

func (Port) Enumerate

func (port Port) Enumerate() (response Response, err error)

Enumerate returns an enumeration context which is used in a subsequent Pull call

func (Port) Get

func (port Port) Get() (response Response, err error)

Get retrieves the representation of the instance

func (Port) Pull

func (port Port) Pull(enumerationContext string) (response Response, err error)

Pull returns the instances of this class. An enumeration context provided by the Enumerate call is used as input.

func (Port) RequestStateChange

func (port Port) RequestStateChange(requestedState int) (response Response, err error)

RequestStateChange requests that the state of the element be changed to the value specified in the RequestedState parameter . . .

type PullResponse

type PullResponse struct {
	XMLName               xml.Name                       `xml:"PullResponse"`
	EndpointSettingsItems []WiFiEndpointSettingsResponse `xml:"Items>CIM_WiFiEndpointSettings"`
	WiFiPortItems         []WiFiPort                     `xml:"Items>CIM_WiFiPort"`
}

OUTPUT Response Types

type Response

type Response struct {
	*client.Message
	XMLName xml.Name       `xml:"Envelope"`
	Header  message.Header `xml:"Header"`
	Body    Body           `xml:"Body"`
}

OUTPUT Response Types

func (*Response) JSON

func (r *Response) JSON() string

JSON marshals the type into JSON format

func (*Response) YAML

func (r *Response) YAML() string

YAML marshals the type into YAML format

type ReturnValue

type ReturnValue int
const (
	CompletedwithNoError ReturnValue = iota
	NotSupported
	UnknownorUnspecifiedError
	CannotcompletewithinTimeoutPeriod
	Failed
	InvalidParameter
	InUse
)
const (
	MethodParametersCheckedJobStarted ReturnValue = iota + 4096
	InvalidStateTransition
	UseofTimeoutParameterNotSupported
	Busy
)

type WiFiEndpointSettingsRequest

type WiFiEndpointSettingsRequest struct {
	XMLName xml.Name `xml:"h:WiFiEndpointSettingsInput"`
	H       string   `xml:"xmlns:q,attr"`
	// SettingData
	ElementName          string               `xml:"q:ElementName,omitempty"`
	InstanceID           string               `xml:"q:InstanceID,omitempty"`
	AuthenticationMethod AuthenticationMethod `xml:"q:AuthenticationMethod,omitempty"`
	EncryptionMethod     EncryptionMethod     `xml:"q:EncryptionMethod,omitempty"`
	SSID                 string               `xml:"q:SSID,omitempty"` // Max Length 32
	Priority             int                  `xml:"q:Priority,omitempty"`
	PSKPassPhrase        string               `xml:"q:PSKPassPhrase,omitempty"` // Min Length 8 Max Length 63
	BSSType              BSSType              `xml:"q:BSSType,omitempty"`
	Keys                 []string             `xml:"q:Keys,omitempty"` // OctetString ArrayType=Indexed Max Length 256
	KeyIndex             int                  `xml:"q:KeyIndex,omitempty"`
	PSKValue             int                  `xml:"q:PSKValue,omitempty"` // OctetString
}

INPUT Request Types

type WiFiEndpointSettingsResponse

type WiFiEndpointSettingsResponse struct {
	XMLName              xml.Name `xml:"CIM_WiFiEndpointSettings"`
	AuthenticationMethod AuthenticationMethod
	BSSType              BSSType
	ElementName          string
	EncryptionMethod     EncryptionMethod
	InstanceID           string
	Priority             int
	SSID                 string
}

OUTPUT Response Types

type WiFiEndpointSettings_INPUT

type WiFiEndpointSettings_INPUT struct {
	XMLName              xml.Name `xml:"CIM_WiFiEndpointSettings"`
	H                    string   `xml:"xmlns:q,attr"`
	AuthenticationMethod AuthenticationMethod
	BSSType              BSSType
	ElementName          string
	EncryptionMethod     EncryptionMethod
	InstanceID           string
	Priority             int
	SSID                 string
}

INPUT Request Types

type WiFiPort

type WiFiPort struct {
	XMLName                 xml.Name `xml:"CIM_WiFiPort"`
	LinkTechnology          LinkTechnology
	DeviceID                string
	CreationClassName       string
	SystemName              string
	SystemCreationClassName string
	ElementName             string
	HealthState             models.HealthState
	EnabledState            models.EnabledState
	RequestedState          models.RequestedState
	PortType                int
	PermanentAddress        string
}

OUTPUT Response Types

Jump to

Keyboard shortcuts

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