utils

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLogFile

func CreateLogFile(dir string, name string) (io.Writer, error)

func GetAvailablePort

func GetAvailablePort() (string, error)

Types

type Executor

type Executor struct{}

Executor execute task on local env

func (*Executor) Exec

func (_e *Executor) Exec(command string, args []string, environ []string, detached bool, workingDir string, binpath string, logger io.Writer) (int, error)

Exec - run a shell command

type FileCreator

type FileCreator struct{}

func (*FileCreator) Create

func (_f *FileCreator) Create(dir string, name string) (io.Writer, error)

type GRPC

type GRPC struct{}

func (GRPC) Dial

func (_g GRPC) Dial(target string, opts ...grpc.DialOption) (*grpc.ClientConn, error)

Dial returns a connection grpc server

type Proto

type Proto struct{}

func (Proto) New

func (_ Proto) New(cc *grpc.ClientConn) v1.ServiceClient

New creates new service for given connection

Jump to

Keyboard shortcuts

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