Documentation
¶
Index ¶
- Constants
- Variables
- func AivenFail(operation string, application *aiven_nais_io_v1.AivenApplication, err error, ...) error
- func CreateSuffix(application *aiven_nais_io_v1.AivenApplication) (string, error)
- func Expired(expiredAt time.Time) bool
- func GetGVK(scheme *runtime.Scheme, obj runtime.Object) (*schema.GroupVersionKind, error)
- func KeysFromStringMap(m map[string]string) []string
- func LocalFail(operation string, application *aiven_nais_io_v1.AivenApplication, err error, ...)
- func MergeByteMap(src, dst map[string][]byte) map[string][]byte
- func MergeStringMap(src, dst map[string]string) map[string]string
- func Parse(expiresAt string) (time.Time, error)
- func SelectSuffix(access string) string
- func UnwrapAivenError(errorMessage error, logger logrus.FieldLogger, notFoundIsRecoverable bool) error
- type SecretConfig
Constants ¶
View Source
const ( AivenSecretUpdatedKey = "AIVEN_SECRET_UPDATED" AivenCAKey = "AIVEN_CA" )
Variables ¶
View Source
var ErrNotFound = errors.New("ErrNotFound")
View Source
var ErrUnrecoverable = errors.New("ErrUnrecoverable")
Functions ¶
func CreateSuffix ¶
func CreateSuffix(application *aiven_nais_io_v1.AivenApplication) (string, error)
func KeysFromStringMap ¶
func LocalFail ¶
func LocalFail(operation string, application *aiven_nais_io_v1.AivenApplication, err error, logger logrus.FieldLogger)
func SelectSuffix ¶
func UnwrapAivenError ¶
func UnwrapAivenError(errorMessage error, logger logrus.FieldLogger, notFoundIsRecoverable bool) error
Types ¶
type SecretConfig ¶
type SecretConfig struct {
Project project.ProjectManager
ProjectName string
}
func NewSecretConfig ¶
func NewSecretConfig(aiven *aiven.Client, projectName string) SecretConfig
func (SecretConfig) ApplyIndividualSecret ¶
func (s SecretConfig) ApplyIndividualSecret(ctx context.Context, application *aiven_nais_io_v1.AivenApplication, secret *corev1.Secret, logger log.FieldLogger) ([]corev1.Secret, error)
Click to show internal directories.
Click to hide internal directories.