loader

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Overview

Package loader provides loading certificates from files or base64 encoded string.

Index

Constants

This section is empty.

Variables

Set provides an implementation and interface.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Load(config tlsclientconfig.Config) (*tls.Config, error)
}

type Loader

type Loader struct{}

Loader represents a pool of certificates.

func (*Loader) Load

func (l *Loader) Load(config tlsclientconfig.Config) (*tls.Config, error)

type MockInterface added in v1.25.2

type MockInterface struct {
	mock.Mock
}

MockInterface is an autogenerated mock type for the Interface type

func NewMockInterface added in v1.25.2

func NewMockInterface(t mockConstructorTestingTNewMockInterface) *MockInterface

NewMockInterface creates a new instance of MockInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockInterface) EXPECT added in v1.25.2

func (_m *MockInterface) EXPECT() *MockInterface_Expecter

func (*MockInterface) Load added in v1.25.2

func (_m *MockInterface) Load(config tlsclientconfig.Config) (*tls.Config, error)

Load provides a mock function with given fields: config

type MockInterface_Expecter added in v1.25.2

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

func (*MockInterface_Expecter) Load added in v1.25.2

func (_e *MockInterface_Expecter) Load(config interface{}) *MockInterface_Load_Call

Load is a helper method to define mock.On call

  • config tlsclientconfig.Config

type MockInterface_Load_Call added in v1.25.2

type MockInterface_Load_Call struct {
	*mock.Call
}

MockInterface_Load_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Load'

func (*MockInterface_Load_Call) Return added in v1.25.2

func (*MockInterface_Load_Call) Run added in v1.25.2

Jump to

Keyboard shortcuts

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