Documentation ¶
Index ¶
- Variables
- func AskForNewSecret(ctx context.Context, secrets []SecretEntity, name, key *string, keyPath string) error
- func AskIfUseSecret() (bool, error)
- func DeleteSecretManager(ctx context.Context, secret *SecretEntity) error
- func SetSecret(ctx context.Context, flagSecretId string) error
- func SyncSecretIdFromFlagAndConfig(ctx context.Context, secretId string, ...) (string, error)
- type SecretEntity
- func CreateOrSelectIfSecretNotFound(ctx context.Context, secretId string) (selectedSecret *SecretEntity, wasValid, wasCreateNew bool, err error)
- func CreateOrSelectSecretIfInUse(ctx context.Context) (selectedSecret *SecretEntity, wasCreateNew bool, err error)
- func CreateSecretManager(ctx context.Context, name, key string) (*SecretEntity, error)
- func GetSecretList(ctx context.Context) ([]SecretEntity, error)
- func SelectOrCreateSecret(ctx context.Context, secrets []SecretEntity, askForNewFirst bool) (*SecretEntity, bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var SecretEntityDesc = entity.NewEntityDescriptor[SecretEntity]( "Secret", "Secrets", func(s *SecretEntity) string { return s.Name }, func(s *SecretEntity) string { return s.GetCid() }, )
Functions ¶
func AskForNewSecret ¶
func AskIfUseSecret ¶
func DeleteSecretManager ¶
func DeleteSecretManager(ctx context.Context, secret *SecretEntity) error
Types ¶
type SecretEntity ¶
type SecretEntity = tensorleapapi.SecretManager
func CreateOrSelectSecretIfInUse ¶
func CreateOrSelectSecretIfInUse(ctx context.Context) (selectedSecret *SecretEntity, wasCreateNew bool, err error)
func CreateSecretManager ¶
func CreateSecretManager(ctx context.Context, name, key string) (*SecretEntity, error)
func GetSecretList ¶
func GetSecretList(ctx context.Context) ([]SecretEntity, error)
func SelectOrCreateSecret ¶
func SelectOrCreateSecret(ctx context.Context, secrets []SecretEntity, askForNewFirst bool) (*SecretEntity, bool, error)
Click to show internal directories.
Click to hide internal directories.