Documentation ¶
Overview ¶
Package access contains commands related to API access for the CLI.
Index ¶
Constants ¶
View Source
const (
// EndpointEnvVar is the name of the environment variable that contains the Omni endpoint.
EndpointEnvVar = "OMNI_ENDPOINT"
)
Variables ¶
View Source
var CmdFlags struct { Omniconfig string Context string InsecureSkipTLSVerify bool }
CmdFlags contains the common CLI flags.
Functions ¶
func WithClient ¶
func WithClient(f func(ctx context.Context, client *client.Client) error, clientOpts ...ClientOption) error
WithClient initializes the Omni API client.
Types ¶
type ClientOption ¶
type ClientOption func(*clientOptions)
ClientOption is a functional option for the client.
func WithSkipAuth ¶
func WithSkipAuth(skipAuth bool) ClientOption
WithSkipAuth configures the client to skip the authentication interception.
Click to show internal directories.
Click to hide internal directories.