ieee8021x

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IPS_IEEE8021xSettings      string = "IPS_IEEE8021xSettings"
	IPS_8021xCredentialContext string = "IPS_8021xCredentialContext"
	SetCertificates            string = "SetCertificates"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationProtocol

type AuthenticationProtocol int
const (
	AuthenticationProtocolEAPTLS AuthenticationProtocol = iota
	AuthenticationProtocolEAPTTLS_MSCHAPv2
	AuthenticationProtocolPEAPv0_EAPMSCHAPv2
	AuthenticationProtocolPEAPv1_EAPGTC
	AuthenticationProtocolEAPFAST_MSCHAPv2
	AuthenticationProtocolEAPFAST_GTC
	AuthenticationProtocolEAP_MD5
	AuthenticationProtocolEAP_PSK
	AuthenticationProtocolEAP_SIM
	AuthenticationProtocolEAP_AKA
	AuthenticationProtocolEAPFAST_TLS
)

type Body

type Body struct {
	XMLName                   xml.Name `xml:"Body"`
	PullResponse              PullResponse
	EnumerateResponse         common.EnumerateResponse
	IEEE8021xSettingsResponse IEEE8021xSettingsResponse
	SetCertificatesResponse   SetCertificates_OUTPUT
}

OUTPUT Response Types

type Certificate

type Certificate struct {
	XMLName                 xml.Name `xml:"h:SetCertificates_INPUT"`
	H                       string   `xml:"xmlns:h,attr"`
	ServerCertificateIssuer string   `xml:"h:ServerCertificateIssuer"`
	ClientCertificate       string   `xml:"h:ClientCertificate"`
}

INPUT Request Types

type CredentialContext

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

Package Types

func NewIEEE8021xCredentialContextWithClient

func NewIEEE8021xCredentialContextWithClient(wsmanMessageCreator *message.WSManMessageCreator, client client.WSMan) CredentialContext

NewIEEE8021xCredentialContext returns a new instance of the IPS_8021xCredentialContext struct.

func (CredentialContext) Enumerate

func (credentialContext CredentialContext) Enumerate() (response Response, err error)

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

func (CredentialContext) Get

func (credentialContext CredentialContext) Get() (response Response, err error)

Get retrieves the representation of the instance

func (CredentialContext) Pull

func (credentialContext CredentialContext) 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 IEEE8021xSettingsEnabled

type IEEE8021xSettingsEnabled int
const (
	EnabledWithCertificates    IEEE8021xSettingsEnabled = 2
	Disabled                   IEEE8021xSettingsEnabled = 3
	EnabledWithoutCertificates IEEE8021xSettingsEnabled = 6
)

type IEEE8021xSettingsRequest

type IEEE8021xSettingsRequest struct {
	XMLName                         xml.Name                        `xml:"h:IEEE8021xSettingsInput,omitempty"`
	H                               string                          `xml:"xmlns:q,attr"`
	ElementName                     string                          `xml:"q:ElementName,omitempty"`
	InstanceID                      string                          `xml:"q:InstanceID,omitempty"`
	AuthenticationProtocol          AuthenticationProtocol          `xml:"q:AuthenticationProtocol"`
	RoamingIdentity                 string                          `xml:"q:RoamingIdentity,omitempty"`
	ServerCertificateName           string                          `xml:"q:ServerCertificateName,omitempty"`
	ServerCertificateNameComparison ServerCertificateNameComparison `xml:"q:ServerCertificateNameComparison,omitempty"`
	Username                        string                          `xml:"q:Username,omitempty"`
	Password                        string                          `xml:"q:Password,omitempty"`
	Domain                          string                          `xml:"q:Domain,omitempty"`
	ProtectedAccessCredential       string                          `xml:"q:ProtectedAccessCredential,omitempty"`
	PACPassword                     string                          `xml:"q:PACPassword,omitempty"`
	PSK                             string                          `xml:"q:PSK,omitempty"`
	Enabled                         IEEE8021xSettingsEnabled        `json:"Enabled,omitempty"`
	PxeTimeout                      int                             `json:"PxeTimeout,omitempty"`
	AvailableInS0                   bool                            `json:"AvailableInS0,omitempty"`
}

INPUT Request Types

type IEEE8021xSettingsResponse

type IEEE8021xSettingsResponse struct {
	XMLName       xml.Name `xml:"IPS_IEEE8021xSettings"`
	ElementName   string   `xml:"ElementName"`
	InstanceID    string   `xml:"InstanceID"`
	Enabled       int      `xml:"Enabled"`
	AvailableInS0 bool     `xml:"AvailableInS0"`
	PxeTimeout    int      `xml:"PxeTimeout"`
}

OUTPUT Response Types

type PullResponse

type PullResponse struct {
	XMLName                xml.Name                    `xml:"PullResponse"`
	IEEE8021xSettingsItems []IEEE8021xSettingsResponse `xml:"Items>IPS_IEEE8021xSettings"`
}

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 ServerCertificateNameComparison

type ServerCertificateNameComparison int

ServerCertificateNameComparison represents the ServerCertificateNameComparison type for IEEE8021xProfile.

type SetCertificates_OUTPUT

type SetCertificates_OUTPUT struct {
	XMLName     xml.Name `xml:"SetCertificates_OUTPUT"`
	ReturnValue int
}

OUTPUT Response Types

type Settings

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

Package Types

func NewIEEE8021xSettingsWithClient

func NewIEEE8021xSettingsWithClient(wsmanMessageCreator *message.WSManMessageCreator, client client.WSMan) Settings

NewIEEE8021xSettings returns a new instance of the IEEE8021xSettings struct.

func (Settings) Enumerate

func (settings Settings) Enumerate() (response Response, err error)

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

func (Settings) Get

func (settings Settings) Get() (response Response, err error)

Get retrieves the representation of the instance

func (Settings) Pull

func (settings Settings) 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 (Settings) Put

func (settings Settings) Put(ieee8021xSettings IEEE8021xSettingsRequest) (response Response, err error)

Put will change properties of the selected instance

func (Settings) SetCertificates

func (settings Settings) SetCertificates(serverCertificateIssuer, clientCertificate string) (response Response, err error)

Jump to

Keyboard shortcuts

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