deployment

package
v0.22.3 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppSources

type AppSources struct {
	AppId    string          `json:"appId"`
	Artifact models.Artifact `json:"artifact,omitempty"`
	BuildId  string          `json:"buildId,omitempty"`
}

type DeploymentService

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

func NewService

func NewService() *DeploymentService

func (*DeploymentService) CreateRun

func (ds *DeploymentService) CreateRun(organizationId, deploymentId string, appSources []AppSources) (*models.DeploymentRun, error)

func (*DeploymentService) GetDeploymentRun

func (ds *DeploymentService) GetDeploymentRun(organizationId, deploymentId, runId string) (*models.DeploymentRun, error)

func (*DeploymentService) SearchDeployments

func (ds *DeploymentService) SearchDeployments(organizationId, nameOrId string, pageSize, pageNum int) ([]models.Deployment, error)

type ErrorMessage added in v0.21.0

type ErrorMessage struct {
	Error error
}

type IDeploymentService

type IDeploymentService interface {
	// contains filtered or unexported methods
}

type LogMessageData

type LogMessageData struct {
	Level        string   `json:"level"`
	Message      string   `json:"message"`
	RunId        string   `json:"runId"`
	Timestamp    int64    `json:"timestamp"`
	Id           string   `json:"id"`
	Parents      []string `json:"parents"`
	Organization struct {
		Id   string `json:"id"`
		Name string `json:"name"`
	} `json:"organization"`
}

Define the first data type (current structure)

type RunMessageData

type RunMessageData struct {
	Type   string `json:"type"`
	RunId  string `json:"runId"`
	Id     string `json:"id"`
	Status string `json:"status"`
}

Define the second data type (new structure)

type StatusModel

type StatusModel struct {
	Pipeline        models.DeploymentPipeline
	OrganizationId  string
	DeploymentId    string
	RunId           string
	Service         DeploymentService
	AppUrl          string
	Error           error
	VerboseMode     bool
	VerboseMessages []string
}

func (StatusModel) Init

func (m StatusModel) Init() tea.Cmd

func (StatusModel) RenderTree

func (m StatusModel) RenderTree(pipeLine models.DeploymentPipeline) string

func (StatusModel) Update

func (m StatusModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (StatusModel) UpdateStatusForId

func (m StatusModel) UpdateStatusForId(id string, status string)

func (StatusModel) View

func (m StatusModel) View() string

type VerboseMessage added in v0.21.0

type VerboseMessage struct {
	Content string
}

type WebSocketMessage

type WebSocketMessage struct {
	EventStreamTopic string          `json:"eventStreamTopic"`
	OrganizationId   string          `json:"organizationId"`
	Data             json.RawMessage `json:"data"`
}

Jump to

Keyboard shortcuts

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