Documentation ¶
Overview ¶
Package optin facilitates communication with Intel® AMT devices to describe the user consent service.
This service manages user opt-in options and sends a user consent code for KVM, redirection, and set boot options.
Index ¶
- Constants
- type Body
- type CanModifyOptInPolicy
- type CancelOptIn_OUTPUT
- type OptInCode
- type OptInRequired
- type OptInServiceRequest
- type OptInServiceResponse
- type OptInState
- type PullResponse
- type Response
- type ReturnValue
- type SendOptInCode_OUTPUT
- type Service
- func (service Service) CancelOptIn() (response Response, err error)
- func (service Service) Enumerate() (response Response, err error)
- func (service Service) Get() (response Response, err error)
- func (service Service) Pull(enumerationContext string) (response Response, err error)
- func (service Service) Put(request OptInServiceRequest) (response Response, err error)
- func (service Service) SendOptInCode(optInCode int) (response Response, err error)
- func (service Service) StartOptIn() (response Response, err error)
- type StartOptIn_OUTPUT
Constants ¶
const ( IPSOptInService string = "IPS_OptInService" ValueNotFound string = "Value not found in map" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Body ¶
type Body struct { XMLName xml.Name `xml:"Body"` EnumerateResponse common.EnumerateResponse GetAndPutResponse OptInServiceResponse `xml:"IPS_OptInService"` PullResponse PullResponse `xml:"PullResponse"` StartOptInResponse StartOptIn_OUTPUT `xml:"StartOptIn_OUTPUT"` CancelOptInResponse CancelOptIn_OUTPUT `xml:"CancelOptIn_OUTPUT"` SendOptInCodeResponse SendOptInCode_OUTPUT `xml:"SendOptInCode_OUTPUT"` }
OUTPUT Response Types.
type CanModifyOptInPolicy ¶
type CanModifyOptInPolicy int
CanModifyOptInPolicy indicates whether the OptIn policy can be modified.
const ( CanModifyOptInPolicyFalse CanModifyOptInPolicy = 0 CanModifyOptInPolicyTrue CanModifyOptInPolicy = 1 )
func (CanModifyOptInPolicy) String ¶ added in v2.2.4
func (c CanModifyOptInPolicy) String() string
String returns a human-readable string representation of the CanModifyOptInPolicy enumeration.
type CancelOptIn_OUTPUT ¶
OUTPUT Response Types.
type OptInCode ¶
type OptInCode struct { XMLName xml.Name `xml:"h:SendOptInCode_INPUT"` H string `xml:"xmlns:h,attr"` OptInCode int `xml:"h:OptInCode"` }
INPUT Request Types.
type OptInRequired ¶
type OptInRequired uint32
OptInRequired indicates the OptIn (user consent) policy for redirection operations.
const ( OptInRequiredNone OptInRequired = iota OptInRequiredKVM OptInRequiredAll OptInRequired = 4294967295 )
func (OptInRequired) String ¶ added in v2.2.4
func (o OptInRequired) String() string
String returns a human-readable string representation of the OptInRequired enumeration.
type OptInServiceRequest ¶ added in v2.1.11
type OptInServiceRequest struct { XMLName xml.Name `xml:"h:IPS_OptInService"` H string `xml:"xmlns:h,attr"` CanModifyOptInPolicy int `xml:"h:CanModifyOptInPolicy,omitempty"` CreationClassName string `xml:"h:CreationClassName,omitempty"` ElementName string `xml:"h:ElementName,omitempty"` Name string `xml:"h:Name,omitempty"` OptInCodeTimeout int `xml:"h:OptInCodeTimeout,omitempty"` OptInDisplayTimeout int `xml:"h:OptInDisplayTimeout,omitempty"` OptInRequired int `xml:"h:OptInRequired"` OptInState int `xml:"h:OptInState"` SystemName string `xml:"h:SystemName,omitempty"` SystemCreationClassName string `xml:"h:SystemCreationClassName,omitempty"` }
INPUT Request Types.
type OptInServiceResponse ¶
type OptInServiceResponse struct { XMLName xml.Name `xml:"IPS_OptInService"` Name string `xml:"Name,omitempty"` CreationClassName string `xml:"CreationClassName,omitempty"` SystemName string `xml:"SystemName,omitempty"` SystemCreationClassName string `xml:"SystemCreationClassName,omitempty"` ElementName string `xml:"ElementName,omitempty"` OptInCodeTimeout int `xml:"OptInCodeTimeout,omitempty"` OptInRequired uint32 `xml:"OptInRequired"` OptInState int `xml:"OptInState"` CanModifyOptInPolicy int `xml:"CanModifyOptInPolicy,omitempty"` OptInDisplayTimeout int `xml:"OptInDisplayTimeout,omitempty"` }
OUTPUT Response Types.
type OptInState ¶
type OptInState int
OptInState indicates the current state of the OptIn (user consent) policy.
const ( NotStarted OptInState = iota Requested Displayed Received InSession )
func (OptInState) String ¶ added in v2.2.4
func (o OptInState) String() string
String returns a human-readable string representation of the OptInState enumeration.
type PullResponse ¶
type PullResponse struct { XMLName xml.Name `xml:"PullResponse"` OptInServiceItems []OptInServiceResponse `xml:"Items>IPS_OptInService"` }
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.
type ReturnValue ¶
type ReturnValue int
ReturnValue indicates the status of the operation.
const ( ReturnValueSuccess ReturnValue = iota ReturnValueInternalError ReturnValueInvalidState ReturnValueBlocked ReturnValueFailedFFS )
func (ReturnValue) String ¶ added in v2.2.4
func (r ReturnValue) String() string
String returns a human-readable string representation of the ReturnValue enumeration.
type SendOptInCode_OUTPUT ¶
OUTPUT Response Types.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewOptInServiceWithClient ¶
func NewOptInServiceWithClient(wsmanMessageCreator *message.WSManMessageCreator, client client.WSMan) Service
NewOptInService returns a new instance of the OptInService struct.
func (Service) CancelOptIn ¶
Cancel a previous opt-in code request.
func (Service) Enumerate ¶
Enumerate returns an enumeration context which is used in a subsequent Pull call.
func (Service) Pull ¶
Pull returns the instances of this class. An enumeration context provided by the Enumerate call is used as input.
func (Service) Put ¶ added in v2.1.11
func (service Service) Put(request OptInServiceRequest) (response Response, err error)
Put will change properties of the selected instance.
func (Service) SendOptInCode ¶
Send the opt-in code to Intel® AMT.
func (Service) StartOptIn ¶
Request an opt-in code.
type StartOptIn_OUTPUT ¶
OUTPUT Response Types.