Documentation ¶
Index ¶
- Variables
- type ArtifactWriter
- 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) ContainerEndpoint() string
- func (r *RPC) DirectEndpoint() string
- func (r *RPC) DownloadCache(req *api.DownloadCacheRequest, stream api.CirrusCIService_DownloadCacheServer) error
- 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) ReportAgentFinished(ctx context.Context, req *api.ReportAgentFinishedRequest) (*api.ReportAgentFinishedResponse, 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) ReportCommandUpdates(ctx context.Context, req *api.ReportCommandUpdatesRequest) (*api.ReportCommandUpdatesResponse, error)
- func (r *RPC) SaveLogs(stream api.CirrusCIService_SaveLogsServer) error
- func (r *RPC) ServerSecret() string
- func (r *RPC) Start(ctx context.Context, address string, virtualMachine bool) error
- func (r *RPC) Stop()
- func (r *RPC) StreamLogs(stream api.CirrusCIService_StreamLogsServer) error
- func (r *RPC) UploadArtifacts(stream api.CirrusCIService_UploadArtifactsServer) (err error)
- func (r *RPC) UploadCache(stream api.CirrusCIService_UploadCacheServer) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRPCFailed = errors.New("RPC server failed")
Functions ¶
This section is empty.
Types ¶
type ArtifactWriter ¶ added in v0.80.0
type ArtifactWriter struct {
// contains filtered or unexported fields
}
func NewArtifactWriter ¶ added in v0.80.0
func NewArtifactWriter(baseDir string) *ArtifactWriter
func (*ArtifactWriter) Close ¶ added in v0.80.0
func (aw *ArtifactWriter) Close() error
type RPC ¶
type RPC struct { // must be embedded to have forward compatible implementations 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) ContainerEndpoint ¶ added in v0.16.0
ContainerEndpoint returns RPC server address suitable for use in agent's "-api-endpoint" flag when running inside of a container.
func (*RPC) DirectEndpoint ¶ added in v0.16.0
DirectEndpoint returns RPC server address suitable for use in agent's "-api-endpoint" flag when running on the host.
func (*RPC) DownloadCache ¶ added in v0.3.0
func (r *RPC) DownloadCache(req *api.DownloadCacheRequest, stream api.CirrusCIService_DownloadCacheServer) error
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) ReportAgentFinished ¶ added in v0.71.0
func (r *RPC) ReportAgentFinished( ctx context.Context, req *api.ReportAgentFinishedRequest, ) (*api.ReportAgentFinishedResponse, error)
func (*RPC) ReportAgentLogs ¶ added in v0.3.0
func (*RPC) ReportAgentSignal ¶
func (*RPC) ReportAgentWarning ¶
func (*RPC) ReportAnnotations ¶ added in v0.3.0
func (*RPC) ReportCommandUpdates ¶ added in v0.71.0
func (r *RPC) ReportCommandUpdates( ctx context.Context, req *api.ReportCommandUpdatesRequest, ) (*api.ReportCommandUpdatesResponse, error)
func (*RPC) SaveLogs ¶ added in v0.3.0
func (r *RPC) SaveLogs(stream api.CirrusCIService_SaveLogsServer) error
func (*RPC) ServerSecret ¶
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) (err 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.