Documentation ¶
Index ¶
- func NewAuthorizerClient(c *cc.CommonCtx, cfg *AuthorizerConfig) (authorizer.AuthorizerClient, error)
- func NewAuthorizerConn(ctx context.Context, cfg *AuthorizerConfig) (*grpc.ClientConn, error)
- func NewDirectoryClient(c *cc.CommonCtx, cfg *DirectoryConfig) (*dsc.Client, error)
- func NewDirectoryConn(ctx context.Context, cfg *DirectoryConfig) (*grpc.ClientConn, error)
- func UnmarshalRequest[T any, M Message[T]](src string, msg M) error
- type AuthorizerConfig
- type DirectoryConfig
- type Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthorizerClient ¶ added in v0.25.12
func NewAuthorizerClient(c *cc.CommonCtx, cfg *AuthorizerConfig) (authorizer.AuthorizerClient, error)
func NewAuthorizerConn ¶ added in v0.32.12
func NewAuthorizerConn(ctx context.Context, cfg *AuthorizerConfig) (*grpc.ClientConn, error)
func NewDirectoryClient ¶
func NewDirectoryConn ¶ added in v0.32.4
func NewDirectoryConn(ctx context.Context, cfg *DirectoryConfig) (*grpc.ClientConn, error)
Types ¶
type AuthorizerConfig ¶ added in v0.25.12
type AuthorizerConfig struct { Host string `flag:"host" short:"H" default:"${authorizer_svc}" env:"TOPAZ_AUTHORIZER_SVC" help:"authorizer service address"` APIKey string `flag:"api-key" short:"k" default:"${authorizer_key}" env:"TOPAZ_AUTHORIZER_KEY" help:"authorizer API key"` Token string `flag:"token" default:"${authorizer_token}" env:"TOPAZ_AUTHORIZER_TOKEN" help:"authorizer OAuth2.0 token" hidden:""` Insecure bool `flag:"insecure" short:"i" default:"${insecure}" env:"TOPAZ_INSECURE" help:"skip TLS verification"` TenantID string `flag:"tenant-id" help:"" default:"${tenant_id}" env:"ASERTO_TENANT_ID" ` }
type DirectoryConfig ¶ added in v0.32.0
type DirectoryConfig struct { Host string `flag:"host" short:"H" default:"${directory_svc}" env:"TOPAZ_DIRECTORY_SVC" help:"directory service address"` APIKey string `flag:"api-key" short:"k" default:"${directory_key}" env:"TOPAZ_DIRECTORY_KEY" help:"directory API key"` Token string `flag:"token" default:"${directory_token}" env:"TOPAZ_DIRECTORY_TOKEN" help:"directory OAuth2.0 token" hidden:""` Insecure bool `flag:"insecure" short:"i" default:"${insecure}" env:"TOPAZ_INSECURE" help:"skip TLS verification"` TenantID string `flag:"tenant-id" help:"" default:"${tenant_id}" env:"ASERTO_TENANT_ID" ` }
Click to show internal directories.
Click to hide internal directories.