Documentation
¶
Index ¶
- type AppSources
- type DeploymentService
- func (ds *DeploymentService) CreateRun(organizationId, deploymentId string, appSources []AppSources) (*models.DeploymentRun, error)
- func (ds *DeploymentService) GetDeploymentRun(organizationId, deploymentId, runId string) (*models.DeploymentRun, error)
- func (ds *DeploymentService) SearchDeployments(organizationId, nameOrId string, pageSize, pageNum int) ([]models.Deployment, error)
- type ErrorMessage
- type IDeploymentService
- type LogMessageData
- type RunMessageData
- type StatusModel
- type VerboseMessage
- type WebSocketMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppSources ¶
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) 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"`
}
Click to show internal directories.
Click to hide internal directories.