webview

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LogLevel_name = map[int32]string{
		0: "NONE",
		1: "INFO",
		2: "VERBOSE",
		3: "DEBUG",
		4: "WARN",
		5: "ERROR",
	}
	LogLevel_value = map[string]int32{
		"NONE":    0,
		"INFO":    1,
		"VERBOSE": 2,
		"DEBUG":   3,
		"WARN":    4,
		"ERROR":   5,
	}
)

Enum value maps for LogLevel.

View Source
var (
	TargetType_name = map[int32]string{
		0: "TARGET_TYPE_UNSPECIFIED",
		1: "TARGET_TYPE_IMAGE",
		2: "TARGET_TYPE_K8S",
		3: "TARGET_TYPE_DOCKER_COMPOSE",
		4: "TARGET_TYPE_LOCAL",
	}
	TargetType_value = map[string]int32{
		"TARGET_TYPE_UNSPECIFIED":    0,
		"TARGET_TYPE_IMAGE":          1,
		"TARGET_TYPE_K8S":            2,
		"TARGET_TYPE_DOCKER_COMPOSE": 3,
		"TARGET_TYPE_LOCAL":          4,
	}
)

Enum value maps for TargetType.

View Source
var File_pkg_webview_log_proto protoreflect.FileDescriptor
View Source
var File_pkg_webview_view_proto protoreflect.FileDescriptor

Functions

func RegisterViewServiceServer

func RegisterViewServiceServer(s *grpc.Server, srv ViewServiceServer)

func RegisterWebsocketServiceServer added in v0.10.25

func RegisterWebsocketServiceServer(s *grpc.Server, srv WebsocketServiceServer)

Types

type AckWebsocketRequest added in v0.10.25

type AckWebsocketRequest struct {

	// The to_checkpoint on the received LogList
	ToCheckpoint int32 `protobuf:"varint,1,opt,name=to_checkpoint,json=toCheckpoint,proto3" json:"to_checkpoint,omitempty"`
	// Allows us to synchronize on a running Tilt intance,
	// so we can tell when we're talking to the same Tilt.
	TiltStartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=tilt_start_time,json=tiltStartTime,proto3" json:"tilt_start_time,omitempty"`
	// contains filtered or unexported fields
}

NOTE(nick): This is obsolete.

Our websocket service has two kinds of messages:

  1. On initialization, we send down the complete view state
  2. On every change, we send down the resources that have changed since the last send().

func (*AckWebsocketRequest) Descriptor deprecated added in v0.10.25

func (*AckWebsocketRequest) Descriptor() ([]byte, []int)

Deprecated: Use AckWebsocketRequest.ProtoReflect.Descriptor instead.

func (*AckWebsocketRequest) GetTiltStartTime added in v0.10.25

func (x *AckWebsocketRequest) GetTiltStartTime() *timestamppb.Timestamp

func (*AckWebsocketRequest) GetToCheckpoint added in v0.10.25

func (x *AckWebsocketRequest) GetToCheckpoint() int32

func (*AckWebsocketRequest) ProtoMessage added in v0.10.25

func (*AckWebsocketRequest) ProtoMessage()

func (*AckWebsocketRequest) ProtoReflect added in v0.22.12

func (x *AckWebsocketRequest) ProtoReflect() protoreflect.Message

func (*AckWebsocketRequest) Reset added in v0.10.25

func (x *AckWebsocketRequest) Reset()

func (*AckWebsocketRequest) String added in v0.10.25

func (x *AckWebsocketRequest) String() string

type AckWebsocketResponse added in v0.10.25

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

func (*AckWebsocketResponse) Descriptor deprecated added in v0.10.25

func (*AckWebsocketResponse) Descriptor() ([]byte, []int)

Deprecated: Use AckWebsocketResponse.ProtoReflect.Descriptor instead.

func (*AckWebsocketResponse) ProtoMessage added in v0.10.25

func (*AckWebsocketResponse) ProtoMessage()

func (*AckWebsocketResponse) ProtoReflect added in v0.22.12

func (x *AckWebsocketResponse) ProtoReflect() protoreflect.Message

func (*AckWebsocketResponse) Reset added in v0.10.25

func (x *AckWebsocketResponse) Reset()

func (*AckWebsocketResponse) String added in v0.10.25

func (x *AckWebsocketResponse) String() string

type BuildRecord

type BuildRecord struct {
	Error          string                 `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	Warnings       []string               `protobuf:"bytes,3,rep,name=warnings,proto3" json:"warnings,omitempty"`
	StartTime      *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	FinishTime     *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=finish_time,json=finishTime,proto3" json:"finish_time,omitempty"`
	IsCrashRebuild bool                   `protobuf:"varint,7,opt,name=is_crash_rebuild,json=isCrashRebuild,proto3" json:"is_crash_rebuild,omitempty"`
	// The span id for this build record's logs in the main logstore.
	SpanId string `protobuf:"bytes,8,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
	// contains filtered or unexported fields
}

func (*BuildRecord) Descriptor deprecated

func (*BuildRecord) Descriptor() ([]byte, []int)

Deprecated: Use BuildRecord.ProtoReflect.Descriptor instead.

func (*BuildRecord) GetError

func (x *BuildRecord) GetError() string

func (*BuildRecord) GetFinishTime

func (x *BuildRecord) GetFinishTime() *timestamppb.Timestamp

func (*BuildRecord) GetIsCrashRebuild

func (x *BuildRecord) GetIsCrashRebuild() bool

func (*BuildRecord) GetSpanId added in v0.10.25

func (x *BuildRecord) GetSpanId() string

func (*BuildRecord) GetStartTime

func (x *BuildRecord) GetStartTime() *timestamppb.Timestamp

func (*BuildRecord) GetWarnings

func (x *BuildRecord) GetWarnings() []string

func (*BuildRecord) ProtoMessage

func (*BuildRecord) ProtoMessage()

func (*BuildRecord) ProtoReflect added in v0.22.12

func (x *BuildRecord) ProtoReflect() protoreflect.Message

func (*BuildRecord) Reset

func (x *BuildRecord) Reset()

func (*BuildRecord) String

func (x *BuildRecord) String() string

type GetViewRequest

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

func (*GetViewRequest) Descriptor deprecated

func (*GetViewRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetViewRequest.ProtoReflect.Descriptor instead.

func (*GetViewRequest) ProtoMessage

func (*GetViewRequest) ProtoMessage()

func (*GetViewRequest) ProtoReflect added in v0.22.12

func (x *GetViewRequest) ProtoReflect() protoreflect.Message

func (*GetViewRequest) Reset

func (x *GetViewRequest) Reset()

func (*GetViewRequest) String

func (x *GetViewRequest) String() string

type K8SResourceInfo

type K8SResourceInfo struct {
	PodName            string `protobuf:"bytes,1,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"`
	PodCreationTime    string `protobuf:"bytes,2,opt,name=pod_creation_time,json=podCreationTime,proto3" json:"pod_creation_time,omitempty"`
	PodUpdateStartTime string `protobuf:"bytes,3,opt,name=pod_update_start_time,json=podUpdateStartTime,proto3" json:"pod_update_start_time,omitempty"`
	PodStatus          string `protobuf:"bytes,4,opt,name=pod_status,json=podStatus,proto3" json:"pod_status,omitempty"`
	PodStatusMessage   string `protobuf:"bytes,5,opt,name=pod_status_message,json=podStatusMessage,proto3" json:"pod_status_message,omitempty"`
	AllContainersReady bool   `protobuf:"varint,6,opt,name=all_containers_ready,json=allContainersReady,proto3" json:"all_containers_ready,omitempty"`
	PodRestarts        int32  `protobuf:"varint,7,opt,name=pod_restarts,json=podRestarts,proto3" json:"pod_restarts,omitempty"`
	// The span id for this pod's logs in the main logstore
	SpanId       string   `protobuf:"bytes,9,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
	DisplayNames []string `protobuf:"bytes,10,rep,name=display_names,json=displayNames,proto3" json:"display_names,omitempty"`
	// contains filtered or unexported fields
}

func (*K8SResourceInfo) Descriptor deprecated

func (*K8SResourceInfo) Descriptor() ([]byte, []int)

Deprecated: Use K8SResourceInfo.ProtoReflect.Descriptor instead.

func (*K8SResourceInfo) GetAllContainersReady

func (x *K8SResourceInfo) GetAllContainersReady() bool

func (*K8SResourceInfo) GetDisplayNames added in v0.14.1

func (x *K8SResourceInfo) GetDisplayNames() []string

func (*K8SResourceInfo) GetPodCreationTime

func (x *K8SResourceInfo) GetPodCreationTime() string

func (*K8SResourceInfo) GetPodName

func (x *K8SResourceInfo) GetPodName() string

func (*K8SResourceInfo) GetPodRestarts

func (x *K8SResourceInfo) GetPodRestarts() int32

func (*K8SResourceInfo) GetPodStatus

func (x *K8SResourceInfo) GetPodStatus() string

func (*K8SResourceInfo) GetPodStatusMessage

func (x *K8SResourceInfo) GetPodStatusMessage() string

func (*K8SResourceInfo) GetPodUpdateStartTime

func (x *K8SResourceInfo) GetPodUpdateStartTime() string

func (*K8SResourceInfo) GetSpanId added in v0.10.25

func (x *K8SResourceInfo) GetSpanId() string

func (*K8SResourceInfo) ProtoMessage

func (*K8SResourceInfo) ProtoMessage()

func (*K8SResourceInfo) ProtoReflect added in v0.22.12

func (x *K8SResourceInfo) ProtoReflect() protoreflect.Message

func (*K8SResourceInfo) Reset

func (x *K8SResourceInfo) Reset()

func (*K8SResourceInfo) String

func (x *K8SResourceInfo) String() string
type Link struct {
	Url  string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Link) Descriptor deprecated added in v0.17.7

func (*Link) Descriptor() ([]byte, []int)

Deprecated: Use Link.ProtoReflect.Descriptor instead.

func (*Link) GetName added in v0.17.7

func (x *Link) GetName() string

func (*Link) GetUrl added in v0.17.7

func (x *Link) GetUrl() string

func (*Link) ProtoMessage added in v0.17.7

func (*Link) ProtoMessage()

func (*Link) ProtoReflect added in v0.22.12

func (x *Link) ProtoReflect() protoreflect.Message

func (*Link) Reset added in v0.17.7

func (x *Link) Reset()

func (*Link) String added in v0.17.7

func (x *Link) String() string

type LocalResourceInfo

type LocalResourceInfo struct {
	Pid    int64 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"`
	IsTest bool  `protobuf:"varint,2,opt,name=is_test,json=isTest,proto3" json:"is_test,omitempty"`
	// contains filtered or unexported fields
}

func (*LocalResourceInfo) Descriptor deprecated

func (*LocalResourceInfo) Descriptor() ([]byte, []int)

Deprecated: Use LocalResourceInfo.ProtoReflect.Descriptor instead.

func (*LocalResourceInfo) GetIsTest added in v0.18.3

func (x *LocalResourceInfo) GetIsTest() bool

func (*LocalResourceInfo) GetPid added in v0.14.0

func (x *LocalResourceInfo) GetPid() int64

func (*LocalResourceInfo) ProtoMessage

func (*LocalResourceInfo) ProtoMessage()

func (*LocalResourceInfo) ProtoReflect added in v0.22.12

func (x *LocalResourceInfo) ProtoReflect() protoreflect.Message

func (*LocalResourceInfo) Reset

func (x *LocalResourceInfo) Reset()

func (*LocalResourceInfo) String

func (x *LocalResourceInfo) String() string

type LogLevel added in v0.10.25

type LogLevel int32
const (
	// For backwards-compatibility, the int value doesn't say
	// anything about relative severity.
	LogLevel_NONE    LogLevel = 0
	LogLevel_INFO    LogLevel = 1
	LogLevel_VERBOSE LogLevel = 2
	LogLevel_DEBUG   LogLevel = 3
	LogLevel_WARN    LogLevel = 4
	LogLevel_ERROR   LogLevel = 5
)

func (LogLevel) Descriptor added in v0.22.12

func (LogLevel) Descriptor() protoreflect.EnumDescriptor

func (LogLevel) Enum added in v0.22.12

func (x LogLevel) Enum() *LogLevel

func (LogLevel) EnumDescriptor deprecated added in v0.10.25

