Documentation
¶
Index ¶
- func AddFuncMaps()
- func Authenticate(login, password, authType string) (*models.User, error)
- func BurnCertificate(CN string, serial string, tfaname string) error
- func ConfSaveToFile(destPath string, text string) error
- func CreateCertificate(name string, staticip string, passphrase string, expiredays string, ...) error
- func CreateValidationMap(valid validation.Validation) map[string]map[string]string
- func DeletePKI(name string) error
- func Dump(obj interface{})
- func GetUserByEmail(email string) (*models.User, error)
- func InitPKI(name string) error
- func RenewCertificate(name string, localip string, serial string, tfaname string) error
- func Restart() error
- func RestartContainer(name string) error
- func RevokeCertificate(name string, serial string, tfaname string) error
- type Cert
- type Details
- type SystemInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfSaveToFile ¶
ConfSaveToFile saves the given text to the specified file path, replacing Windows-style line endings with Unix-style line endings.
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 GetUserByEmail ¶
GetUserByEmail retrieves a user by their email address
func RenewCertificate ¶
func RestartContainer ¶
Types ¶
type Cert ¶
type Cert struct {
EntryType string
Expiration string
ExpirationT time.Time
IsExpiring bool
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
}
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.