localca

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthority

type MockAuthority struct {
	mock.Mock
}

MockAuthority is an autogenerated mock type for the Authority type

func NewMockAuthority

func NewMockAuthority(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAuthority

NewMockAuthority creates a new instance of MockAuthority. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockAuthority) EXPECT

func (_m *MockAuthority) EXPECT() *MockAuthority_Expecter

func (*MockAuthority) Install

func (_mock *MockAuthority) Install(ctx context.Context, stores ...localca.Store) (localca.TrustState, error)

Install provides a mock function for the type MockAuthority

func (*MockAuthority) Installed

func (_mock *MockAuthority) Installed(ctx context.Context) (localca.TrustState, error)

Installed provides a mock function for the type MockAuthority

func (*MockAuthority) Leaf

func (_mock *MockAuthority) Leaf(ctx context.Context, hosts ...string) (*tls.Certificate, error)

Leaf provides a mock function for the type MockAuthority

func (*MockAuthority) Uninstall

func (_mock *MockAuthority) Uninstall(ctx context.Context, opts ...localca.UninstallOption) error

Uninstall provides a mock function for the type MockAuthority

type MockAuthority_Expecter

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

func (*MockAuthority_Expecter) Install

func (_e *MockAuthority_Expecter) Install(ctx interface{}, stores ...interface{}) *MockAuthority_Install_Call

Install is a helper method to define mock.On call

  • ctx context.Context
  • stores ...localca.Store

func (*MockAuthority_Expecter) Installed

func (_e *MockAuthority_Expecter) Installed(ctx interface{}) *MockAuthority_Installed_Call

Installed is a helper method to define mock.On call

  • ctx context.Context

func (*MockAuthority_Expecter) Leaf

func (_e *MockAuthority_Expecter) Leaf(ctx interface{}, hosts ...interface{}) *MockAuthority_Leaf_Call

Leaf is a helper method to define mock.On call

  • ctx context.Context
  • hosts ...string

func (*MockAuthority_Expecter) Uninstall

func (_e *MockAuthority_Expecter) Uninstall(ctx interface{}, opts ...interface{}) *MockAuthority_Uninstall_Call

Uninstall is a helper method to define mock.On call

  • ctx context.Context
  • opts ...localca.UninstallOption

type MockAuthority_Install_Call

type MockAuthority_Install_Call struct {
	*mock.Call
}

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

func (*MockAuthority_Install_Call) Return

func (*MockAuthority_Install_Call) Run

func (*MockAuthority_Install_Call) RunAndReturn

type MockAuthority_Installed_Call

type MockAuthority_Installed_Call struct {
	*mock.Call
}

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

func (*MockAuthority_Installed_Call) Return

func (*MockAuthority_Installed_Call) Run

func (*MockAuthority_Installed_Call) RunAndReturn

type MockAuthority_Leaf_Call

type MockAuthority_Leaf_Call struct {
	*mock.Call
}

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

func (*MockAuthority_Leaf_Call) Return

func (_c *MockAuthority_Leaf_Call) Return(certificate *tls.Certificate, err error) *MockAuthority_Leaf_Call

func (*MockAuthority_Leaf_Call) Run

func (_c *MockAuthority_Leaf_Call) Run(run func(ctx context.Context, hosts ...string)) *MockAuthority_Leaf_Call

func (*MockAuthority_Leaf_Call) RunAndReturn

func (_c *MockAuthority_Leaf_Call) RunAndReturn(run func(ctx context.Context, hosts ...string) (*tls.Certificate, error)) *MockAuthority_Leaf_Call

type MockAuthority_Uninstall_Call

type MockAuthority_Uninstall_Call struct {
	*mock.Call
}

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

func (*MockAuthority_Uninstall_Call) Return

func (*MockAuthority_Uninstall_Call) Run

func (*MockAuthority_Uninstall_Call) RunAndReturn

type MockTrustStore

type MockTrustStore struct {
	mock.Mock
}

MockTrustStore is an autogenerated mock type for the TrustStore type

func NewMockTrustStore

func NewMockTrustStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTrustStore

NewMockTrustStore creates a new instance of MockTrustStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockTrustStore) EXPECT

func (*MockTrustStore) Install

func (_mock *MockTrustStore) Install(root *x509.Certificate, stores ...localca.Store) (localca.TrustState, error)

Install provides a mock function for the type MockTrustStore

func (*MockTrustStore) State

func (_mock *MockTrustStore) State(root *x509.Certificate) (localca.TrustState, error)

State provides a mock function for the type MockTrustStore

func (*MockTrustStore) Uninstall

func (_mock *MockTrustStore) Uninstall(root *x509.Certificate, stores ...localca.Store) error

Uninstall provides a mock function for the type MockTrustStore

type MockTrustStore_Expecter

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

func (*MockTrustStore_Expecter) Install

func (_e *MockTrustStore_Expecter) Install(root interface{}, stores ...interface{}) *MockTrustStore_Install_Call

Install is a helper method to define mock.On call

  • root *x509.Certificate
  • stores ...localca.Store

func (*MockTrustStore_Expecter) State

func (_e *MockTrustStore_Expecter) State(root interface{}) *MockTrustStore_State_Call

State is a helper method to define mock.On call

  • root *x509.Certificate

func (*MockTrustStore_Expecter) Uninstall

func (_e *MockTrustStore_Expecter) Uninstall(root interface{}, stores ...interface{}) *MockTrustStore_Uninstall_Call

Uninstall is a helper method to define mock.On call

  • root *x509.Certificate
  • stores ...localca.Store

type MockTrustStore_Install_Call

type MockTrustStore_Install_Call struct {
	*mock.Call
}

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

func (*MockTrustStore_Install_Call) Return

func (*MockTrustStore_Install_Call) Run

func (*MockTrustStore_Install_Call) RunAndReturn

type MockTrustStore_State_Call

type MockTrustStore_State_Call struct {
	*mock.Call
}

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

func (*MockTrustStore_State_Call) Return

func (*MockTrustStore_State_Call) Run

func (*MockTrustStore_State_Call) RunAndReturn

type MockTrustStore_Uninstall_Call

type MockTrustStore_Uninstall_Call struct {
	*mock.Call
}

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

func (*MockTrustStore_Uninstall_Call) Return

func (*MockTrustStore_Uninstall_Call) Run

func (*MockTrustStore_Uninstall_Call) RunAndReturn

func (_c *MockTrustStore_Uninstall_Call) RunAndReturn(run func(root *x509.Certificate, stores ...localca.Store) error) *MockTrustStore_Uninstall_Call

Jump to

Keyboard shortcuts

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