(id store.ID, secret store.Secret)
| 61 | } |
| 62 | |
| 63 | func unpackValue(id store.ID, secret store.Secret) (*plugin.Envelope, error) { |
| 64 | impl, ok := secret.(*pass.PassValue) |
| 65 | if !ok { |
| 66 | return nil, errUnknownSecretType |
| 67 | } |
| 68 | value, err := impl.Marshal() |
| 69 | if err != nil { |
| 70 | return nil, err |
| 71 | } |
| 72 | return &plugin.Envelope{ |
| 73 | ID: id, |
| 74 | Value: value, |
| 75 | }, nil |
| 76 | } |
| 77 | |
| 78 | func (m *passPlugin) Run(ctx context.Context) error { |
| 79 | <-ctx.Done() |