Documentation ¶
Index ¶
- func NeedsNudge(st store.EngineState) bool
- func NewProtoDCResourceInfo(configPaths []string, status dockercompose.Status, cID container.ID, ...) (*proto_webview.DCResourceInfo, error)
- func StateToProtoView(s store.EngineState) (*proto_webview.View, error)
- func ToProtoBuildRecord(br model.BuildRecord) (*proto_webview.BuildRecord, error)
- func ToProtoBuildRecords(brs []model.BuildRecord) ([]*proto_webview.BuildRecord, error)
- type Alert
- type BuildRecord
- type DCResourceInfo
- type K8sResourceInfo
- type LocalResourceInfo
- type Resource
- type ResourceInfoView
- type RuntimeStatus
- type TiltBuild
- type View
- type YAMLResourceInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NeedsNudge ¶ added in v0.8.4
func NeedsNudge(st store.EngineState) bool
func NewProtoDCResourceInfo ¶ added in v0.10.15
func NewProtoDCResourceInfo(configPaths []string, status dockercompose.Status, cID container.ID, log model.Log, startTime time.Time) (*proto_webview.DCResourceInfo, error)
func StateToProtoView ¶ added in v0.10.15
func StateToProtoView(s store.EngineState) (*proto_webview.View, error)
func ToProtoBuildRecord ¶ added in v0.10.15
func ToProtoBuildRecord(br model.BuildRecord) (*proto_webview.BuildRecord, error)
func ToProtoBuildRecords ¶ added in v0.10.15
func ToProtoBuildRecords(brs []model.BuildRecord) ([]*proto_webview.BuildRecord, error)
Types ¶
type BuildRecord ¶ added in v0.8.6
type BuildRecord struct { Edits []string `json:"edits"` Error string `json:"error"` Warnings []string `json:"warnings"` StartTime time.Time `json:"startTime"` FinishTime time.Time `json:"finishTime"` // IsZero() == true for in-progress builds Log model.Log `json:"log"` IsCrashRebuild bool `json:"isCrashRebuild"` }
func ToWebViewBuildRecord ¶ added in v0.8.6
func ToWebViewBuildRecord(br model.BuildRecord) BuildRecord
func ToWebViewBuildRecords ¶ added in v0.8.6
func ToWebViewBuildRecords(brs []model.BuildRecord) []BuildRecord
type DCResourceInfo ¶
type DCResourceInfo struct { ConfigPaths []string `json:"configPaths"` ContainerStatus dockercompose.Status `json:"containerStatus"` ContainerID container.ID `json:"containerID"` Log model.Log `json:"log"` StartTime time.Time `json:"startTime"` }
func NewDCResourceInfo ¶
func NewDCResourceInfo(configPaths []string, status dockercompose.Status, cID container.ID, log model.Log, startTime time.Time) DCResourceInfo
func (DCResourceInfo) RuntimeLog ¶
func (dcInfo DCResourceInfo) RuntimeLog() model.Log
func (DCResourceInfo) Status ¶
func (dcInfo DCResourceInfo) Status() string
type K8sResourceInfo ¶ added in v0.8.10
type K8sResourceInfo struct { PodName string `json:"podName"` PodCreationTime time.Time `json:"podCreationTime"` PodUpdateStartTime time.Time `json:"podUpdateStartTime"` PodStatus string `json:"podStatus"` PodStatusMessage string `json:"podStatusMessage"` AllContainersReady bool `json:"allContainersReady"` PodRestarts int `json:"podRestarts"` PodLog model.Log `json:"podLog"` }
func (K8sResourceInfo) RuntimeLog ¶ added in v0.8.10
func (k8sInfo K8sResourceInfo) RuntimeLog() model.Log
func (K8sResourceInfo) Status ¶ added in v0.8.10
func (k8sInfo K8sResourceInfo) Status() string
type LocalResourceInfo ¶ added in v0.10.9
type LocalResourceInfo struct{}
Local resources have no run time info, so it's all empty.
func (LocalResourceInfo) RuntimeLog ¶ added in v0.10.9
func (LocalResourceInfo) RuntimeLog() model.Log
func (LocalResourceInfo) Status ¶ added in v0.10.9
func (LocalResourceInfo) Status() string
type Resource ¶
type Resource struct { Name model.ManifestName `json:"name"` DirectoriesWatched []string `json:"directoriesWatched"` PathsWatched []string `json:"pathsWatched"` LastDeployTime time.Time `json:"lastDeployTime"` TriggerMode model.TriggerMode `json:"triggerMode"` BuildHistory []BuildRecord `json:"buildHistory"` CurrentBuild BuildRecord `json:"currentBuild"` PendingBuildReason model.BuildReason `json:"pendingBuildReason"` PendingBuildEdits []string `json:"pendingBuildEdits"` PendingBuildSince time.Time `json:"pendingBuildSince"` HasPendingChanges bool `json:"hasPendingChanges"` Endpoints []string `json:"endpoints"` PodID k8s.PodID `json:"podID"` // Only one of these resource info fields will be populated K8sResourceInfo *K8sResourceInfo `json:"k8sResourceInfo,omitempty"` DCResourceInfo *DCResourceInfo `json:"dcResourceInfo,omitempty"` YAMLResourceInfo *YAMLResourceInfo `json:"yamlResourceInfo,omitempty"` LocalResourceInfo *LocalResourceInfo `json:"localResourceInfo,omitempty"` RuntimeStatus RuntimeStatus `json:"runtimeStatus"` IsTiltfile bool `json:"isTiltfile"` ShowBuildStatus bool `json:"showBuildStatus"` // if true, we show status & time in 'Build Status'; else, "N/A" CombinedLog model.Log `json:"combinedLog"` CrashLog model.Log `json:"crashLog"` Alerts []Alert `json:"alerts"` Facets []model.Facet `json:"facets"` }
func (Resource) LastBuild ¶
func (r Resource) LastBuild() BuildRecord
func (Resource) ResourceInfo ¶
func (r Resource) ResourceInfo() ResourceInfoView
type ResourceInfoView ¶
type RuntimeStatus ¶
type RuntimeStatus string
const ( RuntimeStatusOK RuntimeStatus = "ok" RuntimeStatusPending RuntimeStatus = "pending" RuntimeStatusError RuntimeStatus = "error" )
type View ¶
type View struct { Log model.Log `json:"log"` Resources []Resource `json:"resources"` LogTimestamps bool `json:"logTimestamps"` FeatureFlags map[string]bool `json:"featureFlags"` NeedsAnalyticsNudge bool `json:"needsAnalyticsNudge"` RunningTiltBuild TiltBuild `json:"runningTiltBuild"` LatestTiltBuild TiltBuild `json:"latestTiltBuild"` TiltCloudUsername string `json:"tiltCloudUsername"` TiltCloudSchemeHost string `json:"tiltCloudSchemeHost"` TiltCloudTeamID string `json:"tiltCloudTeamID"` FatalError string `json:"fatalError"` }
type YAMLResourceInfo ¶
type YAMLResourceInfo struct {
K8sResources []string `json:"k8sResources"`
}
func (YAMLResourceInfo) RuntimeLog ¶
func (yamlInfo YAMLResourceInfo) RuntimeLog() model.Log
func (YAMLResourceInfo) Status ¶
func (yamlInfo YAMLResourceInfo) Status() string
Click to show internal directories.
Click to hide internal directories.