UnsetRuntimeValue removes the runtime value from the store.
(ctx context.Context, m Resolver)
| 57 | |
| 58 | // UnsetRuntimeValue removes the runtime value from the store. |
| 59 | func (e RuntimeEntry[T]) UnsetRuntimeValue(ctx context.Context, m Resolver) error { |
| 60 | name, err := e.name() |
| 61 | if err != nil { |
| 62 | return xerrors.Errorf("unset runtime: %w", err) |
| 63 | } |
| 64 | |
| 65 | return m.DeleteRuntimeConfig(ctx, name) |
| 66 | } |
| 67 | |
| 68 | // Resolve attempts to resolve the runtime value of this field from the store via the given Resolver. |
| 69 | func (e RuntimeEntry[T]) Resolve(ctx context.Context, r Resolver) (T, error) { |
nothing calls this directly
no test coverage detected