Documentation
¶
Overview ¶
Package azure provides an Azure Container Apps Jobs implementation of cloud.JobDispatcher.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ARMJobsClient ¶
type ARMJobsClient interface {
BeginStartExecution(ctx context.Context, resourceGroup, jobName string, spec JobExecutionTemplate) (string, error)
}
ARMJobsClient is the testability seam over armappcontainers job execution.
func NewRealARMJobsClient ¶
func NewRealARMJobsClient(subscriptionID string, cred azcore.TokenCredential) (ARMJobsClient, error)
NewRealARMJobsClient constructs an ARMJobsClient backed by the Azure SDK.
type ContainerAppsJobDispatcher ¶
type ContainerAppsJobDispatcher struct {
// contains filtered or unexported fields
}
ContainerAppsJobDispatcher implements cloud.JobDispatcher using Azure Container Apps Jobs.
func NewContainerAppsJobDispatcher ¶
func NewContainerAppsJobDispatcher(cfg DispatcherConfig) *ContainerAppsJobDispatcher
NewContainerAppsJobDispatcher returns a dispatcher targeting the named Container Apps Job. It panics if Client is nil.
func (*ContainerAppsJobDispatcher) Dispatch ¶
func (d *ContainerAppsJobDispatcher) Dispatch(ctx context.Context, spec cloud.DispatchRequest) (cloud.Handle, error)
Dispatch fires a Container Apps Job execution. BinaryPath is ignored — the job image is configured in Azure; only Args and Env are forwarded.
type DispatcherConfig ¶
type DispatcherConfig struct {
Client ARMJobsClient
ResourceGroup string
JobName string
Image string
}
DispatcherConfig holds the parameters for a ContainerAppsJobDispatcher.
type JobExecution ¶
type JobExecution struct {
ResourceGroup string
JobName string
Template JobExecutionTemplate
}
JobExecution captures the parameters of one dispatched job — used by fakeARMClient in tests.
type JobExecutionTemplate ¶
JobExecutionTemplate is the minimal shape passed to the ARM API.