Skip to content

Commit

Permalink
Remove authorizer and directory subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
carabasdaniel committed Apr 11, 2024
1 parent d35f91c commit ef127ef
Show file tree
Hide file tree
Showing 24 changed files with 50 additions and 899 deletions.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ require (
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/moby/docker-image-spec v1.3.1 // indirect
github.com/moby/locker v1.0.1 // indirect
github.com/moby/moby v26.0.0+incompatible // indirect
github.com/moby/term v0.5.0 // indirect
github.com/morikuni/aec v1.0.0 // indirect
github.com/nats-io/jwt/v2 v2.5.5 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,8 @@ github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3N
github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo=
github.com/moby/locker v1.0.1 h1:fOXqR41zeveg4fFODix+1Ch4mj/gT0NE1XJbp/epuBg=
github.com/moby/locker v1.0.1/go.mod h1:S7SDdo5zpBK84bzzVlKr2V0hz+7x9hWbYC/kq7oQppc=
github.com/moby/moby v26.0.0+incompatible h1:2n9/cIWkxiEI1VsWgTGgXhxIWUbv42PyxEP9L+RReC0=
github.com/moby/moby v26.0.0+incompatible/go.mod h1:fDXVQ6+S340veQPv35CzDahGBmHsiclFwfEygB/TWMc=
github.com/moby/sys/mountinfo v0.6.2 h1:BzJjoreD5BMFNmD9Rus6gdd1pLuecOFPt8wC+Vygl78=
github.com/moby/sys/mountinfo v0.6.2/go.mod h1:IJb6JQeOklcdMU9F5xQ8ZALD+CUr5VlGpwtX+VE0rpI=
github.com/moby/term v0.5.0 h1:xt8Q1nalod/v7BqbG21f8mQPqH+xAaC9C3N3wfWbVP0=
Expand Down
1 change: 0 additions & 1 deletion pkg/app/edgedir.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
dsOpenAPI "github.com/aserto-dev/openapi-directory/publish/directory"
builder "github.com/aserto-dev/service-host"
"github.com/aserto-dev/topaz/pkg/rapidoc"
"github.com/samber/lo"

"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
"github.com/samber/lo"
Expand Down
9 changes: 9 additions & 0 deletions pkg/cli/clients/config.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package clients

type Config struct {
Host string `flag:"host" short:"H" env:"HOST" help:"directory service address"`
APIKey string `flag:"api-key" short:"k" env:"API_KEY" help:"directory API key"`
Token string `flag:"token" short:"t" env:"TOKEN" help:"JWT used for connection"`
Insecure bool `flag:"insecure" short:"i" env:"INSECURE" help:"skip TLS verification"`
TenantID string `flag:"tenant-id" help:"" env:"TENANT_ID" `
}
8 changes: 0 additions & 8 deletions pkg/cli/clients/directory_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ import (
"google.golang.org/grpc/credentials/insecure"
)

type Config struct {
Host string `flag:"host" short:"H" env:"HOST" help:"directory service address"`
APIKey string `flag:"api-key" short:"k" env:"API_KEY" help:"directory API key"`
Token string `flag:"token" short:"t" env:"TOKEN" help:"JWT used for connection"`
Insecure bool `flag:"insecure" short:"i" env:"INSECURE" help:"skip TLS verification"`
TenantID string `flag:"tenant-id" help:"" env:"TENANT_ID" `
}

func NewDirectoryClient(c *cc.CommonCtx, cfg *Config) (*dsc.Client, error) {

if cfg.Host == "" {
Expand Down
9 changes: 0 additions & 9 deletions pkg/cli/cmd/authorizer/authorizer.go

This file was deleted.

47 changes: 0 additions & 47 deletions pkg/cli/cmd/authorizer/decisiontree.go

This file was deleted.

43 changes: 0 additions & 43 deletions pkg/cli/cmd/authorizer/eval.go

This file was deleted.

35 changes: 0 additions & 35 deletions pkg/cli/cmd/authorizer/get-policy.go

This file was deleted.

32 changes: 0 additions & 32 deletions pkg/cli/cmd/authorizer/list-policies.go

This file was deleted.

62 changes: 0 additions & 62 deletions pkg/cli/cmd/authorizer/params.go

This file was deleted.

51 changes: 0 additions & 51 deletions pkg/cli/cmd/authorizer/query.go

This file was deleted.

2 changes: 1 addition & 1 deletion pkg/cli/cmd/directory/backup.go → pkg/cli/cmd/backup.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package directory
package cmd

import (
"os"
Expand Down
Loading

0 comments on commit ef127ef

Please sign in to comment.