packer-cn/packer/rpc/environment.go

19 lines
444 B
Go
Raw Normal View History

2013-05-03 18:49:15 -04:00
package rpc
import (
"github.com/mitchellh/packer/packer"
"net/rpc"
)
// A EnvironmentClient is an implementation of the packer.Environment interface
// where the actual environment is executed over an RPC connection.
type EnvironmentClient struct {
client *rpc.Client
}
// A EnvironmentServer wraps a packer.Environment and makes it exportable
// as part of a Golang RPC server.
type EnvironmentServer struct {
env packer.Environment
}