Documentation
¶
Index ¶
- func AddFuncMaps()
- func CopyStruct(src interface{}, dst interface{}) error
- func CreateCertificate(name string, passphrase string) error
- func CreateValidationMap(valid validation.Validation) map[string]map[string]string
- func Dump(obj interface{})
- func RemoveCertificate(name string, serial string) error
- func RevokeCertificate(name string, serial string) error
- type Cert
- type Details
- type SystemInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyStruct ¶
func CopyStruct(src interface{}, dst interface{}) error
CopyStruct serializes src and tries to deserialize it to dst
func CreateCertificate ¶
func CreateValidationMap ¶
func CreateValidationMap(valid validation.Validation) map[string]map[string]string
CreateValidationMap ranslates validation structure to map that can be easly presented in template
func RemoveCertificate ¶
func RevokeCertificate ¶
Types ¶
type Cert ¶
type Cert struct {
EntryType string
Expiration string
ExpirationT time.Time
Revocation string
RevocationT time.Time
Serial string
FileName string
Details *Details
}
Cert https://groups.google.com/d/msg/mailing.openssl.users/gMRbePiuwV0/wTASgPhuPzkJ
type SystemInfo ¶
type SystemInfo struct {
Memory sigar.Mem
Swap sigar.Swap
Uptime int
UptimeS string
LoadAvg sigar.LoadAverage
CPUList sigar.CpuList
Arch string
Os string
CurrentTime time.Time
MemTotal uint64
MemFree uint64
MemAvail uint64
MemUsed uint64
SwapTotal uint64
SwapFree uint64
SwapUsed uint64
}
SystemInfo contains basic information about system load
func GetSystemInfo ¶
func GetSystemInfo() SystemInfo
GetSystemInfo returns short info about system load
Click to show internal directories.
Click to hide internal directories.