rpc

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const MtdContextPull = "Rpc.ContextPull"
View Source
const MtdContextPush = "Rpc.ContextPush"
View Source
const MtdDockerRun = "Rpc.DockerRun"
View Source
const MtdDockerdStart = "Rpc.DockerdStart"
View Source
const MtdExtRun = "Rpc.ExtRun"

Variables

This section is empty.

Functions

func Call

func Call(host string, serviceMethod string, req interface{}, res interface{}) error

func Serve

func Serve() error

Types

type ReqContextPull

type ReqContextPull struct {
}

type ReqContextPush

type ReqContextPush struct {
	Dir         string
	HostList    []string
	StarterAddr string
}

type ReqDockerRun

type ReqDockerRun struct {
	Args []string
}

type ReqDockerdStart

type ReqDockerdStart struct {
}

type ReqExtRun added in v0.0.3

type ReqExtRun struct {
	Args []string
}

type ResContextPull

type ResContextPull struct {
	Dir         string
	HostList    []string
	StarterAddr string
}

type ResContextPush

type ResContextPush struct {
}

type ResDockerRun

type ResDockerRun struct {
	Output string
}

type ResDockerdStart

type ResDockerdStart struct {
}

type ResExtRun added in v0.0.3

type ResExtRun struct {
	Stdout string
}

type Rpc

type Rpc int

func (*Rpc) ContextPull

func (r *Rpc) ContextPull(req *ReqContextPull, res *ResContextPull) error

func (*Rpc) ContextPush

func (r *Rpc) ContextPush(req *ReqContextPush, res *ResContextPush) error

func (*Rpc) DockerRun

func (r *Rpc) DockerRun(req *ReqDockerRun, res *ResDockerRun) error

func (*Rpc) DockerdStart

func (r *Rpc) DockerdStart(req *ReqDockerdStart, res *ResDockerdStart) error

func (*Rpc) ExtRun added in v0.0.3

func (r *Rpc) ExtRun(req *ReqExtRun, res *ResExtRun) error

Jump to

Keyboard shortcuts

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