Documentation ¶
Index ¶
- Constants
- Variables
- func Factory(ctx context.Context, c *logical.BackendConfig) (logical.Backend, error)
- func New(c *logical.BackendConfig) *backend
- func NewOperationHandler(fn framework.OperationFunc, props framework.OperationProperties) framework.OperationHandler
- type ClusterConfig
- type DbConfig
- type Metadata
- type Path
- type RoleConfig
Constants ¶
View Source
const SecretCredsType = "creds"
Variables ¶
View Source
var ErrNotFound = errors.New("requested record was not found")
Functions ¶
func New ¶
func New(c *logical.BackendConfig) *backend
func NewOperationHandler ¶ added in v0.1.8
func NewOperationHandler(fn framework.OperationFunc, props framework.OperationProperties) framework.OperationHandler
Types ¶
type ClusterConfig ¶
type ClusterConfig struct { Host string `json:"host" mapstructure:"host"` Port int `json:"port" mapstructure:"port"` Username string `json:"username" mapstructure:"username"` Password string `json:"password" mapstructure:"password"` ManagementRole string `json:"management_role" mapstructure:"management_role"` ManagementPassword string `json:"management_password" mapstructure:"management_password"` MaxOpenConnections int `json:"max_open_connections" mapstructure:"max_open_connections"` MaxIdleConnections int `json:"max_idle_connections" mapstructure:"max_idle_connections"` MaxConnectionLifetime int `json:"max_connection_lifetime" mapstructure:"max_connection_lifetime"` Database string `json:"database" mapstructure:"database"` Disabled *bool `json:"disabled" mapstructure:"disabled"` SSLMode string `json:"ssl_mode" mapstructure:"ssl_mode"` }
func (*ClusterConfig) AsMap ¶
func (c *ClusterConfig) AsMap() map[string]interface{}
func (*ClusterConfig) Disable ¶
func (c *ClusterConfig) Disable()
func (*ClusterConfig) IsDisabled ¶
func (c *ClusterConfig) IsDisabled() bool
type DbConfig ¶
type DbConfig struct { Cluster string `json:"cluster" mapstructure:"cluster"` Database string `json:"database" mapstructure:"database"` ObjectsOwner string `json:"objects_owner" mapstructure:"objects_owner"` Disabled *bool `json:"disabled" mapstructure:"disabled"` }
func (*DbConfig) IsDisabled ¶
type RoleConfig ¶
type RoleConfig struct { MaxTTL int `json:"max_ttl" mapstructure:"max_ttl"` DefaultTTL int `json:"default_ttl" mapstructure:"default_ttl"` CreationStatement []string `json:"creation_statement" mapstructure:"creation_statement"` RevocationStatement []string `json:"revocation_statement" mapstructure:"revocation_statement"` }
func (*RoleConfig) AsMap ¶
func (r *RoleConfig) AsMap() map[string]interface{}
func (*RoleConfig) GetDefaultTTL ¶
func (r *RoleConfig) GetDefaultTTL() time.Duration
func (*RoleConfig) GetMaxTTL ¶
func (r *RoleConfig) GetMaxTTL() time.Duration
Click to show internal directories.
Click to hide internal directories.