tesseract

package module
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

README

Tesseract Build Status

Tesseract is a library to run SmartContract on Docker Container.

Architecture

Overview of the architecture of Tesseract can be found in the following link.

ARCHITECTURE

Lincese

Tesseract source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the LICENSE file.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallBack added in v0.2.1

type CallBack func(response *pb.Response, err error)

type Container added in v0.2.2

type Container interface {
	// send request to container
	Request(req Request, callback CallBack) error

	// close container
	Close() error

	// get container ID
	GetID() string
}

type ContainerConfig added in v0.2.2

type ContainerConfig struct {
	Language string // language that icode use

	Name string // container name

	ContainerImage ContainerImage // container docker image name to pull. example : 'golang:1.9'

	HostIp string // HostIp address that manage icode.

	ContainerIp string // ContainerIp

	Port string // port num to communicate container and icode

	StartCmd []string // start command to initiate icode. it must contain icodename. ex {"go","run.sh","testicode/icode.go","-p","4401}

	Network *Network // docker network option. if you don't use, nil

	Mount []string // [Mount-src-path or volume name]:[Mount-dist-path] ex) /go/src/github.com/it-chain/learn-icode:/icode

}

type ContainerFactory added in v0.2.2

type ContainerFactory interface {
	Create(ContainerConfig) Container
}

type ContainerID added in v0.1.1

type ContainerID = string

type ContainerImage added in v0.2.2

type ContainerImage struct {
	Name string // language docker image name ( ex : go )
	Tag  string // language docker image Tag ( ex : 1.9 )
}

func (ContainerImage) GetFullName added in v0.2.2

func (dc ContainerImage) GetFullName() string

type Network added in v0.4.0

type Network struct {
	ID   string
	Name string
}

type Request added in v0.2.0

type Request struct {
	Uuid     string
	TypeName string
	FuncName string
	Args     []string
}

type Volume added in v0.3.2

type Volume struct {
	CreatedAt  string
	Driver     string
	Mountpoint string
	Name       string
	Options    map[string]string
}

referenced go-docker repository: https://github.com/docker/go-docker/blob/master/api/types/volume.go

func NewVolume added in v0.4.0

func NewVolume(createdAt, driver, mountpoint, name string, opts map[string]string) Volume

Directories

Path Synopsis
mock

Jump to

Keyboard shortcuts

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