mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
chore: more miscellaneous updates
This commit is contained in:
parent
5b474b74be
commit
b165fe2927
6 changed files with 56 additions and 31 deletions
|
|
@ -8,8 +8,15 @@ import (
|
|||
)
|
||||
|
||||
type BMCCredentials struct {
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
SessionTokens map[string]string `json:"session-tokens"`
|
||||
}
|
||||
|
||||
func (c BMCCredentials) IsEmpty() bool {
|
||||
return c.Username == "" &&
|
||||
c.Password == "" &&
|
||||
len(c.SessionTokens) == 0
|
||||
}
|
||||
|
||||
func GetBMCCredentialsDefault(store secrets.SecretStore) (BMCCredentials, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue