Documentation ¶
Overview ¶
Package auth is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidAuthPluginName = errors.New("auth_plugin: invalid auth plugin requested")
)
Functions ¶
func RegisterPlugin ¶
func RegisterPlugin(name string, plugin AuthPlugin)
RegisterPlugin adds an auth plugin to the plugin registry it is only safe to use from a package init function
Types ¶
type AuthPlugin ¶
type AuthPlugin interface { // GetConfig returns a mutated SQL config GetConfig(context.Context, *config.SQL) (*config.SQL, error) }
AuthPlugin interface for mutating SQL connection parameters
func LookupPlugin ¶
func LookupPlugin(name string) (AuthPlugin, error)
func NewRDSAuthPlugin ¶
func NewRDSAuthPlugin(awsConfig *aws.Config) AuthPlugin
type MockAuthPlugin ¶
type MockAuthPlugin struct {
// contains filtered or unexported fields
}
MockAuthPlugin is a mock of AuthPlugin interface.
func NewMockAuthPlugin ¶
func NewMockAuthPlugin(ctrl *gomock.Controller) *MockAuthPlugin
NewMockAuthPlugin creates a new mock instance.
func (*MockAuthPlugin) EXPECT ¶
func (m *MockAuthPlugin) EXPECT() *MockAuthPluginMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAuthPluginMockRecorder ¶
type MockAuthPluginMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthPluginMockRecorder is the mock recorder for MockAuthPlugin.
func (*MockAuthPluginMockRecorder) GetConfig ¶
func (mr *MockAuthPluginMockRecorder) GetConfig(arg0, arg1 interface{}) *gomock.Call
GetConfig indicates an expected call of GetConfig.
Click to show internal directories.
Click to hide internal directories.