Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Severities = map[Severity]string{ SeverityLow: "low", SeverityModerate: "moderate", SeverityHigh: "high", }
Severities associates a severity code to its name.
View Source
var SeverityTypes = map[string]Severity{}
SeverityTypes associates a warning severity to its type code.
View Source
var StatusTypes = map[string]Status{}
StatusTypes associates a warning status to its type code.
View Source
var Statuses = map[Status]string{ StatusNew: "new", StatusAcknowledged: "acknowledged", StatusResolved: "resolved", }
Statuses associates a warning code to its name.
View Source
var TypeNames = map[Type]string{ Undefined: "Undefined warning", MissingCGroupBlkio: "Couldn't find the CGroup blkio", MissingCGroupBlkioWeight: "Couldn't find the CGroup blkio.weight", MissingCGroupCPUController: "Couldn't find the CGroup CPU controller", MissingCGroupCPUsetController: "Couldn't find the CGroup CPUset controller", MissingCGroupCPUacctController: "Couldn't find the CGroup CPUacct controller", MissingCGroupDevicesController: "Couldn't find the CGroup devices controller", MissingCGroupFreezerController: "Couldn't find the CGroup freezer controller", MissingCGroupHugetlbController: "Couldn't find the CGroup hugetlb controller", MissingCGroupMemoryController: "Couldn't find the CGroup memory controller", MissingCGroupNetworkPriorityController: "Couldn't find the CGroup network priority controller", MissingCGroupPidsController: "Couldn't find the CGroup pids controller", MissingCGroupMemorySwapAccounting: "Couldn't find the CGroup memory swap accounting", ClusterTimeSkew: "Time skew detected between leader and local", AppArmorNotAvailable: "AppArmor support has been disabled", MissingVirtiofsd: "Missing virtiofsd", AppArmorDisabledDueToRawDnsmasq: "Skipping AppArmor for dnsmasq due to raw.dnsmasq being set", LargerIPv6PrefixThanSupported: "IPv6 networks with a prefix larger than 64 aren't properly supported by dnsmasq", ProxyBridgeNetfilterNotEnabled: "Proxy bridge netfilter not enabled", NetworkUnvailable: "Network unavailable", OfflineClusterMember: "Offline cluster member", InstanceAutostartFailure: "Failed to autostart instance", InstanceTypeNotOperational: "Instance type not operational", StoragePoolUnvailable: "Storage pool unavailable", UnableToUpdateClusterCertificate: "Unable to update cluster certificate", }
TypeNames associates a warning code to its name.
Functions ¶
This section is empty.
Types ¶
type Type ¶
type Type int
Type is a numeric code indentifying the type of warning.
const ( // Undefined represents an undefined warning. Undefined Type = iota // MissingCGroupBlkio represents the missing CGroup blkio warning. MissingCGroupBlkio // MissingCGroupBlkioWeight represents the missing CGroup blkio.weight warning. MissingCGroupBlkioWeight // MissingCGroupCPUController represents the missing CGroup CPU controller warning. MissingCGroupCPUController // MissingCGroupCPUsetController represents the missing GCgroup CPUset controller warning. MissingCGroupCPUsetController // MissingCGroupCPUacctController represents the missing GCgroup CPUacct controller warning. MissingCGroupCPUacctController // MissingCGroupDevicesController represents the missing GCgroup devices controller warning. MissingCGroupDevicesController // MissingCGroupFreezerController represents the missing GCgroup freezer controller warning. MissingCGroupFreezerController // MissingCGroupHugetlbController represents the missing GCgroup hugetlb controller warning. MissingCGroupHugetlbController // MissingCGroupMemoryController represents the missing GCgroup memory controller warning. MissingCGroupMemoryController // MissingCGroupNetworkPriorityController represents the missing GCgroup network priority controller warning. MissingCGroupNetworkPriorityController // MissingCGroupPidsController represents the missing GCgroup pids controller warning. MissingCGroupPidsController // MissingCGroupMemorySwapAccounting represents the missing GCgroup memory swap accounting warning. MissingCGroupMemorySwapAccounting // ClusterTimeSkew represents the cluster time skew warning. ClusterTimeSkew // AppArmorNotAvailable represents the AppArmor not available warning. AppArmorNotAvailable // MissingVirtiofsd represents the missing virtiofsd warning. MissingVirtiofsd // AppArmorDisabledDueToRawDnsmasq represents the disabled AppArmor due to raw.dnsmasq warning. AppArmorDisabledDueToRawDnsmasq // LargerIPv6PrefixThanSupported represents the larger IPv6 prefix than supported warning. LargerIPv6PrefixThanSupported // ProxyBridgeNetfilterNotEnabled represents the proxy bridge netfilter not enable warning. ProxyBridgeNetfilterNotEnabled // NetworkUnvailable represents a network that cannot be initialized on the local server. NetworkUnvailable // OfflineClusterMember represents the offline cluster members warning. OfflineClusterMember // InstanceAutostartFailure represents the failure of instance autostart process after three retries. InstanceAutostartFailure // InstanceTypeNotOperational represents the lack of support for an instance driver. InstanceTypeNotOperational // StoragePoolUnvailable represents a storage pool that cannot be initialized on the local server. StoragePoolUnvailable // UnableToUpdateClusterCertificate represents the unable to update cluster certificate warning. UnableToUpdateClusterCertificate )
Click to show internal directories.
Click to hide internal directories.