rpc

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjAny

type ObjAny struct {
	// contains filtered or unexported fields
}

func Any

func Any(ctx *core.Context, node *object.Node) *ObjAny

func (*ObjAny) Run

func (obj *ObjAny) Run(req *ReqAnyRun) (*ResAnyRun, error)

type ObjContext

type ObjContext struct {
	// contains filtered or unexported fields
}

func Context

func Context(ctx *core.Context, node *object.Node) *ObjContext

func (*ObjContext) Pull

func (obj *ObjContext) Pull(req *ReqContextPull) (*ResContextPull, error)

func (*ObjContext) Push

func (obj *ObjContext) Push(req *ReqContextPush) (*ResContextPush, error)

type ObjDocker

type ObjDocker struct {
	// contains filtered or unexported fields
}

func Docker

func Docker(ctx *core.Context, node *object.Node) *ObjDocker

func (*ObjDocker) Run

func (obj *ObjDocker) Run(req *ReqDockerRun) (*ResDockerRun, error)

type ObjDockerd

type ObjDockerd struct {
	// contains filtered or unexported fields
}

func Dockerd

func Dockerd(ctx *core.Context, node *object.Node) *ObjDockerd

func (*ObjDockerd) Start

func (obj *ObjDockerd) Start(req *ReqDockerdStart) (*ResDockerdStart, error)

type ObjServer

type ObjServer struct {
	// contains filtered or unexported fields
}

func Server

func Server(ctx *core.Context) *ObjServer

func (*ObjServer) Serve

func (obj *ObjServer) Serve(req *ReqServerServe) (*ResServerServe, error)

type ReqAnyRun

type ReqAnyRun struct {
	Name string
	Args []string
}

type ReqContextPull

type ReqContextPull struct {
}

type ReqContextPush

type ReqContextPush struct {
	Dir         string
	ManagerNode *object.Node
	NodeList    []*object.Node
}

type ReqDockerRun

type ReqDockerRun struct {
	Args []string
}

type ReqDockerdStart

type ReqDockerdStart struct {
}

type ReqServerServe

type ReqServerServe struct {
}

type ResAnyRun

type ResAnyRun struct {
	Stdout string
}

type ResContextPull

type ResContextPull struct {
	Dir         string
	ManagerNode *object.Node
	NodeList    []*object.Node
}

type ResContextPush

type ResContextPush struct {
}

type ResDockerRun

type ResDockerRun struct {
	Stdout string
}

type ResDockerdStart

type ResDockerdStart struct {
}

type ResServerServe

type ResServerServe struct {
}

type Rpc

type Rpc struct {
}

func (*Rpc) AnyRun

func (rpc *Rpc) AnyRun(req *ReqAnyRun, res *ResAnyRun) error

func (*Rpc) ContextPull

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

func (*Rpc) ContextPush

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

func (*Rpc) DockerRun

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

func (*Rpc) DockerdStart

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

Jump to

Keyboard shortcuts

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