Documentation ¶
Index ¶
- func CreateLocalSecretKey()
- func DecryptValue(storage SecretKeyStorage, value string) string
- func EncryptValue(storage SecretKeyStorage, value string) string
- func GenerateAESKey(bitSize int) ([]byte, error)
- func GenerateRoutes(relativePath string, r *gin.Engine, handler *Handler)
- type Handler
- type K8sSecretKeyStorage
- type LocalSecretKeyStorage
- type SecretKeyStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLocalSecretKey ¶
func CreateLocalSecretKey()
func DecryptValue ¶
func DecryptValue(storage SecretKeyStorage, value string) string
func EncryptValue ¶
func EncryptValue(storage SecretKeyStorage, value string) string
func GenerateAESKey ¶
Types ¶
type Handler ¶
type Handler struct { Config *apiConfig.Config MongoDB *database.MongoDB KeyStorage SecretKeyStorage }
func NewVariablesHandler ¶
func (*Handler) CreateVariable ¶
func (*Handler) DeleteVariable ¶
func (*Handler) ListComponentVariables ¶
func (*Handler) ListEnvironmentVariables ¶
func (*Handler) ListOrganizationVariables ¶
type K8sSecretKeyStorage ¶
type K8sSecretKeyStorage struct {
// contains filtered or unexported fields
}
func (*K8sSecretKeyStorage) Generate ¶
func (l *K8sSecretKeyStorage) Generate() error
func (*K8sSecretKeyStorage) Load ¶
func (l *K8sSecretKeyStorage) Load() ([]byte, error)
func (*K8sSecretKeyStorage) Save ¶
func (l *K8sSecretKeyStorage) Save(key []byte) error
type LocalSecretKeyStorage ¶
type LocalSecretKeyStorage struct {
// contains filtered or unexported fields
}
func (*LocalSecretKeyStorage) Generate ¶
func (l *LocalSecretKeyStorage) Generate() error
func (*LocalSecretKeyStorage) Load ¶
func (l *LocalSecretKeyStorage) Load() ([]byte, error)
func (*LocalSecretKeyStorage) Save ¶
func (l *LocalSecretKeyStorage) Save(key []byte) error
type SecretKeyStorage ¶
func NewK8sSecretKey ¶
func NewK8sSecretKey(namespace string) SecretKeyStorage
func NewLocalSecretKey ¶
func NewLocalSecretKey(filepath string) SecretKeyStorage
Click to show internal directories.
Click to hide internal directories.