MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / errorOnNameClient

Struct errorOnNameClient

pkg/secrets/backup_test.go:334–338  ·  view source on GitHub ↗

errorOnNameClient is a thin client wrapper that injects an error for a specific secret name.

Source from the content-addressed store, hash-verified

332
333// errorOnNameClient is a thin client wrapper that injects an error for a specific secret name.
334type errorOnNameClient struct {
335 client.Client
336 failName string
337 failErr error
338}
339
340func (e *errorOnNameClient) Get(ctx context.Context, key client.ObjectKey, obj client.Object, opts ...client.GetOption) error {
341 if secret, ok := obj.(*corev1.Secret); ok {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected