client

package
v1.8.8 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient(
	serverAddress string,
	credential string,
	insecureTLS bool,
) (*client.KargoAPI, error)

func GetClientFromConfig

func GetClientFromConfig(
	ctx context.Context,
	cfg config.CLIConfig,
	opts Options,
) (*client.KargoAPI, error)

func GetWatchClient added in v1.8.8

func GetWatchClient(
	serverAddress string,
	credential string,
	insecureTLS bool,
) *watch.Client

GetWatchClient returns a new watch client for the Kargo API server located at the specified address.

func GetWatchClientFromConfig added in v1.8.8

func GetWatchClientFromConfig(
	ctx context.Context,
	cfg config.CLIConfig,
	opts Options,
) (*watch.Client, error)

GetWatchClientFromConfig returns a new watch client for the Kargo API server located at the address specified in local configuration, using credentials also specified in the local configuration.

Types

type Options

type Options struct {
	InsecureTLS bool
}

func (*Options) AddFlags

func (o *Options) AddFlags(flags *pflag.FlagSet)

AddFlags adds the flags for the client options to the provided flag set.

Jump to

Keyboard shortcuts

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