Documentation
¶
Index ¶
- type Option
- type RPC
- func (r *RPC) ClientSecret() string
- func (r *RPC) Endpoint() string
- func (r *RPC) Heartbeat(ctx context.Context, req *api.HeartbeatRequest) (*api.HeartbeatResponse, error)
- func (r *RPC) InitialCommands(ctx context.Context, req *api.InitialCommandsRequest) (*api.CommandsResponse, error)
- func (r *RPC) ReportAgentError(ctx context.Context, req *api.ReportAgentProblemRequest) (*empty.Empty, error)
- func (r *RPC) ReportAgentSignal(ctx context.Context, req *api.ReportAgentSignalRequest) (*empty.Empty, error)
- func (r *RPC) ReportAgentWarning(ctx context.Context, req *api.ReportAgentProblemRequest) (*empty.Empty, error)
- func (r *RPC) ReportSingleCommand(ctx context.Context, req *api.ReportSingleCommandRequest) (*api.ReportSingleCommandResponse, error)
- func (r *RPC) ServerSecret() string
- func (r *RPC) Start()
- func (r *RPC) Stop()
- func (r *RPC) StreamLogs(stream api.CirrusCIService_StreamLogsServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RPC ¶
type RPC struct { api.UnimplementedCirrusCIServiceServer // contains filtered or unexported fields }
func (*RPC) ClientSecret ¶
func (*RPC) Endpoint ¶
Endpoint returns RPC server address suitable for use in agent's "-api-endpoint" flag.
func (*RPC) Heartbeat ¶
func (r *RPC) Heartbeat(ctx context.Context, req *api.HeartbeatRequest) (*api.HeartbeatResponse, error)
func (*RPC) InitialCommands ¶
func (r *RPC) InitialCommands( ctx context.Context, req *api.InitialCommandsRequest, ) (*api.CommandsResponse, error)
func (*RPC) ReportAgentError ¶
func (*RPC) ReportAgentSignal ¶
func (*RPC) ReportAgentWarning ¶
func (*RPC) ReportSingleCommand ¶
func (r *RPC) ReportSingleCommand( ctx context.Context, req *api.ReportSingleCommandRequest, ) (*api.ReportSingleCommandResponse, error)
func (*RPC) ServerSecret ¶
func (*RPC) Start ¶
func (r *RPC) Start()
Start creates the listener and starts RPC server in a separate goroutine.
func (*RPC) StreamLogs ¶
func (r *RPC) StreamLogs(stream api.CirrusCIService_StreamLogsServer) error
Click to show internal directories.
Click to hide internal directories.