mocks

package
v1.0.9-3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CAConfig

type CAConfig struct {
	GetHomeDirStub func() string

	GetServerConfigStub func() *v1.ServerConfig

	ParseCABlockStub func() (map[string][]byte, error)

	ParseDBBlockStub func() (map[string][]byte, error)

	ParseIntermediateBlockStub func() (map[string][]byte, error)

	ParseOperationsBlockStub func() (map[string][]byte, error)

	ParseTLSBlockStub func() (map[string][]byte, error)

	SetMountPathsStub func(config.Type)

	SetServerConfigStub func(*v1.ServerConfig)

	SetUpdateStub func(bool)

	UsingPKCS11Stub func() bool
	// contains filtered or unexported fields
}

func (*CAConfig) GetHomeDir

func (fake *CAConfig) GetHomeDir() string

func (*CAConfig) GetHomeDirCallCount

func (fake *CAConfig) GetHomeDirCallCount() int

func (*CAConfig) GetHomeDirCalls

func (fake *CAConfig) GetHomeDirCalls(stub func() string)

func (*CAConfig) GetHomeDirReturns

func (fake *CAConfig) GetHomeDirReturns(result1 string)

func (*CAConfig) GetHomeDirReturnsOnCall

func (fake *CAConfig) GetHomeDirReturnsOnCall(i int, result1 string)

func (*CAConfig) GetServerConfig

func (fake *CAConfig) GetServerConfig() *v1.ServerConfig

func (*CAConfig) GetServerConfigCallCount

func (fake *CAConfig) GetServerConfigCallCount() int

func (*CAConfig) GetServerConfigCalls

func (fake *CAConfig) GetServerConfigCalls(stub func() *v1.ServerConfig)

func (*CAConfig) GetServerConfigReturns

func (fake *CAConfig) GetServerConfigReturns(result1 *v1.ServerConfig)

func (*CAConfig) GetServerConfigReturnsOnCall

func (fake *CAConfig) GetServerConfigReturnsOnCall(i int, result1 *v1.ServerConfig)

func (*CAConfig) Invocations

func (fake *CAConfig) Invocations() map[string][][]interface{}

func (*CAConfig) ParseCABlock

func (fake *CAConfig) ParseCABlock() (map[string][]byte, error)

func (*CAConfig) ParseCABlockCallCount

func (fake *CAConfig) ParseCABlockCallCount() int

func (*CAConfig) ParseCABlockCalls

func (fake *CAConfig) ParseCABlockCalls(stub func() (map[string][]byte, error))

func (*CAConfig) ParseCABlockReturns

func (fake *CAConfig) ParseCABlockReturns(result1 map[string][]byte, result2 error)

func (*CAConfig) ParseCABlockReturnsOnCall

func (fake *CAConfig) ParseCABlockReturnsOnCall(i int, result1 map[string][]byte, result2 error)

func (*CAConfig) ParseDBBlock

func (fake *CAConfig) ParseDBBlock() (map[string][]byte, error)

func (*CAConfig) ParseDBBlockCallCount

func (fake *CAConfig) ParseDBBlockCallCount() int

func (*CAConfig) ParseDBBlockCalls

func (fake *CAConfig) ParseDBBlockCalls(stub func() (map[string][]byte, error))

func (*CAConfig) ParseDBBlockReturns

func (fake *CAConfig) ParseDBBlockReturns(result1 map[string][]byte, result2 error)

func (*CAConfig) ParseDBBlockReturnsOnCall

func (fake *CAConfig) ParseDBBlockReturnsOnCall(i int, result1 map[string][]byte, result2 error)

func (*CAConfig) ParseIntermediateBlock

func (fake *CAConfig) ParseIntermediateBlock() (map[string][]byte, error)

func (*CAConfig) ParseIntermediateBlockCallCount

func (fake *CAConfig) ParseIntermediateBlockCallCount() int

func (*CAConfig) ParseIntermediateBlockCalls

func (fake *CAConfig) ParseIntermediateBlockCalls(stub func() (map[string][]byte, error))

func (*CAConfig) ParseIntermediateBlockReturns

