authtest

package
v0.0.0-...-0dbde95 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

type MockClient struct {
	ResultRoundTripper      http.RoundTripper
	ResultPerRPCCredentials credentials.PerRPCCredentials
	MustError               bool
}

MockClient provides a mock implementation of GRPCClient and HTTPClient interfaces

func (*MockClient) PerRPCCredentials

func (m *MockClient) PerRPCCredentials() (credentials.PerRPCCredentials, error)

PerRPCCredentials for the MockClient either returns error if the mock authenticator is forced to or returns the supplied resultPerRPCCredentials.

func (*MockClient) RoundTripper

func (m *MockClient) RoundTripper(http.RoundTripper) (http.RoundTripper, error)

RoundTripper for the MockClient either returns error if the mock authenticator is forced to or returns the supplied resultRoundTripper.

func (*MockClient) Shutdown

func (m *MockClient) Shutdown(context.Context) error

Shutdown for the MockClient does nothing

func (*MockClient) Start

Start for the MockClient does nothing

Jump to

Keyboard shortcuts

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