diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index ac5b5ce3d4..0c8890cb75 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -1,4 +1,5 @@ aks +atlassian Auths autoaccept autoscaler @@ -8,6 +9,7 @@ cavium cdn certificatechains cmek +confluence cryptokey customresources datapath @@ -25,6 +27,7 @@ iap ilb ingresstls iotedge +jira linux loggingservice managedzone @@ -44,6 +47,7 @@ querypack resourcegroup Sas SAMEORIGIN +scim serviceprincipals Snat spdx diff --git a/Makefile b/Makefile index 9a41da76ba..2248eb00bc 100644 --- a/Makefile +++ b/Makefile @@ -186,7 +186,8 @@ providers/build: \ providers/build/k8s \ providers/build/azure \ providers/build/ms365 \ - providers/build/aws + providers/build/aws \ + providers/build/atlassian .PHONY: providers/install # Note we need \ to escape the target line into multiple lines @@ -210,6 +211,7 @@ providers/install: \ providers/install/k8s \ providers/install/azure \ providers/install/ms365 \ + providers/install/atlassian \ providers/install/aws providers/build/mock: providers/lr @@ -313,6 +315,11 @@ providers/build/aws: providers/lr providers/install/aws: @$(call installProvider, providers/aws) +providers/build/atlassian: providers/lr + @$(call buildProvider, providers/atlassian) +providers/install/atlassian: + @$(call installProvider, providers/atlassian) + providers/build/ms365: providers/lr @$(call buildProvider, providers/ms365) providers/install/ms365: @@ -339,6 +346,7 @@ providers/dist: @$(call buildProviderDist, providers/azure) @$(call buildProviderDist, providers/ms365) @$(call buildProviderDist, providers/aws) + @$(call buildProviderDist, providers/atlassian) providers/bundle: @$(call bundleProvider, providers/network) @@ -361,6 +369,7 @@ providers/bundle: @$(call bundleProvider, providers/azure) @$(call bundleProvider, providers/ms365) @$(call bundleProvider, providers/aws) + @$(call bundleProvider, providers/atlassian) providers/test: @$(call testProvider, providers/core) @@ -384,6 +393,7 @@ providers/test: @$(call testGpModProvider, providers/azure) @$(call testGpModProvider, providers/ms365) @$(call testGpModProvider, providers/aws) + @$(call testGpModProvider, providers/atlassian) lr/test: go test ./resources/lr/... diff --git a/providers/atlassian/config/config.go b/providers/atlassian/config/config.go new file mode 100644 index 0000000000..7e6542417c --- /dev/null +++ b/providers/atlassian/config/config.go @@ -0,0 +1,63 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +package config + +import ( + "go.mondoo.com/cnquery/v9/providers-sdk/v1/plugin" + "go.mondoo.com/cnquery/v9/providers/atlassian/provider" +) + +var Config = plugin.Provider{ + Name: "atlassian", + ID: "go.mondoo.com/cnquery/providers/atlassian", + Version: "9.0.0", + ConnectionTypes: []string{ + provider.DefaultConnectionType, + "jira", + "admin", + "confluence", + "scim", + }, + Connectors: []plugin.Connector{ + { + Name: "atlassian", + Use: "atlassian", + Short: "atlassian", + MaxArgs: 2, + Discovery: []string{}, + Flags: []plugin.Flag{ + { + Long: "admin-token", + Type: plugin.FlagType_String, + Default: "", + Desc: "Provide atlassian admin api token (used for atlassian admin).", + }, + { + Long: "host", + Type: plugin.FlagType_String, + Default: "", + Desc: "Provide atlassian hostname (e.g. https://example.atlassian.net).", + }, + { + Long: "user", + Type: plugin.FlagType_String, + Default: "", + Desc: "Provide atlassian user name (e.g. example@example.com).", + }, + { + Long: "user-token", + Type: plugin.FlagType_String, + Default: "", + Desc: "Provide atlassian user api token (used for jira / confluence).", + }, + { + Long: "scim-token", + Type: plugin.FlagType_String, + Default: "", + Desc: "Provide atlassian scim api token (used for scim).", + }, + }, + }, + }, +} diff --git a/providers/atlassian/connection/admin/connection.go b/providers/atlassian/connection/admin/connection.go new file mode 100644 index 0000000000..6445a7ca13 --- /dev/null +++ b/providers/atlassian/connection/admin/connection.go @@ -0,0 +1,81 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +package admin + +import ( + "errors" + "os" + + "github.com/ctreminiom/go-atlassian/admin" + "go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory" + "go.mondoo.com/cnquery/v9/providers/atlassian/connection/shared" +) + +const ( + Admin shared.ConnectionType = "admin" +) + +type AdminConnection struct { + id uint32 + Conf *inventory.Config + asset *inventory.Asset + client *admin.Client + name string +} + +func NewConnection(id uint32, asset *inventory.Asset, conf *inventory.Config) (*AdminConnection, error) { + adminToken := conf.Options["admin-token"] + if adminToken == "" { + adminToken = os.Getenv("ATLASSIAN_ADMIN_TOKEN") + } + if adminToken == "" { + return nil, errors.New("you need to provide atlassian admin token via ATLASSIAN_ADMIN_TOKEN env or via the --admin-token flag") + } + + client, err := admin.New(nil) + if err != nil { + return nil, err + } + + client.Auth.SetBearerToken(adminToken) + client.Auth.SetUserAgent("curl/7.54.0") + + conn := &AdminConnection{ + Conf: conf, + id: id, + asset: asset, + client: client, + name: "admin.atlassian.com", + } + + return conn, nil +} + +func (c *AdminConnection) Name() string { + return c.name +} + +func (c *AdminConnection) ID() uint32 { + return c.id +} + +func (c *AdminConnection) Asset() *inventory.Asset { + return c.asset +} + +func (c *AdminConnection) Client() *admin.Client { + return c.client +} + +func (c *AdminConnection) Type() shared.ConnectionType { + return Admin +} + +func (c *AdminConnection) ConnectionType() string { + return "admin" +} + +func (c *AdminConnection) Config() *inventory.Config { + return c.Conf +} diff --git a/providers/atlassian/connection/admin/platform.go b/providers/atlassian/connection/admin/platform.go new file mode 100644 index 0000000000..9f1fd9379c --- /dev/null +++ b/providers/atlassian/connection/admin/platform.go @@ -0,0 +1,33 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +package admin + +import ( + "go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory" +) + +func (a *AdminConnection) PlatformInfo() *inventory.Platform { + return GetPlatformForObject("atlassian-admin") +} + +func GetPlatformForObject(platformName string) *inventory.Platform { + if platformName != "atlassian-admin" && platformName != "" { + return &inventory.Platform{ + Name: platformName, + Title: "Atlassian Admin", + Kind: "api", + Runtime: "atlassian", + } + } + return &inventory.Platform{ + Name: "atlassian-admin", + Title: "Atlassian Admin", + Kind: "api", + Runtime: "atlassian", + } +} + +func (a *AdminConnection) PlatformID() string { + return "//platformid.api.mondoo.app/runtime/atlassian/admin" +} diff --git a/providers/atlassian/connection/confluence/connection.go b/providers/atlassian/connection/confluence/connection.go new file mode 100644 index 0000000000..b773af87c7 --- /dev/null +++ b/providers/atlassian/connection/confluence/connection.go @@ -0,0 +1,97 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +package confluence + +import ( + "errors" + "os" + + "github.com/ctreminiom/go-atlassian/confluence" + "go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory" + "go.mondoo.com/cnquery/v9/providers/atlassian/connection/shared" +) + +const ( + Confluence shared.ConnectionType = "confluece" +) + +type ConfluenceConnection struct { + id uint32 + Conf *inventory.Config + asset *inventory.Asset + client *confluence.Client + name string +} + +func NewConnection(id uint32, asset *inventory.Asset, conf *inventory.Config) (*ConfluenceConnection, error) { + host := conf.Options["host"] + if host == "" { + host = os.Getenv("ATLASSIAN_HOST") + } + if host == "" { + return nil, errors.New("you need to provide atlassian hostname via ATLASSIAN_HOST env or via --host flag") + } + + user := conf.Options["user"] + if user == "" { + user = os.Getenv("ATLASSIAN_USER") + } + if user == "" { + return nil, errors.New("you need to provide atlassian username via ATLASSIAN_USER env or via --user flag") + } + + token := conf.Options["user-token"] + if token == "" { + token = os.Getenv("ATLASSIAN_USER_TOKEN") + } + if token == "" { + return nil, errors.New("you need to provide atlassian user token via ATLASSIAN_USER_TOKEN env or via --user-token flag") + } + + client, err := confluence.New(nil, host) + if err != nil { + return nil, err + } + + client.Auth.SetBasicAuth(user, token) + client.Auth.SetUserAgent("curl/7.54.0") + + conn := &ConfluenceConnection{ + Conf: conf, + id: id, + asset: asset, + client: client, + name: host, + } + + return conn, nil +} + +func (c *ConfluenceConnection) Name() string { + return c.name +} + +func (c *ConfluenceConnection) ID() uint32 { + return c.id +} + +func (c *ConfluenceConnection) Asset() *inventory.Asset { + return c.asset +} + +func (c *ConfluenceConnection) Client() *confluence.Client { + return c.client +} + +func (c *ConfluenceConnection) Type() shared.ConnectionType { + return Confluence +} + +func (c *ConfluenceConnection) ConnectionType() string { + return "confluence" +} + +func (c *ConfluenceConnection) Config() *inventory.Config { + return c.Conf +} diff --git a/providers/atlassian/connection/confluence/platform.go b/providers/atlassian/connection/confluence/platform.go new file mode 100644 index 0000000000..8004b74432 --- /dev/null +++ b/providers/atlassian/connection/confluence/platform.go @@ -0,0 +1,37 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +package confluence + +import ( + "strings" + + "go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory" +) + +func (a *ConfluenceConnection) PlatformInfo() *inventory.Platform { + return GetPlatformForObject("atlassian-confluence") +} + +func GetPlatformForObject(platformName string) *inventory.Platform { + if platformName != "atlassian-confluence" && platformName != "" { + return &inventory.Platform{ + Name: platformName, + Title: "Atlassian Confluence", + Kind: "api", + Runtime: "atlassian", + } + } + return &inventory.Platform{ + Name: "atlassian-confluence", + Title: "Atlassian Confluence", + Kind: "api", + Runtime: "atlassian", + } +} + +func (a *ConfluenceConnection) PlatformID() string { + hostname := strings.TrimPrefix(a.name, "https://") + host := strings.Replace(hostname, ".", "-", -1) + return "//platformid.api.mondoo.app/runtime/atlassian/confluence/" + host +} diff --git a/providers/atlassian/connection/connection.go b/providers/atlassian/connection/connection.go new file mode 100644 index 0000000000..80184e6dfd --- /dev/null +++ b/providers/atlassian/connection/connection.go @@ -0,0 +1,53 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +package connection + +import ( + "github.com/pkg/errors" + "go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory" + "go.mondoo.com/cnquery/v9/providers/atlassian/connection/admin" + "go.mondoo.com/cnquery/v9/providers/atlassian/connection/confluence" + "go.mondoo.com/cnquery/v9/providers/atlassian/connection/jira" + "go.mondoo.com/cnquery/v9/providers/atlassian/connection/scim" + "go.mondoo.com/cnquery/v9/providers/atlassian/connection/shared" +) + +const ( + // Discovery flags + DiscoveryAuto = "auto" + DiscoveryAll = "all" + DiscoveryOrganization = "organization" +) + +const ( + Admin shared.ConnectionType = "atlassian" +) + +func NewConnection(id uint32, asset *inventory.Asset, conf *inventory.Config) (shared.Connection, error) { + var conn shared.Connection + var err error + switch conf.Options["product"] { + case "admin": + conn, err = admin.NewConnection(id, asset, conf) + if err != nil { + return nil, errors.Wrap(err, "Failed to create admin connection") + } + case "jira": + conn, err = jira.NewConnection(id, asset, conf) + if err != nil { + return nil, errors.Wrap(err, "Failed to create jira connection") + } + case "confluence": + conn, err = confluence.NewConnection(id, asset, conf) + if err != nil { + return nil, errors.Wrap(err, "Failed to create confluence connection") + } + case "scim": + conn, err = scim.NewConnection(id, asset, conf) + if err != nil { + return nil, errors.Wrap(err, "Failed to create scim connection") + } + } + return conn, nil +} diff --git a/providers/atlassian/connection/jira/connection.go b/providers/atlassian/connection/jira/connection.go new file mode 100644 index 0000000000..d94aa6830f --- /dev/null +++ b/providers/atlassian/connection/jira/connection.go @@ -0,0 +1,97 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +package jira + +import ( + "errors" + "os" + + v2 "github.com/ctreminiom/go-atlassian/jira/v2" + "go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory" + "go.mondoo.com/cnquery/v9/providers/atlassian/connection/shared" +) + +const ( + Jira shared.ConnectionType = "jira" +) + +type JiraConnection struct { + id uint32 + Conf *inventory.Config + asset *inventory.Asset + client *v2.Client + name string +} + +func NewConnection(id uint32, asset *inventory.Asset, conf *inventory.Config) (*JiraConnection, error) { + host := conf.Options["host"] + if host == "" { + host = os.Getenv("ATLASSIAN_HOST") + } + if host == "" { + return nil, errors.New("you need to provide atlassian host e.g. via ATLASSIAN_HOST env or via --host flag") + } + + user := conf.Options["user"] + if user == "" { + user = os.Getenv("ATLASSIAN_USER") + } + if user == "" { + return nil, errors.New("you need to provide atlassian user e.g. via ATLASSIAN_USER env or via --user flag") + } + + token := conf.Options["user-token"] + if token == "" { + token = os.Getenv("ATLASSIAN_USER_TOKEN") + } + if token == "" { + return nil, errors.New("you need to provide atlassian user token e.g. via ATLASSIAN_USER_TOKEN env or via --user-token flag") + } + + client, err := v2.New(nil, host) + if err != nil { + return nil, err + } + + client.Auth.SetBasicAuth(user, token) + client.Auth.SetUserAgent("curl/7.54.0") + + conn := &JiraConnection{ + Conf: conf, + id: id, + asset: asset, + client: client, + name: host, + } + + return conn, nil +} + +func (c *JiraConnection) Name() string { + return c.name +} + +func (c *JiraConnection) ID() uint32 { + return c.id +} + +func (c *JiraConnection) Asset() *inventory.Asset { + return c.asset +} + +func (c *JiraConnection) Client() *v2.Client { + return c.client +} + +func (p *JiraConnection) Type() shared.ConnectionType { + return Jira +} + +func (c *JiraConnection) ConnectionType() string { + return "jira" +} + +func (c *JiraConnection) Config() *inventory.Config { + return c.Conf +} diff --git a/providers/atlassian/connection/jira/platform.go b/providers/atlassian/connection/jira/platform.go new file mode 100644 index 0000000000..bd46dc827e --- /dev/null +++ b/providers/atlassian/connection/jira/platform.go @@ -0,0 +1,37 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +package jira + +import ( + "strings" + + "go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory" +) + +func (a *JiraConnection) PlatformInfo() *inventory.Platform { + return GetPlatformForObject("atlassian-jira") +} + +func GetPlatformForObject(platformName string) *inventory.Platform { + if platformName != "atlassian-jira" && platformName != "" { + return &inventory.Platform{ + Name: platformName, + Title: "Atlassian Jira", + Kind: "api", + Runtime: "atlassian", + } + } + return &inventory.Platform{ + Name: "atlassian-jira", + Title: "Atlassian Jira", + Kind: "api", + Runtime: "atlassian", + } +} + +func (a *JiraConnection) PlatformID() string { + hostname := strings.TrimPrefix(a.name, "https://") + host := strings.Replace(hostname, ".", "-", -1) + return "//platformid.api.mondoo.app/runtime/atlassian/jira/" + host +} diff --git a/providers/atlassian/connection/scim/connection.go b/providers/atlassian/connection/scim/connection.go new file mode 100644 index 0000000000..7f72a7d8f9 --- /dev/null +++ b/providers/atlassian/connection/scim/connection.go @@ -0,0 +1,91 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +package scim + +import ( + "errors" + "fmt" + "os" + + "github.com/ctreminiom/go-atlassian/admin" + "go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory" + "go.mondoo.com/cnquery/v9/providers/atlassian/connection/shared" +) + +const ( + Scim shared.ConnectionType = "scim" +) + +type ScimConnection struct { + id uint32 + Conf *inventory.Config + asset *inventory.Asset + client *admin.Client + name string +} + +func NewConnection(id uint32, asset *inventory.Asset, conf *inventory.Config) (*ScimConnection, error) { + token := conf.Options["scim-token"] + if token == "" { + token = os.Getenv("ATLASSIAN_SCIM_TOKEN") + } + if token == "" { + return nil, errors.New("you need to provide atlassian scim token via ATLASSIAN_SCIM_TOKEN env or via --admin-token flag") + } + + if conf.Options["directory-id"] == "" { + return nil, errors.New("you need to provide a directory id for scim") + } + + client, err := admin.New(nil) + if err != nil { + return nil, err + } + + client.Auth.SetBearerToken(token) + client.Auth.SetUserAgent("curl/7.54.0") + + name := fmt.Sprintf("Directory %s", conf.Options["directory-id"]) + conn := &ScimConnection{ + Conf: conf, + id: id, + asset: asset, + client: client, + name: name, + } + + return conn, nil +} + +func (c *ScimConnection) Name() string { + return c.name +} + +func (c *ScimConnection) ID() uint32 { + return c.id +} + +func (c *ScimConnection) Asset() *inventory.Asset { + return c.asset +} + +func (c *ScimConnection) Client() *admin.Client { + return c.client +} + +func (p *ScimConnection) Type() shared.ConnectionType { + return Scim +} + +func (c *ScimConnection) Directory() string { + return c.Conf.Options["directory-id"] +} + +func (c *ScimConnection) ConnectionType() string { + return "scim" +} + +func (c *ScimConnection) Config() *inventory.Config { + return c.Conf +} diff --git a/providers/atlassian/connection/scim/platform.go b/providers/atlassian/connection/scim/platform.go new file mode 100644 index 0000000000..343a19fa87 --- /dev/null +++ b/providers/atlassian/connection/scim/platform.go @@ -0,0 +1,33 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +package scim + +import ( + "go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory" +) + +func (a *ScimConnection) PlatformInfo() *inventory.Platform { + return GetPlatformForObject("atlassian-scim") +} + +func GetPlatformForObject(platformName string) *inventory.Platform { + if platformName != "atlassian-scim" && platformName != "" { + return &inventory.Platform{ + Name: platformName, + Title: "Atlassian SCIM", + Kind: "api", + Runtime: "atlassian", + } + } + return &inventory.Platform{ + Name: "atlassian-scim", + Title: "Atlassian SCIM", + Kind: "api", + Runtime: "atlassian", + } +} + +func (a *ScimConnection) PlatformID() string { + return "//platformid.api.mondoo.app/runtime/atlassian/scim/" + a.Directory() +} diff --git a/providers/atlassian/connection/shared/shared.go b/providers/atlassian/connection/shared/shared.go new file mode 100644 index 0000000000..1c8945f336 --- /dev/null +++ b/providers/atlassian/connection/shared/shared.go @@ -0,0 +1,20 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +package shared + +import ( + "go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory" +) + +type ConnectionType string + +type Connection interface { + ID() uint32 + Name() string + Type() ConnectionType + Asset() *inventory.Asset + PlatformInfo() *inventory.Platform + PlatformID() string + Config() *inventory.Config +} diff --git a/providers/atlassian/gen/main.go b/providers/atlassian/gen/main.go new file mode 100644 index 0000000000..706d378668 --- /dev/null +++ b/providers/atlassian/gen/main.go @@ -0,0 +1,13 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +package main + +import ( + "go.mondoo.com/cnquery/v9/providers-sdk/v1/plugin/gen" + "go.mondoo.com/cnquery/v9/providers/atlassian/config" +) + +func main() { + gen.CLI(&config.Config) +} diff --git a/providers/atlassian/go.mod b/providers/atlassian/go.mod new file mode 100644 index 0000000000..910814ee86 --- /dev/null +++ b/providers/atlassian/go.mod @@ -0,0 +1,69 @@ +module go.mondoo.com/cnquery/v9/providers/atlassian + +replace go.mondoo.com/cnquery/v9 => ../.. + +go 1.21 + +toolchain go1.21.3 + +require ( + github.com/ctreminiom/go-atlassian v1.5.1 + github.com/pkg/errors v0.9.1 + go.mondoo.com/cnquery/v9 v9.1.0 +) + +require ( + github.com/Masterminds/semver v1.5.0 // indirect + github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect + github.com/cockroachdb/errors v1.11.1 // indirect + github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect + github.com/cockroachdb/redact v1.1.5 // indirect + github.com/fatih/color v1.15.0 // indirect + github.com/getsentry/sentry-go v0.25.0 // indirect + github.com/gofrs/uuid v4.4.0+incompatible // indirect + github.com/gogo/protobuf v1.3.2 // indirect + github.com/golang-jwt/jwt v3.2.2+incompatible // indirect + github.com/golang/protobuf v1.5.3 // indirect + github.com/google/uuid v1.3.1 // indirect + github.com/gopherjs/gopherjs v1.17.2 // indirect + github.com/hashicorp/go-hclog v1.5.0 // indirect + github.com/hashicorp/go-plugin v1.5.2 // indirect + github.com/hashicorp/yamux v0.1.1 // indirect + github.com/hokaccha/go-prettyjson v0.0.0-20211117102719-0474bc63780f // indirect + github.com/imdario/mergo v0.3.16 // indirect + github.com/josharian/intern v1.0.0 // indirect + github.com/jtolds/gls v4.20.0+incompatible // indirect + github.com/kr/pretty v0.3.1 // indirect + github.com/kr/text v0.2.0 // indirect + github.com/lucasb-eyer/go-colorful v1.2.0 // indirect + github.com/mailru/easyjson v0.7.7 // indirect + github.com/mattn/go-colorable v0.1.13 // indirect + github.com/mattn/go-isatty v0.0.19 // indirect + github.com/mattn/go-runewidth v0.0.15 // indirect + github.com/mitchellh/go-testing-interface v1.14.1 // indirect + github.com/muesli/termenv v0.15.2 // indirect + github.com/oklog/run v1.1.0 // indirect + github.com/perimeterx/marshmallow v1.1.5 // indirect + github.com/rivo/uniseg v0.4.4 // indirect + github.com/rogpeppe/go-internal v1.11.0 // indirect + github.com/rs/zerolog v1.31.0 // indirect + github.com/segmentio/fasthash v1.0.3 // indirect + github.com/segmentio/ksuid v1.0.4 // indirect + github.com/smarty/assertions v1.15.1 // indirect + github.com/spf13/afero v1.10.0 // indirect + github.com/tidwall/gjson v1.16.0 // indirect + github.com/tidwall/match v1.1.1 // indirect + github.com/tidwall/pretty v1.2.0 // indirect + go.mondoo.com/ranger-rpc v0.5.1 // indirect + golang.org/x/crypto v0.14.0 // indirect + golang.org/x/net v0.17.0 // indirect + golang.org/x/sys v0.13.0 // indirect + golang.org/x/text v0.13.0 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20231009173412-8bfb1ae86b6c // indirect + google.golang.org/grpc v1.58.3 // indirect + google.golang.org/protobuf v1.31.0 // indirect + gopkg.in/square/go-jose.v2 v2.6.0 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + moul.io/http2curl v1.0.0 // indirect + sigs.k8s.io/yaml v1.3.0 // indirect +) diff --git a/providers/atlassian/go.sum b/providers/atlassian/go.sum new file mode 100644 index 0000000000..7768d463d5 --- /dev/null +++ b/providers/atlassian/go.sum @@ -0,0 +1,619 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= +cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= +cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= +cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= +cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= +cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= +cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= +cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= +cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= +cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= +cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= +cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= +cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= +cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= +cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= +cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= +cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= +github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= +github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k= +github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8= +github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA= +github.com/bufbuild/protocompile v0.4.0/go.mod h1:3v93+mbWn/v3xzN+31nwkJfrEpAUwp+BagBSZWx+TP8= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cockroachdb/errors v1.11.1 h1:xSEW75zKaKCWzR3OfxXUxgrk/NtT4G1MiOv5lWZazG8= +github.com/cockroachdb/errors v1.11.1/go.mod h1:8MUxA3Gi6b25tYlFEBGLf+D8aISL+M4MIpiWMSNRfxw= +github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE= +github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs= +github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30= +github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= +github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= +github.com/ctreminiom/go-atlassian v1.5.1 h1:GYji33ywQyWvePNQzxfvgb02fg6fcSH1g59vDy3ApEw= +github.com/ctreminiom/go-atlassian v1.5.1/go.mod h1:R1EaOjo33pSN9Y6xIJCEgQ68wgwYoFYAXifnaPlmyc8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= +github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= +github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= +github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= +github.com/getsentry/sentry-go v0.25.0 h1:q6Eo+hS+yoJlTO3uu/azhQadsD8V+jQn2D8VvX1eOyI= +github.com/getsentry/sentry-go v0.25.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY= +github.com/go-errors/errors v1.5.0 h1:/EuijeGOu7ckFxzhkj4CXJ8JaenxK7bKUxpPYqeLHqQ= +github.com/go-errors/errors v1.5.0/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= +github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/go-test/deep v1.0.8/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE= +github.com/go-test/deep v1.1.0 h1:WOcxcdHcvdgThNXjw0t76K42FXTU7HpNQWHpA2HHNlg= +github.com/go-test/deep v1.1.0/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE= +github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= +github.com/gofrs/uuid v4.4.0+incompatible h1:3qXRTX8/NbyulANqlc0lchS1gqAVxRgsuW1YrTJupqA= +github.com/gofrs/uuid v4.4.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY= +github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= +github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= +github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= +github.com/gopherjs/gopherjs v1.17.2 h1:fQnZVsXk8uxXIStYb0N4bGk7jeyTalG/wsZjQ25dO0g= +github.com/gopherjs/gopherjs v1.17.2/go.mod h1:pRRIvn/QzFLrKfvEz3qUuEhtE/zLCWfreZ6J5gM2i+k= +github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= +github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= +github.com/hashicorp/go-plugin v1.5.2 h1:aWv8eimFqWlsEiMrYZdPYl+FdHaBJSN4AWwGWfT1G2Y= +github.com/hashicorp/go-plugin v1.5.2/go.mod h1:w1sAEES3g3PuV/RzUrgow20W2uErMly84hhD3um1WL4= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE= +github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= +github.com/hokaccha/go-prettyjson v0.0.0-20211117102719-0474bc63780f h1:7LYC+Yfkj3CTRcShK0KOL/w6iTiKyqqBA9a41Wnggw8= +github.com/hokaccha/go-prettyjson v0.0.0-20211117102719-0474bc63780f/go.mod h1:pFlLw2CfqZiIBOx6BuCeRLCrfxBJipTY0nIOF/VbGcI= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/imdario/mergo v0.3.16 h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4= +github.com/imdario/mergo v0.3.16/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= +github.com/jhump/protoreflect v1.15.1 h1:HUMERORf3I3ZdX05WaQ6MIpd/NJ434hTp5YiKgfCL6c= +github.com/jhump/protoreflect v1.15.1/go.mod h1:jD/2GMKKE6OqX8qTjhADU1e6DShO+gavG9e0Q693nKo= +github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= +github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= +github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= +github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= +github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY= +github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= +github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= +github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= +github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= +github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= +github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= +github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= +github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= +github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= +github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U= +github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= +github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= +github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= +github.com/muesli/termenv v0.15.2 h1:GohcuySI0QmI3wN8Ok9PtKGkgkFIk7y6Vpb5PvrY+Wo= +github.com/muesli/termenv v0.15.2/go.mod h1:Epx+iuz8sNs7mNKhxzH4fWXGNpZwUaJKRS1noLXviQ8= +github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= +github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= +github.com/perimeterx/marshmallow v1.1.5 h1:a2LALqQ1BlHM8PZblsDdidgv1mWi1DgC2UmX50IvK2s= +github.com/perimeterx/marshmallow v1.1.5/go.mod h1:dsXbUu8CRzfYP5a87xpp0xq9S3u0Vchtcl8we9tYaXw= +github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= +github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= +github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= +github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= +github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= +github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= +github.com/rs/zerolog v1.31.0 h1:FcTR3NnLWW+NnTwwhFWiJSZr4ECLpqCm6QsEnyvbV4A= +github.com/rs/zerolog v1.31.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= +github.com/segmentio/fasthash v1.0.3 h1:EI9+KE1EwvMLBWwjpRDc+fEM+prwxDYbslddQGtrmhM= +github.com/segmentio/fasthash v1.0.3/go.mod h1:waKX8l2N8yckOgmSsXJi7x1ZfdKZ4x7KRMzBtS3oedY= +github.com/segmentio/ksuid v1.0.4 h1:sBo2BdShXjmcugAMwjugoGUdUV0pcxY5mW4xKRn3v4c= +github.com/segmentio/ksuid v1.0.4/go.mod h1:/XUiZBD3kVx5SmUOl55voK5yeAbBNNIed+2O73XgrPE= +github.com/smarty/assertions v1.15.1 h1:812oFiXI+G55vxsFf+8bIZ1ux30qtkdqzKbEFwyX3Tk= +github.com/smarty/assertions v1.15.1/go.mod h1:yABtdzeQs6l1brC900WlRNwj6ZR55d7B+E8C6HtKdec= +github.com/smartystreets/goconvey v1.8.1 h1:qGjIddxOk4grTu9JPOU31tVfq3cNdBlNa5sSznIX1xY= +github.com/smartystreets/goconvey v1.8.1/go.mod h1:+/u4qLyY6x1jReYOp7GOM2FSt8aP9CzCZL03bI28W60= +github.com/spf13/afero v1.10.0 h1:EaGW2JJh15aKOejeuJ+wpFSHnbd7GE6Wvp3TsNhb6LY= +github.com/spf13/afero v1.10.0/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/objx v0.5.1 h1:4VhoImhV/Bm0ToFkXFi8hXNXwpDRZ/ynw3amt82mzq0= +github.com/stretchr/objx v0.5.1/go.mod h1:/iHQpkQwBD6DLUmQ4pE+s1TXdob1mORJ4/UFdrifcy0= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/tidwall/gjson v1.16.0 h1:SyXa+dsSPpUlcwEDuKuEBJEz5vzTvOea+9rjyYodQFg= +github.com/tidwall/gjson v1.16.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= +github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= +github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= +github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs= +github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= +github.com/ugorji/go v1.2.7 h1:qYhyWUUd6WbiM+C6JZAUkIJt/1WrjzNHY9+KCIjVqTo= +github.com/ugorji/go v1.2.7/go.mod h1:nF9osbDWLy6bDVv/Rtoh6QgnvNDpmCalQV5urGCCS6M= +github.com/ugorji/go/codec v1.2.7 h1:YPXUKf7fYbp/y8xloBqZOw2qaVggbfwMlI8WM3wZUJ0= +github.com/ugorji/go/codec v1.2.7/go.mod h1:WGN1fab3R1fzQlVQTkfxVtIBhWDRqOviHU95kRgeqEY= +github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +go.mondoo.com/ranger-rpc v0.5.1 h1:OaVQntDJWDRgbc9nXBP4wOCR9h9Bij8LgHHs86IguGk= +go.mondoo.com/ranger-rpc v0.5.1/go.mod h1:3YKcqFrlPgaB4FZ4EoLgdmRtwMQdO7RoAkZYFn+F1eY= +go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= +go.opentelemetry.io/otel v1.19.0 h1:MuS/TNf4/j4IXsZuJegVzI1cwut7Qc00344rgH7p8bs= +go.opentelemetry.io/otel v1.19.0/go.mod h1:i0QyjOq3UPoTzff0PJB2N66fb4S0+rSbSB15/oyH9fY= +go.opentelemetry.io/otel/metric v1.19.0 h1:aTzpGtV0ar9wlV4Sna9sdJyII5jTVJEvKETPiOKwvpE= +go.opentelemetry.io/otel/metric v1.19.0/go.mod h1:L5rUsV9kM1IxCj1MmSdS+JQAcVm319EUrDVLrt7jqt8= +go.opentelemetry.io/otel/trace v1.19.0 h1:DFVQmlVbfVeOuBRrwdtaehRrWiL1JoVs9CPIQ1Dzxpg= +go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmYZpYojqMnX2vo= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= +golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= +golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= +golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= +golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.13.0 h1:bb+I9cTfFazGW51MZqBVmZy7+JEJMouUHTUSKVQLBek= +golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= +golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= +golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= +google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= +google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= +google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= +google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231009173412-8bfb1ae86b6c h1:jHkCUWkseRf+W+edG5hMzr/Uh1xkDREY4caybAq4dpY= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231009173412-8bfb1ae86b6c/go.mod h1:4cYg8o5yUbm77w8ZX00LhMVNl/YVBFJRYWDc0uYWMs0= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= +google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.58.3 h1:BjnpXut1btbtgN/6sp+brB2Kbm2LjNXnidYujAVbSoQ= +google.golang.org/grpc v1.58.3/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= +google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +gopkg.in/square/go-jose.v2 v2.6.0 h1:NGk74WTnPKBNUhNzQX7PYcTLUjoq7mzKk2OKbvwk2iI= +gopkg.in/square/go-jose.v2 v2.6.0/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= +honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +moul.io/http2curl v1.0.0 h1:6XwpyZOYsgZJrU8exnG87ncVkU1FVCcTRpwzOkTDUi8= +moul.io/http2curl v1.0.0/go.mod h1:f6cULg+e4Md/oW1cYmwW4IWQOVl2lGbmCNGOHvzX2kE= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= +sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= +sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= diff --git a/providers/atlassian/main.go b/providers/atlassian/main.go new file mode 100644 index 0000000000..73912139f1 --- /dev/null +++ b/providers/atlassian/main.go @@ -0,0 +1,15 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +package main + +import ( + "os" + + "go.mondoo.com/cnquery/v9/providers-sdk/v1/plugin" + "go.mondoo.com/cnquery/v9/providers/atlassian/provider" +) + +func main() { + plugin.Start(os.Args, provider.Init()) +} diff --git a/providers/atlassian/provider/provider.go b/providers/atlassian/provider/provider.go new file mode 100644 index 0000000000..26d80cf9af --- /dev/null +++ b/providers/atlassian/provider/provider.go @@ -0,0 +1,242 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +package provider + +import ( + "errors" + "strconv" + + "go.mondoo.com/cnquery/v9/llx" + "go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory" + "go.mondoo.com/cnquery/v9/providers-sdk/v1/plugin" + "go.mondoo.com/cnquery/v9/providers-sdk/v1/upstream" + "go.mondoo.com/cnquery/v9/providers/atlassian/connection" + "go.mondoo.com/cnquery/v9/providers/atlassian/connection/shared" + "go.mondoo.com/cnquery/v9/providers/atlassian/resources" +) + +const ( + defaultConnection uint32 = 1 + DefaultConnectionType = "atlassian" +) + +type Service struct { + runtimes map[uint32]*plugin.Runtime + lastConnectionID uint32 +} + +func Init() *Service { + return &Service{ + runtimes: map[uint32]*plugin.Runtime{}, + lastConnectionID: 0, + } +} + +func (s *Service) ParseCLI(req *plugin.ParseCLIReq) (*plugin.ParseCLIRes, error) { + flags := req.Flags + if flags == nil { + flags = map[string]*llx.Primitive{} + } + + if len(req.Args) == 0 { + return nil, errors.New("missing argument, use `atlassian jira`, `atlassian admin`, `atlassian confluence`, or `atlassian scim {directoryID}`") + } + + if req.Args[0] == "scim" { + if len(req.Args) != 2 { + return nil, errors.New("missing argument, scim requires a directory id `atlassian scim {directoryID}`") + } + } + + conf := &inventory.Config{ + Type: req.Connector, + Options: map[string]string{}, + } + + // flags + if x, ok := flags["user-token"]; ok && len(x.Value) != 0 { + conf.Options["user-token"] = string(x.Value) + } + if x, ok := flags["user"]; ok && len(x.Value) != 0 { + conf.Options["user"] = string(x.Value) + } + if x, ok := flags["host"]; ok && len(x.Value) != 0 { + conf.Options["host"] = string(x.Value) + } + if x, ok := flags["admin-token"]; ok && len(x.Value) != 0 { + conf.Options["admin-token"] = string(x.Value) + } + if x, ok := flags["scim-token"]; ok && len(x.Value) != 0 { + conf.Options["scim-token"] = string(x.Value) + } + + // discovery flags + discoverTargets := []string{} + if x, ok := flags["discover"]; ok && len(x.Array) != 0 { + for i := range x.Array { + entry := string(x.Array[i].Value) + discoverTargets = append(discoverTargets, entry) + } + } else { + discoverTargets = []string{"auto"} + } + conf.Discover = &inventory.Discovery{Targets: discoverTargets} + + switch req.Args[0] { + case "admin": + conf.Options["product"] = req.Args[0] + case "jira": + conf.Options["product"] = req.Args[0] + case "confluence": + conf.Options["product"] = req.Args[0] + case "scim": + conf.Options["product"] = req.Args[0] + conf.Options["directory-id"] = req.Args[1] + } + + asset := inventory.Asset{ + Connections: []*inventory.Config{conf}, + } + + return &plugin.ParseCLIRes{Asset: &asset}, nil +} + +func (s *Service) Connect(req *plugin.ConnectReq, callback plugin.ProviderCallback) (*plugin.ConnectRes, error) { + if req == nil || req.Asset == nil { + return nil, errors.New("no connection data provided") + } + + conn, err := s.connect(req, callback) + if err != nil { + return nil, err + } + + // We only need to run the detection step when we don't have any asset information yet. + if req.Asset.Platform == nil { + if err := s.detect(req.Asset, conn); err != nil { + return nil, err + } + } + + inventory := &inventory.Inventory{ + Spec: &inventory.InventorySpec{ + Assets: []*inventory.Asset{req.Asset}, + }, + } + + return &plugin.ConnectRes{ + Id: conn.ID(), + Name: conn.Name(), + Asset: req.Asset, + Inventory: inventory, + }, nil +} + +// Shutdown is automatically called when the shell closes. +// It is not necessary to implement this method. +// If you want to do some cleanup, you can do it here. +func (s *Service) Shutdown(req *plugin.ShutdownReq) (*plugin.ShutdownRes, error) { + return &plugin.ShutdownRes{}, nil +} + +func (s *Service) connect(req *plugin.ConnectReq, callback plugin.ProviderCallback) (shared.Connection, error) { + if len(req.Asset.Connections) == 0 { + return nil, errors.New("no connection options for asset") + } + + asset := req.Asset + conf := asset.Connections[0] + var conn shared.Connection + var err error + + conn, err = connection.NewConnection(s.lastConnectionID, asset, conf) + + if err != nil { + return nil, err + } + + var upstream *upstream.UpstreamClient + if req.Upstream != nil && !req.Upstream.Incognito { + upstream, err = req.Upstream.InitClient() + if err != nil { + return nil, err + } + } + + asset.Connections[0].Id = conn.ID() + s.runtimes[conn.ID()] = &plugin.Runtime{ + Connection: conn, + Callback: callback, + HasRecording: req.HasRecording, + CreateResource: resources.CreateResource, + Upstream: upstream, + } + + return conn, err +} + +func (s *Service) detect(asset *inventory.Asset, conn shared.Connection) error { + asset.Id = string(conn.Type()) + asset.Name = conn.Name() + + asset.Platform = conn.PlatformInfo() + asset.PlatformIds = []string{conn.PlatformID()} + return nil +} + +func (s *Service) GetData(req *plugin.DataReq) (*plugin.DataRes, error) { + runtime, ok := s.runtimes[req.Connection] + if !ok { + return nil, errors.New("connection " + strconv.FormatUint(uint64(req.Connection), 10) + " not found") + } + + args := plugin.PrimitiveArgsToRawDataArgs(req.Args, runtime) + + if req.ResourceId == "" && req.Field == "" { + res, err := resources.NewResource(runtime, req.Resource, args) + if err != nil { + return nil, err + } + + rd := llx.ResourceData(res, res.MqlName()).Result() + return &plugin.DataRes{ + Data: rd.Data, + }, nil + } + + resource, ok := runtime.Resources.Get(req.Resource + "\x00" + req.ResourceId) + //resource, ok := runtime.Resources[req.Resource+"\x00"+req.ResourceId] + if !ok { + // Note: Since resources are internally always created, there are only very + // few cases where we arrive here: + // 1. The caller is wrong. Possibly a mixup with IDs + // 2. The resource was loaded from a recording, but the field is not + // in the recording. Thus the resource was never created inside the + // plugin. We will attempt to create the resource and see if the field + // can be computed. + if !runtime.HasRecording { + return nil, errors.New("resource '" + req.Resource + "' (id: " + req.ResourceId + ") doesn't exist") + } + + args, err := runtime.ResourceFromRecording(req.Resource, req.ResourceId) + if err != nil { + return nil, errors.New("attempted to load resource '" + req.Resource + "' (id: " + req.ResourceId + ") from recording failed: " + err.Error()) + } + + resource, err = resources.CreateResource(runtime, req.Resource, args) + if err != nil { + return nil, errors.New("attempted to create resource '" + req.Resource + "' (id: " + req.ResourceId + ") from recording failed: " + err.Error()) + } + } + + return resources.GetData(resource, req.Field, args), nil +} + +func (s *Service) StoreData(req *plugin.StoreReq) (*plugin.StoreRes, error) { + return nil, errors.New("not yet implemented") +} + +func (s *Service) MockConnect(req *plugin.ConnectReq, callback plugin.ProviderCallback) (*plugin.ConnectRes, error) { + return nil, errors.New("mock connect not yet implemented") +} diff --git a/providers/atlassian/resources/atlassian.lr b/providers/atlassian/resources/atlassian.lr new file mode 100644 index 0000000000..836d3ca88a --- /dev/null +++ b/providers/atlassian/resources/atlassian.lr @@ -0,0 +1,203 @@ +option provider = "go.mondoo.com/cnquery/providers/atlassian" +option go_package = "go.mondoo.com/cnquery/providers/atlassian/resources" + +// Cross-domain Identity Management (SCIM) +atlassian.scim { + // SCIM users + users() []atlassian.scim.organization.scim.user + // SCIM groups + groups() []atlassian.scim.organization.scim.group +} + +// SCIM user +atlassian.scim.user @defaults("displayName") { + // ID + id string + // Name + name string + // Display Name + displayName string + // Organization + organization string + // Title + title string +} + +// SCIM group +atlassian.scim.group @defaults("name") { + // ID + id string + // Name + name string +} + +// Organization +atlassian.admin.organization @defaults("name") { + // Organization ID + id string + // Name + name string + // Organization type + type string + // Policies + policies() []atlassian.admin.organization.policy + // Domains + domains() []atlassian.admin.organization.domain + // Managed Users + managedUsers() []atlassian.admin.organization.managedUsers +} + +// Managed users +atlassian.admin.organization.managedUsers @defaults("name") { + // ID + id string + // Name + name string + // Type + type string + // Email + email string + // Last active + lastActive string +} + +// Policies (except authentication policies) +atlassian.admin.organization.policy @defaults("name") { + // Policy ID + id string + // Policy type + type string + // Policy Name + name string + // PolicyType + policyType string + // Status + status string +} + +// Domains +atlassian.admin.organization.domain @defaults("name") { + // Domain ID + id string + // Name + name string + // Type + type string +} + +// Jira +atlassian.jira { + // Jira users + users() []atlassian.jira.user + // Jira projects + projects() []atlassian.jira.project + // Jira groups + issues() []atlassian.jira.issue + // Jira groups + groups() []atlassian.jira.group + // Jira server info + serverInfos() atlassian.jira.serverInfo +} + +// Issue +atlassian.jira.issue @defaults("id") { + // ID + id string + // Project + project string + // Status + status string + // Description + description string +} + +// Jira server info +atlassian.jira.serverInfo @defaults("serverTitle") { + // BaseUrl + baseUrl string + // BuildNumber + buildNumber int + // ServerTitle + serverTitle string + // DeploymentType + deploymentType string +} + +// Jira user +atlassian.jira.user @defaults("name") { + // AccountID + id string + // Name + name string + // Account type + type string + // Picture of the user + picture string + // Groups + groups() []atlassian.jira.group + // Roles + applicationRoles() []atlassian.jira.applicationRole +} + + +// Jira application role +atlassian.jira.applicationRole @defaults("name") { + // Role ID + id string + // Role Name + name string +} + +// Jira project +atlassian.jira.project @defaults("name") { + // Project ID + id string + // Project Name + name string + // UUID + uuid string + // Key + key string + // URL + url string + // Email + email string + // Private + private bool + // Deleted + deleted bool + // Archived + archived bool + // Properties + properties() []atlassian.jira.project.property +} + +// Jira project property +atlassian.jira.project.property @defaults("id") { + // Property Key + id string +} + +// Jira group +atlassian.jira.group @defaults("name") { + // GroupID + id string + // Group Name + name string +} + +// Confluence +atlassian.confluence { + // Confluence users + users() []atlassian.confluence.user +} + +// Confluence user +atlassian.confluence.user @defaults("name") { + // AccountID + id string + // Name + name string + // Account type + type string +} diff --git a/providers/atlassian/resources/atlassian.lr.go b/providers/atlassian/resources/atlassian.lr.go new file mode 100644 index 0000000000..bd341a8e6f --- /dev/null +++ b/providers/atlassian/resources/atlassian.lr.go @@ -0,0 +1,1946 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +// Code generated by resources. DO NOT EDIT. + +package resources + +import ( + "errors" + + "go.mondoo.com/cnquery/v9/llx" + "go.mondoo.com/cnquery/v9/providers-sdk/v1/plugin" + "go.mondoo.com/cnquery/v9/types" +) + +var resourceFactories map[string]plugin.ResourceFactory + +func init() { + resourceFactories = map[string]plugin.ResourceFactory { + "atlassian.scim": { + // to override args, implement: initAtlassianScim(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAtlassianScim, + }, + "atlassian.scim.user": { + // to override args, implement: initAtlassianScimUser(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAtlassianScimUser, + }, + "atlassian.scim.group": { + // to override args, implement: initAtlassianScimGroup(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAtlassianScimGroup, + }, + "atlassian.admin.organization": { + Init: initAtlassianAdminOrganization, + Create: createAtlassianAdminOrganization, + }, + "atlassian.admin.organization.managedUsers": { + // to override args, implement: initAtlassianAdminOrganizationManagedUsers(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAtlassianAdminOrganizationManagedUsers, + }, + "atlassian.admin.organization.policy": { + // to override args, implement: initAtlassianAdminOrganizationPolicy(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAtlassianAdminOrganizationPolicy, + }, + "atlassian.admin.organization.domain": { + // to override args, implement: initAtlassianAdminOrganizationDomain(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAtlassianAdminOrganizationDomain, + }, + "atlassian.jira": { + // to override args, implement: initAtlassianJira(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAtlassianJira, + }, + "atlassian.jira.issue": { + // to override args, implement: initAtlassianJiraIssue(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAtlassianJiraIssue, + }, + "atlassian.jira.serverInfo": { + // to override args, implement: initAtlassianJiraServerInfo(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAtlassianJiraServerInfo, + }, + "atlassian.jira.user": { + // to override args, implement: initAtlassianJiraUser(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAtlassianJiraUser, + }, + "atlassian.jira.applicationRole": { + // to override args, implement: initAtlassianJiraApplicationRole(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAtlassianJiraApplicationRole, + }, + "atlassian.jira.project": { + // to override args, implement: initAtlassianJiraProject(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAtlassianJiraProject, + }, + "atlassian.jira.project.property": { + // to override args, implement: initAtlassianJiraProjectProperty(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAtlassianJiraProjectProperty, + }, + "atlassian.jira.group": { + // to override args, implement: initAtlassianJiraGroup(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAtlassianJiraGroup, + }, + "atlassian.confluence": { + // to override args, implement: initAtlassianConfluence(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAtlassianConfluence, + }, + "atlassian.confluence.user": { + // to override args, implement: initAtlassianConfluenceUser(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) + Create: createAtlassianConfluenceUser, + }, + } +} + +// NewResource is used by the runtime of this plugin to create new resources. +// Its arguments may be provided by users. This function is generally not +// used by initializing resources from recordings or from lists. +func NewResource(runtime *plugin.Runtime, name string, args map[string]*llx.RawData) (plugin.Resource, error) { + f, ok := resourceFactories[name] + if !ok { + return nil, errors.New("cannot find resource " + name + " in this provider") + } + + if f.Init != nil { + cargs, res, err := f.Init(runtime, args) + if err != nil { + return res, err + } + + if res != nil { + id := name+"\x00"+res.MqlID() + if x, ok := runtime.Resources.Get(id); ok { + return x, nil + } + runtime.Resources.Set(id, res) + return res, nil + } + + args = cargs + } + + res, err := f.Create(runtime, args) + if err != nil { + return nil, err + } + + id := name+"\x00"+res.MqlID() + if x, ok := runtime.Resources.Get(id); ok { + return x, nil + } + + runtime.Resources.Set(id, res) + return res, nil +} + +// CreateResource is used by the runtime of this plugin to create resources. +// Its arguments must be complete and pre-processed. This method is used +// for initializing resources from recordings or from lists. +func CreateResource(runtime *plugin.Runtime, name string, args map[string]*llx.RawData) (plugin.Resource, error) { + f, ok := resourceFactories[name] + if !ok { + return nil, errors.New("cannot find resource " + name + " in this provider") + } + + res, err := f.Create(runtime, args) + if err != nil { + return nil, err + } + + id := name+"\x00"+res.MqlID() + if x, ok := runtime.Resources.Get(id); ok { + return x, nil + } + + runtime.Resources.Set(id, res) + return res, nil +} + +var getDataFields = map[string]func(r plugin.Resource) *plugin.DataRes{ + "atlassian.scim.users": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianScim).GetUsers()).ToDataRes(types.Array(types.Resource("atlassian.scim.organization.scim.user"))) + }, + "atlassian.scim.groups": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianScim).GetGroups()).ToDataRes(types.Array(types.Resource("atlassian.scim.organization.scim.group"))) + }, + "atlassian.scim.user.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianScimUser).GetId()).ToDataRes(types.String) + }, + "atlassian.scim.user.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianScimUser).GetName()).ToDataRes(types.String) + }, + "atlassian.scim.user.displayName": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianScimUser).GetDisplayName()).ToDataRes(types.String) + }, + "atlassian.scim.user.organization": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianScimUser).GetOrganization()).ToDataRes(types.String) + }, + "atlassian.scim.user.title": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianScimUser).GetTitle()).ToDataRes(types.String) + }, + "atlassian.scim.group.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianScimGroup).GetId()).ToDataRes(types.String) + }, + "atlassian.scim.group.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianScimGroup).GetName()).ToDataRes(types.String) + }, + "atlassian.admin.organization.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianAdminOrganization).GetId()).ToDataRes(types.String) + }, + "atlassian.admin.organization.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianAdminOrganization).GetName()).ToDataRes(types.String) + }, + "atlassian.admin.organization.type": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianAdminOrganization).GetType()).ToDataRes(types.String) + }, + "atlassian.admin.organization.policies": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianAdminOrganization).GetPolicies()).ToDataRes(types.Array(types.Resource("atlassian.admin.organization.policy"))) + }, + "atlassian.admin.organization.domains": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianAdminOrganization).GetDomains()).ToDataRes(types.Array(types.Resource("atlassian.admin.organization.domain"))) + }, + "atlassian.admin.organization.managedUsers": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianAdminOrganization).GetManagedUsers()).ToDataRes(types.Array(types.Resource("atlassian.admin.organization.managedUsers"))) + }, + "atlassian.admin.organization.managedUsers.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianAdminOrganizationManagedUsers).GetId()).ToDataRes(types.String) + }, + "atlassian.admin.organization.managedUsers.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianAdminOrganizationManagedUsers).GetName()).ToDataRes(types.String) + }, + "atlassian.admin.organization.managedUsers.type": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianAdminOrganizationManagedUsers).GetType()).ToDataRes(types.String) + }, + "atlassian.admin.organization.managedUsers.email": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianAdminOrganizationManagedUsers).GetEmail()).ToDataRes(types.String) + }, + "atlassian.admin.organization.managedUsers.lastActive": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianAdminOrganizationManagedUsers).GetLastActive()).ToDataRes(types.String) + }, + "atlassian.admin.organization.policy.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianAdminOrganizationPolicy).GetId()).ToDataRes(types.String) + }, + "atlassian.admin.organization.policy.type": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianAdminOrganizationPolicy).GetType()).ToDataRes(types.String) + }, + "atlassian.admin.organization.policy.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianAdminOrganizationPolicy).GetName()).ToDataRes(types.String) + }, + "atlassian.admin.organization.policy.policyType": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianAdminOrganizationPolicy).GetPolicyType()).ToDataRes(types.String) + }, + "atlassian.admin.organization.policy.status": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianAdminOrganizationPolicy).GetStatus()).ToDataRes(types.String) + }, + "atlassian.admin.organization.domain.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianAdminOrganizationDomain).GetId()).ToDataRes(types.String) + }, + "atlassian.admin.organization.domain.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianAdminOrganizationDomain).GetName()).ToDataRes(types.String) + }, + "atlassian.admin.organization.domain.type": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianAdminOrganizationDomain).GetType()).ToDataRes(types.String) + }, + "atlassian.jira.users": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJira).GetUsers()).ToDataRes(types.Array(types.Resource("atlassian.jira.user"))) + }, + "atlassian.jira.projects": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJira).GetProjects()).ToDataRes(types.Array(types.Resource("atlassian.jira.project"))) + }, + "atlassian.jira.issues": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJira).GetIssues()).ToDataRes(types.Array(types.Resource("atlassian.jira.issue"))) + }, + "atlassian.jira.groups": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJira).GetGroups()).ToDataRes(types.Array(types.Resource("atlassian.jira.group"))) + }, + "atlassian.jira.serverInfos": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJira).GetServerInfos()).ToDataRes(types.Resource("atlassian.jira.serverInfo")) + }, + "atlassian.jira.issue.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraIssue).GetId()).ToDataRes(types.String) + }, + "atlassian.jira.issue.project": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraIssue).GetProject()).ToDataRes(types.String) + }, + "atlassian.jira.issue.status": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraIssue).GetStatus()).ToDataRes(types.String) + }, + "atlassian.jira.issue.description": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraIssue).GetDescription()).ToDataRes(types.String) + }, + "atlassian.jira.serverInfo.baseUrl": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraServerInfo).GetBaseUrl()).ToDataRes(types.String) + }, + "atlassian.jira.serverInfo.buildNumber": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraServerInfo).GetBuildNumber()).ToDataRes(types.Int) + }, + "atlassian.jira.serverInfo.serverTitle": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraServerInfo).GetServerTitle()).ToDataRes(types.String) + }, + "atlassian.jira.serverInfo.deploymentType": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraServerInfo).GetDeploymentType()).ToDataRes(types.String) + }, + "atlassian.jira.user.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraUser).GetId()).ToDataRes(types.String) + }, + "atlassian.jira.user.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraUser).GetName()).ToDataRes(types.String) + }, + "atlassian.jira.user.type": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraUser).GetType()).ToDataRes(types.String) + }, + "atlassian.jira.user.picture": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraUser).GetPicture()).ToDataRes(types.String) + }, + "atlassian.jira.user.groups": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraUser).GetGroups()).ToDataRes(types.Array(types.Resource("atlassian.jira.group"))) + }, + "atlassian.jira.user.applicationRoles": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraUser).GetApplicationRoles()).ToDataRes(types.Array(types.Resource("atlassian.jira.applicationRole"))) + }, + "atlassian.jira.applicationRole.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraApplicationRole).GetId()).ToDataRes(types.String) + }, + "atlassian.jira.applicationRole.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraApplicationRole).GetName()).ToDataRes(types.String) + }, + "atlassian.jira.project.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraProject).GetId()).ToDataRes(types.String) + }, + "atlassian.jira.project.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraProject).GetName()).ToDataRes(types.String) + }, + "atlassian.jira.project.uuid": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraProject).GetUuid()).ToDataRes(types.String) + }, + "atlassian.jira.project.key": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraProject).GetKey()).ToDataRes(types.String) + }, + "atlassian.jira.project.url": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraProject).GetUrl()).ToDataRes(types.String) + }, + "atlassian.jira.project.email": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraProject).GetEmail()).ToDataRes(types.String) + }, + "atlassian.jira.project.private": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraProject).GetPrivate()).ToDataRes(types.Bool) + }, + "atlassian.jira.project.deleted": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraProject).GetDeleted()).ToDataRes(types.Bool) + }, + "atlassian.jira.project.archived": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraProject).GetArchived()).ToDataRes(types.Bool) + }, + "atlassian.jira.project.properties": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraProject).GetProperties()).ToDataRes(types.Array(types.Resource("atlassian.jira.project.property"))) + }, + "atlassian.jira.project.property.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraProjectProperty).GetId()).ToDataRes(types.String) + }, + "atlassian.jira.group.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraGroup).GetId()).ToDataRes(types.String) + }, + "atlassian.jira.group.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianJiraGroup).GetName()).ToDataRes(types.String) + }, + "atlassian.confluence.users": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianConfluence).GetUsers()).ToDataRes(types.Array(types.Resource("atlassian.confluence.user"))) + }, + "atlassian.confluence.user.id": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianConfluenceUser).GetId()).ToDataRes(types.String) + }, + "atlassian.confluence.user.name": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianConfluenceUser).GetName()).ToDataRes(types.String) + }, + "atlassian.confluence.user.type": func(r plugin.Resource) *plugin.DataRes { + return (r.(*mqlAtlassianConfluenceUser).GetType()).ToDataRes(types.String) + }, +} + +func GetData(resource plugin.Resource, field string, args map[string]*llx.RawData) *plugin.DataRes { + f, ok := getDataFields[resource.MqlName()+"."+field] + if !ok { + return &plugin.DataRes{Error: "cannot find '" + field + "' in resource '" + resource.MqlName() + "'"} + } + + return f(resource) +} + +var setDataFields = map[string]func(r plugin.Resource, v *llx.RawData) bool { + "atlassian.scim.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianScim).__id, ok = v.Value.(string) + return + }, + "atlassian.scim.users": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianScim).Users, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "atlassian.scim.groups": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianScim).Groups, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "atlassian.scim.user.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianScimUser).__id, ok = v.Value.(string) + return + }, + "atlassian.scim.user.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianScimUser).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.scim.user.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianScimUser).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.scim.user.displayName": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianScimUser).DisplayName, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.scim.user.organization": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianScimUser).Organization, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.scim.user.title": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianScimUser).Title, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.scim.group.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianScimGroup).__id, ok = v.Value.(string) + return + }, + "atlassian.scim.group.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianScimGroup).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.scim.group.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianScimGroup).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.admin.organization.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianAdminOrganization).__id, ok = v.Value.(string) + return + }, + "atlassian.admin.organization.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianAdminOrganization).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.admin.organization.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianAdminOrganization).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.admin.organization.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianAdminOrganization).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.admin.organization.policies": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianAdminOrganization).Policies, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "atlassian.admin.organization.domains": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianAdminOrganization).Domains, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "atlassian.admin.organization.managedUsers": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianAdminOrganization).ManagedUsers, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "atlassian.admin.organization.managedUsers.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianAdminOrganizationManagedUsers).__id, ok = v.Value.(string) + return + }, + "atlassian.admin.organization.managedUsers.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianAdminOrganizationManagedUsers).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.admin.organization.managedUsers.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianAdminOrganizationManagedUsers).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.admin.organization.managedUsers.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianAdminOrganizationManagedUsers).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.admin.organization.managedUsers.email": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianAdminOrganizationManagedUsers).Email, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.admin.organization.managedUsers.lastActive": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianAdminOrganizationManagedUsers).LastActive, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.admin.organization.policy.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianAdminOrganizationPolicy).__id, ok = v.Value.(string) + return + }, + "atlassian.admin.organization.policy.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianAdminOrganizationPolicy).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.admin.organization.policy.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianAdminOrganizationPolicy).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.admin.organization.policy.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianAdminOrganizationPolicy).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.admin.organization.policy.policyType": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianAdminOrganizationPolicy).PolicyType, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.admin.organization.policy.status": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianAdminOrganizationPolicy).Status, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.admin.organization.domain.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianAdminOrganizationDomain).__id, ok = v.Value.(string) + return + }, + "atlassian.admin.organization.domain.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianAdminOrganizationDomain).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.admin.organization.domain.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianAdminOrganizationDomain).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.admin.organization.domain.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianAdminOrganizationDomain).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.jira.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJira).__id, ok = v.Value.(string) + return + }, + "atlassian.jira.users": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJira).Users, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "atlassian.jira.projects": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJira).Projects, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "atlassian.jira.issues": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJira).Issues, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "atlassian.jira.groups": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJira).Groups, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "atlassian.jira.serverInfos": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJira).ServerInfos, ok = plugin.RawToTValue[*mqlAtlassianJiraServerInfo](v.Value, v.Error) + return + }, + "atlassian.jira.issue.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraIssue).__id, ok = v.Value.(string) + return + }, + "atlassian.jira.issue.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraIssue).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.jira.issue.project": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraIssue).Project, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.jira.issue.status": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraIssue).Status, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.jira.issue.description": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraIssue).Description, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.jira.serverInfo.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraServerInfo).__id, ok = v.Value.(string) + return + }, + "atlassian.jira.serverInfo.baseUrl": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraServerInfo).BaseUrl, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.jira.serverInfo.buildNumber": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraServerInfo).BuildNumber, ok = plugin.RawToTValue[int64](v.Value, v.Error) + return + }, + "atlassian.jira.serverInfo.serverTitle": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraServerInfo).ServerTitle, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.jira.serverInfo.deploymentType": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraServerInfo).DeploymentType, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.jira.user.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraUser).__id, ok = v.Value.(string) + return + }, + "atlassian.jira.user.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraUser).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.jira.user.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraUser).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.jira.user.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraUser).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.jira.user.picture": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraUser).Picture, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.jira.user.groups": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraUser).Groups, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "atlassian.jira.user.applicationRoles": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraUser).ApplicationRoles, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "atlassian.jira.applicationRole.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraApplicationRole).__id, ok = v.Value.(string) + return + }, + "atlassian.jira.applicationRole.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraApplicationRole).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.jira.applicationRole.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraApplicationRole).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.jira.project.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraProject).__id, ok = v.Value.(string) + return + }, + "atlassian.jira.project.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraProject).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.jira.project.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraProject).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.jira.project.uuid": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraProject).Uuid, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.jira.project.key": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraProject).Key, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.jira.project.url": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraProject).Url, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.jira.project.email": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraProject).Email, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.jira.project.private": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraProject).Private, ok = plugin.RawToTValue[bool](v.Value, v.Error) + return + }, + "atlassian.jira.project.deleted": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraProject).Deleted, ok = plugin.RawToTValue[bool](v.Value, v.Error) + return + }, + "atlassian.jira.project.archived": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraProject).Archived, ok = plugin.RawToTValue[bool](v.Value, v.Error) + return + }, + "atlassian.jira.project.properties": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraProject).Properties, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "atlassian.jira.project.property.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraProjectProperty).__id, ok = v.Value.(string) + return + }, + "atlassian.jira.project.property.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraProjectProperty).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.jira.group.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraGroup).__id, ok = v.Value.(string) + return + }, + "atlassian.jira.group.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraGroup).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.jira.group.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianJiraGroup).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.confluence.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianConfluence).__id, ok = v.Value.(string) + return + }, + "atlassian.confluence.users": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianConfluence).Users, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) + return + }, + "atlassian.confluence.user.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianConfluenceUser).__id, ok = v.Value.(string) + return + }, + "atlassian.confluence.user.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianConfluenceUser).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.confluence.user.name": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianConfluenceUser).Name, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, + "atlassian.confluence.user.type": func(r plugin.Resource, v *llx.RawData) (ok bool) { + r.(*mqlAtlassianConfluenceUser).Type, ok = plugin.RawToTValue[string](v.Value, v.Error) + return + }, +} + +func SetData(resource plugin.Resource, field string, val *llx.RawData) error { + f, ok := setDataFields[resource.MqlName() + "." + field] + if !ok { + return errors.New("[atlassian] cannot set '"+field+"' in resource '"+resource.MqlName()+"', field not found") + } + + if ok := f(resource, val); !ok { + return errors.New("[atlassian] cannot set '"+field+"' in resource '"+resource.MqlName()+"', type does not match") + } + return nil +} + +func SetAllData(resource plugin.Resource, args map[string]*llx.RawData) error { + var err error + for k, v := range args { + if err = SetData(resource, k, v); err != nil { + return err + } + } + return nil +} + +// mqlAtlassianScim for the atlassian.scim resource +type mqlAtlassianScim struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAtlassianScimInternal it will be used here + Users plugin.TValue[[]interface{}] + Groups plugin.TValue[[]interface{}] +} + +// createAtlassianScim creates a new instance of this resource +func createAtlassianScim(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAtlassianScim{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("atlassian.scim", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAtlassianScim) MqlName() string { + return "atlassian.scim" +} + +func (c *mqlAtlassianScim) MqlID() string { + return c.__id +} + +func (c *mqlAtlassianScim) GetUsers() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.Users, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("atlassian.scim", c.__id, "users") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.users() + }) +} + +func (c *mqlAtlassianScim) GetGroups() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.Groups, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("atlassian.scim", c.__id, "groups") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.groups() + }) +} + +// mqlAtlassianScimUser for the atlassian.scim.user resource +type mqlAtlassianScimUser struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAtlassianScimUserInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + DisplayName plugin.TValue[string] + Organization plugin.TValue[string] + Title plugin.TValue[string] +} + +// createAtlassianScimUser creates a new instance of this resource +func createAtlassianScimUser(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAtlassianScimUser{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("atlassian.scim.user", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAtlassianScimUser) MqlName() string { + return "atlassian.scim.user" +} + +func (c *mqlAtlassianScimUser) MqlID() string { + return c.__id +} + +func (c *mqlAtlassianScimUser) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAtlassianScimUser) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAtlassianScimUser) GetDisplayName() *plugin.TValue[string] { + return &c.DisplayName +} + +func (c *mqlAtlassianScimUser) GetOrganization() *plugin.TValue[string] { + return &c.Organization +} + +func (c *mqlAtlassianScimUser) GetTitle() *plugin.TValue[string] { + return &c.Title +} + +// mqlAtlassianScimGroup for the atlassian.scim.group resource +type mqlAtlassianScimGroup struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAtlassianScimGroupInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] +} + +// createAtlassianScimGroup creates a new instance of this resource +func createAtlassianScimGroup(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAtlassianScimGroup{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("atlassian.scim.group", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAtlassianScimGroup) MqlName() string { + return "atlassian.scim.group" +} + +func (c *mqlAtlassianScimGroup) MqlID() string { + return c.__id +} + +func (c *mqlAtlassianScimGroup) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAtlassianScimGroup) GetName() *plugin.TValue[string] { + return &c.Name +} + +// mqlAtlassianAdminOrganization for the atlassian.admin.organization resource +type mqlAtlassianAdminOrganization struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAtlassianAdminOrganizationInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Type plugin.TValue[string] + Policies plugin.TValue[[]interface{}] + Domains plugin.TValue[[]interface{}] + ManagedUsers plugin.TValue[[]interface{}] +} + +// createAtlassianAdminOrganization creates a new instance of this resource +func createAtlassianAdminOrganization(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAtlassianAdminOrganization{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("atlassian.admin.organization", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAtlassianAdminOrganization) MqlName() string { + return "atlassian.admin.organization" +} + +func (c *mqlAtlassianAdminOrganization) MqlID() string { + return c.__id +} + +func (c *mqlAtlassianAdminOrganization) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAtlassianAdminOrganization) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAtlassianAdminOrganization) GetType() *plugin.TValue[string] { + return &c.Type +} + +func (c *mqlAtlassianAdminOrganization) GetPolicies() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.Policies, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("atlassian.admin.organization", c.__id, "policies") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.policies() + }) +} + +func (c *mqlAtlassianAdminOrganization) GetDomains() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.Domains, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("atlassian.admin.organization", c.__id, "domains") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.domains() + }) +} + +func (c *mqlAtlassianAdminOrganization) GetManagedUsers() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.ManagedUsers, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("atlassian.admin.organization", c.__id, "managedUsers") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.managedUsers() + }) +} + +// mqlAtlassianAdminOrganizationManagedUsers for the atlassian.admin.organization.managedUsers resource +type mqlAtlassianAdminOrganizationManagedUsers struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAtlassianAdminOrganizationManagedUsersInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Type plugin.TValue[string] + Email plugin.TValue[string] + LastActive plugin.TValue[string] +} + +// createAtlassianAdminOrganizationManagedUsers creates a new instance of this resource +func createAtlassianAdminOrganizationManagedUsers(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAtlassianAdminOrganizationManagedUsers{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + // to override __id implement: id() (string, error) + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("atlassian.admin.organization.managedUsers", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAtlassianAdminOrganizationManagedUsers) MqlName() string { + return "atlassian.admin.organization.managedUsers" +} + +func (c *mqlAtlassianAdminOrganizationManagedUsers) MqlID() string { + return c.__id +} + +func (c *mqlAtlassianAdminOrganizationManagedUsers) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAtlassianAdminOrganizationManagedUsers) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAtlassianAdminOrganizationManagedUsers) GetType() *plugin.TValue[string] { + return &c.Type +} + +func (c *mqlAtlassianAdminOrganizationManagedUsers) GetEmail() *plugin.TValue[string] { + return &c.Email +} + +func (c *mqlAtlassianAdminOrganizationManagedUsers) GetLastActive() *plugin.TValue[string] { + return &c.LastActive +} + +// mqlAtlassianAdminOrganizationPolicy for the atlassian.admin.organization.policy resource +type mqlAtlassianAdminOrganizationPolicy struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAtlassianAdminOrganizationPolicyInternal it will be used here + Id plugin.TValue[string] + Type plugin.TValue[string] + Name plugin.TValue[string] + PolicyType plugin.TValue[string] + Status plugin.TValue[string] +} + +// createAtlassianAdminOrganizationPolicy creates a new instance of this resource +func createAtlassianAdminOrganizationPolicy(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAtlassianAdminOrganizationPolicy{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("atlassian.admin.organization.policy", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAtlassianAdminOrganizationPolicy) MqlName() string { + return "atlassian.admin.organization.policy" +} + +func (c *mqlAtlassianAdminOrganizationPolicy) MqlID() string { + return c.__id +} + +func (c *mqlAtlassianAdminOrganizationPolicy) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAtlassianAdminOrganizationPolicy) GetType() *plugin.TValue[string] { + return &c.Type +} + +func (c *mqlAtlassianAdminOrganizationPolicy) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAtlassianAdminOrganizationPolicy) GetPolicyType() *plugin.TValue[string] { + return &c.PolicyType +} + +func (c *mqlAtlassianAdminOrganizationPolicy) GetStatus() *plugin.TValue[string] { + return &c.Status +} + +// mqlAtlassianAdminOrganizationDomain for the atlassian.admin.organization.domain resource +type mqlAtlassianAdminOrganizationDomain struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAtlassianAdminOrganizationDomainInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Type plugin.TValue[string] +} + +// createAtlassianAdminOrganizationDomain creates a new instance of this resource +func createAtlassianAdminOrganizationDomain(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAtlassianAdminOrganizationDomain{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + // to override __id implement: id() (string, error) + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("atlassian.admin.organization.domain", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAtlassianAdminOrganizationDomain) MqlName() string { + return "atlassian.admin.organization.domain" +} + +func (c *mqlAtlassianAdminOrganizationDomain) MqlID() string { + return c.__id +} + +func (c *mqlAtlassianAdminOrganizationDomain) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAtlassianAdminOrganizationDomain) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAtlassianAdminOrganizationDomain) GetType() *plugin.TValue[string] { + return &c.Type +} + +// mqlAtlassianJira for the atlassian.jira resource +type mqlAtlassianJira struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAtlassianJiraInternal it will be used here + Users plugin.TValue[[]interface{}] + Projects plugin.TValue[[]interface{}] + Issues plugin.TValue[[]interface{}] + Groups plugin.TValue[[]interface{}] + ServerInfos plugin.TValue[*mqlAtlassianJiraServerInfo] +} + +// createAtlassianJira creates a new instance of this resource +func createAtlassianJira(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAtlassianJira{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("atlassian.jira", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAtlassianJira) MqlName() string { + return "atlassian.jira" +} + +func (c *mqlAtlassianJira) MqlID() string { + return c.__id +} + +func (c *mqlAtlassianJira) GetUsers() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.Users, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("atlassian.jira", c.__id, "users") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.users() + }) +} + +func (c *mqlAtlassianJira) GetProjects() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.Projects, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("atlassian.jira", c.__id, "projects") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.projects() + }) +} + +func (c *mqlAtlassianJira) GetIssues() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.Issues, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("atlassian.jira", c.__id, "issues") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.issues() + }) +} + +func (c *mqlAtlassianJira) GetGroups() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.Groups, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("atlassian.jira", c.__id, "groups") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.groups() + }) +} + +func (c *mqlAtlassianJira) GetServerInfos() *plugin.TValue[*mqlAtlassianJiraServerInfo] { + return plugin.GetOrCompute[*mqlAtlassianJiraServerInfo](&c.ServerInfos, func() (*mqlAtlassianJiraServerInfo, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("atlassian.jira", c.__id, "serverInfos") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.(*mqlAtlassianJiraServerInfo), nil + } + } + + return c.serverInfos() + }) +} + +// mqlAtlassianJiraIssue for the atlassian.jira.issue resource +type mqlAtlassianJiraIssue struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAtlassianJiraIssueInternal it will be used here + Id plugin.TValue[string] + Project plugin.TValue[string] + Status plugin.TValue[string] + Description plugin.TValue[string] +} + +// createAtlassianJiraIssue creates a new instance of this resource +func createAtlassianJiraIssue(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAtlassianJiraIssue{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("atlassian.jira.issue", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAtlassianJiraIssue) MqlName() string { + return "atlassian.jira.issue" +} + +func (c *mqlAtlassianJiraIssue) MqlID() string { + return c.__id +} + +func (c *mqlAtlassianJiraIssue) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAtlassianJiraIssue) GetProject() *plugin.TValue[string] { + return &c.Project +} + +func (c *mqlAtlassianJiraIssue) GetStatus() *plugin.TValue[string] { + return &c.Status +} + +func (c *mqlAtlassianJiraIssue) GetDescription() *plugin.TValue[string] { + return &c.Description +} + +// mqlAtlassianJiraServerInfo for the atlassian.jira.serverInfo resource +type mqlAtlassianJiraServerInfo struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAtlassianJiraServerInfoInternal it will be used here + BaseUrl plugin.TValue[string] + BuildNumber plugin.TValue[int64] + ServerTitle plugin.TValue[string] + DeploymentType plugin.TValue[string] +} + +// createAtlassianJiraServerInfo creates a new instance of this resource +func createAtlassianJiraServerInfo(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAtlassianJiraServerInfo{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + // to override __id implement: id() (string, error) + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("atlassian.jira.serverInfo", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAtlassianJiraServerInfo) MqlName() string { + return "atlassian.jira.serverInfo" +} + +func (c *mqlAtlassianJiraServerInfo) MqlID() string { + return c.__id +} + +func (c *mqlAtlassianJiraServerInfo) GetBaseUrl() *plugin.TValue[string] { + return &c.BaseUrl +} + +func (c *mqlAtlassianJiraServerInfo) GetBuildNumber() *plugin.TValue[int64] { + return &c.BuildNumber +} + +func (c *mqlAtlassianJiraServerInfo) GetServerTitle() *plugin.TValue[string] { + return &c.ServerTitle +} + +func (c *mqlAtlassianJiraServerInfo) GetDeploymentType() *plugin.TValue[string] { + return &c.DeploymentType +} + +// mqlAtlassianJiraUser for the atlassian.jira.user resource +type mqlAtlassianJiraUser struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAtlassianJiraUserInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Type plugin.TValue[string] + Picture plugin.TValue[string] + Groups plugin.TValue[[]interface{}] + ApplicationRoles plugin.TValue[[]interface{}] +} + +// createAtlassianJiraUser creates a new instance of this resource +func createAtlassianJiraUser(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAtlassianJiraUser{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("atlassian.jira.user", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAtlassianJiraUser) MqlName() string { + return "atlassian.jira.user" +} + +func (c *mqlAtlassianJiraUser) MqlID() string { + return c.__id +} + +func (c *mqlAtlassianJiraUser) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAtlassianJiraUser) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAtlassianJiraUser) GetType() *plugin.TValue[string] { + return &c.Type +} + +func (c *mqlAtlassianJiraUser) GetPicture() *plugin.TValue[string] { + return &c.Picture +} + +func (c *mqlAtlassianJiraUser) GetGroups() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.Groups, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("atlassian.jira.user", c.__id, "groups") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.groups() + }) +} + +func (c *mqlAtlassianJiraUser) GetApplicationRoles() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.ApplicationRoles, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("atlassian.jira.user", c.__id, "applicationRoles") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.applicationRoles() + }) +} + +// mqlAtlassianJiraApplicationRole for the atlassian.jira.applicationRole resource +type mqlAtlassianJiraApplicationRole struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAtlassianJiraApplicationRoleInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] +} + +// createAtlassianJiraApplicationRole creates a new instance of this resource +func createAtlassianJiraApplicationRole(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAtlassianJiraApplicationRole{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + // to override __id implement: id() (string, error) + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("atlassian.jira.applicationRole", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAtlassianJiraApplicationRole) MqlName() string { + return "atlassian.jira.applicationRole" +} + +func (c *mqlAtlassianJiraApplicationRole) MqlID() string { + return c.__id +} + +func (c *mqlAtlassianJiraApplicationRole) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAtlassianJiraApplicationRole) GetName() *plugin.TValue[string] { + return &c.Name +} + +// mqlAtlassianJiraProject for the atlassian.jira.project resource +type mqlAtlassianJiraProject struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAtlassianJiraProjectInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Uuid plugin.TValue[string] + Key plugin.TValue[string] + Url plugin.TValue[string] + Email plugin.TValue[string] + Private plugin.TValue[bool] + Deleted plugin.TValue[bool] + Archived plugin.TValue[bool] + Properties plugin.TValue[[]interface{}] +} + +// createAtlassianJiraProject creates a new instance of this resource +func createAtlassianJiraProject(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAtlassianJiraProject{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("atlassian.jira.project", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAtlassianJiraProject) MqlName() string { + return "atlassian.jira.project" +} + +func (c *mqlAtlassianJiraProject) MqlID() string { + return c.__id +} + +func (c *mqlAtlassianJiraProject) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAtlassianJiraProject) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAtlassianJiraProject) GetUuid() *plugin.TValue[string] { + return &c.Uuid +} + +func (c *mqlAtlassianJiraProject) GetKey() *plugin.TValue[string] { + return &c.Key +} + +func (c *mqlAtlassianJiraProject) GetUrl() *plugin.TValue[string] { + return &c.Url +} + +func (c *mqlAtlassianJiraProject) GetEmail() *plugin.TValue[string] { + return &c.Email +} + +func (c *mqlAtlassianJiraProject) GetPrivate() *plugin.TValue[bool] { + return &c.Private +} + +func (c *mqlAtlassianJiraProject) GetDeleted() *plugin.TValue[bool] { + return &c.Deleted +} + +func (c *mqlAtlassianJiraProject) GetArchived() *plugin.TValue[bool] { + return &c.Archived +} + +func (c *mqlAtlassianJiraProject) GetProperties() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.Properties, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("atlassian.jira.project", c.__id, "properties") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.properties() + }) +} + +// mqlAtlassianJiraProjectProperty for the atlassian.jira.project.property resource +type mqlAtlassianJiraProjectProperty struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAtlassianJiraProjectPropertyInternal it will be used here + Id plugin.TValue[string] +} + +// createAtlassianJiraProjectProperty creates a new instance of this resource +func createAtlassianJiraProjectProperty(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAtlassianJiraProjectProperty{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("atlassian.jira.project.property", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAtlassianJiraProjectProperty) MqlName() string { + return "atlassian.jira.project.property" +} + +func (c *mqlAtlassianJiraProjectProperty) MqlID() string { + return c.__id +} + +func (c *mqlAtlassianJiraProjectProperty) GetId() *plugin.TValue[string] { + return &c.Id +} + +// mqlAtlassianJiraGroup for the atlassian.jira.group resource +type mqlAtlassianJiraGroup struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAtlassianJiraGroupInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] +} + +// createAtlassianJiraGroup creates a new instance of this resource +func createAtlassianJiraGroup(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAtlassianJiraGroup{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("atlassian.jira.group", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAtlassianJiraGroup) MqlName() string { + return "atlassian.jira.group" +} + +func (c *mqlAtlassianJiraGroup) MqlID() string { + return c.__id +} + +func (c *mqlAtlassianJiraGroup) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAtlassianJiraGroup) GetName() *plugin.TValue[string] { + return &c.Name +} + +// mqlAtlassianConfluence for the atlassian.confluence resource +type mqlAtlassianConfluence struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAtlassianConfluenceInternal it will be used here + Users plugin.TValue[[]interface{}] +} + +// createAtlassianConfluence creates a new instance of this resource +func createAtlassianConfluence(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAtlassianConfluence{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("atlassian.confluence", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAtlassianConfluence) MqlName() string { + return "atlassian.confluence" +} + +func (c *mqlAtlassianConfluence) MqlID() string { + return c.__id +} + +func (c *mqlAtlassianConfluence) GetUsers() *plugin.TValue[[]interface{}] { + return plugin.GetOrCompute[[]interface{}](&c.Users, func() ([]interface{}, error) { + if c.MqlRuntime.HasRecording { + d, err := c.MqlRuntime.FieldResourceFromRecording("atlassian.confluence", c.__id, "users") + if err != nil { + return nil, err + } + if d != nil { + return d.Value.([]interface{}), nil + } + } + + return c.users() + }) +} + +// mqlAtlassianConfluenceUser for the atlassian.confluence.user resource +type mqlAtlassianConfluenceUser struct { + MqlRuntime *plugin.Runtime + __id string + // optional: if you define mqlAtlassianConfluenceUserInternal it will be used here + Id plugin.TValue[string] + Name plugin.TValue[string] + Type plugin.TValue[string] +} + +// createAtlassianConfluenceUser creates a new instance of this resource +func createAtlassianConfluenceUser(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin.Resource, error) { + res := &mqlAtlassianConfluenceUser{ + MqlRuntime: runtime, + } + + err := SetAllData(res, args) + if err != nil { + return res, err + } + + if res.__id == "" { + res.__id, err = res.id() + if err != nil { + return nil, err + } + } + + if runtime.HasRecording { + args, err = runtime.ResourceFromRecording("atlassian.confluence.user", res.__id) + if err != nil || args == nil { + return res, err + } + return res, SetAllData(res, args) + } + + return res, nil +} + +func (c *mqlAtlassianConfluenceUser) MqlName() string { + return "atlassian.confluence.user" +} + +func (c *mqlAtlassianConfluenceUser) MqlID() string { + return c.__id +} + +func (c *mqlAtlassianConfluenceUser) GetId() *plugin.TValue[string] { + return &c.Id +} + +func (c *mqlAtlassianConfluenceUser) GetName() *plugin.TValue[string] { + return &c.Name +} + +func (c *mqlAtlassianConfluenceUser) GetType() *plugin.TValue[string] { + return &c.Type +} diff --git a/providers/atlassian/resources/atlassian.lr.manifest.yaml b/providers/atlassian/resources/atlassian.lr.manifest.yaml new file mode 100644 index 0000000000..ba956db40d --- /dev/null +++ b/providers/atlassian/resources/atlassian.lr.manifest.yaml @@ -0,0 +1,232 @@ +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + +resources: + atlassian: + docs: + desc: | + The `atlassian` can be used to assess the configuration of atlassian accounts. + fields: {} + min_mondoo_version: latest + atlassian.admin: + fields: + organizations: {} + min_mondoo_version: latest + atlassian.admin.organization: + fields: + domains: {} + events: {} + id: {} + managedUsers: {} + name: {} + policies: {} + scim: {} + type: {} + users: {} + min_mondoo_version: latest + atlassian.admin.organization.domain: + fields: + id: {} + name: {} + type: {} + min_mondoo_version: latest + atlassian.admin.organization.event: + fields: + id: {} + min_mondoo_version: latest + atlassian.admin.organization.managedUsers: + fields: + email: {} + id: {} + lastActive: {} + name: {} + type: {} + min_mondoo_version: latest + atlassian.admin.organization.policy: + fields: + id: {} + name: {} + policyType: {} + status: {} + type: {} + min_mondoo_version: latest + atlassian.admin.organization.scim: + fields: + groups: {} + users: {} + min_mondoo_version: latest + atlassian.admin.organization.scim.group: + fields: + id: {} + min_mondoo_version: latest + atlassian.admin.organization.scim.user: + fields: + id: {} + min_mondoo_version: latest + atlassian.admin.organization.user: + fields: + accessBillable: {} + email: {} + id: {} + lastActive: {} + name: {} + orgId: {} + picture: {} + status: {} + type: {} + min_mondoo_version: latest + atlassian.admin.organization.user.lastActive: + fields: + id: {} + key: {} + lastActive: {} + url: {} + min_mondoo_version: latest + atlassian.admin.user: + fields: + accessBillable: {} + email: {} + id: {} + lastActive: {} + name: {} + picture: {} + productAccess: {} + status: {} + type: {} + min_mondoo_version: latest + atlassian.admin.user.products: + fields: {} + min_mondoo_version: latest + atlassian.confluence: + fields: + users: {} + min_mondoo_version: latest + atlassian.confluence.user: + fields: + id: {} + name: {} + picture: {} + type: {} + min_mondoo_version: latest + atlassian.jira: + fields: + groups: {} + issues: {} + projects: {} + serverInfo: {} + serverInfos: {} + serverinfo: {} + users: {} + min_mondoo_version: latest + atlassian.jira.applicationRole: + fields: + id: {} + name: {} + min_mondoo_version: latest + atlassian.jira.applicatonRole: + fields: + id: {} + name: {} + min_mondoo_version: latest + atlassian.jira.group: + fields: + id: {} + name: {} + min_mondoo_version: latest + atlassian.jira.groups: + fields: + id: {} + min_mondoo_version: latest + atlassian.jira.issue: + fields: + description: {} + id: {} + project: {} + status: {} + min_mondoo_version: latest + atlassian.jira.project: + fields: + archived: {} + deleted: {} + email: {} + id: {} + key: {} + name: {} + private: {} + properties: {} + url: {} + uuid: {} + min_mondoo_version: latest + atlassian.jira.project.property: + fields: + id: {} + min_mondoo_version: latest + atlassian.jira.serverInfo: + fields: + baseUrl: {} + buildNumber: {} + deploymentType: {} + serverTitle: {} + min_mondoo_version: latest + atlassian.jira.user: + fields: + applicationRoles: {} + applicatonRoles: {} + groups: {} + id: {} + name: {} + picture: {} + roles: {} + type: {} + min_mondoo_version: latest + atlassian.jira.user.group: + fields: + id: {} + min_mondoo_version: latest + atlassian.jira.user.groups: + fields: + id: {} + min_mondoo_version: latest + atlassian.jira.user.role: + fields: + id: {} + name: {} + min_mondoo_version: latest + atlassian.scim: + fields: + groups: {} + organizations: {} + users: {} + min_mondoo_version: latest + atlassian.scim.group: + fields: + id: {} + name: {} + min_mondoo_version: latest + atlassian.scim.organization: + fields: + id: {} + scim: {} + type: {} + min_mondoo_version: latest + atlassian.scim.organization.scim: + fields: + groups: {} + users: {} + min_mondoo_version: latest + atlassian.scim.organization.scim.group: + fields: + id: {} + min_mondoo_version: latest + atlassian.scim.organization.scim.user: + fields: + id: {} + min_mondoo_version: latest + atlassian.scim.user: + fields: + displayName: {} + id: {} + name: {} + organization: {} + title: {} + min_mondoo_version: latest diff --git a/providers/atlassian/resources/atlassian_admin.go b/providers/atlassian/resources/atlassian_admin.go new file mode 100644 index 0000000000..c5637df273 --- /dev/null +++ b/providers/atlassian/resources/atlassian_admin.go @@ -0,0 +1,132 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +package resources + +import ( + "context" + "errors" + + "go.mondoo.com/cnquery/v9/llx" + "go.mondoo.com/cnquery/v9/providers-sdk/v1/plugin" + "go.mondoo.com/cnquery/v9/providers/atlassian/connection/admin" +) + +func initAtlassianAdminOrganization(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) { + conn, ok := runtime.Connection.(*admin.AdminConnection) + if !ok { + return nil, nil, errors.New("Current connection does not allow admin access") + } + admin := conn.Client() + organization, _, err := admin.Organization.Gets(context.Background(), "") + if err != nil { + return nil, nil, err + } + + // We should only ever receive one organization that is scoped to the api key + // https://community.atlassian.com/t5/Atlassian-Access-questions/Can-we-access-multiple-organisations-using-one-API-Token/qaq-p/1541337 + if len(organization.Data) > 1 { + return nil, nil, errors.New("Unexpectedly received more than 1 organization") + } + org := organization.Data[0] + + args["id"] = llx.StringData(org.ID) + args["name"] = llx.StringData(org.Attributes.Name) + args["type"] = llx.StringData(org.Type) + + return args, nil, nil +} + +func (a *mqlAtlassianAdminOrganization) managedUsers() ([]interface{}, error) { + conn, ok := a.MqlRuntime.Connection.(*admin.AdminConnection) + if !ok { + return nil, errors.New("Current connection does not allow admin access") + } + + admin := conn.Client() + + managedUsers, _, err := admin.Organization.Users(context.Background(), a.Id.Data, "") + if err != nil { + return nil, err + } + res := []interface{}{} + for _, user := range managedUsers.Data { + mqlAtlassianAdminManagedUser, err := CreateResource(a.MqlRuntime, "atlassian.admin.organization.managedUser", + map[string]*llx.RawData{ + "id": llx.StringData(user.AccountID), + "name": llx.StringData(user.Name), + "type": llx.StringData(user.AccountType), + "email": llx.StringData(user.Email), + "lastActive": llx.StringData(user.LastActive), + }) + if err != nil { + return nil, err + } + res = append(res, mqlAtlassianAdminManagedUser) + } + return res, nil +} + +func (a *mqlAtlassianAdminOrganization) policies() ([]interface{}, error) { + conn, ok := a.MqlRuntime.Connection.(*admin.AdminConnection) + if !ok { + return nil, errors.New("Current connection does not allow admin access") + } + admin := conn.Client() + orgId := a.Id.Data + policies, _, err := admin.Organization.Policy.Gets(context.Background(), orgId, "", "") + if err != nil { + return nil, err + } + res := []interface{}{} + for _, policy := range policies.Data { + mqlAtlassianAdminPolicy, err := CreateResource(a.MqlRuntime, "atlassian.admin.organization.policy", + map[string]*llx.RawData{ + "id": llx.StringData(policy.ID), + "type": llx.StringData(policy.Type), + "name": llx.StringData(policy.Attributes.Name), + "status": llx.StringData(policy.Attributes.Status), + "policyType": llx.StringData(policy.Attributes.Type), + }) + if err != nil { + return nil, err + } + res = append(res, mqlAtlassianAdminPolicy) + } + return res, nil +} + +func (a *mqlAtlassianAdminOrganization) domains() ([]interface{}, error) { + conn, ok := a.MqlRuntime.Connection.(*admin.AdminConnection) + if !ok { + return nil, errors.New("Current connection does not allow admin access") + } + admin := conn.Client() + orgId := a.Id.Data + domains, _, err := admin.Organization.Domains(context.Background(), orgId, "") + if err != nil { + return nil, err + } + res := []interface{}{} + for _, domain := range domains.Data { + mqlAtlassianAdminDomain, err := CreateResource(a.MqlRuntime, "atlassian.admin.organization.domain", + map[string]*llx.RawData{ + "id": llx.StringData(domain.ID), + "name": llx.StringData(domain.Attributes.Name), + "type": llx.StringData(domain.Type), + }) + if err != nil { + return nil, err + } + res = append(res, mqlAtlassianAdminDomain) + } + return res, nil +} + +func (a *mqlAtlassianAdminOrganizationPolicy) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAtlassianAdminOrganization) id() (string, error) { + return a.Id.Data, nil +} diff --git a/providers/atlassian/resources/atlassian_confluence.go b/providers/atlassian/resources/atlassian_confluence.go new file mode 100644 index 0000000000..c39d8e08cc --- /dev/null +++ b/providers/atlassian/resources/atlassian_confluence.go @@ -0,0 +1,47 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +package resources + +import ( + "context" + "errors" + + "go.mondoo.com/cnquery/v9/llx" + "go.mondoo.com/cnquery/v9/providers/atlassian/connection/confluence" +) + +func (a *mqlAtlassianConfluence) id() (string, error) { + return "confluence", nil +} + +func (a *mqlAtlassianConfluence) users() ([]interface{}, error) { + conn, ok := a.MqlRuntime.Connection.(*confluence.ConfluenceConnection) + if !ok { + return nil, errors.New("Current connection does not allow confluence access") + } + confluence := conn.Client() + cql := "type = user" + users, _, err := confluence.Search.Users(context.Background(), cql, 0, 1000, nil) + if err != nil { + return nil, err + } + res := []interface{}{} + for _, user := range users.Results { + mqlAtlassianConfluenceUser, err := CreateResource(a.MqlRuntime, "atlassian.confluence.user", + map[string]*llx.RawData{ + "id": llx.StringData(user.User.AccountID), + "type": llx.StringData(user.User.AccountType), + "name": llx.StringData(user.User.DisplayName), + }) + if err != nil { + return nil, err + } + res = append(res, mqlAtlassianConfluenceUser) + } + return res, nil +} + +func (a *mqlAtlassianConfluenceUser) id() (string, error) { + return a.Id.Data, nil +} diff --git a/providers/atlassian/resources/atlassian_jira.go b/providers/atlassian/resources/atlassian_jira.go new file mode 100644 index 0000000000..f99e399609 --- /dev/null +++ b/providers/atlassian/resources/atlassian_jira.go @@ -0,0 +1,252 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +package resources + +import ( + "context" + "errors" + "fmt" + + "go.mondoo.com/cnquery/v9/llx" + "go.mondoo.com/cnquery/v9/providers/atlassian/connection/jira" +) + +func (a *mqlAtlassianJira) id() (string, error) { + return "jira", nil +} + +func (a *mqlAtlassianJira) users() ([]interface{}, error) { + conn, ok := a.MqlRuntime.Connection.(*jira.JiraConnection) + if !ok { + return nil, errors.New("Current connection does not allow jira access") + } + jira := conn.Client() + users, _, err := jira.User.Search.Do(context.Background(), "", " ", 0, 1000) + if err != nil { + return nil, err + } + res := []interface{}{} + for _, user := range users { + mqlAtlassianJiraUser, err := CreateResource(a.MqlRuntime, "atlassian.jira.user", + map[string]*llx.RawData{ + "id": llx.StringData(user.AccountID), + "name": llx.StringData(user.DisplayName), + "type": llx.StringData(user.AccountType), + "picture": llx.StringData(user.AvatarUrls.One6X16), + }) + if err != nil { + return nil, err + } + res = append(res, mqlAtlassianJiraUser) + } + return res, nil +} + +func (a *mqlAtlassianJiraUser) applicationRoles() ([]interface{}, error) { + conn, ok := a.MqlRuntime.Connection.(*jira.JiraConnection) + if !ok { + return nil, errors.New("Current connection does not allow jira access") + } + jira := conn.Client() + expands := []string{"groups", "applicationRoles"} + user, _, err := jira.User.Get(context.Background(), a.Id.Data, expands) + if err != nil { + return nil, err + } + roles := user.ApplicationRoles + + res := []interface{}{} + for _, role := range roles.Items { + mqlAtlassianJiraUserRole, err := CreateResource(a.MqlRuntime, "atlassian.jira.applicationRole", + map[string]*llx.RawData{ + "id": llx.StringData(role.Key), + "name": llx.StringData(role.Name), + }) + if err != nil { + return nil, err + } + res = append(res, mqlAtlassianJiraUserRole) + } + return res, nil +} + +func (a *mqlAtlassianJiraUser) groups() ([]interface{}, error) { + conn, ok := a.MqlRuntime.Connection.(*jira.JiraConnection) + if !ok { + return nil, errors.New("Current connection does not allow jira access") + } + jira := conn.Client() + groups, _, err := jira.Group.Bulk(context.Background(), nil, 0, 1000) + if err != nil { + return nil, err + } + res := []interface{}{} + for _, group := range groups.Values { + mqlAtlassianJiraUserGroup, err := CreateResource(a.MqlRuntime, "atlassian.jira.group", + map[string]*llx.RawData{ + "id": llx.StringData(group.GroupID), + "name": llx.StringData(group.Name), + }) + if err != nil { + return nil, err + } + res = append(res, mqlAtlassianJiraUserGroup) + } + return res, nil +} + +func (a *mqlAtlassianJira) groups() ([]interface{}, error) { + conn, ok := a.MqlRuntime.Connection.(*jira.JiraConnection) + if !ok { + return nil, errors.New("Current connection does not allow jira access") + } + jira := conn.Client() + groups, _, err := jira.Group.Bulk(context.Background(), nil, 0, 1000) + if err != nil { + return nil, err + } + res := []interface{}{} + for _, group := range groups.Values { + mqlAtlassianJiraUserGroup, err := CreateResource(a.MqlRuntime, "atlassian.jira.group", + map[string]*llx.RawData{ + "id": llx.StringData(group.GroupID), + "name": llx.StringData(group.Name), + }) + if err != nil { + return nil, err + } + res = append(res, mqlAtlassianJiraUserGroup) + } + return res, nil +} + +func (a *mqlAtlassianJira) serverInfos() (*mqlAtlassianJiraServerInfo, error) { + conn, ok := a.MqlRuntime.Connection.(*jira.JiraConnection) + if !ok { + return nil, errors.New("Current connection does not allow jira access") + } + jira := conn.Client() + info, _, err := jira.Server.Info(context.Background()) + if err != nil { + return nil, err + } + res, err := CreateResource(a.MqlRuntime, "atlassian.jira.serverInfo", + map[string]*llx.RawData{ + "baseUrl": llx.StringData(info.BaseURL), + "serverTitle": llx.StringData(info.ServerTitle), + "buildNumber": llx.IntData(int64(info.BuildNumber)), + "deploymentType": llx.StringData(info.DeploymentType), + }) + return res.(*mqlAtlassianJiraServerInfo), err +} + +func (a *mqlAtlassianJira) projects() ([]interface{}, error) { + conn, ok := a.MqlRuntime.Connection.(*jira.JiraConnection) + if !ok { + return nil, errors.New("Current connection does not allow jira access") + } + jira := conn.Client() + projects, _, err := jira.Project.Search(context.Background(), nil, 0, 1000) + if err != nil { + return nil, err + } + + res := []interface{}{} + for _, project := range projects.Values { + mqlAtlassianJiraProject, err := CreateResource(a.MqlRuntime, "atlassian.jira.project", + map[string]*llx.RawData{ + "id": llx.StringData(project.ID), + "name": llx.StringData(project.Name), + "uuid": llx.StringData(project.UUID), + "key": llx.StringData(project.Key), + "url": llx.StringData(project.URL), + "email": llx.StringData(project.Email), + "private": llx.BoolData(project.IsPrivate), + "deleted": llx.BoolData(project.Deleted), + "archived": llx.BoolData(project.Archived), + }) + if err != nil { + return nil, err + } + res = append(res, mqlAtlassianJiraProject) + } + return res, nil +} + +func (a *mqlAtlassianJira) issues() ([]interface{}, error) { + conn, ok := a.MqlRuntime.Connection.(*jira.JiraConnection) + if !ok { + return nil, errors.New("Current connection does not allow jira access") + } + jira := conn.Client() + validate := "" + jql := "order by created DESC" + fields := []string{"status", "project", "description"} + expands := []string{"changelog", "renderedFields", "names", "schema", "transitions", "operations", "editmeta"} + issues, _, err := jira.Issue.Search.Get(context.Background(), jql, fields, expands, 0, 1000, validate) + if err != nil { + return nil, err + } + res := []interface{}{} + for _, issue := range issues.Issues { + mqlAtlassianJiraIssue, err := CreateResource(a.MqlRuntime, "atlassian.jira.issue", + map[string]*llx.RawData{ + "id": llx.StringData(issue.ID), + "project": llx.StringData(issue.Fields.Project.Name), + "status": llx.StringData(issue.Fields.Status.Name), + "description": llx.StringData(issue.Fields.Description), + }) + if err != nil { + return nil, err + } + res = append(res, mqlAtlassianJiraIssue) + } + return res, nil +} + +func (a *mqlAtlassianJiraIssue) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAtlassianJiraProject) properties() ([]interface{}, error) { + conn, ok := a.MqlRuntime.Connection.(*jira.JiraConnection) + if !ok { + return nil, errors.New("Current connection does not allow jira access") + } + jira := conn.Client() + properties, _, err := jira.Project.Property.Gets(context.Background(), a.Id.Data) + if err != nil { + return nil, err + } + + res := []interface{}{} + for _, property := range properties.Keys { + fmt.Println(property.Key) + mqlAtlassianJiraProjectProperty, err := CreateResource(a.MqlRuntime, "atlassian.jira.project.property", + map[string]*llx.RawData{ + "id": llx.StringData(property.Key), + }) + if err != nil { + return nil, err + } + res = append(res, mqlAtlassianJiraProjectProperty) + } + return res, nil +} + +func (a *mqlAtlassianJiraProjectProperty) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAtlassianJiraUser) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAtlassianJiraGroup) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAtlassianJiraProject) id() (string, error) { + return a.Id.Data, nil +} diff --git a/providers/atlassian/resources/atlassian_scim.go b/providers/atlassian/resources/atlassian_scim.go new file mode 100644 index 0000000000..008ff69a03 --- /dev/null +++ b/providers/atlassian/resources/atlassian_scim.go @@ -0,0 +1,79 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +package resources + +import ( + "context" + "errors" + + "go.mondoo.com/cnquery/v9/llx" + "go.mondoo.com/cnquery/v9/providers/atlassian/connection/scim" +) + +func (a *mqlAtlassianScim) id() (string, error) { + return "scim", nil +} + +func (a *mqlAtlassianScim) users() ([]interface{}, error) { + conn, ok := a.MqlRuntime.Connection.(*scim.ScimConnection) + if !ok { + return nil, errors.New("Current connection does not allow scim access") + } + admin := conn.Client() + directoryID := conn.Directory() + scimUsers, _, err := admin.SCIM.User.Gets(context.Background(), directoryID, nil, 0, 1000) + if err != nil { + return nil, err + } + res := []interface{}{} + for _, scimUser := range scimUsers.Resources { + mqlAtlassianAdminSCIMuser, err := CreateResource(a.MqlRuntime, "atlassian.scim.organization.scim.user", + map[string]*llx.RawData{ + "id": llx.StringData(scimUser.ID), + "name": llx.StringData(scimUser.Name.Formatted), + "displayName": llx.StringData(scimUser.DisplayName), + "organization": llx.StringData(scimUser.Organization), + "title": llx.StringData(scimUser.Title), + }) + if err != nil { + return nil, err + } + res = append(res, mqlAtlassianAdminSCIMuser) + } + return res, nil +} + +func (a *mqlAtlassianScim) groups() ([]interface{}, error) { + conn, ok := a.MqlRuntime.Connection.(*scim.ScimConnection) + if !ok { + return nil, errors.New("Current connection does not allow scim access") + } + admin := conn.Client() + directoryID := conn.Directory() + scimGroup, _, err := admin.SCIM.Group.Gets(context.Background(), directoryID, "", 0, 1000) + if err != nil { + return nil, err + } + res := []interface{}{} + for _, scimGroup := range scimGroup.Resources { + mqlAtlassianAdminSCIMgroup, err := CreateResource(a.MqlRuntime, "atlassian.scim.organization.scim.group", + map[string]*llx.RawData{ + "id": llx.StringData(scimGroup.ID), + "name": llx.StringData(scimGroup.DisplayName), + }) + if err != nil { + return nil, err + } + res = append(res, mqlAtlassianAdminSCIMgroup) + } + return res, nil +} + +func (a *mqlAtlassianScimUser) id() (string, error) { + return a.Id.Data, nil +} + +func (a *mqlAtlassianScimGroup) id() (string, error) { + return a.Id.Data, nil +} diff --git a/providers/defaults.go b/providers/defaults.go index 7b8d6f96f0..cb35ff98c9 100644 --- a/providers/defaults.go +++ b/providers/defaults.go @@ -46,6 +46,24 @@ var DefaultProviders Providers = map[string]*Provider{ }, }, }, + "atlassian": { + Provider: &plugin.Provider{ + Name: "atlassian", + ConnectionTypes: []string{ + "atlassian", + "jira", + "admin", + "confluence", + "scim", + }, + Connectors: []plugin.Connector{ + { + Name: "atlassian", + Short: "atlassian cloud", + }, + }, + }, + }, "aws": { Provider: &plugin.Provider{ Name: "aws", diff --git a/providers/github/go.mod b/providers/github/go.mod index f2145e5a12..d9ff26113f 100644 --- a/providers/github/go.mod +++ b/providers/github/go.mod @@ -33,7 +33,7 @@ require ( github.com/OpenPeeDeeP/depguard/v2 v2.1.0 // indirect github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c // indirect github.com/StackExchange/wmi v1.2.1 // indirect - github.com/alecthomas/participle v0.7.1 // indirect + github.com/alecthomas/participle v0.3.0 // indirect github.com/alecthomas/participle/v2 v2.1.0 // indirect github.com/alexkohler/nakedret/v2 v2.0.2 // indirect github.com/alexkohler/prealloc v1.0.0 // indirect diff --git a/providers/github/go.sum b/providers/github/go.sum index 034b2fdce0..1fbe7827ed 100644 --- a/providers/github/go.sum +++ b/providers/github/go.sum @@ -70,11 +70,10 @@ github.com/StackExchange/wmi v1.2.1 h1:VIkavFPXSjcnS+O8yTq7NI32k0R5Aj+v39y29VYDO github.com/StackExchange/wmi v1.2.1/go.mod h1:rcmrprowKIVzvc+NUiLncP2uuArMWLCbu9SBzvHz7e8= github.com/alecthomas/assert/v2 v2.3.0 h1:mAsH2wmvjsuvyBvAmCtm7zFsBlb8mIHx5ySLVdDZXL0= github.com/alecthomas/assert/v2 v2.3.0/go.mod h1:pXcQ2Asjp247dahGEmsZ6ru0UVwnkhktn7S0bBDLxvQ= -github.com/alecthomas/participle v0.7.1 h1:2bN7reTw//5f0cugJcTOnY/NYZcWQOaajW+BwZB5xWs= -github.com/alecthomas/participle v0.7.1/go.mod h1:HfdmEuwvr12HXQN44HPWXR0lHmVolVYe4dyL6lQ3duY= +github.com/alecthomas/participle v0.3.0 h1:e8vhrYR1nDjzDxyDwpLO27TWOYWilaT+glkwbPadj50= +github.com/alecthomas/participle v0.3.0/go.mod h1:SW6HZGeZgSIpcUWX3fXpfZhuaWHnmoD5KCVaqSaNTkk= github.com/alecthomas/participle/v2 v2.1.0 h1:z7dElHRrOEEq45F2TG5cbQihMtNTv8vwldytDj7Wrz4= github.com/alecthomas/participle/v2 v2.1.0/go.mod h1:Y1+hAs8DHPmc3YUFzqllV+eSQ9ljPTk0ZkPMtEdAx2c= -github.com/alecthomas/repr v0.0.0-20181024024818-d37bc2a10ba1/go.mod h1:xTS7Pm1pD1mvyM075QCDSRqH6qRLXylzS24ZTpRiSzQ= github.com/alecthomas/repr v0.2.0 h1:HAzS41CIzNW5syS8Mf9UwXhNH1J9aix/BvDRf1Ml2Yk= github.com/alecthomas/repr v0.2.0/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= diff --git a/providers/google-workspace/go.mod b/providers/google-workspace/go.mod index 41ea8e06f3..291f5536b8 100644 --- a/providers/google-workspace/go.mod +++ b/providers/google-workspace/go.mod @@ -36,7 +36,7 @@ require ( github.com/OpenPeeDeeP/depguard/v2 v2.1.0 // indirect github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c // indirect github.com/StackExchange/wmi v1.2.1 // indirect - github.com/alecthomas/participle v0.7.1 // indirect + github.com/alecthomas/participle v0.3.0 // indirect github.com/alecthomas/participle/v2 v2.1.0 // indirect github.com/alexkohler/nakedret/v2 v2.0.2 // indirect github.com/alexkohler/prealloc v1.0.0 // indirect diff --git a/providers/google-workspace/go.sum b/providers/google-workspace/go.sum index df40f95dc4..4ad2eef485 100644 --- a/providers/google-workspace/go.sum +++ b/providers/google-workspace/go.sum @@ -74,11 +74,10 @@ github.com/StackExchange/wmi v1.2.1 h1:VIkavFPXSjcnS+O8yTq7NI32k0R5Aj+v39y29VYDO github.com/StackExchange/wmi v1.2.1/go.mod h1:rcmrprowKIVzvc+NUiLncP2uuArMWLCbu9SBzvHz7e8= github.com/alecthomas/assert/v2 v2.3.0 h1:mAsH2wmvjsuvyBvAmCtm7zFsBlb8mIHx5ySLVdDZXL0= github.com/alecthomas/assert/v2 v2.3.0/go.mod h1:pXcQ2Asjp247dahGEmsZ6ru0UVwnkhktn7S0bBDLxvQ= -github.com/alecthomas/participle v0.7.1 h1:2bN7reTw//5f0cugJcTOnY/NYZcWQOaajW+BwZB5xWs= -github.com/alecthomas/participle v0.7.1/go.mod h1:HfdmEuwvr12HXQN44HPWXR0lHmVolVYe4dyL6lQ3duY= +github.com/alecthomas/participle v0.3.0 h1:e8vhrYR1nDjzDxyDwpLO27TWOYWilaT+glkwbPadj50= +github.com/alecthomas/participle v0.3.0/go.mod h1:SW6HZGeZgSIpcUWX3fXpfZhuaWHnmoD5KCVaqSaNTkk= github.com/alecthomas/participle/v2 v2.1.0 h1:z7dElHRrOEEq45F2TG5cbQihMtNTv8vwldytDj7Wrz4= github.com/alecthomas/participle/v2 v2.1.0/go.mod h1:Y1+hAs8DHPmc3YUFzqllV+eSQ9ljPTk0ZkPMtEdAx2c= -github.com/alecthomas/repr v0.0.0-20181024024818-d37bc2a10ba1/go.mod h1:xTS7Pm1pD1mvyM075QCDSRqH6qRLXylzS24ZTpRiSzQ= github.com/alecthomas/repr v0.2.0 h1:HAzS41CIzNW5syS8Mf9UwXhNH1J9aix/BvDRf1Ml2Yk= github.com/alecthomas/repr v0.2.0/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=