func (fake *CAConfig) ParseIntermediateBlockReturns(result1 map[string][]byte, result2 error)

func (*CAConfig) ParseIntermediateBlockReturnsOnCall

func (fake *CAConfig) ParseIntermediateBlockReturnsOnCall(i int, result1 map[string][]byte, result2 error)

func (*CAConfig) ParseOperationsBlock

func (fake *CAConfig) ParseOperationsBlock() (map[string][]byte, error)

func (*CAConfig) ParseOperationsBlockCallCount

func (fake *CAConfig) ParseOperationsBlockCallCount() int

func (*CAConfig) ParseOperationsBlockCalls

func (fake *CAConfig) ParseOperationsBlockCalls(stub func() (map[string][]byte, error))

func (*CAConfig) ParseOperationsBlockReturns

func (fake *CAConfig) ParseOperationsBlockReturns(result1 map[string][]byte, result2 error)

func (*CAConfig) ParseOperationsBlockReturnsOnCall

func (fake *CAConfig) ParseOperationsBlockReturnsOnCall(i int, result1 map[string][]byte, result2 error)

func (*CAConfig) ParseTLSBlock

func (fake *CAConfig) ParseTLSBlock() (map[string][]byte, error)

func (*CAConfig) ParseTLSBlockCallCount

func (fake *CAConfig) ParseTLSBlockCallCount() int

func (*CAConfig) ParseTLSBlockCalls

func (fake *CAConfig) ParseTLSBlockCalls(stub func() (map[string][]byte, error))

func (*CAConfig) ParseTLSBlockReturns

func (fake *CAConfig) ParseTLSBlockReturns(result1 map[string][]byte, result2 error)

func (*CAConfig) ParseTLSBlockReturnsOnCall

func (fake *CAConfig) ParseTLSBlockReturnsOnCall(i int, result1 map[string][]byte, result2 error)

func (*CAConfig) SetMountPaths

func (fake *CAConfig) SetMountPaths(arg1 config.Type)

func (*CAConfig) SetMountPathsArgsForCall

func (fake *CAConfig) SetMountPathsArgsForCall(i int) config.Type

func (*CAConfig) SetMountPathsCallCount

func (fake *CAConfig) SetMountPathsCallCount() int

func (*CAConfig) SetMountPathsCalls

func (fake *CAConfig) SetMountPathsCalls(stub func(config.Type))

func (*CAConfig) SetServerConfig

func (fake *CAConfig) SetServerConfig(arg1 *v1.ServerConfig)

func (*CAConfig) SetServerConfigArgsForCall

func (fake *CAConfig) SetServerConfigArgsForCall(i int) *v1.ServerConfig

func (*CAConfig) SetServerConfigCallCount

func (fake *CAConfig) SetServerConfigCallCount() int

func (*CAConfig) SetServerConfigCalls

func (fake *CAConfig) SetServerConfigCalls(stub func(*v1.ServerConfig))

func (*CAConfig) SetUpdate

func (fake *CAConfig) SetUpdate(arg1 bool)

func (*CAConfig) SetUpdateArgsForCall

func (fake *CAConfig) SetUpdateArgsForCall(i int) bool

func (*CAConfig) SetUpdateCallCount

func (fake *CAConfig) SetUpdateCallCount() int

func (*CAConfig) SetUpdateCalls

func (fake *CAConfig) SetUpdateCalls(stub func(bool))

func (*CAConfig) UsingPKCS11

func (fake *CAConfig) UsingPKCS11() bool

func (*CAConfig) UsingPKCS11CallCount

func (fake *CAConfig) UsingPKCS11CallCount() int

func (*CAConfig) UsingPKCS11Calls

func (fake *CAConfig) UsingPKCS11Calls(stub func() bool)

func (*CAConfig) UsingPKCS11Returns

func (fake *CAConfig) UsingPKCS11Returns(result1 bool)

func (*CAConfig) UsingPKCS11ReturnsOnCall

func (fake *CAConfig) UsingPKCS11ReturnsOnCall(i int, result1 bool)

