qlight

package
v24.4.8 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package qlight is a generated GoMock package.

Index

Constants

View Source
const ConnectorName = "tokenmanager"

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPluginTokenManager

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

MockPluginTokenManager is a mock of PluginTokenManager interface.

func NewMockPluginTokenManager

func NewMockPluginTokenManager(ctrl *gomock.Controller) *MockPluginTokenManager

NewMockPluginTokenManager creates a new mock instance.

func (*MockPluginTokenManager) EXPECT

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

func (*MockPluginTokenManager) PluginTokenManager

func (m *MockPluginTokenManager) PluginTokenManager(ctx context.Context) (int32, error)

PluginTokenManager mocks base method.

func (*MockPluginTokenManager) TokenRefresh

func (m *MockPluginTokenManager) TokenRefresh(ctx context.Context, currentToken, psi string) (string, error)

TokenRefresh mocks base method.

type MockPluginTokenManagerMockRecorder

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

MockPluginTokenManagerMockRecorder is the mock recorder for MockPluginTokenManager.

func (*MockPluginTokenManagerMockRecorder) PluginTokenManager

func (mr *MockPluginTokenManagerMockRecorder) PluginTokenManager(ctx interface{}) *gomock.Call

PluginTokenManager indicates an expected call of PluginTokenManager.

func (*MockPluginTokenManagerMockRecorder) TokenRefresh

func (mr *MockPluginTokenManagerMockRecorder) TokenRefresh(ctx, currentToken, psi interface{}) *gomock.Call

TokenRefresh indicates an expected call of TokenRefresh.

type PluginConnector

type PluginConnector struct {
	plugin.Plugin
}

func (*PluginConnector) GRPCClient

func (p *PluginConnector) GRPCClient(ctx context.Context, b *plugin.GRPCBroker, cc *grpc.ClientConn) (interface{}, error)

func (*PluginConnector) GRPCServer

func (p *PluginConnector) GRPCServer(b *plugin.GRPCBroker, s *grpc.Server) error

type PluginGateway

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

func (*PluginGateway) PluginTokenManager

func (p *PluginGateway) PluginTokenManager(ctx context.Context) (int32, error)

func (*PluginGateway) TokenRefresh

func (p *PluginGateway) TokenRefresh(ctx context.Context, currentToken, psi string) (string, error)

type PluginTokenManager

type PluginTokenManager interface {
	TokenRefresh(ctx context.Context, currentToken, psi string) (string, error)
	PluginTokenManager(ctx context.Context) (int32, error)
}

type PluginTokenManagerDeferFunc

type PluginTokenManagerDeferFunc func() (PluginTokenManager, error)

type ReloadablePluginTokenManager

type ReloadablePluginTokenManager struct {
	DeferFunc PluginTokenManagerDeferFunc
}

func (*ReloadablePluginTokenManager) PluginTokenManager

func (d *ReloadablePluginTokenManager) PluginTokenManager(ctx context.Context) (int32, error)

func (*ReloadablePluginTokenManager) TokenRefresh

func (d *ReloadablePluginTokenManager) TokenRefresh(ctx context.Context, currentToken, psi string) (string, error)

Jump to

Keyboard shortcuts

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