cloud

package
v0.10.17 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const TiltTeamIDNameHeaderName = "X-Tilt-TeamID"
View Source
const TiltTokenHeaderName = "X-Tilt-Token"

Variables

Functions

This section is empty.

Types

type CloudUsernameManager

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

func NewUsernameManager

func NewUsernameManager(client HttpClient) *CloudUsernameManager

func (*CloudUsernameManager) CheckUsername added in v0.10.7

func (c *CloudUsernameManager) CheckUsername(ctx context.Context, st store.RStore, blocking bool)

func (*CloudUsernameManager) OnChange

func (c *CloudUsernameManager) OnChange(ctx context.Context, st store.RStore)

type HttpClient

type HttpClient interface {
	Do(req *http.Request) (*http.Response, error)
}

func ProvideHttpClient

func ProvideHttpClient() HttpClient

type Snapshot added in v0.10.15

type Snapshot struct {
	View              webview.View      `json:"view"`
	IsSidebarClosed   bool              `json:"isSidebarClosed"`
	Path              string            `json:"path"`
	SnapshotHighlight snapshotHighlight `json:"snapshotHighlight"`
}

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

type UpdateUploader added in v0.10.14

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

func NewUpdateUploader added in v0.10.14

func NewUpdateUploader(client HttpClient, addr cloudurl.Address, su SnapshotUploader) *UpdateUploader

func (*UpdateUploader) OnChange added in v0.10.14

func (u *UpdateUploader) OnChange(ctx context.Context, st store.RStore)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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