vault: github.com/hashicorp/vault/builtin/logical/database Index | Files

package database

import "github.com/hashicorp/vault/builtin/logical/database"

Index

Package Files

backend.go path_config_connection.go path_creds_create.go path_roles.go path_rotate_credentials.go rotation.go secret_creds.go

Constants

const SecretCredsType = "creds"

func Backend Uses

func Backend(conf *logical.BackendConfig) *databaseBackend

func Factory Uses

func Factory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend, error)

type DatabaseConfig Uses

type DatabaseConfig struct {
    PluginName string `json:"plugin_name" structs:"plugin_name" mapstructure:"plugin_name"`
    // ConnectionDetails stores the database specific connection settings needed
    // by each database type.
    ConnectionDetails map[string]interface{} `json:"connection_details" structs:"connection_details" mapstructure:"connection_details"`
    AllowedRoles      []string               `json:"allowed_roles" structs:"allowed_roles" mapstructure:"allowed_roles"`

    RootCredentialsRotateStatements []string `json:"root_credentials_rotate_statements" structs:"root_credentials_rotate_statements" mapstructure:"root_credentials_rotate_statements"`
}

DatabaseConfig is used by the Factory function to configure a Database object.

Package database imports 21 packages (graph) and is imported by 9 packages. Updated 2019-10-03. Refresh now. Tools for package owners.