client

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NewClient           = newClientForCurrentContext
	NewClientForContext = newClientForContext
)

NewClient defines an (overridable) means of creating a new client.

Functions

func DefaultStorage

func DefaultStorage() (storage.ConfigStore, storage.SecretStore)

DefaultStorage returns the default configured config store and secret store.

func DialOptsFromFlags

func DialOptsFromFlags(cmd *cobra.Command, token storage.Token) ([]grpc.DialOption, error)

DialOptsFromFlags returns the dial options from the CLI-specified flags.

func GetCurrentTokenWithCLIOverride added in v0.21.2

func GetCurrentTokenWithCLIOverride(cmd *cobra.Command, configStore storage.ConfigStore, secretStore storage.SecretStore) (storage.Token, error)

GetCurrentTokenWithCLIOverride returns the current token, but overridden by any parameter specified via CLI args

func GetTokenWithCLIOverride added in v0.21.2

func GetTokenWithCLIOverride(cmd *cobra.Command, token storage.Token) (storage.Token, error)

GetTokenWithCLIOverride returns the provided token, but overridden by any parameter specified explicitly via command flags

Types

type Client

Client defines an interface for making calls to SpiceDB API.

Jump to

Keyboard shortcuts

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