Documentation
¶
Index ¶
- Constants
- func CheckpointPath(runtimeCfg interfaces.RuntimeConfigLookup, ...) string
- func PollInterval(cfg *interfaces.HostedLinearWorkerConfig) (time.Duration, error)
- func ResolveSecretRef(_ context.Context, runtimeCfg interfaces.RuntimeConfigLookup, secretRef string) (string, error)
- func SecretEnvName(secretRef string) string
- type Checkpoint
- type Client
- type CycleResult
- type Submitter
Constants ¶
View Source
const ( DefaultEndpoint = "https://api.linear.app/graphql" DefaultPollInterval = 1 * time.Minute DefaultRequestTimeout = 30 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func CheckpointPath ¶
func CheckpointPath( runtimeCfg interfaces.RuntimeConfigLookup, workstation interfaces.FactoryWorkstationConfig, workerDef *interfaces.WorkerConfig, ) string
func PollInterval ¶
func PollInterval(cfg *interfaces.HostedLinearWorkerConfig) (time.Duration, error)
func ResolveSecretRef ¶
func ResolveSecretRef(_ context.Context, runtimeCfg interfaces.RuntimeConfigLookup, secretRef string) (string, error)
func SecretEnvName ¶
Types ¶
type Checkpoint ¶
type CycleResult ¶
type CycleResult struct {
Submissions []interfaces.SubmitRequest
Checkpoint Checkpoint
FoundNewer bool
}
func RunPollCycle ¶
func RunPollCycle( ctx context.Context, client Client, runtimeCfg interfaces.RuntimeConfigLookup, workstation interfaces.FactoryWorkstationConfig, workerDef *interfaces.WorkerConfig, submitter Submitter, checkpointPath string, apiKey string, logger *zap.Logger, ) (CycleResult, error)
type Submitter ¶
type Submitter func(context.Context, interfaces.WorkRequest) error
Click to show internal directories.
Click to hide internal directories.