client

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MLPSecretsNotFound string = "flyte_dsw_mlp_secrets_not_found"
	MLPRequestsTotal   string = "flyte_dsw_mlp_requests_total"
)

Variables

View Source
var MLPRequestsTotalMetrics = promauto.NewCounterVec(prometheus.CounterOpts{
	Name: MLPRequestsTotal,
	Help: "Number of call to MLP API",
},
	[]string{"project", "status"},
)
View Source
var MLPSecretsNotFoundMetrics = promauto.NewCounterVec(prometheus.CounterOpts{
	Name: MLPSecretsNotFound,
	Help: "Number of occurrence where user requested secrets is not found in MLP API",
},
	[]string{"project"},
)

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	mlp.APIClient
}

func (*APIClient) GetMLPSecretValue

func (m *APIClient) GetMLPSecretValue(project string, secretName string) (string, error)

GetMLPSecretValue takes in project and secret name and return the secret value/data from mlp client

type MLPClient

type MLPClient interface {
	GetMLPSecretValue(project string, name string) (string, error)
}

Jump to

Keyboard shortcuts

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