clients

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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:"directory service address" env:"TOPAZ_DIRECTORY_SVC" default:"localhost:9292"`
	APIKey    string `flag:"api-key" short:"k" help:"directory API key" env:"TOPAZ_DIRECTORY_KEY"`
	Insecure  bool   `flag:"insecure" short:"i" help:"skip TLS verification"`
	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