From 459a0f03c092d5963ba9fa74c690df5760f8f210 Mon Sep 17 00:00:00 2001 From: Colin Douglas Date: Mon, 27 Nov 2023 10:20:51 -0800 Subject: [PATCH] remove pkg directory and update refs Signed-off-by: Colin Douglas --- {pkg/auth => auth}/aws/e2e_test.go | 0 {pkg/auth => auth}/aws/generate.go | 0 {pkg/auth => auth}/aws/verify.go | 0 {pkg/auth => auth}/aws/verify_options.go | 0 {pkg/auth => auth}/context.go | 0 {pkg/auth => auth}/file.go | 0 {pkg/auth => auth}/login/html.go | 0 {pkg/auth => auth}/login/login.go | 0 {pkg/auth => auth}/login/options.go | 2 +- {pkg/auth => auth}/login/options_test.go | 2 +- {pkg/auth => auth}/login/orgcheck.go | 0 {pkg/auth => auth}/login/orgcheck_test.go | 0 {pkg/auth => auth}/login/server.go | 0 {pkg/auth => auth}/login/server_test.go | 0 {pkg/auth => auth}/oidc.go | 0 {pkg/auth => auth}/token.go | 0 {pkg/auth => auth}/token/token.go | 2 +- {pkg/auth => auth}/token/token_test.go | 0 {pkg/civil => civil}/civil.go | 0 {pkg/civil => civil}/civil_test.go | 0 {pkg/events => events}/admission/admission.go | 0 {pkg/events => events}/admission/namespace.go | 2 +- {pkg/events => events}/extensions.go | 0 {pkg/events => events}/occurrence.go | 0 {pkg/events => events}/policy/policy.go | 0 {pkg/events => events}/receiver/receiver.go | 0 {pkg/events => events}/registry/registry.go | 2 +- {pkg/policy => policy}/parse.go | 0 {pkg/policy => policy}/parse_test.go | 0 {pkg/policy => policy}/validate.go | 0 {pkg/policy => policy}/validate_test.go | 0 proto/platform/advisory/v1/clients.go | 2 +- proto/platform/auth/v1/auth.platform.event.go | 4 ++-- .../platform/events/v1/identities.platform.event.go | 4 ++-- .../events/v1/subscriptions.platform.event.go | 12 ++++++------ .../iam/v1/account_associations.platform.event.go | 10 +++++----- proto/platform/iam/v1/clients.go | 2 +- proto/platform/iam/v1/group.platform.event.go | 10 +++++----- .../platform/iam/v1/group_invites.platform.event.go | 12 ++++++------ proto/platform/iam/v1/identity.platform.event.go | 10 +++++----- .../iam/v1/identity_providers.platform.event.go | 10 +++++----- proto/platform/iam/v1/policies.platform.event.go | 12 ++++++------ proto/platform/iam/v1/role.platform.event.go | 6 +++--- proto/platform/iam/v1/role_binding.platform.event.go | 10 +++++----- proto/platform/oidc/v1/clients.go | 2 +- proto/platform/registry/v1/clients.go | 2 +- proto/platform/tenant/v1/clients.go | 2 +- proto/platform/tenant/v1/cluster.platform.event.go | 12 ++++++------ {pkg/sts => sts}/sts.go | 0 {pkg/sts => sts}/sts_test.go | 0 {pkg/sts => sts}/tokensource.go | 0 {pkg/uidp => uidp}/ancestry.go | 0 {pkg/uidp => uidp}/ancestry_test.go | 0 {pkg/uidp => uidp}/doc.go | 0 {pkg/uidp => uidp}/uid.go | 0 {pkg/uidp => uidp}/uid_test.go | 0 {pkg/validation => validation}/aws_account.go | 0 {pkg/validation => validation}/aws_account_test.go | 0 {pkg/validation => validation}/bundles.go | 0 {pkg/validation => validation}/bundles_test.go | 0 {pkg/validation => validation}/enforcer_options.go | 0 {pkg/validation => validation}/name.go | 0 {pkg/validation => validation}/name_test.go | 0 {pkg/validation => validation}/tag.go | 0 {pkg/validation => validation}/tag_test.go | 0 65 files changed, 66 insertions(+), 66 deletions(-) rename {pkg/auth => auth}/aws/e2e_test.go (100%) rename {pkg/auth => auth}/aws/generate.go (100%) rename {pkg/auth => auth}/aws/verify.go (100%) rename {pkg/auth => auth}/aws/verify_options.go (100%) rename {pkg/auth => auth}/context.go (100%) rename {pkg/auth => auth}/file.go (100%) rename {pkg/auth => auth}/login/html.go (100%) rename {pkg/auth => auth}/login/login.go (100%) rename {pkg/auth => auth}/login/options.go (99%) rename {pkg/auth => auth}/login/options_test.go (98%) rename {pkg/auth => auth}/login/orgcheck.go (100%) rename {pkg/auth => auth}/login/orgcheck_test.go (100%) rename {pkg/auth => auth}/login/server.go (100%) rename {pkg/auth => auth}/login/server_test.go (100%) rename {pkg/auth => auth}/oidc.go (100%) rename {pkg/auth => auth}/token.go (100%) rename {pkg/auth => auth}/token/token.go (99%) rename {pkg/auth => auth}/token/token_test.go (100%) rename {pkg/civil => civil}/civil.go (100%) rename {pkg/civil => civil}/civil_test.go (100%) rename {pkg/events => events}/admission/admission.go (100%) rename {pkg/events => events}/admission/namespace.go (98%) rename {pkg/events => events}/extensions.go (100%) rename {pkg/events => events}/occurrence.go (100%) rename {pkg/events => events}/policy/policy.go (100%) rename {pkg/events => events}/receiver/receiver.go (100%) rename {pkg/events => events}/registry/registry.go (98%) rename {pkg/policy => policy}/parse.go (100%) rename {pkg/policy => policy}/parse_test.go (100%) rename {pkg/policy => policy}/validate.go (100%) rename {pkg/policy => policy}/validate_test.go (100%) rename {pkg/sts => sts}/sts.go (100%) rename {pkg/sts => sts}/sts_test.go (100%) rename {pkg/sts => sts}/tokensource.go (100%) rename {pkg/uidp => uidp}/ancestry.go (100%) rename {pkg/uidp => uidp}/ancestry_test.go (100%) rename {pkg/uidp => uidp}/doc.go (100%) rename {pkg/uidp => uidp}/uid.go (100%) rename {pkg/uidp => uidp}/uid_test.go (100%) rename {pkg/validation => validation}/aws_account.go (100%) rename {pkg/validation => validation}/aws_account_test.go (100%) rename {pkg/validation => validation}/bundles.go (100%) rename {pkg/validation => validation}/bundles_test.go (100%) rename {pkg/validation => validation}/enforcer_options.go (100%) rename {pkg/validation => validation}/name.go (100%) rename {pkg/validation => validation}/name_test.go (100%) rename {pkg/validation => validation}/tag.go (100%) rename {pkg/validation => validation}/tag_test.go (100%) diff --git a/pkg/auth/aws/e2e_test.go b/auth/aws/e2e_test.go similarity index 100% rename from pkg/auth/aws/e2e_test.go rename to auth/aws/e2e_test.go diff --git a/pkg/auth/aws/generate.go b/auth/aws/generate.go similarity index 100% rename from pkg/auth/aws/generate.go rename to auth/aws/generate.go diff --git a/pkg/auth/aws/verify.go b/auth/aws/verify.go similarity index 100% rename from pkg/auth/aws/verify.go rename to auth/aws/verify.go diff --git a/pkg/auth/aws/verify_options.go b/auth/aws/verify_options.go similarity index 100% rename from pkg/auth/aws/verify_options.go rename to auth/aws/verify_options.go diff --git a/pkg/auth/context.go b/auth/context.go similarity index 100% rename from pkg/auth/context.go rename to auth/context.go diff --git a/pkg/auth/file.go b/auth/file.go similarity index 100% rename from pkg/auth/file.go rename to auth/file.go diff --git a/pkg/auth/login/html.go b/auth/login/html.go similarity index 100% rename from pkg/auth/login/html.go rename to auth/login/html.go diff --git a/pkg/auth/login/login.go b/auth/login/login.go similarity index 100% rename from pkg/auth/login/login.go rename to auth/login/login.go diff --git a/pkg/auth/login/options.go b/auth/login/options.go similarity index 99% rename from pkg/auth/login/options.go rename to auth/login/options.go index 5fb0f68..72a3350 100644 --- a/pkg/auth/login/options.go +++ b/auth/login/options.go @@ -9,7 +9,7 @@ import ( "errors" "fmt" - "chainguard.dev/sdk/pkg/uidp" + "chainguard.dev/sdk/uidp" ) type config struct { diff --git a/pkg/auth/login/options_test.go b/auth/login/options_test.go similarity index 98% rename from pkg/auth/login/options_test.go rename to auth/login/options_test.go index c773ae1..63c4671 100644 --- a/pkg/auth/login/options_test.go +++ b/auth/login/options_test.go @@ -9,7 +9,7 @@ import ( "net/http/httptest" "testing" - "chainguard.dev/sdk/pkg/uidp" + "chainguard.dev/sdk/uidp" "github.com/google/go-cmp/cmp" ) diff --git a/pkg/auth/login/orgcheck.go b/auth/login/orgcheck.go similarity index 100% rename from pkg/auth/login/orgcheck.go rename to auth/login/orgcheck.go diff --git a/pkg/auth/login/orgcheck_test.go b/auth/login/orgcheck_test.go similarity index 100% rename from pkg/auth/login/orgcheck_test.go rename to auth/login/orgcheck_test.go diff --git a/pkg/auth/login/server.go b/auth/login/server.go similarity index 100% rename from pkg/auth/login/server.go rename to auth/login/server.go diff --git a/pkg/auth/login/server_test.go b/auth/login/server_test.go similarity index 100% rename from pkg/auth/login/server_test.go rename to auth/login/server_test.go diff --git a/pkg/auth/oidc.go b/auth/oidc.go similarity index 100% rename from pkg/auth/oidc.go rename to auth/oidc.go diff --git a/pkg/auth/token.go b/auth/token.go similarity index 100% rename from pkg/auth/token.go rename to auth/token.go diff --git a/pkg/auth/token/token.go b/auth/token/token.go similarity index 99% rename from pkg/auth/token/token.go rename to auth/token/token.go index 740c27c..7c1d603 100644 --- a/pkg/auth/token/token.go +++ b/auth/token/token.go @@ -15,7 +15,7 @@ import ( "strings" "time" - "chainguard.dev/sdk/pkg/auth" + "chainguard.dev/sdk/auth" ) var ( diff --git a/pkg/auth/token/token_test.go b/auth/token/token_test.go similarity index 100% rename from pkg/auth/token/token_test.go rename to auth/token/token_test.go diff --git a/pkg/civil/civil.go b/civil/civil.go similarity index 100% rename from pkg/civil/civil.go rename to civil/civil.go diff --git a/pkg/civil/civil_test.go b/civil/civil_test.go similarity index 100% rename from pkg/civil/civil_test.go rename to civil/civil_test.go diff --git a/pkg/events/admission/admission.go b/events/admission/admission.go similarity index 100% rename from pkg/events/admission/admission.go rename to events/admission/admission.go diff --git a/pkg/events/admission/namespace.go b/events/admission/namespace.go similarity index 98% rename from pkg/events/admission/namespace.go rename to events/admission/namespace.go index 7f3c807..8e9f3eb 100644 --- a/pkg/events/admission/namespace.go +++ b/events/admission/namespace.go @@ -6,7 +6,7 @@ SPDX-License-Identifier: Apache-2.0 package admission import ( - "chainguard.dev/sdk/pkg/uidp" + "chainguard.dev/sdk/uidp" ) // NamespaceEventType is the cloudevents event type when a namespace's scope diff --git a/pkg/events/extensions.go b/events/extensions.go similarity index 100% rename from pkg/events/extensions.go rename to events/extensions.go diff --git a/pkg/events/occurrence.go b/events/occurrence.go similarity index 100% rename from pkg/events/occurrence.go rename to events/occurrence.go diff --git a/pkg/events/policy/policy.go b/events/policy/policy.go similarity index 100% rename from pkg/events/policy/policy.go rename to events/policy/policy.go diff --git a/pkg/events/receiver/receiver.go b/events/receiver/receiver.go similarity index 100% rename from pkg/events/receiver/receiver.go rename to events/receiver/receiver.go diff --git a/pkg/events/registry/registry.go b/events/registry/registry.go similarity index 98% rename from pkg/events/registry/registry.go rename to events/registry/registry.go index 17bc46b..dc338ac 100644 --- a/pkg/events/registry/registry.go +++ b/events/registry/registry.go @@ -5,7 +5,7 @@ SPDX-License-Identifier: Apache-2.0 package registry -import "chainguard.dev/sdk/pkg/civil" +import "chainguard.dev/sdk/civil" const ( // PulledEventType is the cloudevents event type for registry pulls diff --git a/pkg/policy/parse.go b/policy/parse.go similarity index 100% rename from pkg/policy/parse.go rename to policy/parse.go diff --git a/pkg/policy/parse_test.go b/policy/parse_test.go similarity index 100% rename from pkg/policy/parse_test.go rename to policy/parse_test.go diff --git a/pkg/policy/validate.go b/policy/validate.go similarity index 100% rename from pkg/policy/validate.go rename to policy/validate.go diff --git a/pkg/policy/validate_test.go b/policy/validate_test.go similarity index 100% rename from pkg/policy/validate_test.go rename to policy/validate_test.go diff --git a/proto/platform/advisory/v1/clients.go b/proto/platform/advisory/v1/clients.go index 80ee8cc..22cea30 100644 --- a/proto/platform/advisory/v1/clients.go +++ b/proto/platform/advisory/v1/clients.go @@ -15,7 +15,7 @@ import ( "google.golang.org/grpc" "knative.dev/pkg/logging" - "chainguard.dev/sdk/pkg/auth" + "chainguard.dev/sdk/auth" ) type Clients interface { diff --git a/proto/platform/auth/v1/auth.platform.event.go b/proto/platform/auth/v1/auth.platform.event.go index c1aba9b..c770ef4 100644 --- a/proto/platform/auth/v1/auth.platform.event.go +++ b/proto/platform/auth/v1/auth.platform.event.go @@ -5,7 +5,7 @@ SPDX-License-Identifier: Apache-2.0 package v1 -// CloudEventsExtension implements chainguard.dev/sdk/pkg/events/Extendable.CloudEventsExtension +// CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension func (x *Session) CloudEventsExtension(key string) (string, bool) { switch key { case "group": @@ -15,7 +15,7 @@ func (x *Session) CloudEventsExtension(key string) (string, bool) { } } -// CloudEventsSubject implements chainguard.dev/sdk/pkg/events/Eventable.CloudEventsSubject. +// CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject. func (x *Session) CloudEventsSubject() string { return "" } diff --git a/proto/platform/events/v1/identities.platform.event.go b/proto/platform/events/v1/identities.platform.event.go index 69272fe..3b45f45 100644 --- a/proto/platform/events/v1/identities.platform.event.go +++ b/proto/platform/events/v1/identities.platform.event.go @@ -5,12 +5,12 @@ SPDX-License-Identifier: Apache-2.0 package v1 -// CloudEventsExtension implements chainguard.dev/sdk/pkg/events/Extendable.CloudEventsExtension +// CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension func (x *IdentityMetadata) CloudEventsExtension(key string) (string, bool) { //nolint: revive return "", false } -// CloudEventsSubject implements chainguard.dev/sdk/pkg/events/Eventable.CloudEventsSubject. +// CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject. func (x *IdentityMetadata) CloudEventsSubject() string { return "" } diff --git a/proto/platform/events/v1/subscriptions.platform.event.go b/proto/platform/events/v1/subscriptions.platform.event.go index bb655d2..a2eda99 100644 --- a/proto/platform/events/v1/subscriptions.platform.event.go +++ b/proto/platform/events/v1/subscriptions.platform.event.go @@ -6,10 +6,10 @@ SPDX-License-Identifier: Apache-2.0 package v1 import ( - "chainguard.dev/sdk/pkg/uidp" + "chainguard.dev/sdk/uidp" ) -// CloudEventsExtension implements chainguard.dev/sdk/pkg/events/Extendable.CloudEventsExtension +// CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension func (x *Subscription) CloudEventsExtension(key string) (string, bool) { switch key { case "group": @@ -19,12 +19,12 @@ func (x *Subscription) CloudEventsExtension(key string) (string, bool) { } } -// CloudEventsSubject implements chainguard.dev/sdk/pkg/events/Eventable.CloudEventsSubject. +// CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject. func (x *Subscription) CloudEventsSubject() string { return x.GetId() } -// CloudEventsExtension implements chainguard.dev/sdk/pkg/events/Extendable.CloudEventsExtension +// CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension func (x *DeleteSubscriptionRequest) CloudEventsExtension(key string) (string, bool) { switch key { case "group": @@ -34,12 +34,12 @@ func (x *DeleteSubscriptionRequest) CloudEventsExtension(key string) (string, bo } } -// CloudEventsSubject implements chainguard.dev/sdk/pkg/events/Eventable.CloudEventsSubject. +// CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject. func (x *DeleteSubscriptionRequest) CloudEventsSubject() string { return x.GetId() } -// CloudEventsRedact implements chainguard.dev/sdk/pkg/events/Redactable.Redact. +// CloudEventsRedact implements chainguard.dev/sdk/events/Redactable.Redact. func (x *DeleteSubscriptionRequest) CloudEventsRedact() interface{} { return nil } diff --git a/proto/platform/iam/v1/account_associations.platform.event.go b/proto/platform/iam/v1/account_associations.platform.event.go index 3fdf5b0..c336f7e 100644 --- a/proto/platform/iam/v1/account_associations.platform.event.go +++ b/proto/platform/iam/v1/account_associations.platform.event.go @@ -5,7 +5,7 @@ SPDX-License-Identifier: Apache-2.0 package v1 -// CloudEventsExtension implements chainguard.dev/sdk/pkg/events/Extendable.CloudEventsExtension +// CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension func (x *AccountAssociations) CloudEventsExtension(key string) (string, bool) { switch key { case "group": @@ -15,12 +15,12 @@ func (x *AccountAssociations) CloudEventsExtension(key string) (string, bool) { } } -// CloudEventsSubject implements chainguard.dev/sdk/pkg/events/Eventable.CloudEventsSubject. +// CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject. func (x *AccountAssociations) CloudEventsSubject() string { return x.Group } -// CloudEventsExtension implements chainguard.dev/sdk/pkg/events/Extendable.CloudEventsExtension +// CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension func (x *DeleteAccountAssociationsRequest) CloudEventsExtension(key string) (string, bool) { switch key { case "group": @@ -30,12 +30,12 @@ func (x *DeleteAccountAssociationsRequest) CloudEventsExtension(key string) (str } } -// CloudEventsSubject implements chainguard.dev/sdk/pkg/events/Eventable.CloudEventsSubject. +// CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject. func (x *DeleteAccountAssociationsRequest) CloudEventsSubject() string { return x.Group } -// CloudEventsRedact implements chainguard.dev/sdk/pkg/events/Redactable.Redact. +// CloudEventsRedact implements chainguard.dev/sdk/events/Redactable.Redact. func (x *DeleteAccountAssociationsRequest) CloudEventsRedact() interface{} { return nil } diff --git a/proto/platform/iam/v1/clients.go b/proto/platform/iam/v1/clients.go index 3c39690..a27ab7c 100644 --- a/proto/platform/iam/v1/clients.go +++ b/proto/platform/iam/v1/clients.go @@ -15,7 +15,7 @@ import ( "google.golang.org/grpc" "knative.dev/pkg/logging" - "chainguard.dev/sdk/pkg/auth" + "chainguard.dev/sdk/auth" events "chainguard.dev/sdk/proto/platform/events/v1" ) diff --git a/proto/platform/iam/v1/group.platform.event.go b/proto/platform/iam/v1/group.platform.event.go index 25dff5e..fba1b29 100644 --- a/proto/platform/iam/v1/group.platform.event.go +++ b/proto/platform/iam/v1/group.platform.event.go @@ -5,9 +5,9 @@ SPDX-License-Identifier: Apache-2.0 package v1 -import "chainguard.dev/sdk/pkg/uidp" +import "chainguard.dev/sdk/uidp" -// CloudEventsExtension implements chainguard.dev/sdk/pkg/events/Extendable.CloudEventsExtension +// CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension func (x *Group) CloudEventsExtension(key string) (string, bool) { switch key { case "group": @@ -17,12 +17,12 @@ func (x *Group) CloudEventsExtension(key string) (string, bool) { } } -// CloudEventsSubject implements chainguard.dev/sdk/pkg/events/Eventable.CloudEventsSubject. +// CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject. func (x *Group) CloudEventsSubject() string { return x.GetId() } -// CloudEventsExtension implements chainguard.dev/sdk/pkg/events/Extendable.CloudEventsExtension +// CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension func (x *DeleteGroupRequest) CloudEventsExtension(key string) (string, bool) { switch key { case "group": @@ -32,7 +32,7 @@ func (x *DeleteGroupRequest) CloudEventsExtension(key string) (string, bool) { } } -// CloudEventsSubject implements chainguard.dev/sdk/pkg/events/Eventable.CloudEventsSubject. +// CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject. func (x *DeleteGroupRequest) CloudEventsSubject() string { return x.GetId() } diff --git a/proto/platform/iam/v1/group_invites.platform.event.go b/proto/platform/iam/v1/group_invites.platform.event.go index d734d1b..7526996 100644 --- a/proto/platform/iam/v1/group_invites.platform.event.go +++ b/proto/platform/iam/v1/group_invites.platform.event.go @@ -6,10 +6,10 @@ SPDX-License-Identifier: Apache-2.0 package v1 import ( - "chainguard.dev/sdk/pkg/uidp" + "chainguard.dev/sdk/uidp" ) -// CloudEventsExtension implements chainguard.dev/sdk/pkg/events/Extendable.CloudEventsExtension +// CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension func (x *GroupInvite) CloudEventsExtension(key string) (string, bool) { switch key { case "group": @@ -19,12 +19,12 @@ func (x *GroupInvite) CloudEventsExtension(key string) (string, bool) { } } -// CloudEventsSubject implements chainguard.dev/sdk/pkg/events/Eventable.CloudEventsSubject. +// CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject. func (x *GroupInvite) CloudEventsSubject() string { return x.GetId() } -// CloudEventsRedact implements chainguard.dev/sdk/pkg/events/Redactable.CloudEventsRedact. +// CloudEventsRedact implements chainguard.dev/sdk/events/Redactable.CloudEventsRedact. func (x *GroupInvite) CloudEventsRedact() interface{} { return &GroupInvite{ Id: x.Id, @@ -32,7 +32,7 @@ func (x *GroupInvite) CloudEventsRedact() interface{} { } } -// CloudEventsExtension implements chainguard.dev/sdk/pkg/events/Extendable.CloudEventsExtension +// CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension func (x *DeleteGroupInviteRequest) CloudEventsExtension(key string) (string, bool) { switch key { case "group": @@ -42,7 +42,7 @@ func (x *DeleteGroupInviteRequest) CloudEventsExtension(key string) (string, boo } } -// CloudEventsSubject implements chainguard.dev/sdk/pkg/events/Eventable.CloudEventsSubject. +// CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject. func (x *DeleteGroupInviteRequest) CloudEventsSubject() string { return x.GetId() } diff --git a/proto/platform/iam/v1/identity.platform.event.go b/proto/platform/iam/v1/identity.platform.event.go index cba779a..12152a4 100644 --- a/proto/platform/iam/v1/identity.platform.event.go +++ b/proto/platform/iam/v1/identity.platform.event.go @@ -6,10 +6,10 @@ SPDX-License-Identifier: Apache-2.0 package v1 import ( - "chainguard.dev/sdk/pkg/uidp" + "chainguard.dev/sdk/uidp" ) -// CloudEventsExtension implements chainguard.dev/sdk/pkg/events/Extendable.CloudEventsExtension +// CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension func (x *Identity) CloudEventsExtension(key string) (string, bool) { switch key { case "group": @@ -19,12 +19,12 @@ func (x *Identity) CloudEventsExtension(key string) (string, bool) { } } -// CloudEventsSubject implements chainguard.dev/sdk/pkg/events/Eventable.CloudEventsSubject. +// CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject. func (x *Identity) CloudEventsSubject() string { return x.GetId() } -// CloudEventsExtension implements chainguard.dev/sdk/pkg/events/Extendable.CloudEventsExtension +// CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension func (x *DeleteIdentityRequest) CloudEventsExtension(key string) (string, bool) { switch key { case "group": @@ -34,7 +34,7 @@ func (x *DeleteIdentityRequest) CloudEventsExtension(key string) (string, bool) } } -// CloudEventsSubject implements chainguard.dev/sdk/pkg/events/Eventable.CloudEventsSubject. +// CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject. func (x *DeleteIdentityRequest) CloudEventsSubject() string { return x.GetId() } diff --git a/proto/platform/iam/v1/identity_providers.platform.event.go b/proto/platform/iam/v1/identity_providers.platform.event.go index 6e8e899..c3a344e 100644 --- a/proto/platform/iam/v1/identity_providers.platform.event.go +++ b/proto/platform/iam/v1/identity_providers.platform.event.go @@ -6,10 +6,10 @@ SPDX-License-Identifier: Apache-2.0 package v1 import ( - "chainguard.dev/sdk/pkg/uidp" + "chainguard.dev/sdk/uidp" ) -// CloudEventsExtension implements chainguard.dev/sdk/pkg/events/Extendable.CloudEventsExtension +// CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension func (x *IdentityProvider) CloudEventsExtension(key string) (string, bool) { switch key { case "group": @@ -19,12 +19,12 @@ func (x *IdentityProvider) CloudEventsExtension(key string) (string, bool) { } } -// CloudEventsSubject implements chainguard.dev/sdk/pkg/events/Eventable.CloudEventsSubject. +// CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject. func (x *IdentityProvider) CloudEventsSubject() string { return x.GetId() } -// CloudEventsExtension implements chainguard.dev/sdk/pkg/events/Extendable.CloudEventsExtension +// CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension func (x *DeleteIdentityProviderRequest) CloudEventsExtension(key string) (string, bool) { switch key { case "group": @@ -34,7 +34,7 @@ func (x *DeleteIdentityProviderRequest) CloudEventsExtension(key string) (string } } -// CloudEventsSubject implements chainguard.dev/sdk/pkg/events/Eventable.CloudEventsSubject. +// CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject. func (x *DeleteIdentityProviderRequest) CloudEventsSubject() string { return x.GetId() } diff --git a/proto/platform/iam/v1/policies.platform.event.go b/proto/platform/iam/v1/policies.platform.event.go index 37902bc..b34d781 100644 --- a/proto/platform/iam/v1/policies.platform.event.go +++ b/proto/platform/iam/v1/policies.platform.event.go @@ -6,10 +6,10 @@ SPDX-License-Identifier: Apache-2.0 package v1 import ( - "chainguard.dev/sdk/pkg/uidp" + "chainguard.dev/sdk/uidp" ) -// CloudEventsExtension implements chainguard.dev/sdk/pkg/events/Extendable.CloudEventsExtension +// CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension func (x *Policy) CloudEventsExtension(key string) (string, bool) { switch key { case "group": @@ -19,12 +19,12 @@ func (x *Policy) CloudEventsExtension(key string) (string, bool) { } } -// CloudEventsSubject implements chainguard.dev/sdk/pkg/events/Eventable.CloudEventsSubject. +// CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject. func (x *Policy) CloudEventsSubject() string { return x.GetId() } -// CloudEventsExtension implements chainguard.dev/sdk/pkg/events/Extendable.CloudEventsExtension +// CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension func (x *DeletePolicyRequest) CloudEventsExtension(key string) (string, bool) { switch key { case "group": @@ -34,12 +34,12 @@ func (x *DeletePolicyRequest) CloudEventsExtension(key string) (string, bool) { } } -// CloudEventsSubject implements chainguard.dev/sdk/pkg/events/Eventable.CloudEventsSubject. +// CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject. func (x *DeletePolicyRequest) CloudEventsSubject() string { return x.GetId() } -// CloudEventsRedact implements chainguard.dev/sdk/pkg/events/Redactable.Redact. +// CloudEventsRedact implements chainguard.dev/sdk/events/Redactable.Redact. func (x *DeletePolicyRequest) CloudEventsRedact() interface{} { return nil } diff --git a/proto/platform/iam/v1/role.platform.event.go b/proto/platform/iam/v1/role.platform.event.go index 8369370..489e240 100644 --- a/proto/platform/iam/v1/role.platform.event.go +++ b/proto/platform/iam/v1/role.platform.event.go @@ -5,9 +5,9 @@ SPDX-License-Identifier: Apache-2.0 package v1 -import "chainguard.dev/sdk/pkg/uidp" +import "chainguard.dev/sdk/uidp" -// CloudEventsExtension implements chainguard.dev/sdk/pkg/events/Extendable.CloudEventsExtension +// CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension func (x *Role) CloudEventsExtension(key string) (string, bool) { switch key { case "group": @@ -17,7 +17,7 @@ func (x *Role) CloudEventsExtension(key string) (string, bool) { } } -// CloudEventsSubject implements chainguard.dev/sdk/pkg/events/Eventable.CloudEventsSubject. +// CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject. func (x *Role) CloudEventsSubject() string { return x.GetId() } diff --git a/proto/platform/iam/v1/role_binding.platform.event.go b/proto/platform/iam/v1/role_binding.platform.event.go index cafbac2..1e6eba5 100644 --- a/proto/platform/iam/v1/role_binding.platform.event.go +++ b/proto/platform/iam/v1/role_binding.platform.event.go @@ -5,9 +5,9 @@ SPDX-License-Identifier: Apache-2.0 package v1 -import "chainguard.dev/sdk/pkg/uidp" +import "chainguard.dev/sdk/uidp" -// CloudEventsExtension implements chainguard.dev/sdk/pkg/events/Extendable.CloudEventsExtension +// CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension func (x *RoleBinding) CloudEventsExtension(key string) (string, bool) { switch key { case "group": @@ -17,12 +17,12 @@ func (x *RoleBinding) CloudEventsExtension(key string) (string, bool) { } } -// CloudEventsSubject implements chainguard.dev/sdk/pkg/events/Eventable.CloudEventsSubject. +// CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject. func (x *RoleBinding) CloudEventsSubject() string { return x.GetId() } -// CloudEventsExtension implements chainguard.dev/sdk/pkg/events/Extendable.CloudEventsExtension +// CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension func (x *DeleteRoleBindingRequest) CloudEventsExtension(key string) (string, bool) { switch key { case "group": @@ -32,7 +32,7 @@ func (x *DeleteRoleBindingRequest) CloudEventsExtension(key string) (string, boo } } -// CloudEventsSubject implements chainguard.dev/sdk/pkg/events/Eventable.CloudEventsSubject. +// CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject. func (x *DeleteRoleBindingRequest) CloudEventsSubject() string { return x.GetId() } diff --git a/proto/platform/oidc/v1/clients.go b/proto/platform/oidc/v1/clients.go index 70b1248..81fbd95 100644 --- a/proto/platform/oidc/v1/clients.go +++ b/proto/platform/oidc/v1/clients.go @@ -15,7 +15,7 @@ import ( "google.golang.org/grpc" "knative.dev/pkg/logging" - "chainguard.dev/sdk/pkg/auth" + "chainguard.dev/sdk/auth" ) type Clients interface { diff --git a/proto/platform/registry/v1/clients.go b/proto/platform/registry/v1/clients.go index 9b94e06..c7f9e11 100644 --- a/proto/platform/registry/v1/clients.go +++ b/proto/platform/registry/v1/clients.go @@ -15,7 +15,7 @@ import ( "google.golang.org/grpc" "knative.dev/pkg/logging" - "chainguard.dev/sdk/pkg/auth" + "chainguard.dev/sdk/auth" ) type Clients interface { diff --git a/proto/platform/tenant/v1/clients.go b/proto/platform/tenant/v1/clients.go index 78ac017..61e5b70 100644 --- a/proto/platform/tenant/v1/clients.go +++ b/proto/platform/tenant/v1/clients.go @@ -15,7 +15,7 @@ import ( "google.golang.org/grpc" "knative.dev/pkg/logging" - "chainguard.dev/sdk/pkg/auth" + "chainguard.dev/sdk/auth" ) type Clients interface { diff --git a/proto/platform/tenant/v1/cluster.platform.event.go b/proto/platform/tenant/v1/cluster.platform.event.go index 6a46973..aeb567e 100644 --- a/proto/platform/tenant/v1/cluster.platform.event.go +++ b/proto/platform/tenant/v1/cluster.platform.event.go @@ -6,10 +6,10 @@ SPDX-License-Identifier: Apache-2.0 package v1 import ( - "chainguard.dev/sdk/pkg/uidp" + "chainguard.dev/sdk/uidp" ) -// CloudEventsExtension implements chainguard.dev/sdk/pkg/events/Extendable.CloudEventsExtension +// CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension func (x *Cluster) CloudEventsExtension(key string) (string, bool) { switch key { case "group": @@ -19,12 +19,12 @@ func (x *Cluster) CloudEventsExtension(key string) (string, bool) { } } -// CloudEventsSubject implements chainguard.dev/sdk/pkg/events/Eventable.CloudEventsSubject. +// CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject. func (x *Cluster) CloudEventsSubject() string { return x.GetId() } -// CloudEventsExtension implements chainguard.dev/sdk/pkg/events/Extendable.CloudEventsExtension +// CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension func (x *DeleteClusterRequest) CloudEventsExtension(key string) (string, bool) { switch key { case "group": @@ -34,12 +34,12 @@ func (x *DeleteClusterRequest) CloudEventsExtension(key string) (string, bool) { } } -// CloudEventsSubject implements chainguard.dev/sdk/pkg/events/Eventable.CloudEventsSubject. +// CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject. func (x *DeleteClusterRequest) CloudEventsSubject() string { return x.GetId() } -// CloudEventsRedact implements chainguard.dev/sdk/pkg/events/Redactable.Redact. +// CloudEventsRedact implements chainguard.dev/sdk/events/Redactable.Redact. func (x *DeleteClusterRequest) CloudEventsRedact() interface{} { return nil } diff --git a/pkg/sts/sts.go b/sts/sts.go similarity index 100% rename from pkg/sts/sts.go rename to sts/sts.go diff --git a/pkg/sts/sts_test.go b/sts/sts_test.go similarity index 100% rename from pkg/sts/sts_test.go rename to sts/sts_test.go diff --git a/pkg/sts/tokensource.go b/sts/tokensource.go similarity index 100% rename from pkg/sts/tokensource.go rename to sts/tokensource.go diff --git a/pkg/uidp/ancestry.go b/uidp/ancestry.go similarity index 100% rename from pkg/uidp/ancestry.go rename to uidp/ancestry.go diff --git a/pkg/uidp/ancestry_test.go b/uidp/ancestry_test.go similarity index 100% rename from pkg/uidp/ancestry_test.go rename to uidp/ancestry_test.go diff --git a/pkg/uidp/doc.go b/uidp/doc.go similarity index 100% rename from pkg/uidp/doc.go rename to uidp/doc.go diff --git a/pkg/uidp/uid.go b/uidp/uid.go similarity index 100% rename from pkg/uidp/uid.go rename to uidp/uid.go diff --git a/pkg/uidp/uid_test.go b/uidp/uid_test.go similarity index 100% rename from pkg/uidp/uid_test.go rename to uidp/uid_test.go diff --git a/pkg/validation/aws_account.go b/validation/aws_account.go similarity index 100% rename from pkg/validation/aws_account.go rename to validation/aws_account.go diff --git a/pkg/validation/aws_account_test.go b/validation/aws_account_test.go similarity index 100% rename from pkg/validation/aws_account_test.go rename to validation/aws_account_test.go diff --git a/pkg/validation/bundles.go b/validation/bundles.go similarity index 100% rename from pkg/validation/bundles.go rename to validation/bundles.go diff --git a/pkg/validation/bundles_test.go b/validation/bundles_test.go similarity index 100% rename from pkg/validation/bundles_test.go rename to validation/bundles_test.go diff --git a/pkg/validation/enforcer_options.go b/validation/enforcer_options.go similarity index 100% rename from pkg/validation/enforcer_options.go rename to validation/enforcer_options.go diff --git a/pkg/validation/name.go b/validation/name.go similarity index 100% rename from pkg/validation/name.go rename to validation/name.go diff --git a/pkg/validation/name_test.go b/validation/name_test.go similarity index 100% rename from pkg/validation/name_test.go rename to validation/name_test.go diff --git a/pkg/validation/tag.go b/validation/tag.go similarity index 100% rename from pkg/validation/tag.go rename to validation/tag.go diff --git a/pkg/validation/tag_test.go b/validation/tag_test.go similarity index 100% rename from pkg/validation/tag_test.go rename to validation/tag_test.go