Validate that the OCIKeypair has all its properties set
()
| 75 | |
| 76 | // Validate that the OCIKeypair has all its properties set |
| 77 | func (o *OCIKeypair) Validate() error { |
| 78 | if o.Repo == "" { |
| 79 | return fmt.Errorf("%w: missing repo", ErrValidation) |
| 80 | } |
| 81 | if o.Username == "" { |
| 82 | return fmt.Errorf("%w: missing username", ErrValidation) |
| 83 | } |
| 84 | if o.Password == "" { |
| 85 | return fmt.Errorf("%w: missing password", ErrValidation) |
| 86 | } |
| 87 | |
| 88 | return nil |
| 89 | } |
| 90 | |
| 91 | // Validate that the APICreds has all its properties set |
| 92 | func (a *APICreds) Validate() error { |
no outgoing calls
no test coverage detected