Documentation
¶
Index ¶
- func IsReadinessServices(ctx context.Context) (bool, error)
- func JobID(ctx context.Context) (int64, error)
- func KeysDirectory(ctx context.Context) (afero.File, error)
- func RunJobID(ctx context.Context) string
- func SetIsReadinessServices(ctx context.Context, i bool) context.Context
- func SetJobID(ctx context.Context, i int64) context.Context
- func SetKeysDirectory(ctx context.Context, s afero.File) context.Context
- func SetRunJobID(ctx context.Context, i string) context.Context
- func SetStepName(ctx context.Context, name string) context.Context
- func SetStepOrder(ctx context.Context, i int) context.Context
- func SetTmpDirectory(ctx context.Context, s afero.File) context.Context
- func SetWorkingDirectory(ctx context.Context, s afero.File) context.Context
- func StepName(ctx context.Context) (string, error)
- func StepOrder(ctx context.Context) (int, error)
- func TmpDirectory(ctx context.Context) (afero.File, error)
- func V2_contextHandler(ctx context.Context, wk Runtime) http.HandlerFunc
- func V2_integrationsHandler(ctx context.Context, wk Runtime) http.HandlerFunc
- func V2_jobRunHandler(ctx context.Context, wk Runtime) http.HandlerFunc
- func V2_outputHandler(ctx context.Context, wk Runtime) http.HandlerFunc
- func V2_runResultHandler(ctx context.Context, wk Runtime) http.HandlerFunc
- func WorkingDirectory(ctx context.Context) (afero.File, error)
- type CDSVersionSet
- type DownloadArtifact
- type FilePath
- type KeyResponse
- type Level
- type OutputRequest
- type Runtime
- type TmplPath
- type UploadArtifact
- type V2AddResultResponse
- type V2FilterRunResult
- type V2GetResultResponse
- type V2RunResultRequest
- type V2UpdateResultResponse
- type WorkerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsReadinessServices ¶ added in v0.53.1
func SetIsReadinessServices ¶ added in v0.53.1
func SetWorkingDirectory ¶
func V2_contextHandler ¶ added in v0.53.1
func V2_contextHandler(ctx context.Context, wk Runtime) http.HandlerFunc
func V2_integrationsHandler ¶ added in v0.53.1
func V2_integrationsHandler(ctx context.Context, wk Runtime) http.HandlerFunc
func V2_jobRunHandler ¶ added in v0.53.1
func V2_jobRunHandler(ctx context.Context, wk Runtime) http.HandlerFunc
func V2_outputHandler ¶ added in v0.53.1
func V2_outputHandler(ctx context.Context, wk Runtime) http.HandlerFunc
func V2_runResultHandler ¶ added in v0.53.1
func V2_runResultHandler(ctx context.Context, wk Runtime) http.HandlerFunc
Types ¶
type CDSVersionSet ¶
type CDSVersionSet struct {
Value string `json:"value"`
}
type DownloadArtifact ¶
type KeyResponse ¶
type OutputRequest ¶ added in v0.53.1
type Runtime ¶
type Runtime interface {
Name() string
Register(ctx context.Context) error
Take(ctx context.Context, job sdk.WorkflowNodeJobRun) error
ProcessJob(job sdk.WorkflowNodeJobRunData) sdk.Result
SendLog(ctx context.Context, level Level, format string)
RunResultSignature(fileName string, perm uint32, t sdk.WorkflowRunResultType) (string, error)
WorkerCacheSignature(tag string) (string, error)
FeatureEnabled(featureName sdk.FeatureName) bool
GetIntegrationPlugin(pluginType string) *sdk.GRPCPlugin
GetActionPlugin(pluginName string) *sdk.GRPCPlugin
SetActionPlugin(p *sdk.GRPCPlugin)
GetJobIdentifiers() (int64, int64, int64)
CDNHttpURL() string
InstallKey(key sdk.Variable) (*KeyResponse, error)
InstallKeyTo(key sdk.Variable, destinationPath string) (*KeyResponse, error)
Unregister(ctx context.Context) error
Client() cdsclient.WorkerInterface
ClientV2() cdsclient.V2WorkerInterface
BaseDir() afero.Fs
Environ() []string
Blur(interface{}) error
HTTPPort() int32
Parameters() []sdk.Parameter
PluginGet(pluginName string) (*sdk.GRPCPlugin, error)
PluginGetBinary(name, os, arch string, w io.Writer) error
V2AddRunResult(ctx context.Context, req V2RunResultRequest) (*V2AddResultResponse, error)
V2UpdateRunResult(ctx context.Context, req V2RunResultRequest) (*V2UpdateResultResponse, error)
AddStepOutput(ctx context.Context, outputName string, outputValue string)
V2GetRunResult(ctx context.Context, filter V2FilterRunResult) (*V2GetResultResponse, error)
V2GetIntegrationByName(ctx context.Context, name string) (*sdk.ProjectIntegration, error)
V2GetJobRun(ctx context.Context) *sdk.V2WorkflowRunJob
V2GetJobContext(ctx context.Context) *sdk.WorkflowRunJobsContext
}
type UploadArtifact ¶
type V2AddResultResponse ¶ added in v0.53.1
type V2AddResultResponse struct {
RunResult *sdk.V2WorkflowRunResult
CDNSignature string
CDNAddress string
}
type V2FilterRunResult ¶ added in v0.53.1
type V2FilterRunResult struct {
Pattern string
Type []sdk.V2WorkflowRunResultType
}
type V2GetResultResponse ¶ added in v0.53.1
type V2GetResultResponse struct {
RunResults []sdk.V2WorkflowRunResult
CDNSignature string
}
type V2RunResultRequest ¶ added in v0.53.1
type V2RunResultRequest struct {
RunResult *sdk.V2WorkflowRunResult
CDNItemLink sdk.CDNItemLink // TODO
}
type V2UpdateResultResponse ¶ added in v0.53.1
type V2UpdateResultResponse struct {
RunResult *sdk.V2WorkflowRunResult
}
type WorkerConfig ¶
type WorkerConfig struct {
Name string `json:"name"`
Basedir string `json:"basedir"`
Log cdslog.Conf `json:"log"`
HatcheryName string `json:"hatchery_name"`
APIEndpoint string `json:"api_endpoint"`
APIEndpointInsecure bool `json:"api_endpoint_insecure,omitempty"`
APIToken string `json:"api_token"`
CDNEndpoint string `json:"cdn_endpoint"`
GelfServiceAddr string `json:"gelf_service_addr"`
GelfServiceAddrEnableTLS bool `json:"gelf_service_addr_enable_tls,omitempty"`
Model string `json:"model"`
BookedJobID int64 `json:"booked_job_id,omitempty"`
RunJobID string `json:"run_job_id,omitempty"`
Region string `json:"region,omitempty"`
InjectEnvVars map[string]string `json:"inject_env_vars,omitempty"`
}
func (WorkerConfig) EncodeBase64 ¶
func (cfg WorkerConfig) EncodeBase64() string
Directories
¶
| Path | Synopsis |
|---|---|
|
Package mock_workerruntime is a generated GoMock package.
|
Package mock_workerruntime is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.