Documentation
¶
Index ¶
- type MockAuthority
- func (_m *MockAuthority) EXPECT() *MockAuthority_Expecter
- func (_mock *MockAuthority) Install(ctx context.Context, stores ...localca.Store) (localca.TrustState, error)
- func (_mock *MockAuthority) Installed(ctx context.Context) (localca.TrustState, error)
- func (_mock *MockAuthority) Leaf(ctx context.Context, hosts ...string) (*tls.Certificate, error)
- func (_mock *MockAuthority) Uninstall(ctx context.Context, opts ...localca.UninstallOption) error
- type MockAuthority_Expecter
- func (_e *MockAuthority_Expecter) Install(ctx interface{}, stores ...interface{}) *MockAuthority_Install_Call
- func (_e *MockAuthority_Expecter) Installed(ctx interface{}) *MockAuthority_Installed_Call
- func (_e *MockAuthority_Expecter) Leaf(ctx interface{}, hosts ...interface{}) *MockAuthority_Leaf_Call
- func (_e *MockAuthority_Expecter) Uninstall(ctx interface{}, opts ...interface{}) *MockAuthority_Uninstall_Call
- type MockAuthority_Install_Call
- func (_c *MockAuthority_Install_Call) Return(trustState localca.TrustState, err error) *MockAuthority_Install_Call
- func (_c *MockAuthority_Install_Call) Run(run func(ctx context.Context, stores ...localca.Store)) *MockAuthority_Install_Call
- func (_c *MockAuthority_Install_Call) RunAndReturn(...) *MockAuthority_Install_Call
- type MockAuthority_Installed_Call
- func (_c *MockAuthority_Installed_Call) Return(trustState localca.TrustState, err error) *MockAuthority_Installed_Call
- func (_c *MockAuthority_Installed_Call) Run(run func(ctx context.Context)) *MockAuthority_Installed_Call
- func (_c *MockAuthority_Installed_Call) RunAndReturn(run func(ctx context.Context) (localca.TrustState, error)) *MockAuthority_Installed_Call
- type MockAuthority_Leaf_Call
- func (_c *MockAuthority_Leaf_Call) Return(certificate *tls.Certificate, err error) *MockAuthority_Leaf_Call
- func (_c *MockAuthority_Leaf_Call) Run(run func(ctx context.Context, hosts ...string)) *MockAuthority_Leaf_Call
- func (_c *MockAuthority_Leaf_Call) RunAndReturn(run func(ctx context.Context, hosts ...string) (*tls.Certificate, error)) *MockAuthority_Leaf_Call
- type MockAuthority_Uninstall_Call
- func (_c *MockAuthority_Uninstall_Call) Return(err error) *MockAuthority_Uninstall_Call
- func (_c *MockAuthority_Uninstall_Call) Run(run func(ctx context.Context, opts ...localca.UninstallOption)) *MockAuthority_Uninstall_Call
- func (_c *MockAuthority_Uninstall_Call) RunAndReturn(run func(ctx context.Context, opts ...localca.UninstallOption) error) *MockAuthority_Uninstall_Call
- type MockTrustStore
- func (_m *MockTrustStore) EXPECT() *MockTrustStore_Expecter
- func (_mock *MockTrustStore) Install(root *x509.Certificate, stores ...localca.Store) (localca.TrustState, error)
- func (_mock *MockTrustStore) State(root *x509.Certificate) (localca.TrustState, error)
- func (_mock *MockTrustStore) Uninstall(root *x509.Certificate, stores ...localca.Store) error
- type MockTrustStore_Expecter
- func (_e *MockTrustStore_Expecter) Install(root interface{}, stores ...interface{}) *MockTrustStore_Install_Call
- func (_e *MockTrustStore_Expecter) State(root interface{}) *MockTrustStore_State_Call
- func (_e *MockTrustStore_Expecter) Uninstall(root interface{}, stores ...interface{}) *MockTrustStore_Uninstall_Call
- type MockTrustStore_Install_Call
- func (_c *MockTrustStore_Install_Call) Return(trustState localca.TrustState, err error) *MockTrustStore_Install_Call
- func (_c *MockTrustStore_Install_Call) Run(run func(root *x509.Certificate, stores ...localca.Store)) *MockTrustStore_Install_Call
- func (_c *MockTrustStore_Install_Call) RunAndReturn(...) *MockTrustStore_Install_Call
- type MockTrustStore_State_Call
- func (_c *MockTrustStore_State_Call) Return(trustState localca.TrustState, err error) *MockTrustStore_State_Call
- func (_c *MockTrustStore_State_Call) Run(run func(root *x509.Certificate)) *MockTrustStore_State_Call
- func (_c *MockTrustStore_State_Call) RunAndReturn(run func(root *x509.Certificate) (localca.TrustState, error)) *MockTrustStore_State_Call
- type MockTrustStore_Uninstall_Call
- func (_c *MockTrustStore_Uninstall_Call) Return(err error) *MockTrustStore_Uninstall_Call
- func (_c *MockTrustStore_Uninstall_Call) Run(run func(root *x509.Certificate, stores ...localca.Store)) *MockTrustStore_Uninstall_Call
- func (_c *MockTrustStore_Uninstall_Call) RunAndReturn(run func(root *x509.Certificate, stores ...localca.Store) error) *MockTrustStore_Uninstall_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthority ¶
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 ¶
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 (_c *MockAuthority_Install_Call) Return(trustState localca.TrustState, err error) *MockAuthority_Install_Call
func (*MockAuthority_Install_Call) Run ¶
func (_c *MockAuthority_Install_Call) Run(run func(ctx context.Context, stores ...localca.Store)) *MockAuthority_Install_Call
func (*MockAuthority_Install_Call) RunAndReturn ¶
func (_c *MockAuthority_Install_Call) RunAndReturn(run func(ctx context.Context, stores ...localca.Store) (localca.TrustState, error)) *MockAuthority_Install_Call
type MockAuthority_Installed_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 (_c *MockAuthority_Installed_Call) Return(trustState localca.TrustState, err error) *MockAuthority_Installed_Call
func (*MockAuthority_Installed_Call) Run ¶
func (_c *MockAuthority_Installed_Call) Run(run func(ctx context.Context)) *MockAuthority_Installed_Call
func (*MockAuthority_Installed_Call) RunAndReturn ¶
func (_c *MockAuthority_Installed_Call) RunAndReturn(run func(ctx context.Context) (localca.TrustState, error)) *MockAuthority_Installed_Call
type MockAuthority_Leaf_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 ¶
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 (_c *MockAuthority_Uninstall_Call) Return(err error) *MockAuthority_Uninstall_Call
func (*MockAuthority_Uninstall_Call) Run ¶
func (_c *MockAuthority_Uninstall_Call) Run(run func(ctx context.Context, opts ...localca.UninstallOption)) *MockAuthority_Uninstall_Call
func (*MockAuthority_Uninstall_Call) RunAndReturn ¶
func (_c *MockAuthority_Uninstall_Call) RunAndReturn(run func(ctx context.Context, opts ...localca.UninstallOption) error) *MockAuthority_Uninstall_Call
type MockTrustStore ¶
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 (_m *MockTrustStore) EXPECT() *MockTrustStore_Expecter
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 ¶
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 (_c *MockTrustStore_Install_Call) Return(trustState localca.TrustState, err error) *MockTrustStore_Install_Call
func (*MockTrustStore_Install_Call) Run ¶
func (_c *MockTrustStore_Install_Call) Run(run func(root *x509.Certificate, stores ...localca.Store)) *MockTrustStore_Install_Call
func (*MockTrustStore_Install_Call) RunAndReturn ¶
func (_c *MockTrustStore_Install_Call) RunAndReturn(run func(root *x509.Certificate, stores ...localca.Store) (localca.TrustState, error)) *MockTrustStore_Install_Call
type MockTrustStore_State_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 (_c *MockTrustStore_State_Call) Return(trustState localca.TrustState, err error) *MockTrustStore_State_Call
func (*MockTrustStore_State_Call) Run ¶
func (_c *MockTrustStore_State_Call) Run(run func(root *x509.Certificate)) *MockTrustStore_State_Call
func (*MockTrustStore_State_Call) RunAndReturn ¶
func (_c *MockTrustStore_State_Call) RunAndReturn(run func(root *x509.Certificate) (localca.TrustState, error)) *MockTrustStore_State_Call
type MockTrustStore_Uninstall_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 (_c *MockTrustStore_Uninstall_Call) Return(err error) *MockTrustStore_Uninstall_Call
func (*MockTrustStore_Uninstall_Call) Run ¶
func (_c *MockTrustStore_Uninstall_Call) Run(run func(root *x509.Certificate, stores ...localca.Store)) *MockTrustStore_Uninstall_Call
func (*MockTrustStore_Uninstall_Call) RunAndReturn ¶
func (_c *MockTrustStore_Uninstall_Call) RunAndReturn(run func(root *x509.Certificate, stores ...localca.Store) error) *MockTrustStore_Uninstall_Call