host

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package host contains wrappers around OS and IO methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exec

type Exec struct{}

Exec is a wrapper around common exec functions.

func (Exec) Command

func (Exec) Command(name string, arg ...string) hostiface.CommandAPI

Command wrapper

type OSIO

type OSIO struct{}

OSIO is a wrapper around common OS and IO functions.

func (OSIO) LookupEnv

func (OSIO) LookupEnv(key string) (string, bool)

LookupEnv wrapper

func (OSIO) ReadDir

func (OSIO) ReadDir(dirname string) ([]os.FileInfo, error)

ReadDir wrapper

func (OSIO) ReadFile

func (OSIO) ReadFile(filename string) ([]byte, error)

ReadFile wrapper

func (OSIO) WriteFile

func (OSIO) WriteFile(filename string, data []byte, perm os.FileMode) error

WriteFile wrapper

Source Files

  • doc.go
  • exec.go
  • osio.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL