Documentation ¶
Overview ¶
Package testmock is a generated GoMock package.
Package testmock is a generated GoMock package.
Package testmock is a generated GoMock package.
Package testmock is a generated GoMock package.
Package testmock is a generated GoMock package.
Package testmock is a generated GoMock package.
Package testmock is a generated GoMock package.
Package testmock is a generated GoMock package.
Package testmock is a generated GoMock package.
Package testmock is a generated GoMock package.
Package testmock is a generated GoMock package.
Package testmock is a generated GoMock package.
Index ¶
- type MockBuildEnv
- type MockBuildEnvMockRecorder
- type MockBuildpack
- func (m *MockBuildpack) Build(arg0 buildpack.Plan, arg1 buildpack.BuildConfig, arg2 buildpack.BuildEnv) (buildpack.BuildResult, error)
- func (m *MockBuildpack) ConfigFile() *buildpack.Descriptor
- func (m *MockBuildpack) Detect(arg0 *buildpack.DetectConfig, arg1 buildpack.BuildEnv) buildpack.DetectRun
- func (m *MockBuildpack) EXPECT() *MockBuildpackMockRecorder
- type MockBuildpackMockRecorder
- type MockBuildpackStore
- type MockBuildpackStoreMockRecorder
- type MockCacheHandler
- type MockCacheHandlerMockRecorder
- type MockConfigHandler
- type MockConfigHandlerMockRecorder
- type MockImageHandler
- type MockImageHandlerMockRecorder
- type MockLayerFactory
- func (m *MockLayerFactory) DirLayer(arg0, arg1 string) (layers.Layer, error)
- func (m *MockLayerFactory) EXPECT() *MockLayerFactoryMockRecorder
- func (m *MockLayerFactory) LauncherLayer(arg0 string) (layers.Layer, error)
- func (m *MockLayerFactory) ProcessTypesLayer(arg0 launch.Metadata) (layers.Layer, error)
- func (m *MockLayerFactory) SliceLayers(arg0 string, arg1 []layers.Slice) ([]layers.Layer, error)
- type MockLayerFactoryMockRecorder
- func (mr *MockLayerFactoryMockRecorder) DirLayer(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockLayerFactoryMockRecorder) LauncherLayer(arg0 interface{}) *gomock.Call
- func (mr *MockLayerFactoryMockRecorder) ProcessTypesLayer(arg0 interface{}) *gomock.Call
- func (mr *MockLayerFactoryMockRecorder) SliceLayers(arg0, arg1 interface{}) *gomock.Call
- type MockMetadataRestorer
- type MockMetadataRestorerMockRecorder
- type MockReference
- type MockReferenceMockRecorder
- func (mr *MockReferenceMockRecorder) Context() *gomock.Call
- func (mr *MockReferenceMockRecorder) Identifier() *gomock.Call
- func (mr *MockReferenceMockRecorder) Name() *gomock.Call
- func (mr *MockReferenceMockRecorder) Scope(arg0 interface{}) *gomock.Call
- func (mr *MockReferenceMockRecorder) String() *gomock.Call
- type MockRegistryHandler
- type MockRegistryHandlerMockRecorder
- type MockResolver
- type MockResolverMockRecorder
- type MockSBOMRestorer
- func (m *MockSBOMRestorer) EXPECT() *MockSBOMRestorerMockRecorder
- func (m *MockSBOMRestorer) RestoreFromCache(arg0 layer.Cache, arg1 string) error
- func (m *MockSBOMRestorer) RestoreFromPrevious(arg0 imgutil.Image, arg1 string) error
- func (m *MockSBOMRestorer) RestoreToBuildpackLayers(arg0 []buildpack.GroupBuildpack) error
- type MockSBOMRestorerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBuildEnv ¶
type MockBuildEnv struct {
// contains filtered or unexported fields
}
MockBuildEnv is a mock of BuildEnv interface.
func NewMockBuildEnv ¶
func NewMockBuildEnv(ctrl *gomock.Controller) *MockBuildEnv
NewMockBuildEnv creates a new mock instance.
func (*MockBuildEnv) AddEnvDir ¶
func (m *MockBuildEnv) AddEnvDir(arg0 string, arg1 env.ActionType) error
AddEnvDir mocks base method.
func (*MockBuildEnv) AddRootDir ¶
func (m *MockBuildEnv) AddRootDir(arg0 string) error
AddRootDir mocks base method.
func (*MockBuildEnv) EXPECT ¶
func (m *MockBuildEnv) EXPECT() *MockBuildEnvMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBuildEnv) WithPlatform ¶
func (m *MockBuildEnv) WithPlatform(arg0 string) ([]string, error)
WithPlatform mocks base method.
type MockBuildEnvMockRecorder ¶
type MockBuildEnvMockRecorder struct {
// contains filtered or unexported fields
}
MockBuildEnvMockRecorder is the mock recorder for MockBuildEnv.
func (*MockBuildEnvMockRecorder) AddEnvDir ¶
func (mr *MockBuildEnvMockRecorder) AddEnvDir(arg0, arg1 interface{}) *gomock.Call
AddEnvDir indicates an expected call of AddEnvDir.
func (*MockBuildEnvMockRecorder) AddRootDir ¶
func (mr *MockBuildEnvMockRecorder) AddRootDir(arg0 interface{}) *gomock.Call
AddRootDir indicates an expected call of AddRootDir.
func (*MockBuildEnvMockRecorder) List ¶
func (mr *MockBuildEnvMockRecorder) List() *gomock.Call
List indicates an expected call of List.
func (*MockBuildEnvMockRecorder) WithPlatform ¶
func (mr *MockBuildEnvMockRecorder) WithPlatform(arg0 interface{}) *gomock.Call
WithPlatform indicates an expected call of WithPlatform.
type MockBuildpack ¶ added in v0.10.0
type MockBuildpack struct {
// contains filtered or unexported fields
}
MockBuildpack is a mock of Buildpack interface.
func NewMockBuildpack ¶ added in v0.10.0
func NewMockBuildpack(ctrl *gomock.Controller) *MockBuildpack
NewMockBuildpack creates a new mock instance.
func (*MockBuildpack) Build ¶ added in v0.10.0
func (m *MockBuildpack) Build(arg0 buildpack.Plan, arg1 buildpack.BuildConfig, arg2 buildpack.BuildEnv) (buildpack.BuildResult, error)
Build mocks base method.
func (*MockBuildpack) ConfigFile ¶ added in v0.11.0
func (m *MockBuildpack) ConfigFile() *buildpack.Descriptor
ConfigFile mocks base method.
func (*MockBuildpack) Detect ¶ added in v0.11.0
func (m *MockBuildpack) Detect(arg0 *buildpack.DetectConfig, arg1 buildpack.BuildEnv) buildpack.DetectRun
Detect mocks base method.
func (*MockBuildpack) EXPECT ¶ added in v0.10.0
func (m *MockBuildpack) EXPECT() *MockBuildpackMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockBuildpackMockRecorder ¶ added in v0.10.0
type MockBuildpackMockRecorder struct {
// contains filtered or unexported fields
}
MockBuildpackMockRecorder is the mock recorder for MockBuildpack.
func (*MockBuildpackMockRecorder) Build ¶ added in v0.10.0
func (mr *MockBuildpackMockRecorder) Build(arg0, arg1, arg2 interface{}) *gomock.Call
Build indicates an expected call of Build.
func (*MockBuildpackMockRecorder) ConfigFile ¶ added in v0.11.0
func (mr *MockBuildpackMockRecorder) ConfigFile() *gomock.Call
ConfigFile indicates an expected call of ConfigFile.
func (*MockBuildpackMockRecorder) Detect ¶ added in v0.11.0
func (mr *MockBuildpackMockRecorder) Detect(arg0, arg1 interface{}) *gomock.Call
Detect indicates an expected call of Detect.
type MockBuildpackStore ¶ added in v0.10.0
type MockBuildpackStore struct {
// contains filtered or unexported fields
}
MockBuildpackStore is a mock of BuildpackStore interface.
func NewMockBuildpackStore ¶ added in v0.10.0
func NewMockBuildpackStore(ctrl *gomock.Controller) *MockBuildpackStore
NewMockBuildpackStore creates a new mock instance.
func (*MockBuildpackStore) EXPECT ¶ added in v0.10.0
func (m *MockBuildpackStore) EXPECT() *MockBuildpackStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockBuildpackStoreMockRecorder ¶ added in v0.10.0
type MockBuildpackStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockBuildpackStoreMockRecorder is the mock recorder for MockBuildpackStore.
func (*MockBuildpackStoreMockRecorder) Lookup ¶ added in v0.10.0
func (mr *MockBuildpackStoreMockRecorder) Lookup(arg0, arg1 interface{}) *gomock.Call
Lookup indicates an expected call of Lookup.
type MockCacheHandler ¶ added in v0.14.1
type MockCacheHandler struct {
// contains filtered or unexported fields
}
MockCacheHandler is a mock of CacheHandler interface.
func NewMockCacheHandler ¶ added in v0.14.1
func NewMockCacheHandler(ctrl *gomock.Controller) *MockCacheHandler
NewMockCacheHandler creates a new mock instance.
func (*MockCacheHandler) EXPECT ¶ added in v0.14.1
func (m *MockCacheHandler) EXPECT() *MockCacheHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCacheHandlerMockRecorder ¶ added in v0.14.1
type MockCacheHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockCacheHandlerMockRecorder is the mock recorder for MockCacheHandler.
func (*MockCacheHandlerMockRecorder) InitCache ¶ added in v0.14.1
func (mr *MockCacheHandlerMockRecorder) InitCache(arg0, arg1 interface{}) *gomock.Call
InitCache indicates an expected call of InitCache.
type MockConfigHandler ¶ added in v0.14.1
type MockConfigHandler struct {
// contains filtered or unexported fields
}
MockConfigHandler is a mock of ConfigHandler interface.
func NewMockConfigHandler ¶ added in v0.14.1
func NewMockConfigHandler(ctrl *gomock.Controller) *MockConfigHandler
NewMockConfigHandler creates a new mock instance.
func (*MockConfigHandler) EXPECT ¶ added in v0.14.1
func (m *MockConfigHandler) EXPECT() *MockConfigHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConfigHandler) ReadGroup ¶ added in v0.14.1
func (m *MockConfigHandler) ReadGroup(arg0 string) ([]buildpack.GroupBuildpack, error)
ReadGroup mocks base method.
type MockConfigHandlerMockRecorder ¶ added in v0.14.1
type MockConfigHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigHandlerMockRecorder is the mock recorder for MockConfigHandler.
func (*MockConfigHandlerMockRecorder) ReadGroup ¶ added in v0.14.1
func (mr *MockConfigHandlerMockRecorder) ReadGroup(arg0 interface{}) *gomock.Call
ReadGroup indicates an expected call of ReadGroup.
type MockImageHandler ¶ added in v0.14.1
type MockImageHandler struct {
// contains filtered or unexported fields
}
MockImageHandler is a mock of ImageHandler interface.
func NewMockImageHandler ¶ added in v0.14.1
func NewMockImageHandler(ctrl *gomock.Controller) *MockImageHandler
NewMockImageHandler creates a new mock instance.
func (*MockImageHandler) Docker ¶ added in v0.14.1
func (m *MockImageHandler) Docker() bool
Docker mocks base method.
func (*MockImageHandler) EXPECT ¶ added in v0.14.1
func (m *MockImageHandler) EXPECT() *MockImageHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockImageHandlerMockRecorder ¶ added in v0.14.1
type MockImageHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockImageHandlerMockRecorder is the mock recorder for MockImageHandler.
func (*MockImageHandlerMockRecorder) Docker ¶ added in v0.14.1
func (mr *MockImageHandlerMockRecorder) Docker() *gomock.Call
Docker indicates an expected call of Docker.
func (*MockImageHandlerMockRecorder) InitImage ¶ added in v0.14.1
func (mr *MockImageHandlerMockRecorder) InitImage(arg0 interface{}) *gomock.Call
InitImage indicates an expected call of InitImage.
type MockLayerFactory ¶ added in v0.8.1
type MockLayerFactory struct {
// contains filtered or unexported fields
}
MockLayerFactory is a mock of LayerFactory interface.
func NewMockLayerFactory ¶ added in v0.8.1
func NewMockLayerFactory(ctrl *gomock.Controller) *MockLayerFactory
NewMockLayerFactory creates a new mock instance.
func (*MockLayerFactory) DirLayer ¶ added in v0.8.1
func (m *MockLayerFactory) DirLayer(arg0, arg1 string) (layers.Layer, error)
DirLayer mocks base method.
func (*MockLayerFactory) EXPECT ¶ added in v0.8.1
func (m *MockLayerFactory) EXPECT() *MockLayerFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLayerFactory) LauncherLayer ¶ added in v0.9.0
func (m *MockLayerFactory) LauncherLayer(arg0 string) (layers.Layer, error)
LauncherLayer mocks base method.
func (*MockLayerFactory) ProcessTypesLayer ¶ added in v0.9.0
ProcessTypesLayer mocks base method.
func (*MockLayerFactory) SliceLayers ¶ added in v0.8.1
SliceLayers mocks base method.
type MockLayerFactoryMockRecorder ¶ added in v0.8.1
type MockLayerFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockLayerFactoryMockRecorder is the mock recorder for MockLayerFactory.
func (*MockLayerFactoryMockRecorder) DirLayer ¶ added in v0.8.1
func (mr *MockLayerFactoryMockRecorder) DirLayer(arg0, arg1 interface{}) *gomock.Call
DirLayer indicates an expected call of DirLayer.
func (*MockLayerFactoryMockRecorder) LauncherLayer ¶ added in v0.9.0
func (mr *MockLayerFactoryMockRecorder) LauncherLayer(arg0 interface{}) *gomock.Call
LauncherLayer indicates an expected call of LauncherLayer.
func (*MockLayerFactoryMockRecorder) ProcessTypesLayer ¶ added in v0.9.0
func (mr *MockLayerFactoryMockRecorder) ProcessTypesLayer(arg0 interface{}) *gomock.Call
ProcessTypesLayer indicates an expected call of ProcessTypesLayer.
func (*MockLayerFactoryMockRecorder) SliceLayers ¶ added in v0.8.1
func (mr *MockLayerFactoryMockRecorder) SliceLayers(arg0, arg1 interface{}) *gomock.Call
SliceLayers indicates an expected call of SliceLayers.
type MockMetadataRestorer ¶ added in v0.14.1
type MockMetadataRestorer struct {
// contains filtered or unexported fields
}
MockMetadataRestorer is a mock of MetadataRestorer interface.
func NewMockMetadataRestorer ¶ added in v0.14.1
func NewMockMetadataRestorer(ctrl *gomock.Controller) *MockMetadataRestorer
NewMockMetadataRestorer creates a new mock instance.
func (*MockMetadataRestorer) EXPECT ¶ added in v0.14.1
func (m *MockMetadataRestorer) EXPECT() *MockMetadataRestorerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMetadataRestorer) Restore ¶ added in v0.14.1
func (m *MockMetadataRestorer) Restore(arg0 []buildpack.GroupBuildpack, arg1 platform.LayersMetadata, arg2 platform.CacheMetadata, arg3 layer.SHAStore) error
Restore mocks base method.
type MockMetadataRestorerMockRecorder ¶ added in v0.14.1
type MockMetadataRestorerMockRecorder struct {
// contains filtered or unexported fields
}
MockMetadataRestorerMockRecorder is the mock recorder for MockMetadataRestorer.
func (*MockMetadataRestorerMockRecorder) Restore ¶ added in v0.14.1
func (mr *MockMetadataRestorerMockRecorder) Restore(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Restore indicates an expected call of Restore.
type MockReference ¶
type MockReference struct {
// contains filtered or unexported fields
}
MockReference is a mock of Reference interface
func NewMockReference ¶
func NewMockReference(ctrl *gomock.Controller) *MockReference
NewMockReference creates a new mock instance
func (*MockReference) Context ¶
func (m *MockReference) Context() name.Repository
Context mocks base method
func (*MockReference) EXPECT ¶
func (m *MockReference) EXPECT() *MockReferenceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockReference) Identifier ¶
func (m *MockReference) Identifier() string
Identifier mocks base method
func (*MockReference) Scope ¶
func (m *MockReference) Scope(arg0 string) string
Scope mocks base method
type MockReferenceMockRecorder ¶
type MockReferenceMockRecorder struct {
// contains filtered or unexported fields
}
MockReferenceMockRecorder is the mock recorder for MockReference
func (*MockReferenceMockRecorder) Context ¶
func (mr *MockReferenceMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context
func (*MockReferenceMockRecorder) Identifier ¶
func (mr *MockReferenceMockRecorder) Identifier() *gomock.Call
Identifier indicates an expected call of Identifier
func (*MockReferenceMockRecorder) Name ¶
func (mr *MockReferenceMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name
func (*MockReferenceMockRecorder) Scope ¶
func (mr *MockReferenceMockRecorder) Scope(arg0 interface{}) *gomock.Call
Scope indicates an expected call of Scope
func (*MockReferenceMockRecorder) String ¶
func (mr *MockReferenceMockRecorder) String() *gomock.Call
String indicates an expected call of String
type MockRegistryHandler ¶ added in v0.14.1
type MockRegistryHandler struct {
// contains filtered or unexported fields
}
MockRegistryHandler is a mock of RegistryHandler interface.
func NewMockRegistryHandler ¶ added in v0.14.1
func NewMockRegistryHandler(ctrl *gomock.Controller) *MockRegistryHandler
NewMockRegistryHandler creates a new mock instance.
func (*MockRegistryHandler) EXPECT ¶ added in v0.14.1
func (m *MockRegistryHandler) EXPECT() *MockRegistryHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRegistryHandler) EnsureReadAccess ¶ added in v0.14.1
func (m *MockRegistryHandler) EnsureReadAccess(arg0 ...string) error
EnsureReadAccess mocks base method.
func (*MockRegistryHandler) EnsureWriteAccess ¶ added in v0.14.1
func (m *MockRegistryHandler) EnsureWriteAccess(arg0 ...string) error
EnsureWriteAccess mocks base method.
type MockRegistryHandlerMockRecorder ¶ added in v0.14.1
type MockRegistryHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockRegistryHandlerMockRecorder is the mock recorder for MockRegistryHandler.
func (*MockRegistryHandlerMockRecorder) EnsureReadAccess ¶ added in v0.14.1
func (mr *MockRegistryHandlerMockRecorder) EnsureReadAccess(arg0 ...interface{}) *gomock.Call
EnsureReadAccess indicates an expected call of EnsureReadAccess.
func (*MockRegistryHandlerMockRecorder) EnsureWriteAccess ¶ added in v0.14.1
func (mr *MockRegistryHandlerMockRecorder) EnsureWriteAccess(arg0 ...interface{}) *gomock.Call
EnsureWriteAccess indicates an expected call of EnsureWriteAccess.
type MockResolver ¶ added in v0.11.0
type MockResolver struct {
// contains filtered or unexported fields
}
MockResolver is a mock of Resolver interface.
func NewMockResolver ¶ added in v0.11.0
func NewMockResolver(ctrl *gomock.Controller) *MockResolver
NewMockResolver creates a new mock instance.
func (*MockResolver) EXPECT ¶ added in v0.11.0
func (m *MockResolver) EXPECT() *MockResolverMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockResolver) Resolve ¶ added in v0.11.0
func (m *MockResolver) Resolve(arg0 []buildpack.GroupBuildpack, arg1 *sync.Map) ([]buildpack.GroupBuildpack, []platform.BuildPlanEntry, error)
Resolve mocks base method.
type MockResolverMockRecorder ¶ added in v0.11.0
type MockResolverMockRecorder struct {
// contains filtered or unexported fields
}
MockResolverMockRecorder is the mock recorder for MockResolver.
func (*MockResolverMockRecorder) Resolve ¶ added in v0.11.0
func (mr *MockResolverMockRecorder) Resolve(arg0, arg1 interface{}) *gomock.Call
Resolve indicates an expected call of Resolve.
type MockSBOMRestorer ¶ added in v0.14.1
type MockSBOMRestorer struct {
// contains filtered or unexported fields
}
MockSBOMRestorer is a mock of SBOMRestorer interface.
func NewMockSBOMRestorer ¶ added in v0.14.1
func NewMockSBOMRestorer(ctrl *gomock.Controller) *MockSBOMRestorer
NewMockSBOMRestorer creates a new mock instance.
func (*MockSBOMRestorer) EXPECT ¶ added in v0.14.1
func (m *MockSBOMRestorer) EXPECT() *MockSBOMRestorerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSBOMRestorer) RestoreFromCache ¶ added in v0.14.1
func (m *MockSBOMRestorer) RestoreFromCache(arg0 layer.Cache, arg1 string) error
RestoreFromCache mocks base method.
func (*MockSBOMRestorer) RestoreFromPrevious ¶ added in v0.14.1
func (m *MockSBOMRestorer) RestoreFromPrevious(arg0 imgutil.Image, arg1 string) error
RestoreFromPrevious mocks base method.
func (*MockSBOMRestorer) RestoreToBuildpackLayers ¶ added in v0.14.1
func (m *MockSBOMRestorer) RestoreToBuildpackLayers(arg0 []buildpack.GroupBuildpack) error
RestoreToBuildpackLayers mocks base method.
type MockSBOMRestorerMockRecorder ¶ added in v0.14.1
type MockSBOMRestorerMockRecorder struct {
// contains filtered or unexported fields
}
MockSBOMRestorerMockRecorder is the mock recorder for MockSBOMRestorer.
func (*MockSBOMRestorerMockRecorder) RestoreFromCache ¶ added in v0.14.1
func (mr *MockSBOMRestorerMockRecorder) RestoreFromCache(arg0, arg1 interface{}) *gomock.Call
RestoreFromCache indicates an expected call of RestoreFromCache.
func (*MockSBOMRestorerMockRecorder) RestoreFromPrevious ¶ added in v0.14.1
func (mr *MockSBOMRestorerMockRecorder) RestoreFromPrevious(arg0, arg1 interface{}) *gomock.Call
RestoreFromPrevious indicates an expected call of RestoreFromPrevious.
func (*MockSBOMRestorerMockRecorder) RestoreToBuildpackLayers ¶ added in v0.14.1
func (mr *MockSBOMRestorerMockRecorder) RestoreToBuildpackLayers(arg0 interface{}) *gomock.Call
RestoreToBuildpackLayers indicates an expected call of RestoreToBuildpackLayers.