mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-14 11:57:59 +00:00
Merge pull request #1173 from external-secrets/dependabot/go_modules/github.com/1Password/connect-sdk-go-1.4.0
build(deps): bump github.com/1Password/connect-sdk-go from 1.2.0 to 1.4.0
This commit is contained in:
commit
94aa568929
4 changed files with 106 additions and 56 deletions
|
@ -44,10 +44,11 @@ make build
|
|||
make docker.build IMG=external-secrets:latest
|
||||
```
|
||||
|
||||
Run tests and lint the code:
|
||||
Run tests and lint the code: *(golangci-lint@1.45.2 is needed.)*
|
||||
```shell
|
||||
make test
|
||||
make lint
|
||||
make lint # OR
|
||||
docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.42.1 golangci-lint run
|
||||
```
|
||||
|
||||
Build the documentation:
|
||||
|
|
8
go.mod
8
go.mod
|
@ -82,7 +82,7 @@ require (
|
|||
google.golang.org/api v0.82.0
|
||||
google.golang.org/genproto v0.0.0-20220527130721-00d5c0f3be58
|
||||
google.golang.org/grpc v1.46.2
|
||||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
|
||||
gopkg.in/yaml.v3 v3.0.0-20220512140231-539c8e751b99
|
||||
grpc.go4.org v0.0.0-20170609214715-11d0a25b4919
|
||||
k8s.io/api v0.24.0
|
||||
k8s.io/apiextensions-apiserver v0.24.0
|
||||
|
@ -94,7 +94,7 @@ require (
|
|||
software.sslmate.com/src/go-pkcs12 v0.0.0-20210415151418-c5206de65a78
|
||||
)
|
||||
|
||||
require github.com/1Password/connect-sdk-go v1.2.0
|
||||
require github.com/1Password/connect-sdk-go v1.4.0
|
||||
|
||||
require (
|
||||
github.com/argoproj/argo-cd/v2 v2.3.3
|
||||
|
@ -251,8 +251,8 @@ require (
|
|||
github.com/spf13/pflag v1.0.5 // indirect
|
||||
github.com/tidwall/match v1.1.1 // indirect
|
||||
github.com/tidwall/pretty v1.2.0 // indirect
|
||||
github.com/uber/jaeger-client-go v2.25.0+incompatible // indirect
|
||||
github.com/uber/jaeger-lib v2.4.0+incompatible // indirect
|
||||
github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect
|
||||
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
|
||||
github.com/vmihailenco/go-tinylfu v0.2.1 // indirect
|
||||
github.com/vmihailenco/msgpack/v5 v5.3.4 // indirect
|
||||
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
|
||||
|
|
17
go.sum
17
go.sum
|
@ -60,10 +60,8 @@ cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RX
|
|||
cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
|
||||
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
|
||||
dmitri.shuralyov.com/gpu/mtl v0.0.0-20201218220906-28db891af037/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
|
||||
github.com/1Password/connect-sdk-go v1.2.0 h1:WbIvmbDUpA89nyH0l3LF2iRSFJAv86d2D7IjVNjw6iw=
|
||||
github.com/1Password/connect-sdk-go v1.2.0 h1:WbIvmbDUpA89nyH0l3LF2iRSFJAv86d2D7IjVNjw6iw=
|
||||
github.com/1Password/connect-sdk-go v1.2.0/go.mod h1:qK2bF/GweAq812xj+HGfbauaE6cKX1MXfKhpAvoHEq8=
|
||||
github.com/1Password/connect-sdk-go v1.2.0/go.mod h1:qK2bF/GweAq812xj+HGfbauaE6cKX1MXfKhpAvoHEq8=
|
||||
github.com/1Password/connect-sdk-go v1.4.0 h1:c1cR22z69E634ZxEhjsBI08FNEcDBuM57IKMFDk04aM=
|
||||
github.com/1Password/connect-sdk-go v1.4.0/go.mod h1:ADZd9XFWwbBcnAayv7hVm9LTF0WkyoJ37jVA6BRtqzE=
|
||||
github.com/Azure/azure-sdk-for-go v55.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
|
||||
github.com/Azure/azure-sdk-for-go v64.1.0+incompatible h1:FpsZmWR9FfEr9hP6K9S7RP0EkSFgGd6P1F2scHtbhnU=
|
||||
github.com/Azure/azure-sdk-for-go v64.1.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
|
||||
|
@ -1270,10 +1268,10 @@ github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1
|
|||
github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
|
||||
github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
|
||||
github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM=
|
||||
github.com/uber/jaeger-client-go v2.25.0+incompatible h1:IxcNZ7WRY1Y3G4poYlx24szfsn/3LvK9QHCq9oQw8+U=
|
||||
github.com/uber/jaeger-client-go v2.25.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk=
|
||||
github.com/uber/jaeger-lib v2.4.0+incompatible h1:fY7QsGQWiCt8pajv4r7JEvmATdCVaWxXbjwyYwsNaLQ=
|
||||
github.com/uber/jaeger-lib v2.4.0+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U=
|
||||
github.com/uber/jaeger-client-go v2.30.0+incompatible h1:D6wyKGCecFaSRUpo8lCVbaOOb6ThwMmTEbhRwtKR97o=
|
||||
github.com/uber/jaeger-client-go v2.30.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk=
|
||||
github.com/uber/jaeger-lib v2.4.1+incompatible h1:td4jdvLcExb4cBISKIpHuGoVXh+dVKhn2Um6rjCsSsg=
|
||||
github.com/uber/jaeger-lib v2.4.1+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U=
|
||||
github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc=
|
||||
github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw=
|
||||
github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0=
|
||||
|
@ -2058,8 +2056,9 @@ gopkg.in/yaml.v3 v3.0.0-20190905181640-827449938966/go.mod h1:K4uyk7z7BCEPqu6E+C
|
|||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200605160147-a5ece683394c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=
|
||||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.0-20220512140231-539c8e751b99 h1:dbuHpmKjkDzSOMKAWl10QNlgaZUd3V1q99xc81tt2Kc=
|
||||
gopkg.in/yaml.v3 v3.0.0-20220512140231-539c8e751b99/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gotest.tools/v3 v3.0.2/go.mod h1:3SzNCllyD9/Y+b5r9JIKQ474KzkZyqLqEfYqMsX94Bk=
|
||||
gotest.tools/v3 v3.0.3 h1:4AuOwCGf4lLR9u3YOe2awrHygurzhO/HeQ6laiA6Sx0=
|
||||
gotest.tools/v3 v3.0.3/go.mod h1:Z7Lb0S5l+klDB31fvDQX8ss/FlKDxtlFlw3Oa8Ymbl8=
|
||||
|
|
|
@ -38,21 +38,34 @@ func NewMockClient() *OnePasswordMockClient {
|
|||
}
|
||||
}
|
||||
|
||||
// GetVaults unused fake.
|
||||
func (mockClient *OnePasswordMockClient) GetVaults() ([]onepassword.Vault, error) {
|
||||
return []onepassword.Vault{}, nil
|
||||
}
|
||||
|
||||
// GetVault unused fake.
|
||||
func (mockClient *OnePasswordMockClient) GetVault(uuid string) (*onepassword.Vault, error) {
|
||||
return &onepassword.Vault{}, nil
|
||||
}
|
||||
|
||||
// GetVaultByUUID unused fake.
|
||||
func (mockClient *OnePasswordMockClient) GetVaultByUUID(uuid string) (*onepassword.Vault, error) {
|
||||
return &onepassword.Vault{}, nil
|
||||
}
|
||||
|
||||
// GetVaultByTitle unused fake.
|
||||
func (mockClient *OnePasswordMockClient) GetVaultByTitle(uuid string) (*onepassword.Vault, error) {
|
||||
return &onepassword.Vault{}, nil
|
||||
}
|
||||
|
||||
// GetVaultsByTitle returns a list of vaults, you must preload.
|
||||
func (mockClient *OnePasswordMockClient) GetVaultsByTitle(uuid string) ([]onepassword.Vault, error) {
|
||||
return mockClient.MockVaults[uuid], nil
|
||||
}
|
||||
|
||||
// GetItemsByTitle returns a list of items, you must preload.
|
||||
func (mockClient *OnePasswordMockClient) GetItemsByTitle(itemUUID, vaultUUID string) ([]onepassword.Item, error) {
|
||||
items := []onepassword.Item{}
|
||||
for _, item := range mockClient.MockItems[vaultUUID] {
|
||||
if item.Title == itemUUID {
|
||||
items = append(items, item)
|
||||
}
|
||||
}
|
||||
|
||||
return items, nil
|
||||
// GetItems returns []onepassword.Item, you must preload.
|
||||
func (mockClient *OnePasswordMockClient) GetItems(vaultUUID string) ([]onepassword.Item, error) {
|
||||
return mockClient.MockItems[vaultUUID], nil
|
||||
}
|
||||
|
||||
// GetItem returns a *onepassword.Item, you must preload.
|
||||
|
@ -69,9 +82,56 @@ func (mockClient *OnePasswordMockClient) GetItem(itemUUID, vaultUUID string) (*o
|
|||
return &onepassword.Item{}, errors.New("status 400: Invalid Item UUID")
|
||||
}
|
||||
|
||||
// GetItems returns []onepassword.Item, you must preload.
|
||||
func (mockClient *OnePasswordMockClient) GetItems(vaultUUID string) ([]onepassword.Item, error) {
|
||||
return mockClient.MockItems[vaultUUID], nil
|
||||
// GetItemByUUID unused fake.
|
||||
func (mockClient *OnePasswordMockClient) GetItemByUUID(uuid, vaultQuery string) (*onepassword.Item, error) {
|
||||
return &onepassword.Item{}, nil
|
||||
}
|
||||
|
||||
// GetItemByTitle unused fake.
|
||||
func (mockClient *OnePasswordMockClient) GetItemByTitle(title, vaultUUID string) (*onepassword.Item, error) {
|
||||
return &onepassword.Item{}, nil
|
||||
}
|
||||
|
||||
// GetItemsByTitle returns a list of items, you must preload.
|
||||
func (mockClient *OnePasswordMockClient) GetItemsByTitle(itemUUID, vaultUUID string) ([]onepassword.Item, error) {
|
||||
items := []onepassword.Item{}
|
||||
for _, item := range mockClient.MockItems[vaultUUID] {
|
||||
if item.Title == itemUUID {
|
||||
items = append(items, item)
|
||||
}
|
||||
}
|
||||
|
||||
return items, nil
|
||||
}
|
||||
|
||||
// CreateItem unused fake.
|
||||
func (mockClient *OnePasswordMockClient) CreateItem(item *onepassword.Item, vaultUUID string) (*onepassword.Item, error) {
|
||||
return &onepassword.Item{}, nil
|
||||
}
|
||||
|
||||
// UpdateItem unused fake.
|
||||
func (mockClient *OnePasswordMockClient) UpdateItem(item *onepassword.Item, vaultUUID string) (*onepassword.Item, error) {
|
||||
return &onepassword.Item{}, nil
|
||||
}
|
||||
|
||||
// DeleteItem unused fake.
|
||||
func (mockClient *OnePasswordMockClient) DeleteItem(item *onepassword.Item, vaultUUID string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeleteItemByID unused fake.
|
||||
func (mockClient *OnePasswordMockClient) DeleteItemByID(itemUUID, vaultQuery string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// GetFiles unused fake.
|
||||
func (mockClient *OnePasswordMockClient) GetFiles(itemQuery, vaultQuery string) ([]onepassword.File, error) {
|
||||
return []onepassword.File{}, nil
|
||||
}
|
||||
|
||||
// GetFile unused fake.
|
||||
func (mockClient *OnePasswordMockClient) GetFile(fileUUID, itemUUID, vaultUUID string) (*onepassword.File, error) {
|
||||
return &onepassword.File{}, nil
|
||||
}
|
||||
|
||||
// GetFileContent returns file data, you must preload.
|
||||
|
@ -84,39 +144,29 @@ func (mockClient *OnePasswordMockClient) GetFileContent(file *onepassword.File)
|
|||
return value, nil
|
||||
}
|
||||
|
||||
// GetVaults fake.
|
||||
func (mockClient *OnePasswordMockClient) GetVaults() ([]onepassword.Vault, error) {
|
||||
return []onepassword.Vault{}, nil
|
||||
// DownloadFile unused fake.
|
||||
func (mockClient *OnePasswordMockClient) DownloadFile(file *onepassword.File, targetDirectory string, overwrite bool) (string, error) {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
// GetVault fake.
|
||||
func (mockClient *OnePasswordMockClient) GetVault(uuid string) (*onepassword.Vault, error) {
|
||||
return &onepassword.Vault{}, nil
|
||||
}
|
||||
|
||||
// GetItemByTitle fake.
|
||||
func (mockClient *OnePasswordMockClient) GetItemByTitle(title, vaultUUID string) (*onepassword.Item, error) {
|
||||
return &onepassword.Item{}, nil
|
||||
}
|
||||
|
||||
// CreateItem fake.
|
||||
func (mockClient *OnePasswordMockClient) CreateItem(item *onepassword.Item, vaultUUID string) (*onepassword.Item, error) {
|
||||
return &onepassword.Item{}, nil
|
||||
}
|
||||
|
||||
// UpdateItem fake.
|
||||
func (mockClient *OnePasswordMockClient) UpdateItem(item *onepassword.Item, vaultUUID string) (*onepassword.Item, error) {
|
||||
return &onepassword.Item{}, nil
|
||||
}
|
||||
|
||||
// DeleteItem fake.
|
||||
func (mockClient *OnePasswordMockClient) DeleteItem(item *onepassword.Item, vaultUUID string) error {
|
||||
// LoadStructFromItemByUUID unused fake.
|
||||
func (mockClient *OnePasswordMockClient) LoadStructFromItemByUUID(config interface{}, itemUUID, vaultQuery string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// GetFile fake.
|
||||
func (mockClient *OnePasswordMockClient) GetFile(fileUUID, itemUUID, vaultUUID string) (*onepassword.File, error) {
|
||||
return &onepassword.File{}, nil
|
||||
// LoadStructFromItemByTitle unused fake.
|
||||
func (mockClient *OnePasswordMockClient) LoadStructFromItemByTitle(config interface{}, itemTitle, vaultQuery string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// LoadStructFromItem unused fake.
|
||||
func (mockClient *OnePasswordMockClient) LoadStructFromItem(config interface{}, itemQuery, vaultQuery string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// LoadStructunused fake.
|
||||
func (mockClient *OnePasswordMockClient) LoadStruct(config interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// // For rigging test cases
|
||||
|
|
Loading…
Reference in a new issue