clients

package
v0.30.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	EnvTopazAuthorizerSvc   string = "TOPAZ_AUTHORIZER_SVC"
	EnvTopazAuthorizerKey   string = "TOPAZ_AUTHORIZER_KEY"
	EnvTopazDirectorySvc    string = "TOPAZ_DIRECTORY_SVC"
	EnvTopazDirectoryKey    string = "TOPAZ_DIRECTORY_KEY"
	EnvTopazHeaderTenantID  string = "TOPAZ_HEADER_TENANT_ID"
	EnvTopazHeaderSessionID string = "TOPAZ_HEADER_SESSION_ID"
)

Variables

This section is empty.

Functions

func NewAuthorizerClient added in v0.25.12

func NewAuthorizerClient(c *cc.CommonCtx, cfg *AuthorizerConfig) (authorizer.AuthorizerClient, error)

func NewDirectoryClient

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

Types

type AuthorizerConfig added in v0.25.12

type AuthorizerConfig struct {
	Host     string
	APIKey   string
	Insecure bool
	TenantID string
}

type Config added in v0.20.4

type Config struct {
	Host      string `flag:"host" short:"H" help:"" env:"TOPAZ_DIRECTORY_SVC" default:"localhost:9292"`
	APIKey    string `flag:"api-key" short:"k" help:"" env:"TOPAZ_DIRECTORY_KEY"`
	Insecure  bool   `flag:"insecure" short:"i" help:""`
	SessionID string `flag:"session-id"  help:""`
	TenantID  string `flag:"tenant-id" help:""`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL