deploy

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeployOptions

type DeployOptions struct {
	Environment string
	OrgID       string // Selected org ID for org-scoped deployments
}

DeployOptions contains options for deployment

type StreamEvent

type StreamEvent struct {
	Type         string            `json:"type"` // "progress", "complete", "error"
	Message      string            `json:"message"`
	DeploymentID string            `json:"deploymentId,omitempty"`
	URL          string            `json:"url,omitempty"`
	Data         map[string]string `json:"data,omitempty"`
	Timestamp    int64             `json:"timestamp"`
}

StreamEvent represents a deployment progress event from the streaming response

type StreamingDeployer

type StreamingDeployer struct {
	// contains filtered or unexported fields
}

StreamingDeployer handles deployments via Lambda Function URLs with streaming responses

func NewStreamingDeployer

func NewStreamingDeployer() *StreamingDeployer

NewStreamingDeployer creates a new streaming deployer

func (*StreamingDeployer) Deploy

func (d *StreamingDeployer) Deploy(
	ctx context.Context,
	ftlConfig []byte,
	creds *api.CreateDeployCredentialsResponseBody,
	opts DeployOptions,
	progressCallback func(event StreamEvent),
) error

Deploy performs a deployment using the streaming Lambda Function URL

Jump to

Keyboard shortcuts

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