func (LogLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use LogLevel.Descriptor instead.

func (LogLevel) Number added in v0.22.12

func (x LogLevel) Number() protoreflect.EnumNumber

func (LogLevel) String added in v0.10.25

func (x LogLevel) String() string

func (LogLevel) Type added in v0.22.12

type LogList added in v0.10.24

type LogList struct {
	Spans    map[string]*LogSpan `` /* 151-byte string literal not displayed */
	Segments []*LogSegment       `protobuf:"bytes,2,rep,name=segments,proto3" json:"segments,omitempty"`
	// from_checkpoint and to_checkpoint express an interval on the
	// central log-store, with an inclusive start and an exclusive end
	//
	// [from_checkpoint, to_checkpoint)
	//
	// An interval of [0, 0) means that the server isn't using
	// the incremental load protocol.
	//
	// An interval of [-1, -1) means that the server doesn't have new logs
	// to send down.
	FromCheckpoint int32 `protobuf:"varint,3,opt,name=from_checkpoint,json=fromCheckpoint,proto3" json:"from_checkpoint,omitempty"`
	ToCheckpoint   int32 `protobuf:"varint,4,opt,name=to_checkpoint,json=toCheckpoint,proto3" json:"to_checkpoint,omitempty"`
	// contains filtered or unexported fields
}

func (*LogList) Descriptor deprecated added in v0.10.24

func (*LogList) Descriptor() ([]byte, []int)

Deprecated: Use LogList.ProtoReflect.Descriptor instead.

func (*LogList) GetFromCheckpoint added in v0.10.25

func (x *LogList) GetFromCheckpoint() int32

func (*LogList) GetSegments added in v0.10.24

func (x *LogList) GetSegments() []*LogSegment

func (*LogList) GetSpans added in v0.10.24

func (x *LogList) GetSpans() map[string]*LogSpan

func (*LogList) GetToCheckpoint added in v0.10.25

func (x *LogList) GetToCheckpoint() int32

func (*LogList) ProtoMessage added in v0.10.24

func (*LogList) ProtoMessage()

func (*LogList) ProtoReflect added in v0.22.12

func (x *LogList) ProtoReflect() protoreflect.Message

func (*LogList) Reset added in v0.10.24

func (x *LogList) Reset()

func (*LogList) String added in v0.10.24

func (x *LogList) String() string

type LogSegment added in v0.10.24

type LogSegment struct {
	SpanId string                 `protobuf:"bytes,1,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
	Time   *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
	Text   string                 `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
	Level  LogLevel               `protobuf:"varint,4,opt,name=level,proto3,enum=webview.LogLevel" json:"level,omitempty"`
	// When we store warnings in the LogStore, we break them up into lines and
	// store them as a series of line segments. 'anchor' marks the beginning of a
	// series of logs that should be kept together.
	//
	// Anchor warning1, line1
	//        warning1, line2
	// Anchor warning2, line1
	Anchor bool `protobuf:"varint,5,opt,name=anchor,proto3" json:"anchor,omitempty"`
	// Context-specific optional fields for a log segment.
	// Used for experimenting with new types of log metadata.
	Fields map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*LogSegment) Descriptor deprecated added in v0.10.24

func (*LogSegment) Descriptor() ([]byte, []int)

Deprecated: Use LogSegment.ProtoReflect.Descriptor instead.

func (*LogSegment) GetAnchor added in v0.14.0

func (x *LogSegment) GetAnchor() bool

func (*LogSegment) GetFields added in v0.14.0

func (x *LogSegment) GetFields() map[string]string

func (*LogSegment) GetLevel added in v0.10.25

func (x *LogSegment) GetLevel() LogLevel

func (*LogSegment) GetSpanId added in v0.10.24

func (x *LogSegment) GetSpanId() string

func (*LogSegment) GetText added in v0.10.24

func (x *LogSegment) GetText() string

func (*LogSegment) GetTime added in v0.10.24

func (x *LogSegment) GetTime() *timestamppb.Timestamp

func (*LogSegment) ProtoMessage added in v0.10.24

func (*LogSegment) ProtoMessage()

func (*LogSegment) ProtoReflect added in v0.22.12

func (x *LogSegment) ProtoReflect() protoreflect.Message

func (*LogSegment) Reset added in v0.10.24

func (x *LogSegment) Reset()

func (*LogSegment) String added in v0.10.24

func (x *LogSegment) String() string

type LogSpan added in v0.10.24

type LogSpan struct {
	ManifestName string `protobuf:"bytes,1,opt,name=manifest_name,json=manifestName,proto3" json:"manifest_name,omitempty"`
	// contains filtered or unexported fields
}

func (*LogSpan) Descriptor deprecated added in v0.10.24

func (*LogSpan) Descriptor() ([]byte, []int)

Deprecated: Use LogSpan.ProtoReflect.Descriptor instead.

func (*LogSpan) GetManifestName added in v0.10.24

func (x *LogSpan) GetManifestName() string

func (*LogSpan) ProtoMessage added in v0.10.24

func (*LogSpan) ProtoMessage()

func (*LogSpan) ProtoReflect added in v0.22.12

func (x *LogSpan) ProtoReflect() protoreflect.Message

func (*LogSpan) Reset added in v0.10.24

func (x *LogSpan) Reset()

func (*LogSpan) String added in v0.10.24

func (x *LogSpan) String() string

type MetricsServing added in v0.17.13

type MetricsServing struct {

	// Whether we're using the local or remote metrics stack.
	Mode string `protobuf:"bytes,1,opt,name=mode,proto3" json:"mode,omitempty"`
	// e.g., "localhost:10352"
	GrafanaHost string `protobuf:"bytes,2,opt,name=grafana_host,json=grafanaHost,proto3" json:"grafana_host,omitempty"`
	// contains filtered or unexported fields
}

func (*MetricsServing) Descriptor deprecated added in v0.17.13

func (*MetricsServing) Descriptor() ([]byte, []int)

Deprecated: Use MetricsServing.ProtoReflect.Descriptor instead.

func (*MetricsServing) GetGrafanaHost added in v0.17.13

func (x *MetricsServing) GetGrafanaHost() string

func (*MetricsServing) GetMode added in v0.17.13

func (x *MetricsServing) GetMode() string

func (*MetricsServing) ProtoMessage added in v0.17.13

func (*MetricsServing) ProtoMessage()

func (*MetricsServing) ProtoReflect added in v0.22.12

func (x *MetricsServing) ProtoReflect() protoreflect.Message

func (*MetricsServing) Reset added in v0.17.13

func (x *MetricsServing) Reset()

func (*MetricsServing) String added in v0.17.13

func (x *MetricsServing) String() string

type Resource

type Resource struct {
	Name              string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	LastDeployTime    *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_deploy_time,json=lastDeployTime,proto3" json:"last_deploy_time,omitempty"`
	TriggerMode       int32                  `protobuf:"varint,5,opt,name=trigger_mode,json=triggerMode,proto3" json:"trigger_mode,omitempty"`
	BuildHistory      []*BuildRecord         `protobuf:"bytes,6,rep,name=build_history,json=buildHistory,proto3" json:"build_history,omitempty"`
	CurrentBuild      *BuildRecord           `protobuf:"bytes,7,opt,name=current_build,json=currentBuild,proto3" json:"current_build,omitempty"`
	PendingBuildSince *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=pending_build_since,json=pendingBuildSince,proto3" json:"pending_build_since,omitempty"`
	HasPendingChanges bool                   `protobuf:"varint,11,opt,name=has_pending_changes,json=hasPendingChanges,proto3" json:"has_pending_changes,omitempty"`
	EndpointLinks     []*Link                `protobuf:"bytes,28,rep,name=endpoint_links,json=endpointLinks,proto3" json:"endpoint_links,omitempty"`
	PodID             string                 `protobuf:"bytes,13,opt,name=podID,proto3" json:"podID,omitempty"`
	K8SResourceInfo   *K8SResourceInfo       `protobuf:"bytes,14,opt,name=k8s_resource_info,json=k8sResourceInfo,proto3" json:"k8s_resource_info,omitempty"`
	LocalResourceInfo *LocalResourceInfo     `protobuf:"bytes,17,opt,name=local_resource_info,json=localResourceInfo,proto3" json:"local_resource_info,omitempty"`
	RuntimeStatus     string                 `protobuf:"bytes,18,opt,name=runtime_status,json=runtimeStatus,proto3" json:"runtime_status,omitempty"`
	UpdateStatus      string                 `protobuf:"bytes,29,opt,name=update_status,json=updateStatus,proto3" json:"update_status,omitempty"`
	IsTiltfile        bool                   `protobuf:"varint,19,opt,name=is_tiltfile,json=isTiltfile,proto3" json:"is_tiltfile,omitempty"`
	Specs             []*TargetSpec          `protobuf:"bytes,27,rep,name=specs,proto3" json:"specs,omitempty"`
	Queued            bool                   `protobuf:"varint,25,opt,name=queued,proto3" json:"queued,omitempty"`
	// contains filtered or unexported fields
}

func (*Resource) Descriptor deprecated

func (*Resource) Descriptor() ([]byte, []int)

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetBuildHistory

func (x *Resource) GetBuildHistory() []*BuildRecord

func (*Resource) GetCurrentBuild

func (x *Resource) GetCurrentBuild() *BuildRecord
func (x *Resource) GetEndpointLinks() []*Link

func (*Resource) GetHasPendingChanges

func (x *Resource) GetHasPendingChanges() bool

func (*Resource) GetIsTiltfile

func (x *Resource) GetIsTiltfile() bool

func (*Resource) GetK8SResourceInfo

func (x *Resource) GetK8SResourceInfo() *K8SResourceInfo

func (*Resource) GetLastDeployTime

func (x *Resource) GetLastDeployTime() *timestamppb.Timestamp

func (*Resource) GetLocalResourceInfo

func (x *Resource) GetLocalResourceInfo() *LocalResourceInfo

func (*Resource) GetName

func (x *Resource) GetName() string

func (*Resource) GetPendingBuildSince

func (x *Resource) GetPendingBuildSince() *timestamppb.Timestamp

func (*Resource) GetPodID

func (x *Resource) GetPodID() string

func (*Resource) GetQueued added in v0.10.18

func (x *Resource) GetQueued() bool

func (*Resource) GetRuntimeStatus

func (x *Resource) GetRuntimeStatus() string

func (*Resource) GetSpecs added in v0.14.0

func (x *Resource) GetSpecs() []*TargetSpec

func (*Resource) GetTriggerMode

func (x *Resource) GetTriggerMode() int32

func (*Resource) GetUpdateStatus added in v0.18.4

func (x *Resource) GetUpdateStatus() string

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect added in v0.22.12

func (x *Resource) ProtoReflect() protoreflect.Message

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) String

func (x *Resource) String() string

type Snapshot added in v0.10.16

type Snapshot struct {
	View              *View              `protobuf:"bytes,1,opt,name=view,proto3" json:"view,omitempty"`
	IsSidebarClosed   bool               `protobuf:"varint,2,opt,name=is_sidebar_closed,json=isSidebarClosed,proto3" json:"is_sidebar_closed,omitempty"`
	Path              string             `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	SnapshotHighlight *SnapshotHighlight `protobuf:"bytes,4,opt,name=snapshot_highlight,json=snapshotHighlight,proto3" json:"snapshot_highlight,omitempty"`
	SnapshotLink      string             `protobuf:"bytes,5,opt,name=snapshot_link,json=snapshotLink,proto3" json:"snapshot_link,omitempty"`
	// contains filtered or unexported fields
}

func (*Snapshot) Descriptor deprecated added in v0.10.16

func (*Snapshot) Descriptor() ([]byte, []int)

Deprecated: Use Snapshot.ProtoReflect.Descriptor instead.

func (*Snapshot) GetIsSidebarClosed added in v0.10.16

func (x *Snapshot) GetIsSidebarClosed() bool

func (*Snapshot) GetPath added in v0.10.16

func (x *Snapshot) GetPath() string

func (*Snapshot) GetSnapshotHighlight added in v0.10.16

func (x *Snapshot) GetSnapshotHighlight() *SnapshotHighlight
func (x *Snapshot) GetSnapshotLink() string

func (*Snapshot) GetView added in v0.10.16

func (x *Snapshot) GetView() *View

func (*Snapshot) ProtoMessage added in v0.10.16

func (*Snapshot) ProtoMessage()

func (*Snapshot) ProtoReflect added in v0.22.12

func (x *Snapshot) ProtoReflect() protoreflect.Message

func (*Snapshot) Reset added in v0.10.16

func (x *Snapshot) Reset()

func (*Snapshot) String added in v0.10.16

func (x *Snapshot) String() string

type SnapshotHighlight added in v0.10.16

type SnapshotHighlight struct {
	BeginningLogID string `protobuf:"bytes,1,opt,name=beginning_logID,json=beginningLogID,proto3" json:"beginning_logID,omitempty"`
	EndingLogID    string `protobuf:"bytes,2,opt,name=ending_logID,json=endingLogID,proto3" json:"ending_logID,omitempty"`
	Text           string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*SnapshotHighlight) Descriptor deprecated added in v0.10.16

func (*SnapshotHighlight) Descriptor() ([]byte, []int)

Deprecated: Use SnapshotHighlight.ProtoReflect.Descriptor instead.

func (*SnapshotHighlight) GetBeginningLogID added in v0.10.16

func (x *SnapshotHighlight) GetBeginningLogID() string

func (*SnapshotHighlight) GetEndingLogID added in v0.10.16

func (x *SnapshotHighlight) GetEndingLogID() string

func (*SnapshotHighlight) GetText added in v0.10.16

func (x *SnapshotHighlight) GetText() string

func (*SnapshotHighlight) ProtoMessage added in v0.10.16

func (*SnapshotHighlight) ProtoMessage()

func (*SnapshotHighlight) ProtoReflect added in v0.22.12

func (x *SnapshotHighlight) ProtoReflect() protoreflect.Message

func (*SnapshotHighlight) Reset added in v0.10.16

func (x *SnapshotHighlight) Reset()

func (*SnapshotHighlight) String added in v0.10.16

func (x *SnapshotHighlight) String() string

type TargetSpec added in v0.14.0

type TargetSpec struct {
	Id            string     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type          TargetType `protobuf:"varint,2,opt,name=type,proto3,enum=webview.TargetType" json:"type,omitempty"`
	HasLiveUpdate bool       `protobuf:"varint,3,opt,name=has_live_update,json=hasLiveUpdate,proto3" json:"has_live_update,omitempty"`
	// contains filtered or unexported fields
}

func (*TargetSpec) Descriptor deprecated added in v0.14.0

func (*TargetSpec) Descriptor() ([]byte, []int)

Deprecated: Use TargetSpec.ProtoReflect.Descriptor instead.

func (*TargetSpec) GetHasLiveUpdate added in v0.14.0

func (x *TargetSpec) GetHasLiveUpdate() bool

func (*TargetSpec) GetId added in v0.14.0

func (x *TargetSpec) GetId() string

func (*TargetSpec) GetType added in v0.14.0

func (x *TargetSpec) GetType() TargetType

func (*TargetSpec) ProtoMessage added in v0.14.0

func (*TargetSpec) ProtoMessage()

func (*TargetSpec) ProtoReflect added in v0.22.12

func (x *TargetSpec) ProtoReflect() protoreflect.Message

func (*TargetSpec) Reset added in v0.14.0

func (x *TargetSpec) Reset()

func (*TargetSpec) String added in v0.14.0

func (x *TargetSpec) String() string

type TargetType added in v0.14.0

type TargetType int32

Correspond to implementations of the TargetSpec interface

const (
	TargetType_TARGET_TYPE_UNSPECIFIED    TargetType = 0
	TargetType_TARGET_TYPE_IMAGE          TargetType = 1
	TargetType_TARGET_TYPE_K8S            TargetType = 2
	TargetType_TARGET_TYPE_DOCKER_COMPOSE TargetType = 3
	TargetType_TARGET_TYPE_LOCAL          TargetType = 4
)

func (TargetType) Descriptor added in v0.22.12

func (TargetType) Descriptor() protoreflect.EnumDescriptor

func (TargetType) Enum added in v0.22.12

func (x TargetType) Enum() *TargetType

func (TargetType) EnumDescriptor deprecated added in v0.14.0

func (TargetType) EnumDescriptor() ([]byte, []int)

Deprecated: Use TargetType.Descriptor instead.

func (TargetType) Number added in v0.22.12

func (x TargetType) Number() protoreflect.EnumNumber

func (TargetType) String added in v0.14.0

func (x TargetType) String() string

func (TargetType) Type added in v0.22.12

type TiltBuild

type TiltBuild struct {
	Version   string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	CommitSHA string `protobuf:"bytes,2,opt,name=commitSHA,proto3" json:"commitSHA,omitempty"`
	Date      string `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"`
	Dev       bool   `protobuf:"varint,4,opt,name=dev,proto3" json:"dev,omitempty"`
	// contains filtered or unexported fields
}

func (*TiltBuild) Descriptor deprecated

func (*TiltBuild) Descriptor() ([]byte, []int)

Deprecated: Use TiltBuild.ProtoReflect.Descriptor instead.

func (*TiltBuild) GetCommitSHA

func (x *TiltBuild) GetCommitSHA() string

func (*TiltBuild) GetDate

func (x *TiltBuild) GetDate() string

func (*TiltBuild) GetDev

func (x *TiltBuild) GetDev() bool

func (*TiltBuild) GetVersion

func (x *TiltBuild) GetVersion() string

func (*TiltBuild) ProtoMessage

func (*TiltBuild) ProtoMessage()

func (*TiltBuild) ProtoReflect added in v0.22.12

func (x *TiltBuild) ProtoReflect() protoreflect.Message

func (*TiltBuild) Reset

func (x *TiltBuild) Reset()

func (*TiltBuild) String

func (x *TiltBuild) String() string

type UnimplementedViewServiceServer

type UnimplementedViewServiceServer struct {
}

UnimplementedViewServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedViewServiceServer) GetView

func (*UnimplementedViewServiceServer) UploadSnapshot added in v0.10.16

type UnimplementedWebsocketServiceServer added in v0.10.25

type UnimplementedWebsocketServiceServer struct {
}

UnimplementedWebsocketServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedWebsocketServiceServer) AckWebsocket added in v0.10.25

type UploadSnapshotResponse added in v0.10.16

type UploadSnapshotResponse struct {
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadSnapshotResponse) Descriptor deprecated added in v0.10.16

func (*UploadSnapshotResponse) Descriptor() ([]byte, []int)

Deprecated: Use UploadSnapshotResponse.ProtoReflect.Descriptor instead.

func (*UploadSnapshotResponse) GetUrl added in v0.10.16

func (x *UploadSnapshotResponse) GetUrl() string

func (*UploadSnapshotResponse) ProtoMessage added in v0.10.16

func (*UploadSnapshotResponse) ProtoMessage()

func (*UploadSnapshotResponse) ProtoReflect added in v0.22.12

func (x *UploadSnapshotResponse) ProtoReflect() protoreflect.Message

func (*UploadSnapshotResponse) Reset added in v0.10.16

func (x *UploadSnapshotResponse) Reset()

func (*UploadSnapshotResponse) String added in v0.10.16

func (x *UploadSnapshotResponse) String() string

type VersionSettings added in v0.10.19

type VersionSettings struct {
	CheckUpdates bool `protobuf:"varint,1,opt,name=check_updates,json=checkUpdates,proto3" json:"check_updates,omitempty"`
	// contains filtered or unexported fields
}

func (*VersionSettings) Descriptor deprecated added in v0.10.19

func (*VersionSettings) Descriptor() ([]byte, []int)

Deprecated: Use VersionSettings.ProtoReflect.Descriptor instead.

func (*VersionSettings) GetCheckUpdates added in v0.10.19

func (x *VersionSettings) GetCheckUpdates() bool

func (*VersionSettings) ProtoMessage added in v0.10.19

func (*VersionSettings) ProtoMessage()

func (*VersionSettings) ProtoReflect added in v0.22.12

func (x *VersionSettings) ProtoReflect() protoreflect.Message

func (*VersionSettings) Reset added in v0.10.19

func (x *VersionSettings) Reset()

func (*VersionSettings) String added in v0.10.19

func (x *VersionSettings) String() string

type View

type View struct {
	Log       string      `protobuf:"bytes,1,opt,name=log,proto3" json:"log,omitempty"`
	Resources []*Resource `protobuf:"bytes,2,rep,name=resources,proto3" json:"resources,omitempty"`
	// We used to have a setting that allowed users to dynamically
	// prepend timestamps in logs.
	DEPRECATEDLogTimestamps   bool             `` /* 133-byte string literal not displayed */
	FeatureFlags              map[string]bool  `` /* 186-byte string literal not displayed */
	NeedsAnalyticsNudge       bool             `protobuf:"varint,5,opt,name=needs_analytics_nudge,json=needsAnalyticsNudge,proto3" json:"needs_analytics_nudge,omitempty"`
	RunningTiltBuild          *TiltBuild       `protobuf:"bytes,6,opt,name=running_tilt_build,json=runningTiltBuild,proto3" json:"running_tilt_build,omitempty"`
	DEPRECATEDLatestTiltBuild *TiltBuild       `` /* 140-byte string literal not displayed */
	SuggestedTiltVersion      string           `protobuf:"bytes,16,opt,name=suggested_tilt_version,json=suggestedTiltVersion,proto3" json:"suggested_tilt_version,omitempty"`
	VersionSettings           *VersionSettings `protobuf:"bytes,12,opt,name=version_settings,json=versionSettings,proto3" json:"version_settings,omitempty"`
	TiltCloudUsername         string           `protobuf:"bytes,8,opt,name=tilt_cloud_username,json=tiltCloudUsername,proto3" json:"tilt_cloud_username,omitempty"`
	TiltCloudTeamName         string           `protobuf:"bytes,15,opt,name=tilt_cloud_team_name,json=tiltCloudTeamName,proto3" json:"tilt_cloud_team_name,omitempty"`
	TiltCloudSchemeHost       string           `protobuf:"bytes,9,opt,name=tilt_cloud_schemeHost,json=tiltCloudSchemeHost,proto3" json:"tilt_cloud_schemeHost,omitempty"`
	TiltCloudTeamID           string           `protobuf:"bytes,10,opt,name=tilt_cloud_teamID,json=tiltCloudTeamID,proto3" json:"tilt_cloud_teamID,omitempty"`
	FatalError                string           `protobuf:"bytes,11,opt,name=fatal_error,json=fatalError,proto3" json:"fatal_error,omitempty"`
	LogList                   *LogList         `protobuf:"bytes,13,opt,name=log_list,json=logList,proto3" json:"log_list,omitempty"`
	// Allows us to synchronize on a running Tilt intance,
	// so we can tell when Tilt restarted.
	TiltStartTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=tilt_start_time,json=tiltStartTime,proto3" json:"tilt_start_time,omitempty"`
	// an identifier for the tiltfile that is running, so that the web ui can store data per tiltfile
	TiltfileKey string `protobuf:"bytes,17,opt,name=tiltfile_key,json=tiltfileKey,proto3" json:"tiltfile_key,omitempty"`
	// New API-server based data models.
	UiSession   *v1alpha1.UISession    `protobuf:"bytes,19,opt,name=ui_session,json=uiSession,proto3" json:"ui_session,omitempty"`
	UiResources []*v1alpha1.UIResource `protobuf:"bytes,20,rep,name=ui_resources,json=uiResources,proto3" json:"ui_resources,omitempty"`
	UiButtons   []*v1alpha1.UIButton   `protobuf:"bytes,22,rep,name=ui_buttons,json=uiButtons,proto3" json:"ui_buttons,omitempty"`
	Clusters    []*v1alpha1.Cluster    `protobuf:"bytes,23,rep,name=clusters,proto3" json:"clusters,omitempty"`
	// indicates that this view is a complete representation of the app
	// if false, this view just contains deltas from a previous view.
	IsComplete bool `protobuf:"varint,21,opt,name=is_complete,json=isComplete,proto3" json:"is_complete,omitempty"`
	// contains filtered or unexported fields
}

