cloudconfig

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 23, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const PluginsMapHash = "cloudconfig"

Variables

View Source
var HandshakeConfig = plugin.HandshakeConfig{
	ProtocolVersion:  1,
	MagicCookieKey:   "BASIC_PLUGIN",
	MagicCookieValue: "hello",
}

Functions

func Run

func Run(cc CloudConfigDeployer)

Types

type CloudConfigDeployer

type CloudConfigDeployer interface {
	GetMeta() Meta
	GetFlags() []cli.Flag
	GetCloudConfig(args []string) []byte
}

CloudConfigDeployer is the interface that we will expose for cloud config plugins

type CloudConfigPlugin

type CloudConfigPlugin struct {
	Plugin CloudConfigDeployer
}

func NewCloudConfigPlugin

func NewCloudConfigPlugin(plg CloudConfigDeployer) CloudConfigPlugin

func (CloudConfigPlugin) Client

func (s CloudConfigPlugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error)

func (CloudConfigPlugin) Server

func (s CloudConfigPlugin) Server(*plugin.MuxBroker) (interface{}, error)

type CloudConfigRPC

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

CloudConfigRPC - Here is an implementation that talks over RPC

func (*CloudConfigRPC) GetCloudConfig

func (s *CloudConfigRPC) GetCloudConfig(args []string) []byte

func (*CloudConfigRPC) GetFlags

func (s *CloudConfigRPC) GetFlags() []cli.Flag

func (*CloudConfigRPC) GetMeta

func (s *CloudConfigRPC) GetMeta() Meta

type CloudConfigRPCServer

type CloudConfigRPCServer struct {
	Impl CloudConfigDeployer
}

CloudConfigRPCServer - Here is the RPC server that GreeterRPC talks to, conforming to the requirements of net/rpc

func (*CloudConfigRPCServer) GetCloudConfig

func (s *CloudConfigRPCServer) GetCloudConfig(args []string, resp *[]byte) error

func (*CloudConfigRPCServer) GetFlags

func (s *CloudConfigRPCServer) GetFlags(args interface{}, resp *[]cli.Flag) error

func (*CloudConfigRPCServer) GetMeta

func (s *CloudConfigRPCServer) GetMeta(args interface{}, resp *Meta) error

type Meta

type Meta struct {
	Name       string
	Properties map[string]interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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