Documentation
¶
Index ¶
- Variables
- func DefaultStorage() (storage.ConfigStore, storage.SecretStore)
- func DialOptsFromFlags(cmd *cobra.Command, token storage.Token) ([]grpc.DialOption, error)
- func GetCurrentTokenWithCLIOverride(cmd *cobra.Command, configStore storage.ConfigStore, ...) (storage.Token, error)
- func GetTokenWithCLIOverride(cmd *cobra.Command, token storage.Token) (storage.Token, error)
- type Client
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 ¶
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
Types ¶
type Client ¶
type Client interface {
v1.SchemaServiceClient
v1.PermissionsServiceClient
v1.WatchServiceClient
v1.ExperimentalServiceClient
}
Client defines an interface for making calls to SpiceDB API.
Click to show internal directories.
Click to hide internal directories.