1
0
This commit is contained in:
brent saner
2025-12-16 21:45:08 -05:00
commit d94a46af0b
17 changed files with 1298 additions and 0 deletions

36
internal/types.go Normal file
View File

@@ -0,0 +1,36 @@
package internal
import (
`context`
`sync`
`github.com/hashicorp/vault-client-go`
`r00t2.io/gosecret`
`r00t2.io/goutils/multierr`
)
type (
Client struct {
lastIdx int
vtok string
vaddr string
scollNm string
vmnt string
errsDone chan bool
errChan chan error
vc *vault.Client
wg sync.WaitGroup
ctx context.Context
ssvc *gosecret.Service
scoll *gosecret.Collection
mErr *multierr.MultiError
inSS map[string]wrappedSsSecret
inVault map[string]map[string]interface{}
}
wrappedSsSecret struct {
id int
strippedNm string
nm string
secret *gosecret.Item
}
)