Our websocket service has two kinds of View messages:

  1. On initialization, we send down the complete view state (TiltStartTime, UISession, UIResources, and LogList)
  1. On every change, we send down the resources that have changed since the last send(). (new logs and any updated UISession/UIResource objects).

All other fields are obsolete, but are needed for deserializing old snapshots.

func (*View) Descriptor deprecated

func (*View) Descriptor() ([]byte, []int)

Deprecated: Use View.ProtoReflect.Descriptor instead.

func (*View) GetClusters added in v0.27.0

func (x *View) GetClusters() []*v1alpha1.Cluster

func (*View) GetDEPRECATEDLatestTiltBuild added in v0.14.0

func (x *View) GetDEPRECATEDLatestTiltBuild() *TiltBuild

func (*View) GetDEPRECATEDLogTimestamps added in v0.10.22

func (x *View) GetDEPRECATEDLogTimestamps() bool

func (*View) GetFatalError

func (x *View) GetFatalError() string

func (*View) GetFeatureFlags

func (x *View) GetFeatureFlags() map[string]bool

func (*View) GetIsComplete added in v0.20.7

func (x *View) GetIsComplete() bool

func (*View) GetLog

func (x *View) GetLog() string

func (*View) GetLogList added in v0.10.24

func (x *View) GetLogList() *LogList

func (*View) GetNeedsAnalyticsNudge

func (x *View) GetNeedsAnalyticsNudge() bool

func (*View) GetResources

func (x *View) GetResources() []*Resource

func (*View) GetRunningTiltBuild

func (x *View) GetRunningTiltBuild() *TiltBuild

func (*View) GetSuggestedTiltVersion added in v0.14.0

func (x *View) GetSuggestedTiltVersion() string

func (*View) GetTiltCloudSchemeHost

func (x *View) GetTiltCloudSchemeHost() string

func (*View) GetTiltCloudTeamID

func (x *View) GetTiltCloudTeamID() string

func (*View) GetTiltCloudTeamName added in v0.14.0

func (x *View) GetTiltCloudTeamName() string

func (*View) GetTiltCloudUsername

func (x *View) GetTiltCloudUsername() string

func (*View) GetTiltStartTime added in v0.10.25

func (x *View) GetTiltStartTime() *timestamppb.Timestamp

func (*View) GetTiltfileKey added in v0.17.10

func (x *View) GetTiltfileKey() string

func (*View) GetUiButtons added in v0.20.8

func (x *View) GetUiButtons() []*v1alpha1.UIButton

func (*View) GetUiResources added in v0.20.2

func (x *View) GetUiResources() []*v1alpha1.UIResource

func (*View) GetUiSession added in v0.20.2

func (x *View) GetUiSession() *v1alpha1.UISession

func (*View) GetVersionSettings added in v0.10.19

func (x *View) GetVersionSettings() *VersionSettings

func (*View) ProtoMessage

func (*View) ProtoMessage()

func (*View) ProtoReflect added in v0.22.12

func (x *View) ProtoReflect() protoreflect.Message

func (*View) Reset

func (x *View) Reset()

func (*View) String

func (x *View) String() string

type ViewServiceClient

type ViewServiceClient interface {
	GetView(ctx context.Context, in *GetViewRequest, opts ...grpc.CallOption) (*View, error)
	UploadSnapshot(ctx context.Context, in *Snapshot, opts ...grpc.CallOption) (*UploadSnapshotResponse, error)
}

ViewServiceClient is the client API for ViewService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ViewServiceServer

type ViewServiceServer interface {
	GetView(context.Context, *GetViewRequest) (*View, error)
	UploadSnapshot(context.Context, *Snapshot) (*UploadSnapshotResponse, error)
}

ViewServiceServer is the server API for ViewService service.

type WebsocketServiceClient added in v0.10.25

type WebsocketServiceClient interface {
	AckWebsocket(ctx context.Context, in *AckWebsocketRequest, opts ...grpc.CallOption) (*AckWebsocketResponse, error)
}

WebsocketServiceClient is the client API for WebsocketService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewWebsocketServiceClient added in v0.10.25

func NewWebsocketServiceClient(cc grpc.ClientConnInterface) WebsocketServiceClient

type WebsocketServiceServer added in v0.10.25

type WebsocketServiceServer interface {
	AckWebsocket(context.Context, *AckWebsocketRequest) (*AckWebsocketResponse, error)
}

WebsocketServiceServer is the server API for WebsocketService service.

Jump to

Keyboard shortcuts

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