Documentation ¶
Index ¶
- Variables
- type RunCommand
- func (p *RunCommand) GetArgv() []string
- func (p *RunCommand) GetBazelRequest() *bazel.ExecuteRequest
- func (p *RunCommand) GetEnv() map[string]string
- func (p *RunCommand) GetJobId() string
- func (p *RunCommand) GetSnapshotId() string
- func (p *RunCommand) GetTag() string
- func (p *RunCommand) GetTaskId() string
- func (p *RunCommand) GetTimeoutMs() int32
- func (p *RunCommand) IsSetBazelRequest() bool
- func (p *RunCommand) IsSetEnv() bool
- func (p *RunCommand) IsSetJobId() bool
- func (p *RunCommand) IsSetSnapshotId() bool
- func (p *RunCommand) IsSetTag() bool
- func (p *RunCommand) IsSetTaskId() bool
- func (p *RunCommand) IsSetTimeoutMs() bool
- func (p *RunCommand) Read(iprot thrift.TProtocol) error
- func (p *RunCommand) String() string
- func (p *RunCommand) Write(oprot thrift.TProtocol) error
- type RunStatus
- func (p *RunStatus) GetBazelResult_() *bazel.ActionResult_
- func (p *RunStatus) GetErrUri() string
- func (p *RunStatus) GetError() string
- func (p *RunStatus) GetExitCode() int32
- func (p *RunStatus) GetJobId() string
- func (p *RunStatus) GetOutUri() string
- func (p *RunStatus) GetRunId() string
- func (p *RunStatus) GetSnapshotId() string
- func (p *RunStatus) GetStatus() Status
- func (p *RunStatus) GetTag() string
- func (p *RunStatus) GetTaskId() string
- func (p *RunStatus) IsSetBazelResult_() bool
- func (p *RunStatus) IsSetErrUri() bool
- func (p *RunStatus) IsSetError() bool
- func (p *RunStatus) IsSetExitCode() bool
- func (p *RunStatus) IsSetJobId() bool
- func (p *RunStatus) IsSetOutUri() bool
- func (p *RunStatus) IsSetSnapshotId() bool
- func (p *RunStatus) IsSetTag() bool
- func (p *RunStatus) IsSetTaskId() bool
- func (p *RunStatus) Read(iprot thrift.TProtocol) error
- func (p *RunStatus) String() string
- func (p *RunStatus) Write(oprot thrift.TProtocol) error
- type Status
- type Worker
- type WorkerAbortArgs
- type WorkerAbortResult
- type WorkerClient
- type WorkerProcessor
- func (p *WorkerProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *WorkerProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *WorkerProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *WorkerProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type WorkerQueryWorkerArgs
- type WorkerQueryWorkerResult
- func (p *WorkerQueryWorkerResult) GetSuccess() *WorkerStatus
- func (p *WorkerQueryWorkerResult) IsSetSuccess() bool
- func (p *WorkerQueryWorkerResult) Read(iprot thrift.TProtocol) error
- func (p *WorkerQueryWorkerResult) String() string
- func (p *WorkerQueryWorkerResult) Write(oprot thrift.TProtocol) error
- type WorkerRunArgs
- type WorkerRunResult
- type WorkerStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var GoUnusedProtection__ int
View Source
var RunCommand_BazelRequest_DEFAULT *bazel.ExecuteRequest
View Source
var RunCommand_Env_DEFAULT map[string]string
View Source
var RunCommand_JobId_DEFAULT string
View Source
var RunCommand_SnapshotId_DEFAULT string
View Source
var RunCommand_Tag_DEFAULT string
View Source
var RunCommand_TaskId_DEFAULT string
View Source
var RunCommand_TimeoutMs_DEFAULT int32
View Source
var RunStatus_BazelResult__DEFAULT *bazel.ActionResult_
View Source
var RunStatus_ErrUri_DEFAULT string
View Source
var RunStatus_Error_DEFAULT string
View Source
var RunStatus_ExitCode_DEFAULT int32
View Source
var RunStatus_JobId_DEFAULT string
View Source
var RunStatus_OutUri_DEFAULT string
View Source
var RunStatus_SnapshotId_DEFAULT string
View Source
var RunStatus_Tag_DEFAULT string
View Source
var RunStatus_TaskId_DEFAULT string
Functions ¶
This section is empty.
Types ¶
type RunCommand ¶
type RunCommand struct { Argv []string `thrift:"argv,1,required" json:"argv"` Env map[string]string `thrift:"env,2" json:"env,omitempty"` SnapshotId *string `thrift:"snapshotId,3" json:"snapshotId,omitempty"` TimeoutMs *int32 `thrift:"timeoutMs,4" json:"timeoutMs,omitempty"` JobId *string `thrift:"jobId,5" json:"jobId,omitempty"` TaskId *string `thrift:"taskId,6" json:"taskId,omitempty"` Tag *string `thrift:"tag,7" json:"tag,omitempty"` BazelRequest *bazel.ExecuteRequest `thrift:"bazelRequest,8" json:"bazelRequest,omitempty"` }
Attributes:
- Argv
- Env
- SnapshotId
- TimeoutMs
- JobId
- TaskId
- Tag
- BazelRequest
var WorkerRunArgs_Cmd_DEFAULT *RunCommand
func NewRunCommand ¶
func NewRunCommand() *RunCommand
func (*RunCommand) GetArgv ¶
func (p *RunCommand) GetArgv() []string
func (*RunCommand) GetBazelRequest ¶
func (p *RunCommand) GetBazelRequest() *bazel.ExecuteRequest
func (*RunCommand) GetEnv ¶
func (p *RunCommand) GetEnv() map[string]string
func (*RunCommand) GetJobId ¶
func (p *RunCommand) GetJobId() string
func (*RunCommand) GetSnapshotId ¶
func (p *RunCommand) GetSnapshotId() string
func (*RunCommand) GetTag ¶
func (p *RunCommand) GetTag() string
func (*RunCommand) GetTaskId ¶
func (p *RunCommand) GetTaskId() string
func (*RunCommand) GetTimeoutMs ¶
func (p *RunCommand) GetTimeoutMs() int32
func (*RunCommand) IsSetBazelRequest ¶
func (p *RunCommand) IsSetBazelRequest() bool
func (*RunCommand) IsSetEnv ¶
func (p *RunCommand) IsSetEnv() bool
func (*RunCommand) IsSetJobId ¶
func (p *RunCommand) IsSetJobId() bool
func (*RunCommand) IsSetSnapshotId ¶
func (p *RunCommand) IsSetSnapshotId() bool
func (*RunCommand) IsSetTag ¶
func (p *RunCommand) IsSetTag() bool
func (*RunCommand) IsSetTaskId ¶
func (p *RunCommand) IsSetTaskId() bool
func (*RunCommand) IsSetTimeoutMs ¶
func (p *RunCommand) IsSetTimeoutMs() bool
func (*RunCommand) String ¶
func (p *RunCommand) String() string
type RunStatus ¶
type RunStatus struct { Status Status `thrift:"status,1,required" json:"status"` RunId string `thrift:"runId,2,required" json:"runId"` OutUri *string `thrift:"outUri,3" json:"outUri,omitempty"` ErrUri *string `thrift:"errUri,4" json:"errUri,omitempty"` Error *string `thrift:"error,5" json:"error,omitempty"` ExitCode *int32 `thrift:"exitCode,6" json:"exitCode,omitempty"` SnapshotId *string `thrift:"snapshotId,7" json:"snapshotId,omitempty"` JobId *string `thrift:"jobId,8" json:"jobId,omitempty"` TaskId *string `thrift:"taskId,9" json:"taskId,omitempty"` Tag *string `thrift:"tag,10" json:"tag,omitempty"` BazelResult_ *bazel.ActionResult_ `thrift:"bazelResult,11" json:"bazelResult,omitempty"` }
Attributes:
- Status
- RunId
- OutUri
- ErrUri
- Error
- ExitCode
- SnapshotId
- JobId
- TaskId
- Tag
- BazelResult_
var WorkerAbortResult_Success_DEFAULT *RunStatus
var WorkerRunResult_Success_DEFAULT *RunStatus
func NewRunStatus ¶
func NewRunStatus() *RunStatus
func (*RunStatus) GetBazelResult_ ¶
func (p *RunStatus) GetBazelResult_() *bazel.ActionResult_
func (*RunStatus) GetExitCode ¶
func (*RunStatus) GetSnapshotId ¶
func (*RunStatus) IsSetBazelResult_ ¶
func (*RunStatus) IsSetErrUri ¶
func (*RunStatus) IsSetError ¶
func (*RunStatus) IsSetExitCode ¶
func (*RunStatus) IsSetJobId ¶
func (*RunStatus) IsSetOutUri ¶
func (*RunStatus) IsSetSnapshotId ¶
func (*RunStatus) IsSetTaskId ¶
type Status ¶
type Status int64
func StatusFromString ¶
func (Status) MarshalText ¶
func (*Status) UnmarshalText ¶
type Worker ¶
type Worker interface { QueryWorker() (r *WorkerStatus, err error) // Parameters: // - Cmd Run(cmd *RunCommand) (r *RunStatus, err error) // Parameters: // - RunId Abort(runId string) (r *RunStatus, err error) }
type WorkerAbortArgs ¶
type WorkerAbortArgs struct {
RunId string `thrift:"runId,1" json:"runId"`
}
Attributes:
- RunId
func NewWorkerAbortArgs ¶
func NewWorkerAbortArgs() *WorkerAbortArgs
func (*WorkerAbortArgs) GetRunId ¶
func (p *WorkerAbortArgs) GetRunId() string
func (*WorkerAbortArgs) String ¶
func (p *WorkerAbortArgs) String() string
type WorkerAbortResult ¶
type WorkerAbortResult struct {
Success *RunStatus `thrift:"success,0" json:"success,omitempty"`
}
Attributes:
- Success
func NewWorkerAbortResult ¶
func NewWorkerAbortResult() *WorkerAbortResult
func (*WorkerAbortResult) GetSuccess ¶
func (p *WorkerAbortResult) GetSuccess() *RunStatus
func (*WorkerAbortResult) IsSetSuccess ¶
func (p *WorkerAbortResult) IsSetSuccess() bool
func (*WorkerAbortResult) String ¶
func (p *WorkerAbortResult) String() string
type WorkerClient ¶
type WorkerClient struct { Transport thrift.TTransport ProtocolFactory thrift.TProtocolFactory InputProtocol thrift.TProtocol OutputProtocol thrift.TProtocol SeqId int32 }
func NewWorkerClientFactory ¶
func NewWorkerClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *WorkerClient
func NewWorkerClientProtocol ¶
func NewWorkerClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *WorkerClient
func (*WorkerClient) Abort ¶
func (p *WorkerClient) Abort(runId string) (r *RunStatus, err error)
Parameters:
- RunId
func (*WorkerClient) QueryWorker ¶
func (p *WorkerClient) QueryWorker() (r *WorkerStatus, err error)
func (*WorkerClient) Run ¶
func (p *WorkerClient) Run(cmd *RunCommand) (r *RunStatus, err error)
Parameters:
- Cmd
type WorkerProcessor ¶
type WorkerProcessor struct {
// contains filtered or unexported fields
}
func NewWorkerProcessor ¶
func NewWorkerProcessor(handler Worker) *WorkerProcessor
func (*WorkerProcessor) AddToProcessorMap ¶
func (p *WorkerProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*WorkerProcessor) GetProcessorFunction ¶
func (p *WorkerProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*WorkerProcessor) Process ¶
func (p *WorkerProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*WorkerProcessor) ProcessorMap ¶
func (p *WorkerProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type WorkerQueryWorkerArgs ¶
type WorkerQueryWorkerArgs struct { }
func NewWorkerQueryWorkerArgs ¶
func NewWorkerQueryWorkerArgs() *WorkerQueryWorkerArgs
func (*WorkerQueryWorkerArgs) Read ¶
func (p *WorkerQueryWorkerArgs) Read(iprot thrift.TProtocol) error
func (*WorkerQueryWorkerArgs) String ¶
func (p *WorkerQueryWorkerArgs) String() string
type WorkerQueryWorkerResult ¶
type WorkerQueryWorkerResult struct {
Success *WorkerStatus `thrift:"success,0" json:"success,omitempty"`
}
Attributes:
- Success
func NewWorkerQueryWorkerResult ¶
func NewWorkerQueryWorkerResult() *WorkerQueryWorkerResult
func (*WorkerQueryWorkerResult) GetSuccess ¶
func (p *WorkerQueryWorkerResult) GetSuccess() *WorkerStatus
func (*WorkerQueryWorkerResult) IsSetSuccess ¶
func (p *WorkerQueryWorkerResult) IsSetSuccess() bool
func (*WorkerQueryWorkerResult) Read ¶
func (p *WorkerQueryWorkerResult) Read(iprot thrift.TProtocol) error
func (*WorkerQueryWorkerResult) String ¶
func (p *WorkerQueryWorkerResult) String() string
type WorkerRunArgs ¶
type WorkerRunArgs struct {
Cmd *RunCommand `thrift:"cmd,1" json:"cmd"`
}
Attributes:
- Cmd
func NewWorkerRunArgs ¶
func NewWorkerRunArgs() *WorkerRunArgs
func (*WorkerRunArgs) GetCmd ¶
func (p *WorkerRunArgs) GetCmd() *RunCommand
func (*WorkerRunArgs) IsSetCmd ¶
func (p *WorkerRunArgs) IsSetCmd() bool
func (*WorkerRunArgs) String ¶
func (p *WorkerRunArgs) String() string
type WorkerRunResult ¶
type WorkerRunResult struct {
Success *RunStatus `thrift:"success,0" json:"success,omitempty"`
}
Attributes:
- Success
func NewWorkerRunResult ¶
func NewWorkerRunResult() *WorkerRunResult
func (*WorkerRunResult) GetSuccess ¶
func (p *WorkerRunResult) GetSuccess() *RunStatus
func (*WorkerRunResult) IsSetSuccess ¶
func (p *WorkerRunResult) IsSetSuccess() bool
func (*WorkerRunResult) String ¶
func (p *WorkerRunResult) String() string
type WorkerStatus ¶
type WorkerStatus struct { Runs []*RunStatus `thrift:"runs,1,required" json:"runs"` Initialized bool `thrift:"initialized,2,required" json:"initialized"` Error string `thrift:"error,3,required" json:"error"` }
Attributes:
- Runs
- Initialized
- Error
var WorkerQueryWorkerResult_Success_DEFAULT *WorkerStatus
func NewWorkerStatus ¶
func NewWorkerStatus() *WorkerStatus
func (*WorkerStatus) GetError ¶
func (p *WorkerStatus) GetError() string
func (*WorkerStatus) GetInitialized ¶
func (p *WorkerStatus) GetInitialized() bool
func (*WorkerStatus) GetRuns ¶
func (p *WorkerStatus) GetRuns() []*RunStatus
func (*WorkerStatus) String ¶
func (p *WorkerStatus) String() string
Click to show internal directories.
Click to hide internal directories.