Documentation
¶
Index ¶
- type EnvironmentService
- func (s *EnvironmentService) CreateEnvironment(create models.EnvironmentCreate, createdBy string) (*vault.Environment, *[]byte, error)
- func (s *EnvironmentService) DeleteEnvironment(id primitive.ObjectID) error
- func (s *EnvironmentService) GetEnvironment(id string) (*vault.Environment, error)
- func (s *EnvironmentService) ListEnvironments() ([]*vault.Environment, error)
- type SecretService
- func (s *SecretService) CreateSecret(create models.SecretCreate, createdBy string, environmentId primitive.ObjectID, ...) (*vault.Secret, error)
- func (s *SecretService) DecryptSecret(encryptedSecret string, environmentSecret []byte) ([]byte, error)
- func (s *SecretService) DeleteSecret(id primitive.ObjectID, environmentId primitive.ObjectID) error
- func (s *SecretService) GetSecret(filter *bson.D, includeSecret bool) (*vault.Secret, error)
- func (s *SecretService) GetSecretFilter(id string, environmentId primitive.ObjectID) *bson.D
- func (s *SecretService) ListSecret(environmentId primitive.ObjectID) ([]*vault.Secret, error)
- type TokenService
- func (s *TokenService) CreateToken(create models.TokenCreate, tokenType vault.TokenType, createdBy string, ...) (*vault.Token, error)
- func (s *TokenService) DeleteToken(id primitive.ObjectID, environmentId primitive.ObjectID) error
- func (s *TokenService) GetToken(filter *bson.D) (*vault.Token, error)
- func (s *TokenService) GetTokenFilter(id string, environmentId primitive.ObjectID, tokenType vault.TokenType) (*bson.D, error)
- func (s *TokenService) ListToken(filter *bson.D) ([]*vault.Token, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvironmentService ¶
type EnvironmentService struct {
// contains filtered or unexported fields
}
func NewEnvironmentService ¶
func NewEnvironmentService(db *database.MongoDB) EnvironmentService
func (*EnvironmentService) CreateEnvironment ¶
func (s *EnvironmentService) CreateEnvironment(create models.EnvironmentCreate, createdBy string) (*vault.Environment, *[]byte, error)
func (*EnvironmentService) DeleteEnvironment ¶
func (s *EnvironmentService) DeleteEnvironment(id primitive.ObjectID) error
func (*EnvironmentService) GetEnvironment ¶
func (s *EnvironmentService) GetEnvironment(id string) (*vault.Environment, error)
func (*EnvironmentService) ListEnvironments ¶
func (s *EnvironmentService) ListEnvironments() ([]*vault.Environment, error)
type SecretService ¶
type SecretService struct {
// contains filtered or unexported fields
}
func NewSecretService ¶
func NewSecretService(db *database.MongoDB) SecretService
func (*SecretService) CreateSecret ¶
func (s *SecretService) CreateSecret(create models.SecretCreate, createdBy string, environmentId primitive.ObjectID, environmentSecret []byte) (*vault.Secret, error)
func (*SecretService) DecryptSecret ¶
func (s *SecretService) DecryptSecret(encryptedSecret string, environmentSecret []byte) ([]byte, error)
func (*SecretService) DeleteSecret ¶
func (*SecretService) GetSecretFilter ¶
func (*SecretService) ListSecret ¶
type TokenService ¶
type TokenService struct {
// contains filtered or unexported fields
}
func NewTokenService ¶
func NewTokenService(db *database.MongoDB) TokenService
func (*TokenService) CreateToken ¶
func (*TokenService) DeleteToken ¶
func (*TokenService) GetTokenFilter ¶
Click to show internal directories.
Click to hide internal directories.