Documentation ¶
Index ¶
- Variables
- type Ambassador
- type MockAmbassador
- func (m *MockAmbassador) Environ() []string
- func (m *MockAmbassador) LookPath(file string) (string, error)
- func (m *MockAmbassador) RemoteImage(ref name.Reference, options ...remote.Option) (v1.Image, error)
- func (m *MockAmbassador) RunCmd(cmd *exec.Cmd) ([]byte, error)
- func (m *MockAmbassador) TempFile(dir, pattern string) (*os.File, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultAmbassador = &ambassador{}
)
Functions ¶
This section is empty.
Types ¶
type Ambassador ¶
type Ambassador interface { Environ() []string LookPath(string) (string, error) TempFile(string, string) (*os.File, error) RunCmd(cmd *exec.Cmd) ([]byte, error) RemoteImage(name.Reference, ...remote.Option) (v1.Image, error) }
Ambassador the ambassador to the outside "world". Wraps methods that modify global state and hence make the code that use them very hard to test.
type MockAmbassador ¶
func NewMockAmbassador ¶
func NewMockAmbassador() *MockAmbassador
func (*MockAmbassador) Environ ¶
func (m *MockAmbassador) Environ() []string
func (*MockAmbassador) RemoteImage ¶ added in v0.31.0
Click to show internal directories.
Click to hide internal directories.