Help us shape the future of Go! Take the 2026 Go Developer Survey

client

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPIClient

func NewAPIClient(cfg Config) (*client.Ontap, error)

Types

type BasicAuthConfig

type BasicAuthConfig struct {
	User     string
	Password string
}

type Config

type Config struct {
	// ApiURL points to the ontap api endpoint, usually ends with "/api"
	ApiURL string
	// BasicAuth configures basic auth for api communication if provided
	BasicAuth *BasicAuthConfig
	// TLS sets client tls configuration if provided
	TLS *TLSConfig
}

type MetroClusterClient

type MetroClusterClient []client.Ontap

MetroClusterClient holds n API clients, one for each cluster in a metro cluster.

func NewMetroClusterClient

func NewMetroClusterClient(cfg MetroClusterConfig) (*MetroClusterClient, error)

NewMetroClusterClient creates a new client for a metro cluster, which contains a client for each of the n clusters.

type MetroClusterConfig

type MetroClusterConfig []Config

MetroClusterConfig holds the configuration for n clusters in a metro cluster.

type TLSConfig

type TLSConfig struct {
	// either set directly as bytes
	Cert []byte
	Key  []byte
	Ca   []byte

	// or set from file paths
	CertPath string
	KeyPath  string
	CaPath   string

	// InsecureTLS should only be used for devel purposes
	InsecureTLS *bool
}

Jump to

Keyboard shortcuts

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