Affected by GO-2024-2468
and 4 other vulnerabilities
GO-2024-2468: snapd Race Condition vulnerability in github.com/snapcore/snapd
GO-2024-3007: snapd failed to restrict writes to the $HOME/bin path in github.com/snapcore/snapd
GO-2024-3008: snapd failed to properly check the file type when extracting a snap in github.com/snapcore/snapd
GO-2024-3009: snapd failed to properly check the destination of symbolic links when extracting a snap in github.com/snapcore/snapd
package
Version:
v0.0.0-...-20647f5
Opens a new window with list of versions in this module.
Published: Nov 22, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type MockHandler struct {
BeforeCalled bool
BeforeError bool
DoneCalled bool
DoneError bool
ErrorCalled bool
ErrorError bool
IgnoreOriginalErr bool
Err error
BeforeCallback func()
DoneCallback func()
}
MockHandler is a mock hookstate.Handler.
NewMockHandler returns a new MockHandler.
func (*MockHandler) Before ¶
Before satisfies hookstate.Handler.Before
func (*MockHandler) Done ¶
Done satisfies hookstate.Handler.Done
func (*MockHandler) Error ¶
Error satisfies hookstate.Handler.Error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.