MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / ApplySaveOptions

Function ApplySaveOptions

pkg/credentials/credentials.go:54–62  ·  view source on GitHub ↗

ApplySaveOptions applies the given options and returns the resulting SaveOpts.

(opts ...SaveOption)

Source from the content-addressed store, hash-verified

52
53// ApplySaveOptions applies the given options and returns the resulting SaveOpts.
54func 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
64type Writer interface {
65 SaveCredentials(ctx context.Context, org string, credentials any, opts ...SaveOption) (string, error)

Callers 5

SaveCredentialsMethod · 0.92
SaveCredentialsMethod · 0.92
SaveCredentialsMethod · 0.92
SaveCredentialsMethod · 0.92

Calls

no outgoing calls

Tested by 1