localca

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 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 MockPrivate added in v0.3.0

type MockPrivate struct {
	mock.Mock
}

MockPrivate is an autogenerated mock type for the Private type

func NewMockPrivate added in v0.3.0

func NewMockPrivate(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPrivate

NewMockPrivate creates a new instance of MockPrivate. 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 (*MockPrivate) EXPECT added in v0.3.0

func (_m *MockPrivate) EXPECT() *MockPrivate_Expecter

func (*MockPrivate) Leaf added in v0.3.0

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

Leaf provides a mock function for the type MockPrivate

func (*MockPrivate) Root added in v0.3.0

func (_mock *MockPrivate) Root(ctx context.Context) (localca.Root, error)

Root provides a mock function for the type MockPrivate

func (*MockPrivate) SignClient added in v0.3.0

func (_mock *MockPrivate) SignClient(ctx context.Context, csrDER []byte, req localca.ClientRequest) (localca.ClientCert, error)

SignClient provides a mock function for the type MockPrivate

type MockPrivate_Expecter added in v0.3.0

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

func (*MockPrivate_Expecter) Leaf added in v0.3.0

func (_e *MockPrivate_Expecter) Leaf(ctx any, hosts ...any) *MockPrivate_Leaf_Call

Leaf is a helper method to define mock.On call

  • ctx context.Context
  • hosts ...string

func (*MockPrivate_Expecter) Root added in v0.3.0

Root is a helper method to define mock.On call

  • ctx context.Context

func (*MockPrivate_Expecter) SignClient added in v0.3.0

func (_e *MockPrivate_Expecter) SignClient(ctx any, csrDER any, req any) *MockPrivate_SignClient_Call

SignClient is a helper method to define mock.On call

  • ctx context.Context
  • csrDER []byte
  • req localca.ClientRequest

type MockPrivate_Leaf_Call added in v0.3.0

type MockPrivate_Leaf_Call struct {
	*mock.Call
}

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

func (*MockPrivate_Leaf_Call) Return added in v0.3.0

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

func (*MockPrivate_Leaf_Call) Run added in v0.3.0

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

func (*MockPrivate_Leaf_Call) RunAndReturn added in v0.3.0

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

type MockPrivate_Root_Call added in v0.3.0

type MockPrivate_Root_Call struct {
	*mock.Call
}

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

func (*MockPrivate_Root_Call) Return added in v0.3.0

func (*MockPrivate_Root_Call) Run added in v0.3.0

func (*MockPrivate_Root_Call) RunAndReturn added in v0.3.0

func (_c *MockPrivate_Root_Call) RunAndReturn(run func(ctx context.Context) (localca.Root, error)) *MockPrivate_Root_Call

type MockPrivate_SignClient_Call added in v0.3.0

type MockPrivate_SignClient_Call struct {
	*mock.Call
}

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

func (*MockPrivate_SignClient_Call) Return added in v0.3.0

func (*MockPrivate_SignClient_Call) Run added in v0.3.0

func (*MockPrivate_SignClient_Call) RunAndReturn added in v0.3.0

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