agentintegration

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: MIT Imports: 0 Imported by: 1

README

agentintegration

Provides data structures and interfaces that are used to communicate with r2dtools server agent

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	CN,
	ValidFrom,
	ValidTo string
	DNSNames,
	EmailAddresses,
	Organization,
	Province,
	Country,
	Locality []string
	IsCA, IsValid bool
	Issuer        Issuer
}

Certificate represents certificate data

type CertificateAssignRequestData added in v1.2.0

type CertificateAssignRequestData struct {
	ServerName,
	WebServer,
	CertName string
}

CertificateAssignRequestData contains data required to assign a certificate to domain

type CertificateDownloadResponseData added in v1.2.0

type CertificateDownloadResponseData struct {
	CertFileName,
	CertContent string
}

type CertificateIssueRequestData

type CertificateIssueRequestData struct {
	Email,
	ServerName,
	DocRoot,
	WebServer,
	ChallengeType string
	Subjects         []string
	AdditionalParams map[string]string
	Assign           bool
}

CertificateIssueRequestData contains data required to issue a certificate

func (*CertificateIssueRequestData) GetAdditionalParam

func (ctd *CertificateIssueRequestData) GetAdditionalParam(key string) string

GetAdditionalParam returns additional param

type CertificateUploadRequestData

type CertificateUploadRequestData struct {
	ServerName,
	WebServer,
	CertName,
	PemCertificate string
}

CertificateUploadRequestData contains data required to upload a certificate

type Issuer

type Issuer struct {
	CN           string
	Organization []string
}

Issuer represents base information about certificate issuer

type ProcessData added in v1.1.0

type ProcessData struct {
	Name,
	User,
	Cmd string
	Pid,
	PPid int32
	Cpu       float64
	Memory    float32
	OpenFiles []string
	NetBytesRecv,
	NetBytesSent,
	NetPacketsRecv,
	NetPacketsSent,
	DiskReadBytes,
	DiskWriteBytes,
	DiskReadCount,
	DiskWriteCount uint64
}

type ServerData

type ServerData struct {
	HostName,
	Os,
	Platform,
	PlatformFamily,
	PlatformVersion,
	AgentVersion,
	KernelVersion,
	KernelArch,
	Virtualization string
	Uptime, BootTime uint64
}

ServerData represents base server information

type ServerMonitorDiskResponseData added in v1.1.0

type ServerMonitorDiskResponseData struct {
	DiskUsageTimeLineData map[string][]ServerMonitorTimeLinePoint
	DiskIOTimeLineData    map[string][]ServerMonitorTimeLinePoint
	DiskInfo              map[string]map[string]string // mountpoint => {'total': ..., 'free': ..., 'used': ..., ...}
}

type ServerMonitorNetworkResponseData added in v1.1.0

type ServerMonitorNetworkResponseData struct {
	TimeLineData   map[string][]ServerMonitorTimeLinePoint
	InterfacesInfo []map[string]string
}

type ServerMonitorOverviewResponseData added in v1.1.0

type ServerMonitorOverviewResponseData struct {
	CpuTimeLineData     []ServerMonitorTimeLinePoint
	NetworkTimeLineData []ServerMonitorTimeLinePoint
	MemoryTimeLineData  []ServerMonitorTimeLinePoint
	DiskTimeLineData    []ServerMonitorTimeLinePoint
}

type ServerMonitorProcessResponseData added in v1.1.0

type ServerMonitorProcessResponseData struct {
	ProcessesData []ProcessData
}

type ServerMonitorStatisticsRequestData added in v1.1.0

type ServerMonitorStatisticsRequestData struct {
	Category, SubCategory string
	FromTime, ToTime      int
}

type ServerMonitorStatisticsResponseData added in v1.1.0

type ServerMonitorStatisticsResponseData struct {
	Data map[string][]ServerMonitorTimeLinePoint
}

type ServerMonitorTimeLinePoint added in v1.1.0

type ServerMonitorTimeLinePoint struct {
	Value map[string]string
	Time  string
}

type StorageCertificateNameList added in v1.2.0

type StorageCertificateNameList struct {
	CertNameList []string
}

type VirtualHost

type VirtualHost struct {
	FilePath,
	ServerName,
	DocRoot,
	WebServer string
	Aliases   []string
	Ssl       bool
	Addresses []VirtualHostAddress
}

VirtualHost represents webserver vhost

type VirtualHostAddress

type VirtualHostAddress struct {
	IsIpv6 bool
	Host,
	Port string
}

VirtualHostAddress repesents webserver vhost address

Jump to

Keyboard shortcuts

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