Documentation ¶
Index ¶
- type Option
- type RPC
- func (r *RPC) CacheInfo(ctx context.Context, req *api.CacheInfoRequest) (*api.CacheInfoResponse, error)
- func (r *RPC) ClientSecret() string
- func (r *RPC) DownloadCache(req *api.DownloadCacheRequest, stream api.CirrusCIService_DownloadCacheServer) error
- 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) ReportAgentLogs(ctx context.Context, req *api.ReportAgentLogsRequest) (*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) ReportAnnotations(ctx context.Context, req *api.ReportAnnotationsCommandRequest) (*empty.Empty, error)
- func (r *RPC) ReportSingleCommand(ctx context.Context, req *api.ReportSingleCommandRequest) (*api.ReportSingleCommandResponse, error)
- func (r *RPC) SaveLogs(stream api.CirrusCIService_SaveLogsServer) error
- func (r *RPC) ServerSecret() string
- func (r *RPC) Start()
- func (r *RPC) Stop()
- func (r *RPC) StreamLogs(stream api.CirrusCIService_StreamLogsServer) error
- func (r *RPC) UploadArtifacts(stream api.CirrusCIService_UploadArtifactsServer) error
- func (r *RPC) UploadCache(stream api.CirrusCIService_UploadCacheServer) 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) CacheInfo ¶ added in v0.3.0
func (r *RPC) CacheInfo(ctx context.Context, req *api.CacheInfoRequest) (*api.CacheInfoResponse, error)
func (*RPC) ClientSecret ¶
func (*RPC) DownloadCache ¶ added in v0.3.0
func (r *RPC) DownloadCache(req *api.DownloadCacheRequest, stream api.CirrusCIService_DownloadCacheServer) error
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) ReportAgentLogs ¶ added in v0.3.0
func (*RPC) ReportAgentSignal ¶
func (*RPC) ReportAgentWarning ¶
func (*RPC) ReportAnnotations ¶ added in v0.3.0
func (*RPC) ReportSingleCommand ¶
func (r *RPC) ReportSingleCommand( ctx context.Context, req *api.ReportSingleCommandRequest, ) (*api.ReportSingleCommandResponse, error)
func (*RPC) SaveLogs ¶ added in v0.3.0
func (r *RPC) SaveLogs(stream api.CirrusCIService_SaveLogsServer) 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
func (*RPC) UploadArtifacts ¶ added in v0.3.0
func (r *RPC) UploadArtifacts(stream api.CirrusCIService_UploadArtifactsServer) error
func (*RPC) UploadCache ¶ added in v0.3.0
func (r *RPC) UploadCache(stream api.CirrusCIService_UploadCacheServer) error
Click to show internal directories.
Click to hide internal directories.