mirror of
https://github.com/kairos-io/openamt.git
synced 2025-09-13 21:31:41 +00:00
17 lines
282 B
Go
17 lines
282 B
Go
//go:build fake
|
|
|
|
package amtrpc
|
|
|
|
type AMTRPC struct {
|
|
MockAccessStatus func() int
|
|
MockExec func(string) (string, int)
|
|
}
|
|
|
|
func (f AMTRPC) CheckAccess() int {
|
|
return f.MockAccessStatus()
|
|
}
|
|
|
|
func (f AMTRPC) Exec(command string) (string, int) {
|
|
return f.MockExec(command)
|
|
}
|