Documentation
¶
Overview ¶
Funcs provides methods for converting a golang struct to a map[string]interface{} and vice versa using JSON tags Therefore the name: stm -> *S*truct *T*o *M*ap
Index ¶
- Constants
- func BuildErrResponse(code string, err error) string
- func Factory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend, error)
- func MapToStruct[T any](in map[string]interface{}, out *T) error
- func StructToMap[T any](in *T, out *map[string]interface{}) error
- type ConfigParameters
- type JWTParameters
- type QdrantBackend
- type QdrantClient
- type RoleParameters
Constants ¶
View Source
const ( // Parameters InvalidParametersError = "invalid parameters" DecodeFailedError = "could not decode parameters" // Config AddingConfigFailedError = "adding config failed" ReadingConfigFailedError = "reading config failed" ConfigNotFoundError = "config not found" DeleteConfigFailedError = "deleting config failed" ListConfigFailedError = "listing config failed" // Role AddingRoleFailedError = "adding role failed" ReadingRoleFailedError = "reading role failed" RoleNotFoundError = "role not found" DeleteRoleFailedError = "deleting role failed" ListRoleFailedError = "listing role failed" ReadingJWTFailedError = "reading JWT failed" )
View Source
const (
SYS_ROLE_TABLE = "sys_roles"
)
Variables ¶
This section is empty.
Functions ¶
func BuildErrResponse ¶
func MapToStruct ¶
func StructToMap ¶
Types ¶
type ConfigParameters ¶
type JWTParameters ¶
type QdrantBackend ¶
QdrantBackend defines an object that extends the Vault backend and stores the target API's client.
type QdrantClient ¶
type QdrantClient struct { }
Click to show internal directories.
Click to hide internal directories.