Help us shape the future of Go! Take the 2026 Go Developer Survey

auth

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: MIT Imports: 14 Imported by: 0

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAuthPlugin) GetConfig

func (m *MockAuthPlugin) GetConfig(arg0 context.Context, arg1 *config.SQL) (*config.SQL, error)

GetConfig mocks base method.

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.

type RDSAuthPlugin

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

func (*RDSAuthPlugin) GetConfig

func (plugin *RDSAuthPlugin) GetConfig(ctx context.Context, cfg *config.SQL) (*config.SQL, error)

Jump to

Keyboard shortcuts

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