client

package
v0.0.0-...-94e4715 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultConfigPath = "/etc/calico/calicoctl.cfg"
)

Variables

This section is empty.

Functions

func LoadClientConfig

func LoadClientConfig(cf string) (*apiconfig.CalicoAPIConfig, error)

LoadClientConfig loads the client config from file if the file exists, otherwise will load from environment variables.

func NewClient

func NewClient(cf string) (client.Interface, error)

NewClient creates a new CalicoClient using connection information in the specified filename (if it exists), dropping back to environment variables for any parameter not loaded from file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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