Documentation ¶
Index ¶
- Constants
- Variables
- func ToSnapshot(state store.EngineState) (*proto_webview.Snapshot, error)
- func WriteSnapshot(ctx context.Context, store *store.Store, path string)
- func WriteSnapshotTo(ctx context.Context, state store.EngineState, w io.Writer) error
- type CloudStatusManager
- type HttpClient
- type SnapshotID
- type SnapshotUploader
Constants ¶
View Source
const TiltTeamIDNameHeaderName = "X-Tilt-TeamID"
View Source
const TiltTokenHeaderName = "X-Tilt-Token"
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideHttpClient, NewStatusManager, NewSnapshotUploader)
Functions ¶
func ToSnapshot ¶ added in v0.14.0
func ToSnapshot(state store.EngineState) (*proto_webview.Snapshot, error)
func WriteSnapshot ¶ added in v0.14.0
func WriteSnapshotTo ¶ added in v0.14.0
Types ¶
type CloudStatusManager ¶ added in v0.14.0
type CloudStatusManager struct {
// contains filtered or unexported fields
}
func NewStatusManager ¶ added in v0.14.0
func NewStatusManager(client HttpClient, clock clockwork.Clock) *CloudStatusManager
func (*CloudStatusManager) CheckStatus ¶ added in v0.14.0
func (*CloudStatusManager) OnChange ¶ added in v0.14.0
func (c *CloudStatusManager) OnChange(ctx context.Context, st store.RStore, _ store.ChangeSummary)
type HttpClient ¶
func ProvideHttpClient ¶
func ProvideHttpClient() HttpClient
type SnapshotID ¶ added in v0.10.14
type SnapshotID string
type SnapshotUploader ¶ added in v0.10.14
type SnapshotUploader interface { TakeAndUpload(state store.EngineState) (SnapshotID, error) Upload(token token.Token, teamID string, snapshot *proto_webview.Snapshot) (SnapshotID, error) IDToSnapshotURL(id SnapshotID) string }
func NewSnapshotUploader ¶ added in v0.10.14
func NewSnapshotUploader(client HttpClient, addr cloudurl.Address) SnapshotUploader
Click to show internal directories.
Click to hide internal directories.