common

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ApplicationName is the name used to register with Powermax REST APIs
	ApplicationName = "CSM Observability for Dell EMC PowerMax"
	// DefaultNameSpace karavi
	DefaultNameSpace = "karavi"
)

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(ctx context.Context, client types.PowerMaxClient, array types.PowerMaxArray) error

Authenticate PowerMax array if credential is correct or connection is valid

func GetK8sUtils

func GetK8sUtils() *k8sutils.K8sUtils

GetK8sUtils return K8sUtils instance, which is supposed to be initialized by InitK8sUtils first

func GetPowerMaxArrays

func GetPowerMaxArrays(ctx context.Context, k8sUtils k8sutils.UtilsInterface, filePath string, logger *logrus.Logger) (map[string][]types.PowerMaxArray, error)

GetPowerMaxArrays parses reverseproxy config file, initializes valid pmax and composes map of arrays for ease of access. Note that if you want to monitor secret change, InitK8sUtils should be invoked first.

func InitK8sUtils

func InitK8sUtils(logger *logrus.Logger, callback func(k8sutils.UtilsInterface, *corev1.Secret)) *k8sutils.K8sUtils

InitK8sUtils initialize k8sutils instance with a callback method on secret change.

Types

This section is empty.

Jump to

Keyboard shortcuts

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