Documentation
¶
Index ¶
- func Authenticate(next http.Handler) http.Handler
- func CheckPolicyPermission(policies []models.Policy, identity Identity, path string, action string) bool
- func Contains(slice []string, item string) bool
- func ConvertCertificateToPEM(certDER []byte) string
- func ConvertPrivateKeyToPEM(privateKey interface{}) (string, error)
- func DecryptSecretValue(secret models.Secret) (string, error)
- func EncryptSecretValue(input string) ([]byte, []byte, error)
- func GeneratePassword() string
- func GenerateUsername() string
- func MatchPath(pattern, path string) bool
- func ParseHCLPolicy(hclString string) (models.Policy, error)
- func ScanForSecrets(text string) []string
- func ToInt(i string) int
- func ToInt64(i string) int64
- type AppRoleIdentity
- type Identity
- type UserIdentity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPolicyPermission ¶
func ConvertCertificateToPEM ¶
ConvertCertificateToPEM converts a DER encoded certificate to PEM format
func ConvertPrivateKeyToPEM ¶
ConvertPrivateKeyToPEM converts a private key to PEM format
func GeneratePassword ¶
func GeneratePassword() string
func GenerateUsername ¶
func GenerateUsername() string
func ScanForSecrets ¶
ScanForSecrets scans the given text and returns potential secrets
Types ¶
type AppRoleIdentity ¶
func (AppRoleIdentity) GetAuthType ¶
func (a AppRoleIdentity) GetAuthType() string
func (AppRoleIdentity) GetID ¶
func (a AppRoleIdentity) GetID() int64
func (AppRoleIdentity) GetUsername ¶
func (a AppRoleIdentity) GetUsername() string
type UserIdentity ¶
func (UserIdentity) GetAuthType ¶
func (u UserIdentity) GetAuthType() string
func (UserIdentity) GetID ¶
func (u UserIdentity) GetID() int64
func (UserIdentity) GetUsername ¶
func (u UserIdentity) GetUsername() string
Click to show internal directories.
Click to hide internal directories.