type Client

func (*Client) Create

func (fake *Client) Create(arg1 context.Context, arg2 client.Object, arg3 ...controllerclient.CreateOption) error

func (*Client) CreateArgsForCall

func (fake *Client) CreateArgsForCall(i int) (context.Context, client.Object, []controllerclient.CreateOption)

func (*Client) CreateCallCount

func (fake *Client) CreateCallCount() int

func (*Client) CreateCalls

func (fake *Client) CreateCalls(stub func(context.Context, client.Object, ...controllerclient.CreateOption) error)

func (*Client) CreateOrUpdate

func (fake *Client) CreateOrUpdate(arg1 context.Context, arg2 client.Object, arg3 ...controllerclient.CreateOrUpdateOption) error

func (*Client) CreateOrUpdateArgsForCall

func (fake *Client) CreateOrUpdateArgsForCall(i int) (context.Context, client.Object, []controllerclient.CreateOrUpdateOption)

func (*Client) CreateOrUpdateCallCount

func (fake *Client) CreateOrUpdateCallCount() int

func (*Client) CreateOrUpdateCalls

func (fake *Client) CreateOrUpdateCalls(stub func(context.Context, client.Object, ...controllerclient.CreateOrUpdateOption) error)

func (*Client) CreateOrUpdateReturns

func (fake *Client) CreateOrUpdateReturns(result1 error)

func (*Client) CreateOrUpdateReturnsOnCall

func (fake *Client) CreateOrUpdateReturnsOnCall(i int, result1 error)

func (*Client) CreateReturns

func (fake *Client) CreateReturns(result1 error)

func (*Client) CreateReturnsOnCall

func (fake *Client) CreateReturnsOnCall(i int, result1 error)

func (*Client) Delete

func (fake *Client) Delete(arg1 context.Context, arg2 client.Object, arg3 ...client.DeleteOption) error

func (*Client) DeleteArgsForCall

func (fake *Client) DeleteArgsForCall(i int) (context.Context, client.Object, []client.DeleteOption)

func (*Client) DeleteCallCount

func (fake *Client) DeleteCallCount() int

func (*Client) DeleteCalls

func (fake *Client) DeleteCalls(stub func(context.Context, client.Object, ...client.DeleteOption) error)

func (*Client) DeleteReturns

func (fake *Client) DeleteReturns(result1 error)

func (*Client) DeleteReturnsOnCall

func (fake *Client) DeleteReturnsOnCall(i int, result1 error)

func (*Client) Get

func (fake *Client) Get(arg1 context.Context, arg2 types.NamespacedName, arg3 client.Object) error

func (*Client) GetArgsForCall

func (fake *Client) GetArgsForCall(i int) (context.Context, types.NamespacedName, client.Object)

func (*Client) GetCallCount

func (fake *Client) GetCallCount() int

func (*Client) GetCalls

func (fake *Client) GetCalls(stub func(context.Context, types.NamespacedName, client.Object) error)

func (*Client) GetReturns

func (fake *Client) GetReturns(result1 error)

func (*Client) GetReturnsOnCall

func (fake *Client) GetReturnsOnCall(i int, result1 error)

func (*Client) Invocations

func (fake *Client) Invocations() map[string][][]interface{}

func (*Client) List

func (fake *Client) List(arg1 context.Context, arg2 client.ObjectList, arg3 ...client.ListOption) error

func (*Client) ListArgsForCall

func (fake *Client) ListArgsForCall(i int) (context.Context, client.ObjectList, []client.ListOption)

func (*Client) ListCallCount

func (fake *Client) ListCallCount() int

func (*Client) ListCalls

func (fake *Client) ListCalls(stub func(context.Context, client.ObjectList, ...client.ListOption) error)

func (*Client) ListReturns

func (fake *Client) ListReturns(result1 error)

func (*Client) ListReturnsOnCall

func (fake *Client) ListReturnsOnCall(i int, result1 error)

func (*Client) Patch

func (fake *Client) Patch(arg1 context.Context, arg2 client.Object, arg3 client.Patch, arg4 ...controllerclient.PatchOption) error

