Validate that the APICreds has all its properties set
()
| 90 | |
| 91 | // Validate that the APICreds has all its properties set |
| 92 | func (a *APICreds) Validate() error { |
| 93 | if a.Host == "" { |
| 94 | return fmt.Errorf("%w: missing host", ErrValidation) |
| 95 | } |
| 96 | if a.Key == "" { |
| 97 | return fmt.Errorf("%w: missing key", ErrValidation) |
| 98 | } |
| 99 | return nil |
| 100 | } |
| 101 | |
| 102 | type Role int64 |
| 103 |
no outgoing calls