Documentation
¶
Index ¶
- Constants
- type ActionResponse
- type CIRAConfig
- type Device
- type DeviceEnabledFeatures
- type DevicePowerState
- type Domain
- type Profile
- type ProfileWifiConfig
- type Service
- func (service *Service) Authorization(configuration portainer.OpenAMTConfiguration) (string, error)
- func (service *Service) Configure(configuration portainer.OpenAMTConfiguration) error
- func (service *Service) DeviceInformation(configuration portainer.OpenAMTConfiguration, deviceGUID string) (*portainer.OpenAMTDeviceInformation, error)
- func (service *Service) EnableDeviceFeatures(configuration portainer.OpenAMTConfiguration, deviceGUID string, ...) (string, error)
- func (service *Service) ExecuteDeviceAction(configuration portainer.OpenAMTConfiguration, deviceGUID string, action string) error
Constants ¶
View Source
const ( DefaultCIRAConfigName = "ciraConfigDefault" DefaultProfileName = "profileAMTDefault" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionResponse ¶
type CIRAConfig ¶
type CIRAConfig struct { ConfigName string `json:"configName"` MPSServerAddress string `json:"mpsServerAddress"` ServerAddressFormat int `json:"serverAddressFormat"` CommonName string `json:"commonName"` MPSPort int `json:"mpsPort"` Username string `json:"username"` MPSRootCertificate string `json:"mpsRootCertificate"` RegeneratePassword bool `json:"regeneratePassword"` AuthMethod int `json:"authMethod"` }
type DeviceEnabledFeatures ¶
type DevicePowerState ¶
type DevicePowerState struct {
State portainer.PowerState `json:"powerstate"`
}
type Profile ¶
type Profile struct { ProfileName string `json:"profileName"` Activation string `json:"activation"` CIRAConfigName *string `json:"ciraConfigName"` GenerateRandomAMTPassword bool `json:"generateRandomPassword"` AMTPassword string `json:"amtPassword"` GenerateRandomMEBxPassword bool `json:"generateRandomMEBxPassword"` MEBXPassword string `json:"mebxPassword"` Tags []string `json:"tags"` DHCPEnabled bool `json:"dhcpEnabled"` TenantId string `json:"tenantId"` WIFIConfigs []ProfileWifiConfig `json:"wifiConfigs"` }
type ProfileWifiConfig ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents a service for managing an OpenAMT server.
func (*Service) Authorization ¶
func (service *Service) Authorization(configuration portainer.OpenAMTConfiguration) (string, error)
func (*Service) Configure ¶
func (service *Service) Configure(configuration portainer.OpenAMTConfiguration) error
func (*Service) DeviceInformation ¶
func (service *Service) DeviceInformation(configuration portainer.OpenAMTConfiguration, deviceGUID string) (*portainer.OpenAMTDeviceInformation, error)
func (*Service) EnableDeviceFeatures ¶
func (service *Service) EnableDeviceFeatures(configuration portainer.OpenAMTConfiguration, deviceGUID string, features portainer.OpenAMTDeviceEnabledFeatures) (string, error)
func (*Service) ExecuteDeviceAction ¶
Click to show internal directories.
Click to hide internal directories.