azure

package
v0.7.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2026 License: MIT Imports: 6 Imported by: 0

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

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

type JobExecutionTemplate struct {
	ContainerImage string
	ContainerArgs  []string
	Env            []string
}

JobExecutionTemplate is the minimal shape passed to the ARM API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL