envoid/internal/errors/secret_exists.go
Sagi Dayan 693350fa49
All checks were successful
Codespell / Check for spelling errors (push) Successful in 23s
Initial commit
Signed-off-by: Sagi Dayan <sagidayan@gmail.com>
2024-12-14 23:26:06 +02:00

15 lines
294 B
Go

package errors
import "fmt"
type SecretExistsError struct {
secret string
}
func (e *SecretExistsError) Error() string {
return fmt.Sprintf("secret %s already exists", e.secret)
}
func NewSecretExsistsError(secret string) *SecretExistsError {
return &SecretExistsError{secret: secret}
}