backend

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2020 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

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) AsMap

func (db *DbConfig) AsMap() map[string]interface{}

func (*DbConfig) Disable

func (db *DbConfig) Disable()

func (*DbConfig) IsDisabled

func (db *DbConfig) IsDisabled() bool

type Metadata added in v0.1.5

type Metadata struct {
	Cluster  string
	Database string
	Data     map[string]string
}

func (*Metadata) Name added in v0.1.5

func (m *Metadata) Name() string

type Path

type Path string
const (
	PathCluster  Path = "config/cluster/%s"
	PathDatabase Path = "config/cluster/%s/database/%s"
	PathRole     Path = "config/role/%s"
	PathMeta     Path = "meta/%s"
)

func (Path) For

func (p Path) For(n ...interface{}) string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL