vault: github.com/hashicorp/vault/sdk/database/dbplugin Index | Files

package dbplugin

import "github.com/hashicorp/vault/sdk/database/dbplugin"

Index

Package Files

client.go database.pb.go databasemiddleware.go grpc_transport.go plugin.go server.go

Variables

var (
    ErrPluginShutdown          = errors.New("plugin shutdown")
    ErrPluginStaticUnsupported = errors.New("database plugin does not support Static Accounts")
)

func RegisterDatabaseServer Uses

func RegisterDatabaseServer(s *grpc.Server, srv DatabaseServer)

func Serve Uses

func Serve(db Database, tlsProvider func() (*tls.Config, error))

Serve is called from within a plugin and wraps the provided Database implementation in a databasePluginRPCServer object and starts a RPC server.

func ServeConfig Uses

func ServeConfig(db Database, tlsProvider func() (*tls.Config, error)) *plugin.ServeConfig

type CreateUserRequest Uses

type CreateUserRequest struct {
    Statements           *Statements          `protobuf:"bytes,1,opt,name=statements,proto3" json:"statements,omitempty"`
    UsernameConfig       *UsernameConfig      `protobuf:"bytes,2,opt,name=username_config,json=usernameConfig,proto3" json:"username_config,omitempty"`
    Expiration           *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"`
    XXX_NoUnkeyedLiteral struct{}             `json:"-"`
    XXX_unrecognized     []byte               `json:"-"`
    XXX_sizecache        int32                `json:"-"`
}

func (*CreateUserRequest) Descriptor Uses

func (*CreateUserRequest) Descriptor() ([]byte, []int)

func (*CreateUserRequest) GetExpiration Uses

func (m *CreateUserRequest) GetExpiration() *timestamp.Timestamp

func (*CreateUserRequest) GetStatements Uses

func (m *CreateUserRequest) GetStatements() *Statements

func (*CreateUserRequest) GetUsernameConfig Uses

func (m *CreateUserRequest) GetUsernameConfig() *UsernameConfig

func (*CreateUserRequest) ProtoMessage Uses

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) Reset Uses

func (m *CreateUserRequest) Reset()

func (*CreateUserRequest) String Uses

func (m *CreateUserRequest) String() string

func (*CreateUserRequest) XXX_DiscardUnknown Uses

func (m *CreateUserRequest) XXX_DiscardUnknown()

func (*CreateUserRequest) XXX_Marshal Uses

func (m *CreateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateUserRequest) XXX_Merge Uses

func (m *CreateUserRequest) XXX_Merge(src proto.Message)

func (*CreateUserRequest) XXX_Size Uses

func (m *CreateUserRequest) XXX_Size() int

func (*CreateUserRequest) XXX_Unmarshal Uses

func (m *CreateUserRequest) XXX_Unmarshal(b []byte) error

type CreateUserResponse Uses

type CreateUserResponse struct {
    Username             string   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
    Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*CreateUserResponse) Descriptor Uses

func (*CreateUserResponse) Descriptor() ([]byte, []int)

func (*CreateUserResponse) GetPassword Uses

func (m *CreateUserResponse) GetPassword() string

func (*CreateUserResponse) GetUsername Uses

func (m *CreateUserResponse) GetUsername() string

func (*CreateUserResponse) ProtoMessage Uses

func (*CreateUserResponse) ProtoMessage()

func (*CreateUserResponse) Reset Uses

func (m *CreateUserResponse) Reset()

func (*CreateUserResponse) String Uses

func (m *CreateUserResponse) String() string

func (*CreateUserResponse) XXX_DiscardUnknown Uses

func (m *CreateUserResponse) XXX_DiscardUnknown()

func (*CreateUserResponse) XXX_Marshal Uses

func (m *CreateUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateUserResponse) XXX_Merge Uses

func (m *CreateUserResponse) XXX_Merge(src proto.Message)

func (*CreateUserResponse) XXX_Size Uses

func (m *CreateUserResponse) XXX_Size() int

func (*CreateUserResponse) XXX_Unmarshal Uses

func (m *CreateUserResponse) XXX_Unmarshal(b []byte) error

type Database Uses

type Database interface {
    // Type returns the TypeName for the particular database backend
    // implementation. This type name is usually set as a constant within the
    // database backend implementation, e.g. "mysql" for the MySQL database
    // backend.
    Type() (string, error)

    // CreateUser is called on `$ vault read database/creds/:role-name` and it's
    // also the first time anything is touched from `$ vault write
    // database/roles/:role-name`. This is likely to be the highest-throughput
    // method for most plugins.
    CreateUser(ctx context.Context, statements Statements, usernameConfig UsernameConfig, expiration time.Time) (username string, password string, err error)

    // RenewUser is triggered by a renewal call to the API. In many database
    // backends, this triggers a call on the underlying database that extends a
    // VALID UNTIL clause on a user. However, if no such need exists, setting
    // this as a NO-OP means that when renewal is called, the lease renewal time
    // is pushed further out as appropriate, thus pushing out the time until the
    // RevokeUser method is called.
    RenewUser(ctx context.Context, statements Statements, username string, expiration time.Time) error

    // RevokeUser is triggered either automatically by a lease expiration, or by
    // a revocation call to the API.
    RevokeUser(ctx context.Context, statements Statements, username string) error

    // RotateRootCredentials is triggered by a root credential rotation call to
    // the API.
    RotateRootCredentials(ctx context.Context, statements []string) (config map[string]interface{}, err error)

    // GenerateCredentials returns a generated password for the plugin. This is
    // used in combination with SetCredentials to set a specific password for a
    // database user and preserve the password in WAL entries.
    GenerateCredentials(ctx context.Context) (string, error)

    // SetCredentials uses provided information to create or set the credentials
    // for a database user. Unlike CreateUser, this method requires both a
    // username and a password given instead of generating them. This is used for
    // creating and setting the password of static accounts, as well as rolling
    // back passwords in the database in the event an updated database fails to
    // save in Vault's storage.
    SetCredentials(ctx context.Context, statements Statements, staticConfig StaticUserConfig) (username string, password string, err error)

    // Init is called on `$ vault write database/config/:db-name`, or when you
    // do a creds call after Vault's been restarted. The config provided won't
    // hold all the keys and values provided in the API call, some will be
    // stripped by the database engine before the config is provided. The config
    // returned will be stored, which will persist it across shutdowns.
    Init(ctx context.Context, config map[string]interface{}, verifyConnection bool) (saveConfig map[string]interface{}, err error)

    // Close attempts to close the underlying database connection that was
    // established by the backend.
    Close() error

    // DEPRECATED: Will be removed in a future plugin version bump.
    // Initialize is a backwards-compatible implementation that simply calls
    // Init, dropping the saveConfig, and returning the err.
    Initialize(ctx context.Context, config map[string]interface{}, verifyConnection bool) (err error)
}

Database is the interface that all database objects must implement.

func NewPluginClient Uses

func NewPluginClient(ctx context.Context, sys pluginutil.RunnerUtil, pluginRunner *pluginutil.PluginRunner, logger log.Logger, isMetadataMode bool) (Database, error)

NewPluginClient returns a databaseRPCClient with a connection to a running plugin. The client is wrapped in a DatabasePluginClient object to ensure the plugin is killed on call of Close().

func PluginFactory Uses

func PluginFactory(ctx context.Context, pluginName string, sys pluginutil.LookRunnerUtil, logger log.Logger) (Database, error)

PluginFactory is used to build plugin database types. It wraps the database object in a logging and metrics middleware.

type DatabaseClient Uses

type DatabaseClient interface {
    Type(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TypeResponse, error)
    CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error)
    RenewUser(ctx context.Context, in *RenewUserRequest, opts ...grpc.CallOption) (*Empty, error)
    RevokeUser(ctx context.Context, in *RevokeUserRequest, opts ...grpc.CallOption) (*Empty, error)
    RotateRootCredentials(ctx context.Context, in *RotateRootCredentialsRequest, opts ...grpc.CallOption) (*RotateRootCredentialsResponse, error)
    Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*InitResponse, error)
    Close(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
    SetCredentials(ctx context.Context, in *SetCredentialsRequest, opts ...grpc.CallOption) (*SetCredentialsResponse, error)
    GenerateCredentials(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GenerateCredentialsResponse, error)
    Initialize(ctx context.Context, in *InitializeRequest, opts ...grpc.CallOption) (*Empty, error)
}

DatabaseClient is the client API for Database service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDatabaseClient Uses

func NewDatabaseClient(cc *grpc.ClientConn) DatabaseClient

type DatabaseErrorSanitizerMiddleware Uses

type DatabaseErrorSanitizerMiddleware struct {
    // contains filtered or unexported fields
}

DatabaseErrorSanitizerMiddleware wraps an implementation of Databases and sanitizes returned error messages

func NewDatabaseErrorSanitizerMiddleware Uses

func NewDatabaseErrorSanitizerMiddleware(next Database, secretsFn func() map[string]interface{}) *DatabaseErrorSanitizerMiddleware

func (*DatabaseErrorSanitizerMiddleware) Close Uses

func (mw *DatabaseErrorSanitizerMiddleware) Close() (err error)

func (*DatabaseErrorSanitizerMiddleware) CreateUser Uses

func (mw *DatabaseErrorSanitizerMiddleware) CreateUser(ctx context.Context, statements Statements, usernameConfig UsernameConfig, expiration time.Time) (username string, password string, err error)

func (*DatabaseErrorSanitizerMiddleware) GenerateCredentials Uses

func (mw *DatabaseErrorSanitizerMiddleware) GenerateCredentials(ctx context.Context) (password string, err error)

func (*DatabaseErrorSanitizerMiddleware) Init Uses

func (mw *DatabaseErrorSanitizerMiddleware) Init(ctx context.Context, conf map[string]interface{}, verifyConnection bool) (saveConf map[string]interface{}, err error)

func (*DatabaseErrorSanitizerMiddleware) Initialize Uses

func (mw *DatabaseErrorSanitizerMiddleware) Initialize(ctx context.Context, conf map[string]interface{}, verifyConnection bool) error

func (*DatabaseErrorSanitizerMiddleware) RenewUser Uses

func (mw *DatabaseErrorSanitizerMiddleware) RenewUser(ctx context.Context, statements Statements, username string, expiration time.Time) (err error)

func (*DatabaseErrorSanitizerMiddleware) RevokeUser Uses

func (mw *DatabaseErrorSanitizerMiddleware) RevokeUser(ctx context.Context, statements Statements, username string) (err error)

func (*DatabaseErrorSanitizerMiddleware) RotateRootCredentials Uses

func (mw *DatabaseErrorSanitizerMiddleware) RotateRootCredentials(ctx context.Context, statements []string) (conf map[string]interface{}, err error)

func (*DatabaseErrorSanitizerMiddleware) SetCredentials Uses

func (mw *DatabaseErrorSanitizerMiddleware) SetCredentials(ctx context.Context, statements Statements, staticConfig StaticUserConfig) (username, password string, err error)

func (*DatabaseErrorSanitizerMiddleware) Type Uses

func (mw *DatabaseErrorSanitizerMiddleware) Type() (string, error)

type DatabasePluginClient Uses

type DatabasePluginClient struct {
    sync.Mutex

    Database
    // contains filtered or unexported fields
}

DatabasePluginClient embeds a databasePluginRPCClient and wraps it's Close method to also call Kill() on the plugin.Client.

func (*DatabasePluginClient) Close Uses

func (dc *DatabasePluginClient) Close() error

This wraps the Close call and ensures we both close the database connection and kill the plugin.

type DatabaseServer Uses

type DatabaseServer interface {
    Type(context.Context, *Empty) (*TypeResponse, error)
    CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
    RenewUser(context.Context, *RenewUserRequest) (*Empty, error)
    RevokeUser(context.Context, *RevokeUserRequest) (*Empty, error)
    RotateRootCredentials(context.Context, *RotateRootCredentialsRequest) (*RotateRootCredentialsResponse, error)
    Init(context.Context, *InitRequest) (*InitResponse, error)
    Close(context.Context, *Empty) (*Empty, error)
    SetCredentials(context.Context, *SetCredentialsRequest) (*SetCredentialsResponse, error)
    GenerateCredentials(context.Context, *Empty) (*GenerateCredentialsResponse, error)
    Initialize(context.Context, *InitializeRequest) (*Empty, error)
}

DatabaseServer is the server API for Database service.

type Empty Uses

type Empty struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Empty) Descriptor Uses

func (*Empty) Descriptor() ([]byte, []int)

func (*Empty) ProtoMessage Uses

func (*Empty) ProtoMessage()

func (*Empty) Reset Uses

func (m *Empty) Reset()

func (*Empty) String Uses

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown Uses

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal Uses

func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Empty) XXX_Merge Uses

func (m *Empty) XXX_Merge(src proto.Message)

func (*Empty) XXX_Size Uses

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal Uses

func (m *Empty) XXX_Unmarshal(b []byte) error

type GRPCDatabasePlugin Uses

type GRPCDatabasePlugin struct {
    Impl Database

    // Embeding this will disable the netRPC protocol
    plugin.NetRPCUnsupportedPlugin
}

GRPCDatabasePlugin is the plugin.Plugin implementation that only supports GRPC transport

func (GRPCDatabasePlugin) GRPCClient Uses

func (GRPCDatabasePlugin) GRPCClient(doneCtx context.Context, _ *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)

func (GRPCDatabasePlugin) GRPCServer Uses

func (d GRPCDatabasePlugin) GRPCServer(_ *plugin.GRPCBroker, s *grpc.Server) error

type GenerateCredentialsResponse Uses

type GenerateCredentialsResponse struct {
    Password             string   `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*GenerateCredentialsResponse) Descriptor Uses

func (*GenerateCredentialsResponse) Descriptor() ([]byte, []int)

func (*GenerateCredentialsResponse) GetPassword Uses

func (m *GenerateCredentialsResponse) GetPassword() string

func (*GenerateCredentialsResponse) ProtoMessage Uses

func (*GenerateCredentialsResponse) ProtoMessage()

func (*GenerateCredentialsResponse) Reset Uses

func (m *GenerateCredentialsResponse) Reset()

func (*GenerateCredentialsResponse) String Uses

func (m *GenerateCredentialsResponse) String() string

func (*GenerateCredentialsResponse) XXX_DiscardUnknown Uses

func (m *GenerateCredentialsResponse) XXX_DiscardUnknown()

func (*GenerateCredentialsResponse) XXX_Marshal Uses

func (m *GenerateCredentialsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenerateCredentialsResponse) XXX_Merge Uses

func (m *GenerateCredentialsResponse) XXX_Merge(src proto.Message)

func (*GenerateCredentialsResponse) XXX_Size Uses

func (m *GenerateCredentialsResponse) XXX_Size() int

func (*GenerateCredentialsResponse) XXX_Unmarshal Uses

func (m *GenerateCredentialsResponse) XXX_Unmarshal(b []byte) error

type InitRequest Uses

type InitRequest struct {
    Config               []byte   `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
    VerifyConnection     bool     `protobuf:"varint,2,opt,name=verify_connection,json=verifyConnection,proto3" json:"verify_connection,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*InitRequest) Descriptor Uses

func (*InitRequest) Descriptor() ([]byte, []int)

func (*InitRequest) GetConfig Uses

func (m *InitRequest) GetConfig() []byte

func (*InitRequest) GetVerifyConnection Uses

func (m *InitRequest) GetVerifyConnection() bool

func (*InitRequest) ProtoMessage Uses

func (*InitRequest) ProtoMessage()

func (*InitRequest) Reset Uses

func (m *InitRequest) Reset()

func (*InitRequest) String Uses

func (m *InitRequest) String() string

func (*InitRequest) XXX_DiscardUnknown Uses

func (m *InitRequest) XXX_DiscardUnknown()

func (*InitRequest) XXX_Marshal Uses

func (m *InitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InitRequest) XXX_Merge Uses

func (m *InitRequest) XXX_Merge(src proto.Message)

func (*InitRequest) XXX_Size Uses

func (m *InitRequest) XXX_Size() int

func (*InitRequest) XXX_Unmarshal Uses

func (m *InitRequest) XXX_Unmarshal(b []byte) error

type InitResponse Uses

type InitResponse struct {
    Config               []byte   `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*InitResponse) Descriptor Uses

func (*InitResponse) Descriptor() ([]byte, []int)

func (*InitResponse) GetConfig Uses

func (m *InitResponse) GetConfig() []byte

func (*InitResponse) ProtoMessage Uses

func (*InitResponse) ProtoMessage()

func (*InitResponse) Reset Uses

func (m *InitResponse) Reset()

func (*InitResponse) String Uses

func (m *InitResponse) String() string

func (*InitResponse) XXX_DiscardUnknown Uses

func (m *InitResponse) XXX_DiscardUnknown()

func (*InitResponse) XXX_Marshal Uses

func (m *InitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InitResponse) XXX_Merge Uses

func (m *InitResponse) XXX_Merge(src proto.Message)

func (*InitResponse) XXX_Size Uses

func (m *InitResponse) XXX_Size() int

func (*InitResponse) XXX_Unmarshal Uses

func (m *InitResponse) XXX_Unmarshal(b []byte) error

type InitializeRequest Uses

type InitializeRequest struct {
    Config               []byte   `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
    VerifyConnection     bool     `protobuf:"varint,2,opt,name=verify_connection,json=verifyConnection,proto3" json:"verify_connection,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Deprecated: Do not use.

func (*InitializeRequest) Descriptor Uses

func (*InitializeRequest) Descriptor() ([]byte, []int)

func (*InitializeRequest) GetConfig Uses

func (m *InitializeRequest) GetConfig() []byte

func (*InitializeRequest) GetVerifyConnection Uses

func (m *InitializeRequest) GetVerifyConnection() bool

func (*InitializeRequest) ProtoMessage Uses

func (*InitializeRequest) ProtoMessage()

func (*InitializeRequest) Reset Uses

func (m *InitializeRequest) Reset()

func (*InitializeRequest) String Uses

func (m *InitializeRequest) String() string

func (*InitializeRequest) XXX_DiscardUnknown Uses

func (m *InitializeRequest) XXX_DiscardUnknown()

func (*InitializeRequest) XXX_Marshal Uses

func (m *InitializeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InitializeRequest) XXX_Merge Uses

func (m *InitializeRequest) XXX_Merge(src proto.Message)

func (*InitializeRequest) XXX_Size Uses

func (m *InitializeRequest) XXX_Size() int

func (*InitializeRequest) XXX_Unmarshal Uses

func (m *InitializeRequest) XXX_Unmarshal(b []byte) error

type RenewUserRequest Uses

type RenewUserRequest struct {
    Statements           *Statements          `protobuf:"bytes,1,opt,name=statements,proto3" json:"statements,omitempty"`
    Username             string               `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
    Expiration           *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"`
    XXX_NoUnkeyedLiteral struct{}             `json:"-"`
    XXX_unrecognized     []byte               `json:"-"`
    XXX_sizecache        int32                `json:"-"`
}

func (*RenewUserRequest) Descriptor Uses

func (*RenewUserRequest) Descriptor() ([]byte, []int)

func (*RenewUserRequest) GetExpiration Uses

func (m *RenewUserRequest) GetExpiration() *timestamp.Timestamp

func (*RenewUserRequest) GetStatements Uses

func (m *RenewUserRequest) GetStatements() *Statements

func (*RenewUserRequest) GetUsername Uses

func (m *RenewUserRequest) GetUsername() string

func (*RenewUserRequest) ProtoMessage Uses

func (*RenewUserRequest) ProtoMessage()

func (*RenewUserRequest) Reset Uses

func (m *RenewUserRequest) Reset()

func (*RenewUserRequest) String Uses

func (m *RenewUserRequest) String() string

func (*RenewUserRequest) XXX_DiscardUnknown Uses

func (m *RenewUserRequest) XXX_DiscardUnknown()

func (*RenewUserRequest) XXX_Marshal Uses

func (m *RenewUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RenewUserRequest) XXX_Merge Uses

func (m *RenewUserRequest) XXX_Merge(src proto.Message)

func (*RenewUserRequest) XXX_Size Uses

func (m *RenewUserRequest) XXX_Size() int

func (*RenewUserRequest) XXX_Unmarshal Uses

func (m *RenewUserRequest) XXX_Unmarshal(b []byte) error

type RevokeUserRequest Uses

type RevokeUserRequest struct {
    Statements           *Statements `protobuf:"bytes,1,opt,name=statements,proto3" json:"statements,omitempty"`
    Username             string      `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

func (*RevokeUserRequest) Descriptor Uses

func (*RevokeUserRequest) Descriptor() ([]byte, []int)

func (*RevokeUserRequest) GetStatements Uses

func (m *RevokeUserRequest) GetStatements() *Statements

func (*RevokeUserRequest) GetUsername Uses

func (m *RevokeUserRequest) GetUsername() string

func (*RevokeUserRequest) ProtoMessage Uses

func (*RevokeUserRequest) ProtoMessage()

func (*RevokeUserRequest) Reset Uses

func (m *RevokeUserRequest) Reset()

func (*RevokeUserRequest) String Uses

func (m *RevokeUserRequest) String() string

func (*RevokeUserRequest) XXX_DiscardUnknown Uses

func (m *RevokeUserRequest) XXX_DiscardUnknown()

func (*RevokeUserRequest) XXX_Marshal Uses

func (m *RevokeUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RevokeUserRequest) XXX_Merge Uses

func (m *RevokeUserRequest) XXX_Merge(src proto.Message)

func (*RevokeUserRequest) XXX_Size Uses

func (m *RevokeUserRequest) XXX_Size() int

func (*RevokeUserRequest) XXX_Unmarshal Uses

func (m *RevokeUserRequest) XXX_Unmarshal(b []byte) error

type RotateRootCredentialsRequest Uses

type RotateRootCredentialsRequest struct {
    Statements           []string `protobuf:"bytes,1,rep,name=statements,proto3" json:"statements,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*RotateRootCredentialsRequest) Descriptor Uses

func (*RotateRootCredentialsRequest) Descriptor() ([]byte, []int)

func (*RotateRootCredentialsRequest) GetStatements Uses

func (m *RotateRootCredentialsRequest) GetStatements() []string

func (*RotateRootCredentialsRequest) ProtoMessage Uses

func (*RotateRootCredentialsRequest) ProtoMessage()

func (*RotateRootCredentialsRequest) Reset Uses

func (m *RotateRootCredentialsRequest) Reset()

func (*RotateRootCredentialsRequest) String Uses

func (m *RotateRootCredentialsRequest) String() string

func (*RotateRootCredentialsRequest) XXX_DiscardUnknown Uses

func (m *RotateRootCredentialsRequest) XXX_DiscardUnknown()

func (*RotateRootCredentialsRequest) XXX_Marshal Uses

func (m *RotateRootCredentialsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RotateRootCredentialsRequest) XXX_Merge Uses

func (m *RotateRootCredentialsRequest) XXX_Merge(src proto.Message)

func (*RotateRootCredentialsRequest) XXX_Size Uses

func (m *RotateRootCredentialsRequest) XXX_Size() int

func (*RotateRootCredentialsRequest) XXX_Unmarshal Uses

func (m *RotateRootCredentialsRequest) XXX_Unmarshal(b []byte) error

type RotateRootCredentialsResponse Uses

type RotateRootCredentialsResponse struct {
    Config               []byte   `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*RotateRootCredentialsResponse) Descriptor Uses

func (*RotateRootCredentialsResponse) Descriptor() ([]byte, []int)

func (*RotateRootCredentialsResponse) GetConfig Uses

func (m *RotateRootCredentialsResponse) GetConfig() []byte

func (*RotateRootCredentialsResponse) ProtoMessage Uses

func (*RotateRootCredentialsResponse) ProtoMessage()

func (*RotateRootCredentialsResponse) Reset Uses

func (m *RotateRootCredentialsResponse) Reset()

func (*RotateRootCredentialsResponse) String Uses

func (m *RotateRootCredentialsResponse) String() string

func (*RotateRootCredentialsResponse) XXX_DiscardUnknown Uses

func (m *RotateRootCredentialsResponse) XXX_DiscardUnknown()

func (*RotateRootCredentialsResponse) XXX_Marshal Uses

func (m *RotateRootCredentialsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RotateRootCredentialsResponse) XXX_Merge Uses

func (m *RotateRootCredentialsResponse) XXX_Merge(src proto.Message)

func (*RotateRootCredentialsResponse) XXX_Size Uses

func (m *RotateRootCredentialsResponse) XXX_Size() int

func (*RotateRootCredentialsResponse) XXX_Unmarshal Uses

func (m *RotateRootCredentialsResponse) XXX_Unmarshal(b []byte) error

type SetCredentialsRequest Uses

type SetCredentialsRequest struct {
    Statements           *Statements       `protobuf:"bytes,1,opt,name=statements,proto3" json:"statements,omitempty"`
    StaticUserConfig     *StaticUserConfig `protobuf:"bytes,2,opt,name=static_user_config,json=staticUserConfig,proto3" json:"static_user_config,omitempty"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

func (*SetCredentialsRequest) Descriptor Uses

func (*SetCredentialsRequest) Descriptor() ([]byte, []int)

func (*SetCredentialsRequest) GetStatements Uses

func (m *SetCredentialsRequest) GetStatements() *Statements

func (*SetCredentialsRequest) GetStaticUserConfig Uses

func (m *SetCredentialsRequest) GetStaticUserConfig() *StaticUserConfig

func (*SetCredentialsRequest) ProtoMessage Uses

func (*SetCredentialsRequest) ProtoMessage()

func (*SetCredentialsRequest) Reset Uses

func (m *SetCredentialsRequest) Reset()

func (*SetCredentialsRequest) String Uses

func (m *SetCredentialsRequest) String() string

func (*SetCredentialsRequest) XXX_DiscardUnknown Uses

func (m *SetCredentialsRequest) XXX_DiscardUnknown()

func (*SetCredentialsRequest) XXX_Marshal Uses

func (m *SetCredentialsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetCredentialsRequest) XXX_Merge Uses

func (m *SetCredentialsRequest) XXX_Merge(src proto.Message)

func (*SetCredentialsRequest) XXX_Size Uses

func (m *SetCredentialsRequest) XXX_Size() int

func (*SetCredentialsRequest) XXX_Unmarshal Uses

func (m *SetCredentialsRequest) XXX_Unmarshal(b []byte) error

type SetCredentialsResponse Uses

type SetCredentialsResponse struct {
    Username             string   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
    Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*SetCredentialsResponse) Descriptor Uses

func (*SetCredentialsResponse) Descriptor() ([]byte, []int)

func (*SetCredentialsResponse) GetPassword Uses

func (m *SetCredentialsResponse) GetPassword() string

func (*SetCredentialsResponse) GetUsername Uses

func (m *SetCredentialsResponse) GetUsername() string

func (*SetCredentialsResponse) ProtoMessage Uses

func (*SetCredentialsResponse) ProtoMessage()

func (*SetCredentialsResponse) Reset Uses

func (m *SetCredentialsResponse) Reset()

func (*SetCredentialsResponse) String Uses

func (m *SetCredentialsResponse) String() string

func (*SetCredentialsResponse) XXX_DiscardUnknown Uses

func (m *SetCredentialsResponse) XXX_DiscardUnknown()

func (*SetCredentialsResponse) XXX_Marshal Uses

func (m *SetCredentialsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetCredentialsResponse) XXX_Merge Uses

func (m *SetCredentialsResponse) XXX_Merge(src proto.Message)

func (*SetCredentialsResponse) XXX_Size Uses

func (m *SetCredentialsResponse) XXX_Size() int

func (*SetCredentialsResponse) XXX_Unmarshal Uses

func (m *SetCredentialsResponse) XXX_Unmarshal(b []byte) error

type Statements Uses

type Statements struct {
    // DEPRECATED, will be removed in 0.12
    CreationStatements string `protobuf:"bytes,1,opt,name=creation_statements,json=creationStatements,proto3" json:"creation_statements,omitempty"` // Deprecated: Do not use.
    // DEPRECATED, will be removed in 0.12
    RevocationStatements string `protobuf:"bytes,2,opt,name=revocation_statements,json=revocationStatements,proto3" json:"revocation_statements,omitempty"` // Deprecated: Do not use.
    // DEPRECATED, will be removed in 0.12
    RollbackStatements string `protobuf:"bytes,3,opt,name=rollback_statements,json=rollbackStatements,proto3" json:"rollback_statements,omitempty"` // Deprecated: Do not use.
    // DEPRECATED, will be removed in 0.12
    RenewStatements      string   `protobuf:"bytes,4,opt,name=renew_statements,json=renewStatements,proto3" json:"renew_statements,omitempty"` // Deprecated: Do not use.
    Creation             []string `protobuf:"bytes,5,rep,name=creation,proto3" json:"creation,omitempty"`
    Revocation           []string `protobuf:"bytes,6,rep,name=revocation,proto3" json:"revocation,omitempty"`
    Rollback             []string `protobuf:"bytes,7,rep,name=rollback,proto3" json:"rollback,omitempty"`
    Renewal              []string `protobuf:"bytes,8,rep,name=renewal,proto3" json:"renewal,omitempty"`
    Rotation             []string `protobuf:"bytes,9,rep,name=rotation,proto3" json:"rotation,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Statements) Descriptor Uses

func (*Statements) Descriptor() ([]byte, []int)

func (*Statements) GetCreation Uses

func (m *Statements) GetCreation() []string

func (*Statements) GetCreationStatements Uses

func (m *Statements) GetCreationStatements() string

Deprecated: Do not use.

func (*Statements) GetRenewStatements Uses

func (m *Statements) GetRenewStatements() string

Deprecated: Do not use.

func (*Statements) GetRenewal Uses

func (m *Statements) GetRenewal() []string

func (*Statements) GetRevocation Uses

func (m *Statements) GetRevocation() []string

func (*Statements) GetRevocationStatements Uses

func (m *Statements) GetRevocationStatements() string

Deprecated: Do not use.

func (*Statements) GetRollback Uses

func (m *Statements) GetRollback() []string

func (*Statements) GetRollbackStatements Uses

func (m *Statements) GetRollbackStatements() string

Deprecated: Do not use.

func (*Statements) GetRotation Uses

func (m *Statements) GetRotation() []string

func (*Statements) ProtoMessage Uses

func (*Statements) ProtoMessage()

func (*Statements) Reset Uses

func (m *Statements) Reset()

func (*Statements) String Uses

func (m *Statements) String() string

func (*Statements) XXX_DiscardUnknown Uses

func (m *Statements) XXX_DiscardUnknown()

func (*Statements) XXX_Marshal Uses

func (m *Statements) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Statements) XXX_Merge Uses

func (m *Statements) XXX_Merge(src proto.Message)

func (*Statements) XXX_Size Uses

func (m *Statements) XXX_Size() int

func (*Statements) XXX_Unmarshal Uses

func (m *Statements) XXX_Unmarshal(b []byte) error

type StaticUserConfig Uses

type StaticUserConfig struct {
    Username             string   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
    Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
    Create               bool     `protobuf:"varint,3,opt,name=create,proto3" json:"create,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*StaticUserConfig) Descriptor Uses

func (*StaticUserConfig) Descriptor() ([]byte, []int)

func (*StaticUserConfig) GetCreate Uses

func (m *StaticUserConfig) GetCreate() bool

func (*StaticUserConfig) GetPassword Uses

func (m *StaticUserConfig) GetPassword() string

func (*StaticUserConfig) GetUsername Uses

func (m *StaticUserConfig) GetUsername() string

func (*StaticUserConfig) ProtoMessage Uses

func (*StaticUserConfig) ProtoMessage()

func (*StaticUserConfig) Reset Uses

func (m *StaticUserConfig) Reset()

func (*StaticUserConfig) String Uses

func (m *StaticUserConfig) String() string

func (*StaticUserConfig) XXX_DiscardUnknown Uses

func (m *StaticUserConfig) XXX_DiscardUnknown()

func (*StaticUserConfig) XXX_Marshal Uses

func (m *StaticUserConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StaticUserConfig) XXX_Merge Uses

func (m *StaticUserConfig) XXX_Merge(src proto.Message)

func (*StaticUserConfig) XXX_Size Uses

func (m *StaticUserConfig) XXX_Size() int

func (*StaticUserConfig) XXX_Unmarshal Uses

func (m *StaticUserConfig) XXX_Unmarshal(b []byte) error

type TypeResponse Uses

type TypeResponse struct {
    Type                 string   `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*TypeResponse) Descriptor Uses

func (*TypeResponse) Descriptor() ([]byte, []int)

func (*TypeResponse) GetType Uses

func (m *TypeResponse) GetType() string

func (*TypeResponse) ProtoMessage Uses

func (*TypeResponse) ProtoMessage()

func (*TypeResponse) Reset Uses

func (m *TypeResponse) Reset()

func (*TypeResponse) String Uses

func (m *TypeResponse) String() string

func (*TypeResponse) XXX_DiscardUnknown Uses

func (m *TypeResponse) XXX_DiscardUnknown()

func (*TypeResponse) XXX_Marshal Uses

func (m *TypeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TypeResponse) XXX_Merge Uses

func (m *TypeResponse) XXX_Merge(src proto.Message)

func (*TypeResponse) XXX_Size Uses

func (m *TypeResponse) XXX_Size() int

func (*TypeResponse) XXX_Unmarshal Uses

func (m *TypeResponse) XXX_Unmarshal(b []byte) error

type UnimplementedDatabaseServer Uses

type UnimplementedDatabaseServer struct {
}

UnimplementedDatabaseServer can be embedded to have forward compatible implementations.

func (*UnimplementedDatabaseServer) Close Uses

func (*UnimplementedDatabaseServer) Close(ctx context.Context, req *Empty) (*Empty, error)

func (*UnimplementedDatabaseServer) CreateUser Uses

func (*UnimplementedDatabaseServer) CreateUser(ctx context.Context, req *CreateUserRequest) (*CreateUserResponse, error)

func (*UnimplementedDatabaseServer) GenerateCredentials Uses

func (*UnimplementedDatabaseServer) GenerateCredentials(ctx context.Context, req *Empty) (*GenerateCredentialsResponse, error)

func (*UnimplementedDatabaseServer) Init Uses

func (*UnimplementedDatabaseServer) Init(ctx context.Context, req *InitRequest) (*InitResponse, error)

func (*UnimplementedDatabaseServer) Initialize Uses

func (*UnimplementedDatabaseServer) Initialize(ctx context.Context, req *InitializeRequest) (*Empty, error)

func (*UnimplementedDatabaseServer) RenewUser Uses

func (*UnimplementedDatabaseServer) RenewUser(ctx context.Context, req *RenewUserRequest) (*Empty, error)

func (*UnimplementedDatabaseServer) RevokeUser Uses

func (*UnimplementedDatabaseServer) RevokeUser(ctx context.Context, req *RevokeUserRequest) (*Empty, error)

func (*UnimplementedDatabaseServer) RotateRootCredentials Uses

func (*UnimplementedDatabaseServer) RotateRootCredentials(ctx context.Context, req *RotateRootCredentialsRequest) (*RotateRootCredentialsResponse, error)

func (*UnimplementedDatabaseServer) SetCredentials Uses

func (*UnimplementedDatabaseServer) SetCredentials(ctx context.Context, req *SetCredentialsRequest) (*SetCredentialsResponse, error)

func (*UnimplementedDatabaseServer) Type Uses

func (*UnimplementedDatabaseServer) Type(ctx context.Context, req *Empty) (*TypeResponse, error)

type UsernameConfig Uses

type UsernameConfig struct {
    DisplayName          string   `protobuf:"bytes,1,opt,name=DisplayName,proto3" json:"DisplayName,omitempty"`
    RoleName             string   `protobuf:"bytes,2,opt,name=RoleName,proto3" json:"RoleName,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*UsernameConfig) Descriptor Uses

func (*UsernameConfig) Descriptor() ([]byte, []int)

func (*UsernameConfig) GetDisplayName Uses

func (m *UsernameConfig) GetDisplayName() string

func (*UsernameConfig) GetRoleName Uses

func (m *UsernameConfig) GetRoleName() string

func (*UsernameConfig) ProtoMessage Uses

func (*UsernameConfig) ProtoMessage()

func (*UsernameConfig) Reset Uses

func (m *UsernameConfig) Reset()

func (*UsernameConfig) String Uses

func (m *UsernameConfig) String() string

func (*UsernameConfig) XXX_DiscardUnknown Uses

func (m *UsernameConfig) XXX_DiscardUnknown()

func (*UsernameConfig) XXX_Marshal Uses

func (m *UsernameConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UsernameConfig) XXX_Merge Uses

func (m *UsernameConfig) XXX_Merge(src proto.Message)

func (*UsernameConfig) XXX_Size Uses

func (m *UsernameConfig) XXX_Size() int

func (*UsernameConfig) XXX_Unmarshal Uses

func (m *UsernameConfig) XXX_Unmarshal(b []byte) error

Package dbplugin imports 22 packages (graph) and is imported by 17 packages. Updated 2019-07-15. Refresh now. Tools for package owners.