Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AllocatorDesc rpc.InterfaceDesc = descAllocator
AllocatorDesc describes the Allocator interface.
Functions ¶
This section is empty.
Types ¶
type AllocatorClientMethods ¶
type AllocatorClientMethods interface { // Create creates a new instance of the service. // It returns a handle for the new instance. Create(*context.T, ...rpc.CallOpt) (handle string, _ error) // Destroy destroys the instance with the given handle. Destroy(_ *context.T, handle string, _ ...rpc.CallOpt) error // List returns a list of all the instances owned by the caller. List(*context.T, ...rpc.CallOpt) (instances []Instance, _ error) }
AllocatorClientMethods is the client interface containing Allocator methods.
type AllocatorClientStub ¶
type AllocatorClientStub interface { AllocatorClientMethods rpc.UniversalServiceMethods }
AllocatorClientStub adds universal methods to AllocatorClientMethods.
func AllocatorClient ¶
func AllocatorClient(name string) AllocatorClientStub
AllocatorClient returns a client stub for Allocator.
type AllocatorServerMethods ¶
type AllocatorServerMethods interface { // Create creates a new instance of the service. // It returns a handle for the new instance. Create(*context.T, rpc.ServerCall) (handle string, _ error) // Destroy destroys the instance with the given handle. Destroy(_ *context.T, _ rpc.ServerCall, handle string) error // List returns a list of all the instances owned by the caller. List(*context.T, rpc.ServerCall) (instances []Instance, _ error) }
AllocatorServerMethods is the interface a server writer implements for Allocator.
type AllocatorServerStub ¶
type AllocatorServerStub interface { AllocatorServerStubMethods // Describe the Allocator interfaces. Describe__() []rpc.InterfaceDesc }
AllocatorServerStub adds universal methods to AllocatorServerStubMethods.
func AllocatorServer ¶
func AllocatorServer(impl AllocatorServerMethods) AllocatorServerStub
AllocatorServer returns a server stub for Allocator. It converts an implementation of AllocatorServerMethods into an object that may be used by rpc.Server.
type AllocatorServerStubMethods ¶
type AllocatorServerStubMethods AllocatorServerMethods
AllocatorServerStubMethods is the server interface containing Allocator methods, as expected by rpc.Server. There is no difference between this interface and AllocatorServerMethods since there are no streaming methods.
Directories ¶
Path | Synopsis |
---|---|
Command allocator interacts with the allocator service.
|
Command allocator interacts with the allocator service. |
Runs the allocator service Usage: allocatord [flags] The allocatord flags are: -assets= If set, the directory containing assets (template definitions, css, javascript files etc.) to use in the web interface.
|
Runs the allocator service Usage: allocatord [flags] The allocatord flags are: -assets= If set, the directory containing assets (template definitions, css, javascript files etc.) to use in the web interface. |