Documentation ¶
Overview ¶
Package moby is a generated GoMock package.
Package moby is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Archiver ¶
type Archiver interface {
DecompressStream(archive io.Reader) (io.ReadCloser, error)
}
Archiver wraps the moby/pkg/archive package in an interface
func NewArchiver ¶
func NewArchiver() Archiver
type MockArchiver ¶
type MockArchiver struct {
// contains filtered or unexported fields
}
MockArchiver is a mock of Archiver interface
func NewMockArchiver ¶
func NewMockArchiver(ctrl *gomock.Controller) *MockArchiver
NewMockArchiver creates a new mock instance
func (*MockArchiver) DecompressStream ¶
func (m *MockArchiver) DecompressStream(arg0 io.Reader) (io.ReadCloser, error)
DecompressStream mocks base method
func (*MockArchiver) EXPECT ¶
func (m *MockArchiver) EXPECT() *MockArchiverMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockArchiverMockRecorder ¶
type MockArchiverMockRecorder struct {
// contains filtered or unexported fields
}
MockArchiverMockRecorder is the mock recorder for MockArchiver
func (*MockArchiverMockRecorder) DecompressStream ¶
func (mr *MockArchiverMockRecorder) DecompressStream(arg0 interface{}) *gomock.Call
DecompressStream indicates an expected call of DecompressStream
type MockStacker ¶
type MockStacker struct {
// contains filtered or unexported fields
}
MockStacker is a mock of Stacker interface
func NewMockStacker ¶
func NewMockStacker(ctrl *gomock.Controller) *MockStacker
NewMockStacker creates a new mock instance
func (*MockStacker) EXPECT ¶
func (m *MockStacker) EXPECT() *MockStackerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockStackerMockRecorder ¶
type MockStackerMockRecorder struct {
// contains filtered or unexported fields
}
MockStackerMockRecorder is the mock recorder for MockStacker
func (*MockStackerMockRecorder) Stack ¶
func (mr *MockStackerMockRecorder) Stack(arg0, arg1 interface{}) *gomock.Call
Stack indicates an expected call of Stack
type Stacker ¶
type Stacker interface {
Stack(manifestHash string, layers []*claircore.Layer) (*claircore.Layer, error)
}
Stacker should take a list of *claircore.Layer structs and stacks their contents in the same way a container runtime would. once stacked the "image" layer should be returned
func NewStacker ¶
func NewStacker() Stacker