ApplySaveOptions applies the given options and returns the resulting SaveOpts.
(opts ...SaveOption)
| 52 | |
| 53 | // ApplySaveOptions applies the given options and returns the resulting SaveOpts. |
| 54 | func ApplySaveOptions(opts ...SaveOption) SaveOpts { |
| 55 | o := SaveOpts{} |
| 56 | for _, opt := range opts { |
| 57 | if opt != nil { |
| 58 | opt(&o) |
| 59 | } |
| 60 | } |
| 61 | return o |
| 62 | } |
| 63 | |
| 64 | type Writer interface { |
| 65 | SaveCredentials(ctx context.Context, org string, credentials any, opts ...SaveOption) (string, error) |
no outgoing calls