client

package
v0.0.0-...-d9c1391 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 14 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ApiServerAddr string

	GlobalApiAddr string
)

Functions

func EnableTraceAPIRequests

func EnableTraceAPIRequests()

func GetApiserverConn

func GetApiserverConn() *grpc.ClientConn

func GetApiserverConnWithAuth

func GetApiserverConnWithAuth(token *client_auth.AuthToken) *grpc.ClientConn

func GetAuthManagerClient

func GetAuthManagerClient() auth_pb.AuthManagerClient

func GetAuthSessionManagerClient

func GetAuthSessionManagerClient() auth_pb.AuthSessionManagerClient

func GetGlobalApiConn

func GetGlobalApiConn() *grpc.ClientConn

func MakeApiServerConnWithAuth

func MakeApiServerConnWithAuth(addr string, token *client_auth.AuthToken, noTls bool) (*grpc.ClientConn, error)

func MakeUnauthApiServerConn

func MakeUnauthApiServerConn(addr string, noTls bool) (*grpc.ClientConn, error)

func SetDefaultApiServerAddr

func SetDefaultApiServerAddr(addr string, noTls bool) error

func SetDefaultGlobalApiAddr

func SetDefaultGlobalApiAddr(addr string) error

func SetSource

func SetSource(source string) error

func SetWaitForReady

func SetWaitForReady(waitForReady bool) error

func TraceUnaryClientInterceptor

func TraceUnaryClientInterceptor() grpc.UnaryClientInterceptor

func UpdateApiserverToken

func UpdateApiserverToken(token string) error

HACK(naphat) this is not threadsafe

Types

This section is empty.

Jump to

Keyboard shortcuts

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