Documentation
¶
Index ¶
- type LocalDutServiceAdapter
- func (s LocalDutServiceAdapter) CopyData(ctx context.Context, sourceUrl string, destPath string) error
- func (s LocalDutServiceAdapter) CreateDirectories(ctx context.Context, dirs []string) error
- func (s LocalDutServiceAdapter) DeleteDirectory(ctx context.Context, dir string) error
- func (s LocalDutServiceAdapter) FetchFile(ctx context.Context, path string) (io.ReadCloser, error)
- func (s LocalDutServiceAdapter) ForceReconnectWithBackoff(ctx context.Context) error
- func (s LocalDutServiceAdapter) PathExists(ctx context.Context, path string) (bool, error)
- func (s LocalDutServiceAdapter) PipeData(ctx context.Context, sourceUrl string, pipeCommand string) error
- func (s LocalDutServiceAdapter) Restart(ctx context.Context) error
- func (s LocalDutServiceAdapter) RunCmd(ctx context.Context, cmd string, args []string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalDutServiceAdapter ¶
type LocalDutServiceAdapter struct {
// contains filtered or unexported fields
}
LocalDutServiceAdapter implements Service Adapter interface and used to substitute DUT Service in local testing.
func NewLocalDutServiceAdapter ¶
func NewLocalDutServiceAdapter(endPoint *api.IpEndpoint) (*LocalDutServiceAdapter, error)
func (LocalDutServiceAdapter) CopyData ¶
func (s LocalDutServiceAdapter) CopyData(ctx context.Context, sourceUrl string, destPath string) error
CopyData mocks the caching service functionality. It downloads the apk file from GCP to current directory and copy it remotely to the host.
func (LocalDutServiceAdapter) CreateDirectories ¶
func (s LocalDutServiceAdapter) CreateDirectories(ctx context.Context, dirs []string) error
func (LocalDutServiceAdapter) DeleteDirectory ¶
func (s LocalDutServiceAdapter) DeleteDirectory(ctx context.Context, dir string) error
func (LocalDutServiceAdapter) FetchFile ¶
func (s LocalDutServiceAdapter) FetchFile(ctx context.Context, path string) (io.ReadCloser, error)
func (LocalDutServiceAdapter) ForceReconnectWithBackoff ¶
func (s LocalDutServiceAdapter) ForceReconnectWithBackoff(ctx context.Context) error
func (LocalDutServiceAdapter) PathExists ¶
Click to show internal directories.
Click to hide internal directories.