client

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: Apache-2.0 Imports: 16 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,
) svcv1alpha1connect.KargoServiceClient

GetClient returns a new client for the Kargo API server located at the specified address. If the provided credential is non-empty, the client will be decorated with an interceptor that adds the credential to outbound requests.

func GetClientFromConfig

func GetClientFromConfig(
	ctx context.Context,
	cfg config.CLIConfig,
	opts Options,
) (
	svcv1alpha1connect.KargoServiceClient,
	error,
)

GetClientFromConfig returns a new 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