runner

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LocalRunner type
	LocalRunner = "local"

	// KubernetesRunner type
	KubernetesRunner = "kubernetes"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Type                 string
	Name                 string
	ID                   string
	Version              string
	Logger               logger.Logger
	Dailer               dialer
	PortGenerator        portGenerator
	ServiceClientCreator serviceClientCreator
	LogsDirectory        string

	// Local runner options
	LocalLogFileCreator logFileCreator
	LocalCommandCreator cmdCreator
	LocalPathToBinary   string

	// Kubernetes runner options
	KubernetesKubeConfigPath   string
	KubernetesContext          string
	KubernetesNamespace        string
	KubeconfigHost             string
	KubeconfigB64Crt           string
	KubeconfigToken            string
	Kube                       kube
	KubernetesGrpcDialViaPodIP bool
	KubernetesVolumeClaimName  string
	KubernetesVolumeName       string
}

Options shows all the available options to build runner

type Runner

type Runner interface {
	Run() error
	Kill() error
	Call(context context.Context, req *v1.CallRequest) (*v1.CallResponse, error)
}

Runner expose an interface to run services

func New

func New(opt *Options) Runner

New builds new runner based on Options.Type

Jump to

Keyboard shortcuts

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