Documentation ¶
Overview ¶
Package imageinspector is a generated GoMock package.
Package imageinspector is a generated GoMock package.
Package imageinspector is a generated GoMock package.
Package imageinspector is a generated GoMock package.
Index ¶
- type Hash
- type Info
- type InfoFetcher
- type Inspector
- type MockInfoFetcher
- type MockInfoFetcherMockRecorder
- type MockInspector
- type MockInspectorMockRecorder
- type MockSecretFetcher
- type MockSecretFetcherMockRecorder
- type MockStorageWithTransfer
- func (m *MockStorageWithTransfer) CopyTo(arg0 context.Context, arg1 ...StorageTransfer) error
- func (m *MockStorageWithTransfer) EXPECT() *MockStorageWithTransferMockRecorder
- func (m *MockStorageWithTransfer) Get(arg0 context.Context, arg1 RequestBase) (*Info, error)
- func (m *MockStorageWithTransfer) Store(arg0 context.Context, arg1 RequestBase, arg2 Info) error
- func (m *MockStorageWithTransfer) StoreMany(arg0 context.Context, arg1 map[Hash]Info) error
- type MockStorageWithTransferMockRecorder
- func (mr *MockStorageWithTransferMockRecorder) CopyTo(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockStorageWithTransferMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStorageWithTransferMockRecorder) Store(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockStorageWithTransferMockRecorder) StoreMany(arg0, arg1 interface{}) *gomock.Call
- type Request
- type RequestBase
- type SecretFetcher
- type Storage
- type StorageTransfer
- type StorageWithTransfer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InfoFetcher ¶
type InfoFetcher interface {
Fetch(ctx context.Context, registry, image string, pullSecrets []corev1.Secret) (*Info, error)
}
func NewSkopeoFetcher ¶
func NewSkopeoFetcher() InfoFetcher
type Inspector ¶
type Inspector interface {
Inspect(ctx context.Context, registry, image string, pullPolicy corev1.PullPolicy, pullSecretNames []string) (*Info, error)
}
func NewInspector ¶
func NewInspector(defaultRegistry string, infoFetcher InfoFetcher, secretFetcher SecretFetcher, storage ...Storage) Inspector
type MockInfoFetcher ¶
type MockInfoFetcher struct {
// contains filtered or unexported fields
}
MockInfoFetcher is a mock of InfoFetcher interface.
func NewMockInfoFetcher ¶
func NewMockInfoFetcher(ctrl *gomock.Controller) *MockInfoFetcher
NewMockInfoFetcher creates a new mock instance.
func (*MockInfoFetcher) EXPECT ¶
func (m *MockInfoFetcher) EXPECT() *MockInfoFetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockInfoFetcherMockRecorder ¶
type MockInfoFetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockInfoFetcherMockRecorder is the mock recorder for MockInfoFetcher.
func (*MockInfoFetcherMockRecorder) Fetch ¶
func (mr *MockInfoFetcherMockRecorder) Fetch(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Fetch indicates an expected call of Fetch.
type MockInspector ¶
type MockInspector struct {
// contains filtered or unexported fields
}
MockInspector is a mock of Inspector interface.
func NewMockInspector ¶
func NewMockInspector(ctrl *gomock.Controller) *MockInspector
NewMockInspector creates a new mock instance.
func (*MockInspector) EXPECT ¶
func (m *MockInspector) EXPECT() *MockInspectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockInspectorMockRecorder ¶
type MockInspectorMockRecorder struct {
// contains filtered or unexported fields
}
MockInspectorMockRecorder is the mock recorder for MockInspector.
func (*MockInspectorMockRecorder) Inspect ¶
func (mr *MockInspectorMockRecorder) Inspect(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
Inspect indicates an expected call of Inspect.
type MockSecretFetcher ¶
type MockSecretFetcher struct {
// contains filtered or unexported fields
}
MockSecretFetcher is a mock of SecretFetcher interface.
func NewMockSecretFetcher ¶
func NewMockSecretFetcher(ctrl *gomock.Controller) *MockSecretFetcher
NewMockSecretFetcher creates a new mock instance.
func (*MockSecretFetcher) EXPECT ¶
func (m *MockSecretFetcher) EXPECT() *MockSecretFetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSecretFetcherMockRecorder ¶
type MockSecretFetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockSecretFetcherMockRecorder is the mock recorder for MockSecretFetcher.
func (*MockSecretFetcherMockRecorder) Get ¶
func (mr *MockSecretFetcherMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get.
type MockStorageWithTransfer ¶
type MockStorageWithTransfer struct {
// contains filtered or unexported fields
}
MockStorageWithTransfer is a mock of StorageWithTransfer interface.
func NewMockStorageWithTransfer ¶
func NewMockStorageWithTransfer(ctrl *gomock.Controller) *MockStorageWithTransfer
NewMockStorageWithTransfer creates a new mock instance.
func (*MockStorageWithTransfer) CopyTo ¶
func (m *MockStorageWithTransfer) CopyTo(arg0 context.Context, arg1 ...StorageTransfer) error
CopyTo mocks base method.
func (*MockStorageWithTransfer) EXPECT ¶
func (m *MockStorageWithTransfer) EXPECT() *MockStorageWithTransferMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStorageWithTransfer) Get ¶
func (m *MockStorageWithTransfer) Get(arg0 context.Context, arg1 RequestBase) (*Info, error)
Get mocks base method.
func (*MockStorageWithTransfer) Store ¶
func (m *MockStorageWithTransfer) Store(arg0 context.Context, arg1 RequestBase, arg2 Info) error
Store mocks base method.
type MockStorageWithTransferMockRecorder ¶
type MockStorageWithTransferMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageWithTransferMockRecorder is the mock recorder for MockStorageWithTransfer.
func (*MockStorageWithTransferMockRecorder) CopyTo ¶
func (mr *MockStorageWithTransferMockRecorder) CopyTo(arg0 interface{}, arg1 ...interface{}) *gomock.Call
CopyTo indicates an expected call of CopyTo.
func (*MockStorageWithTransferMockRecorder) Get ¶
func (mr *MockStorageWithTransferMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockStorageWithTransferMockRecorder) Store ¶
func (mr *MockStorageWithTransferMockRecorder) Store(arg0, arg1, arg2 interface{}) *gomock.Call
Store indicates an expected call of Store.
func (*MockStorageWithTransferMockRecorder) StoreMany ¶
func (mr *MockStorageWithTransferMockRecorder) StoreMany(arg0, arg1 interface{}) *gomock.Call
StoreMany indicates an expected call of StoreMany.
type Request ¶
type Request struct { RequestBase PullPolicy corev1.PullPolicy }
type RequestBase ¶
type SecretFetcher ¶
func NewSecretFetcher ¶
func NewSecretFetcher(client secret.Interface) SecretFetcher
type Storage ¶
type Storage interface { Store(ctx context.Context, request RequestBase, info Info) error Get(ctx context.Context, request RequestBase) (*Info, error) }
type StorageTransfer ¶
type StorageWithTransfer ¶
type StorageWithTransfer interface { StorageTransfer Storage }
func NewConfigMapStorage ¶
func NewConfigMapStorage(client configmap.Interface, name string, avoidDirectGet bool) StorageWithTransfer
func NewMemoryStorage ¶
func NewMemoryStorage() StorageWithTransfer