Skip to content

Commit

Permalink
Fix lint comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Isabella Dix committed May 16, 2024
1 parent 2491d77 commit 2629c6e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ const (

// PathServiceAccountRoleIDExtractor is the golang path to ARNExtractor function
// in this package.
PathServiceAccountRoleIDExtractor = SelfPackagePath + ".ServiceAccountRoleIDExtractor()"
PathServiceAccountRoleIDExtractor = SelfPackagePath + ".ServiceAccountRoleIDExtractor()"
// PathAuthenticationFlowAliasExtractor is the golang path to ARNExtractor function
// in this package.
PathAuthenticationFlowAliasExtractor = SelfPackagePath + ".AuthenticationFlowAliasExtractor()"
)

// ServiceAccountRoleIDExtractor extract UserId from ServiceAccount Ref
func ServiceAccountRoleIDExtractor() reference.ExtractValueFn {
return func(mg xpresource.Managed) string {
paved, err := fieldpath.PaveObject(mg)
Expand All @@ -32,6 +35,7 @@ func ServiceAccountRoleIDExtractor() reference.ExtractValueFn {
}
}

// AuthenticationFlowAliasExtractor extract Alias from AuthenticationFlow Ref
func AuthenticationFlowAliasExtractor() reference.ExtractValueFn {
return func(mg xpresource.Managed) string {
paved, err := fieldpath.PaveObject(mg)
Expand Down

0 comments on commit 2629c6e

Please sign in to comment.