Documentation
¶
Index ¶
- Variables
- func DRPCRegisterControllerBusService(mux drpc.Mux, impl DRPCControllerBusServiceServer) error
- type API
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetEnableExecController() bool
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) String() string
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Config) XXX_Merge(src proto.Message)
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type DRPCControllerBusServiceClient
- type DRPCControllerBusServiceDescription
- type DRPCControllerBusServiceServer
- type DRPCControllerBusServiceUnimplementedServer
- type DRPCControllerBusService_ExecControllerClient
- type DRPCControllerBusService_ExecControllerStream
- type DRPCControllerBusService_GetBusInfoStream
- type GetBusInfoRequest
- func (*GetBusInfoRequest) Descriptor() ([]byte, []int)
- func (*GetBusInfoRequest) ProtoMessage()
- func (m *GetBusInfoRequest) Reset()
- func (m *GetBusInfoRequest) String() string
- func (m *GetBusInfoRequest) XXX_DiscardUnknown()
- func (m *GetBusInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBusInfoRequest) XXX_Merge(src proto.Message)
- func (m *GetBusInfoRequest) XXX_Size() int
- func (m *GetBusInfoRequest) XXX_Unmarshal(b []byte) error
- type GetBusInfoResponse
- func (*GetBusInfoResponse) Descriptor() ([]byte, []int)
- func (m *GetBusInfoResponse) GetRunningControllers() []*controller.Info
- func (m *GetBusInfoResponse) GetRunningDirectives() []*directive.DirectiveState
- func (b *GetBusInfoResponse) PrintPrettyStatus() []byte
- func (*GetBusInfoResponse) ProtoMessage()
- func (m *GetBusInfoResponse) Reset()
- func (m *GetBusInfoResponse) String() string
- func (m *GetBusInfoResponse) XXX_DiscardUnknown()
- func (m *GetBusInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBusInfoResponse) XXX_Merge(src proto.Message)
- func (m *GetBusInfoResponse) XXX_Size() int
- func (m *GetBusInfoResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrExecControllerDisabled = errors.New("exec controller is disabled on this api")
ErrExecControllerDisabled is returned if exec controller isn't enabled.
Functions ¶
func DRPCRegisterControllerBusService ¶ added in v0.9.0
func DRPCRegisterControllerBusService(mux drpc.Mux, impl DRPCControllerBusServiceServer) error
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API implements the rpc API.
func (*API) ExecController ¶
func (a *API) ExecController( req *ce.ExecControllerRequest, server DRPCControllerBusService_ExecControllerStream, ) error
ExecController executes a controller configuration on the bus.
func (*API) GetBusInfo ¶
func (a *API) GetBusInfo( ctx context.Context, req *GetBusInfoRequest, ) (*GetBusInfoResponse, error)
GetBusInfo requests information about the controller bus.
type Config ¶
type Config struct { // EnableExecController enables the exec controller API. EnableExecController bool `protobuf:"varint,1,opt,name=enable_exec_controller,json=enableExecController,proto3" json:"enable_exec_controller,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Config are configuration arguments.
func (*Config) Descriptor ¶
func (*Config) GetEnableExecController ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) XXX_DiscardUnknown ¶
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶
func (*Config) XXX_Unmarshal ¶
type DRPCControllerBusServiceClient ¶ added in v0.9.0
type DRPCControllerBusServiceClient interface { DRPCConn() drpc.Conn GetBusInfo(ctx context.Context, in *GetBusInfoRequest) (*GetBusInfoResponse, error) ExecController(ctx context.Context, in *exec.ExecControllerRequest) (DRPCControllerBusService_ExecControllerClient, error) }
func NewDRPCControllerBusServiceClient ¶ added in v0.9.0
func NewDRPCControllerBusServiceClient(cc drpc.Conn) DRPCControllerBusServiceClient
type DRPCControllerBusServiceDescription ¶ added in v0.9.0
type DRPCControllerBusServiceDescription struct{}
func (DRPCControllerBusServiceDescription) NumMethods ¶ added in v0.9.0
func (DRPCControllerBusServiceDescription) NumMethods() int
type DRPCControllerBusServiceServer ¶ added in v0.9.0
type DRPCControllerBusServiceServer interface { GetBusInfo(context.Context, *GetBusInfoRequest) (*GetBusInfoResponse, error) ExecController(*exec.ExecControllerRequest, DRPCControllerBusService_ExecControllerStream) error }
type DRPCControllerBusServiceUnimplementedServer ¶ added in v0.9.0
type DRPCControllerBusServiceUnimplementedServer struct{}
func (*DRPCControllerBusServiceUnimplementedServer) ExecController ¶ added in v0.9.0
func (s *DRPCControllerBusServiceUnimplementedServer) ExecController(*exec.ExecControllerRequest, DRPCControllerBusService_ExecControllerStream) error
func (*DRPCControllerBusServiceUnimplementedServer) GetBusInfo ¶ added in v0.9.0
func (s *DRPCControllerBusServiceUnimplementedServer) GetBusInfo(context.Context, *GetBusInfoRequest) (*GetBusInfoResponse, error)
type DRPCControllerBusService_ExecControllerClient ¶ added in v0.9.0
type DRPCControllerBusService_ExecControllerClient interface { drpc.Stream Recv() (*exec.ExecControllerResponse, error) }
type DRPCControllerBusService_ExecControllerStream ¶ added in v0.9.0
type DRPCControllerBusService_ExecControllerStream interface { drpc.Stream Send(*exec.ExecControllerResponse) error }
type DRPCControllerBusService_GetBusInfoStream ¶ added in v0.9.0
type DRPCControllerBusService_GetBusInfoStream interface { drpc.Stream SendAndClose(*GetBusInfoResponse) error }
type GetBusInfoRequest ¶
type GetBusInfoRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetBusInfoRequest is the request type for GetBusInfo.
func (*GetBusInfoRequest) Descriptor ¶
func (*GetBusInfoRequest) Descriptor() ([]byte, []int)
func (*GetBusInfoRequest) ProtoMessage ¶
func (*GetBusInfoRequest) ProtoMessage()
func (*GetBusInfoRequest) Reset ¶
func (m *GetBusInfoRequest) Reset()
func (*GetBusInfoRequest) String ¶
func (m *GetBusInfoRequest) String() string
func (*GetBusInfoRequest) XXX_DiscardUnknown ¶
func (m *GetBusInfoRequest) XXX_DiscardUnknown()
func (*GetBusInfoRequest) XXX_Marshal ¶
func (m *GetBusInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBusInfoRequest) XXX_Merge ¶
func (m *GetBusInfoRequest) XXX_Merge(src proto.Message)
func (*GetBusInfoRequest) XXX_Size ¶
func (m *GetBusInfoRequest) XXX_Size() int
func (*GetBusInfoRequest) XXX_Unmarshal ¶
func (m *GetBusInfoRequest) XXX_Unmarshal(b []byte) error
type GetBusInfoResponse ¶
type GetBusInfoResponse struct { // RunningControllers is the list of running controllers. RunningControllers []*controller.Info `protobuf:"bytes,1,rep,name=running_controllers,json=runningControllers,proto3" json:"running_controllers,omitempty"` // RunningDirectives is the list of running directives. RunningDirectives []*directive.DirectiveState `protobuf:"bytes,2,rep,name=running_directives,json=runningDirectives,proto3" json:"running_directives,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetBusInfoResponse is the response type for GetBusInfo.
func (*GetBusInfoResponse) Descriptor ¶
func (*GetBusInfoResponse) Descriptor() ([]byte, []int)
func (*GetBusInfoResponse) GetRunningControllers ¶
func (m *GetBusInfoResponse) GetRunningControllers() []*controller.Info
func (*GetBusInfoResponse) GetRunningDirectives ¶
func (m *GetBusInfoResponse) GetRunningDirectives() []*directive.DirectiveState
func (*GetBusInfoResponse) PrintPrettyStatus ¶
func (b *GetBusInfoResponse) PrintPrettyStatus() []byte
PrintPrettyStatus prints bus info as a pretty status output.
func (*GetBusInfoResponse) ProtoMessage ¶
func (*GetBusInfoResponse) ProtoMessage()
func (*GetBusInfoResponse) Reset ¶
func (m *GetBusInfoResponse) Reset()
func (*GetBusInfoResponse) String ¶
func (m *GetBusInfoResponse) String() string
func (*GetBusInfoResponse) XXX_DiscardUnknown ¶
func (m *GetBusInfoResponse) XXX_DiscardUnknown()
func (*GetBusInfoResponse) XXX_Marshal ¶
func (m *GetBusInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBusInfoResponse) XXX_Merge ¶
func (m *GetBusInfoResponse) XXX_Merge(src proto.Message)
func (*GetBusInfoResponse) XXX_Size ¶
func (m *GetBusInfoResponse) XXX_Size() int
func (*GetBusInfoResponse) XXX_Unmarshal ¶
func (m *GetBusInfoResponse) XXX_Unmarshal(b []byte) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.