cmd

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Command

type Command struct {
	*cobra.Command
	// contains filtered or unexported fields
}

Command represents an invocation of the AlloyDB Auth Proxy.

func NewCommand

func NewCommand(opts ...Option) *Command

NewCommand returns a Command object representing an invocation of the proxy.

type Option

type Option func(*Command)

Option is a function that configures a Command.

func WithDialer

func WithDialer(d alloydb.Dialer) Option

WithDialer configures the Command to use the provided dialer to connect to AlloyDB instances.

func WithLogger added in v0.4.0

func WithLogger(l alloydb.Logger) Option

WithLogger overrides the default logger.

Jump to

Keyboard shortcuts

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