Documentation
¶
Overview ¶
This plugin for MACsec collects metrics from the command "show security macsec connections".
Index ¶
- func NewCollector() collector.RPCCollector
- type CreateTime
- type InboundSecureAssociation
- type InboundSecureChannel
- type MacsecConnectionInformation
- type MacsecInterfaceCommonInformation
- type MacsecStatistics
- type OutboundSecureAssociation
- type OutboundSecureChannel
- type SecureAssociationReceivedStats
- type SecureAssociationSentStats
- type SecureChannelReceivedStats
- type SecureChannelSentStats
- type ShowSecMacsecConns
- type ShowSecMacsecStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateTime ¶
type CreateTime struct {
Seconds int `xml:"seconds,attr"`
}
type InboundSecureAssociation ¶
type InboundSecureAssociation struct {
AssociationNumber int `xml:"association-number"`
AssociationNumberStatus string `xml:"association-number-status"`
CreateTime *CreateTime `xml:"create-time"`
}
type InboundSecureChannel ¶
type InboundSecureChannel struct {
Sci string `xml:"sci"`
InboundSecureAssociation *InboundSecureAssociation `xml:"inbound-secure-association"`
}
type MacsecConnectionInformation ¶
type MacsecConnectionInformation struct {
MacsecInterfaceCommonInformation *MacsecInterfaceCommonInformation `xml:"macsec-interface-common-information"`
OutboundSecureChannel *OutboundSecureChannel `xml:"outbound-secure-channel"`
InboundSecureChannel *InboundSecureChannel `xml:"inbound-secure-channel"`
}
type MacsecInterfaceCommonInformation ¶
type MacsecInterfaceCommonInformation struct {
InterfaceName string `xml:"interface-name"`
ConnectivityAssociationName string `xml:"connectivity-association-name"`
CipherSuite string `xml:"cipher-suite"`
Encryption string `xml:"encryption"`
Offset int `xml:"offset"`
IncludeSci string `xml:"include-sci"`
ReplayProtect string `xml:"replay-protect"`
ReplayProtectWindow int `xml:"replay-protect-window"`
}
type MacsecStatistics ¶
type MacsecStatistics struct {
Interfaces []string `xml:"interface-name"`
SecureChannelSent []SecureChannelSentStats `xml:"secure-channel-sent"`
SecureAssociationSent []SecureAssociationSentStats `xml:"secure-association-sent"`
SecureChannelReceived []SecureChannelReceivedStats `xml:"secure-channel-received"`
SecureAssociationReceived []SecureAssociationReceivedStats `xml:"secure-association-received"`
}
Struct for macsec statistics
type OutboundSecureAssociation ¶
type OutboundSecureAssociation struct {
AssociationNumber int `xml:"association-number"`
AssociationNumberStatus string `xml:"association-number-status"`
CreateTime *CreateTime `xml:"create-time"`
}
type OutboundSecureChannel ¶
type OutboundSecureChannel struct {
Sci string `xml:"sci"`
OutgoingPacketNumber int `xml:"outgoing-packet-number"`
OutboundSecureAssociation *OutboundSecureAssociation `xml:"outbound-secure-association"`
}
type SecureAssociationReceivedStats ¶
type SecureAssociationReceivedStats struct {
OkPackets uint64 `xml:"ok-packets"`
ValidatedBytes uint64 `xml:"validated-bytes"`
DecryptedBytes uint64 `xml:"decrypted-bytes"`
}
Struct for secure association received statistics
type SecureAssociationSentStats ¶
type SecureAssociationSentStats struct {
EncryptedPackets uint64 `xml:"encrypted-packets"`
ProtectedPackets uint64 `xml:"protected-packets"`
}
Struct for secure association sent statistics
type SecureChannelReceivedStats ¶
type SecureChannelReceivedStats struct {
OkPackets uint64 `xml:"ok-packets"`
ValidatedBytes uint64 `xml:"validated-bytes"`
DecryptedBytes uint64 `xml:"decrypted-bytes"`
}
Struct for secure channel received statistics
type SecureChannelSentStats ¶
type SecureChannelSentStats struct {
EncryptedPackets uint64 `xml:"encrypted-packets"`
EncryptedBytes uint64 `xml:"encrypted-bytes"`
ProtectedPackets uint64 `xml:"protected-packets"`
ProtectedBytes uint64 `xml:"protected-bytes"`
}
Struct for secure channel sent statistics
type ShowSecMacsecConns ¶
type ShowSecMacsecConns struct {
InnerXML []byte `xml:",innerxml"`
MacsecConnectionInformation []*MacsecConnectionInformation `xml:"macsec-connection-information"`
}
func ParseShowSecurityMacsecConnections ¶
func ParseShowSecurityMacsecConnections(input []byte) (*ShowSecMacsecConns, error)
type ShowSecMacsecStats ¶
type ShowSecMacsecStats struct {
XMLName xml.Name `xml:"rpc-reply"`
MacsecStatistics MacsecStatistics `xml:"macsec-statistics"`
}
structure for the statistics reply
Click to show internal directories.
Click to hide internal directories.