run

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeChangeRunData

type CodeChangeRunData struct {
	Changes []DiffResult `json:"changes,omitempty"`
}

type DiffResult

type DiffResult struct {
	Chunks []struct {
		Content string `json:"content"`
		Type    string `json:"type"`
	} `json:"chunks"`
	From     string `json:"from"`
	To       string `json:"to"`
	FromMode string `json:"fromMode"`
	ToMode   string `json:"toMode"`
}

type IRunService

type IRunService interface {
}

type OrganizationReference

type OrganizationReference struct {
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type Run

type Run struct {
	ID           string                 `json:"id,omitempty"`
	Type         RunType                `json:"type,omitempty"`
	Status       RunStatus              `json:"status,omitempty"`
	Organization *OrganizationReference `json:"organization,omitempty"`
	WorkflowId   string                 `json:"workflowId,omitempty"`
	Data         json.RawMessage        `json:"data,omitempty"`
	Input        interface{}            `json:"input,omitempty"`
}

type RunService

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

func NewService

func NewService() *RunService

func (*RunService) CreateDockerFileRun

func (rs *RunService) CreateDockerFileRun(organizationID, appID, targetBranch string) (*Run, error)

func (*RunService) CreateRun

func (rs *RunService) CreateRun()

type RunStatus

type RunStatus string
const (
	RunStatusPending   RunStatus = "pending"
	RunStatusQueued    RunStatus = "queued"
	RunStatusRunning   RunStatus = "running"
	RunStatusSucceeded RunStatus = "succeeded"
	RunStatusFailed    RunStatus = "failed"
	RunStatusCanceled  RunStatus = "canceled"
)

type RunType

type RunType string
const (
	RunTypeDeployment         RunType = "deployment"
	RunTypeGenerateDockerfile RunType = "generateDockerfile"
	RunTypeResourceCleanup    RunType = "resourceCleanup"
)

Jump to

Keyboard shortcuts

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