func (*Client) PatchArgsForCall

func (fake *Client) PatchArgsForCall(i int) (context.Context, client.Object, client.Patch, []controllerclient.PatchOption)

func (*Client) PatchCallCount

func (fake *Client) PatchCallCount() int

func (*Client) PatchCalls

func (fake *Client) PatchCalls(stub func(context.Context, client.Object, client.Patch, ...controllerclient.PatchOption) error)

func (*Client) PatchReturns

func (fake *Client) PatchReturns(result1 error)

func (*Client) PatchReturnsOnCall

func (fake *Client) PatchReturnsOnCall(i int, result1 error)

func (*Client) PatchStatus

func (fake *Client) PatchStatus(arg1 context.Context, arg2 client.Object, arg3 client.Patch, arg4 ...controllerclient.PatchOption) error

func (*Client) PatchStatusArgsForCall

func (fake *Client) PatchStatusArgsForCall(i int) (context.Context, client.Object, client.Patch, []controllerclient.PatchOption)

func (*Client) PatchStatusCallCount

func (fake *Client) PatchStatusCallCount() int

func (*Client) PatchStatusCalls

func (fake *Client) PatchStatusCalls(stub func(context.Context, client.Object, client.Patch, ...controllerclient.PatchOption) error)

func (*Client) PatchStatusReturns

func (fake *Client) PatchStatusReturns(result1 error)

func (*Client) PatchStatusReturnsOnCall

func (fake *Client) PatchStatusReturnsOnCall(i int, result1 error)

func (*Client) Update

func (fake *Client) Update(arg1 context.Context, arg2 client.Object, arg3 ...controllerclient.UpdateOption) error

func (*Client) UpdateArgsForCall

func (fake *Client) UpdateArgsForCall(i int) (context.Context, client.Object, []controllerclient.UpdateOption)

func (*Client) UpdateCallCount

func (fake *Client) UpdateCallCount() int

func (*Client) UpdateCalls

func (fake *Client) UpdateCalls(stub func(context.Context, client.Object, ...controllerclient.UpdateOption) error)

func (*Client) UpdateReturns

func (fake *Client) UpdateReturns(result1 error)

func (*Client) UpdateReturnsOnCall

func (fake *Client) UpdateReturnsOnCall(i int, result1 error)

func (*Client) UpdateStatus

func (fake *Client) UpdateStatus(arg1 context.Context, arg2 client.Object, arg3 ...client.UpdateOption) error

func (*Client) UpdateStatusArgsForCall

func (fake *Client) UpdateStatusArgsForCall(i int) (context.Context, client.Object, []client.UpdateOption)

func (*Client) UpdateStatusCallCount

func (fake *Client) UpdateStatusCallCount() int

func (*Client) UpdateStatusCalls

func (fake *Client) UpdateStatusCalls(stub func(context.Context, client.Object, ...client.UpdateOption) error)

func (*Client) UpdateStatusReturns

func (fake *Client) UpdateStatusReturns(result1 error)

func (*Client) UpdateStatusReturnsOnCall

func (fake *Client) UpdateStatusReturnsOnCall(i int, result1 error)

type IBPCA

type IBPCA struct {
	ConfigToBytesStub func() ([]byte, error)

	GetHomeDirStub func() string

	GetServerConfigStub func() *v1.ServerConfig

	GetTypeStub func() config.Type

	InitStub func() error

	IsBeingUpdatedStub func()

	OverrideServerConfigStub func(*v1.ServerConfig) error

	ParseCABlockStub func() (map[string][]byte, error)

	ParseCryptoStub func() (map[string][]byte, error)

	RemoveHomeDirStub func() error

	SetMountPathsStub func()

	ViperUnmarshalStub func(string) (*lib.ServerConfig, error)

	WriteConfigStub func() error
	// contains filtered or unexported fields
}

func (*IBPCA) ConfigToBytes

func (fake *IBPCA) ConfigToBytes() ([]byte, error)

func (*IBPCA) ConfigToBytesCallCount

func (fake *IBPCA) ConfigToBytesCallCount() int

func (*IBPCA) ConfigToBytesCalls

func (fake *IBPCA) ConfigToBytesCalls(stub func() ([]byte, error))

func (*IBPCA) ConfigToBytesReturns

func (fake *IBPCA) ConfigToBytesReturns(result1 []byte, result2 error)

func (*IBPCA) ConfigToBytesReturnsOnCall

func (fake *IBPCA) ConfigToBytesReturnsOnCall(i int, result1 []byte, result2 error)

func (*IBPCA) GetHomeDir

func (fake *IBPCA) GetHomeDir() string

func (*IBPCA) GetHomeDirCallCount

func (fake *IBPCA) GetHomeDirCallCount() int

func (*IBPCA) GetHomeDirCalls

func (fake *IBPCA) GetHomeDirCalls(stub func() string)

func (*IBPCA) GetHomeDirReturns

func (fake *IBPCA) GetHomeDirReturns(result1 string)

func (*IBPCA) GetHomeDirReturnsOnCall

func (fake *IBPCA) GetHomeDirReturnsOnCall(i int, result1 string)

func (*IBPCA) GetServerConfig

func (fake *IBPCA) GetServerConfig() *v1.ServerConfig

func (*IBPCA) GetServerConfigCallCount

func (fake *IBPCA) GetServerConfigCallCount() int

func (*IBPCA) GetServerConfigCalls

func (fake *IBPCA) GetServerConfigCalls(stub func() *v1.ServerConfig)

func (*IBPCA) GetServerConfigReturns

func (fake *IBPCA) GetServerConfigReturns(result1 *v1.ServerConfig)

func (*IBPCA) GetServerConfigReturnsOnCall

func (fake *IBPCA) GetServerConfigReturnsOnCall(i int, result1 *v1.ServerConfig)

func (*IBPCA) GetType

func (fake *IBPCA) GetType() config.Type

func (*IBPCA) GetTypeCallCount

func (fake *IBPCA) GetTypeCallCount() int

func (*IBPCA) GetTypeCalls

func (fake *IBPCA) GetTypeCalls(stub func() config.Type)

func (*IBPCA) GetTypeReturns

func (fake *IBPCA) GetTypeReturns(result1 config.Type)

func (*IBPCA) GetTypeReturnsOnCall

func (fake *IBPCA) GetTypeReturnsOnCall(i int, result1 config.Type)

func (*IBPCA) Init

func (fake *IBPCA) Init() error

func (*IBPCA) InitCallCount

func (fake *IBPCA) InitCallCount() int

func (*IBPCA) InitCalls

func (fake *IBPCA) InitCalls(stub func() error)

func (*IBPCA) InitReturns

func (fake *IBPCA) InitReturns(result1 error)

func (*IBPCA) InitReturnsOnCall

func (fake *IBPCA) InitReturnsOnCall(i int, result1 error)

func (*IBPCA) Invocations

func (fake *IBPCA) Invocations() map[string][][]interface{}

func (*IBPCA) IsBeingUpdated

func (fake *IBPCA) IsBeingUpdated()

func (*IBPCA) IsBeingUpdatedCallCount

func (fake *IBPCA) IsBeingUpdatedCallCount() int

func (*IBPCA) IsBeingUpdatedCalls

func (fake *IBPCA) IsBeingUpdatedCalls(stub func())

func (*IBPCA) OverrideServerConfig

func (fake *IBPCA) OverrideServerConfig(arg1 *v1.ServerConfig) error

func (*IBPCA) OverrideServerConfigArgsForCall

func (fake *IBPCA) OverrideServerConfigArgsForCall(i int) *v1.ServerConfig

func (*IBPCA) OverrideServerConfigCallCount

func (fake *IBPCA) OverrideServerConfigCallCount() int

func (*IBPCA) OverrideServerConfigCalls

func (fake *IBPCA) OverrideServerConfigCalls(stub func(*v1.ServerConfig) error)

func (*IBPCA) OverrideServerConfigReturns

func (fake *IBPCA) OverrideServerConfigReturns(result1 error)

func (*IBPCA) OverrideServerConfigReturnsOnCall

func (fake *IBPCA) OverrideServerConfigReturnsOnCall(i int, result1 error)

func (*IBPCA) ParseCABlock

func (fake *IBPCA) ParseCABlock() (map[string][]byte, error)

func (*IBPCA) ParseCABlockCallCount

func (fake *IBPCA) ParseCABlockCallCount() int

func (*IBPCA) ParseCABlockCalls

func (fake *IBPCA) ParseCABlockCalls(stub func() (map[string][]byte, error))

func (*IBPCA) ParseCABlockReturns

func (fake *IBPCA) ParseCABlockReturns(result1 map[string][]byte, result2 error)

func (*IBPCA) ParseCABlockReturnsOnCall

func (fake *IBPCA) ParseCABlockReturnsOnCall(i int, result1 map[string][]byte, result2 error)

func (*IBPCA) ParseCrypto

func (fake *IBPCA) ParseCrypto() (map[string][]byte, error)

func (*IBPCA) ParseCryptoCallCount

func (fake *IBPCA) ParseCryptoCallCount() int

func (*IBPCA) ParseCryptoCalls

func (fake *IBPCA) ParseCryptoCalls(stub func() (map[string][]byte, error))

func (*IBPCA) ParseCryptoReturns

func (fake *IBPCA) ParseCryptoReturns(result1 map[string][]byte, result2 error)

func (*IBPCA) ParseCryptoReturnsOnCall

func (fake *IBPCA) ParseCryptoReturnsOnCall(i int, result1 map[string][]byte, result2 error)

func (*IBPCA) RemoveHomeDir

func (fake *IBPCA) RemoveHomeDir() error

func (*IBPCA) RemoveHomeDirCallCount

func (fake *IBPCA) RemoveHomeDirCallCount() int

func (*IBPCA) RemoveHomeDirCalls

func (fake *IBPCA) RemoveHomeDirCalls(stub func() error)

func (*IBPCA) RemoveHomeDirReturns

func (fake *IBPCA) RemoveHomeDirReturns(result1 error)

func (*IBPCA) RemoveHomeDirReturnsOnCall

func (fake *IBPCA) RemoveHomeDirReturnsOnCall(i int, result1 error)

func (*IBPCA) SetMountPaths

func (fake *IBPCA) SetMountPaths()

func (*IBPCA) SetMountPathsCallCount

func (fake *IBPCA) SetMountPathsCallCount() int

func (*IBPCA) SetMountPathsCalls

func (fake *IBPCA) SetMountPathsCalls(stub func())

func (*IBPCA) ViperUnmarshal

func (fake *IBPCA) ViperUnmarshal(arg1 string) (*lib.ServerConfig, error)

func (*IBPCA) ViperUnmarshalArgsForCall

func (fake *IBPCA) ViperUnmarshalArgsForCall(i int) string

func (*IBPCA) ViperUnmarshalCallCount

func (fake *IBPCA) ViperUnmarshalCallCount() int

func (*IBPCA) ViperUnmarshalCalls

func (fake *IBPCA) ViperUnmarshalCalls(stub func(string) (*lib.ServerConfig, error))

func (*IBPCA) ViperUnmarshalReturns

func (fake *IBPCA) ViperUnmarshalReturns(result1 *lib.ServerConfig, result2 error)

func (*IBPCA) ViperUnmarshalReturnsOnCall

func (fake *IBPCA) ViperUnmarshalReturnsOnCall(i int, result1 *lib.ServerConfig, result2 error)

func (*IBPCA) WriteConfig

func (fake *IBPCA) WriteConfig() error

func (*IBPCA) WriteConfigCallCount

func (fake *IBPCA) WriteConfigCallCount() int

func (*IBPCA) WriteConfigCalls

func (fake *IBPCA) WriteConfigCalls(stub func() error)

func (*IBPCA) WriteConfigReturns

func (fake *IBPCA) WriteConfigReturns(result1 error)

func (*IBPCA) WriteConfigReturnsOnCall

func (fake *IBPCA) WriteConfigReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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