headless

package
v2.0.0-...-5e8ce1c Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaybeStartLocalServer

func MaybeStartLocalServer(ctx context.Context, clientOpts *apiclient.ClientOptions, ctxStr string, port *int, address *string, compression cache.RedisCompressionType, clientConfig clientcmd.ClientConfig) error

MaybeStartLocalServer allows executing command in a headless mode. If we're in core mode, starts the Argo CD API server on the fly and changes provided client options to use started API server port.

If the clientOpts enables core mode, but the local config does not have core mode enabled, this function will not start the local server.

func NewClientOrDie

func NewClientOrDie(opts *apiclient.ClientOptions, c *cobra.Command) apiclient.Client

NewClientOrDie creates a new API client from a set of config options, or fails fatally if the new client creation fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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