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 MockPrivate
- func (_m *MockPrivate) EXPECT() *MockPrivate_Expecter
- func (_mock *MockPrivate) Leaf(ctx context.Context, hosts ...string) (*tls.Certificate, error)
- func (_mock *MockPrivate) Root(ctx context.Context) (localca.Root, error)
- func (_mock *MockPrivate) SignClient(ctx context.Context, csrDER []byte, req localca.ClientRequest) (localca.ClientCert, error)
- type MockPrivate_Expecter
- type MockPrivate_Leaf_Call
- func (_c *MockPrivate_Leaf_Call) Return(certificate *tls.Certificate, err error) *MockPrivate_Leaf_Call
- func (_c *MockPrivate_Leaf_Call) Run(run func(ctx context.Context, hosts ...string)) *MockPrivate_Leaf_Call
- func (_c *MockPrivate_Leaf_Call) RunAndReturn(run func(ctx context.Context, hosts ...string) (*tls.Certificate, error)) *MockPrivate_Leaf_Call
- type MockPrivate_Root_Call
- func (_c *MockPrivate_Root_Call) Return(root localca.Root, err error) *MockPrivate_Root_Call
- func (_c *MockPrivate_Root_Call) Run(run func(ctx context.Context)) *MockPrivate_Root_Call
- func (_c *MockPrivate_Root_Call) RunAndReturn(run func(ctx context.Context) (localca.Root, error)) *MockPrivate_Root_Call
- type MockPrivate_SignClient_Call
- func (_c *MockPrivate_SignClient_Call) Return(clientCert localca.ClientCert, err error) *MockPrivate_SignClient_Call
- func (_c *MockPrivate_SignClient_Call) Run(run func(ctx context.Context, csrDER []byte, req localca.ClientRequest)) *MockPrivate_SignClient_Call
- func (_c *MockPrivate_SignClient_Call) RunAndReturn(...) *MockPrivate_SignClient_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 MockPrivate ¶ added in v0.3.0
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) 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
func (_e *MockPrivate_Expecter) Root(ctx any) *MockPrivate_Root_Call
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
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
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 (_c *MockPrivate_Root_Call) Return(root localca.Root, err error) *MockPrivate_Root_Call
func (*MockPrivate_Root_Call) Run ¶ added in v0.3.0
func (_c *MockPrivate_Root_Call) Run(run func(ctx context.Context)) *MockPrivate_Root_Call
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
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 (_c *MockPrivate_SignClient_Call) Return(clientCert localca.ClientCert, err error) *MockPrivate_SignClient_Call
func (*MockPrivate_SignClient_Call) Run ¶ added in v0.3.0
func (_c *MockPrivate_SignClient_Call) Run(run func(ctx context.Context, csrDER []byte, req localca.ClientRequest)) *MockPrivate_SignClient_Call
func (*MockPrivate_SignClient_Call) RunAndReturn ¶ added in v0.3.0
func (_c *MockPrivate_SignClient_Call) RunAndReturn(run func(ctx context.Context, csrDER []byte, req localca.ClientRequest) (localca.ClientCert, error)) *MockPrivate_SignClient_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