Documentation ¶
Index ¶
- Constants
- func Authenticate(ctx context.Context, client types.PowerMaxClient, array types.PowerMaxArray) error
- func GetK8sUtils() *k8sutils.K8sUtils
- func GetPowerMaxArrays(ctx context.Context, k8sUtils k8sutils.UtilsInterface, filePath string, ...) (map[string][]types.PowerMaxArray, error)
- func InitK8sUtils(logger *logrus.Logger, callback func(k8sutils.UtilsInterface, *corev1.Secret)) *k8sutils.K8sUtils
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.