Documentation
¶
Index ¶
- func JobID(ctx context.Context) (int64, error)
- func KeysDirectory(ctx context.Context) (afero.File, error)
- func SetJobID(ctx context.Context, i int64) context.Context
- func SetKeysDirectory(ctx context.Context, s afero.File) 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 WorkingDirectory(ctx context.Context) (afero.File, error)
- type CDSVersionSet
- type DownloadArtifact
- type FilePath
- type KeyResponse
- type Level
- type Runtime
- type TmplPath
- type UploadArtifact
- type WorkerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetWorkingDirectory ¶
Types ¶
type CDSVersionSet ¶
type CDSVersionSet struct {
Value string `json:"value"`
}
type DownloadArtifact ¶
type KeyResponse ¶
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
GetPlugin(pluginType string) *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
BaseDir() afero.Fs
Environ() []string
Blur(interface{}) error
HTTPPort() int32
Parameters() []sdk.Parameter
}
type UploadArtifact ¶
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"`
Region string `json:"region,omitempty"`
InjectEnvVars map[string]string `json:"inject_env_vars,omitempty"`
}
func (WorkerConfig) EncodeBase64 ¶
func (cfg WorkerConfig) EncodeBase64() string
Click to show internal directories.
Click to hide internal directories.