Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMessageForStatus ¶
func GetUserNameForType ¶
func GetUserNameForType(t CredentialType) string
Types ¶
type Credential ¶
type Credential struct {
ID CredentialID
Username string
Password Password
Host string
Port int64
DatabaseName string
CredType CredentialType
Scope
}
type CredentialID ¶
type CredentialID string
type CredentialType ¶
type CredentialType int
const ( CredTypeAdmin CredentialType = iota CredTypeAppUser CredTypeAppAdmin CredTypeAppReadOnly CredTypeMonitoring )
func GetAllCredentialTypes ¶
func GetAllCredentialTypes() []CredentialType
type Credentials ¶
type Credentials map[CredentialType]*Credential
type Database ¶
type Database struct {
ID DatabaseID
Storage int64
Size Size
Status Status
HA bool
Credentials Credentials
Name string
Host string
Port int64
Owner string
}
type DatabaseID ¶
type DatabaseID string
type StatusRequest ¶
type StatusRequest struct {
Name string
Status
ID *DatabaseID
Scope
}
Click to show internal directories.
Click to hide internal directories.