Documentation
¶
Index ¶
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 WriteSnapshotTo ¶ added in v0.14.0
func WriteSnapshotTo(ctx context.Context, snapshot *proto_webview.Snapshot, w io.Writer) error
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 (c *CloudStatusManager) CheckStatus(ctx context.Context, st store.RStore, cloudAddress string, requestKey statusRequestKey, blocking bool)
type HttpClient ¶
type HttpClient interface {
Do(req *http.Request) (*http.Response, error)
}
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 {
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 Snapshotter ¶ added in v0.20.5
type Snapshotter struct {
// contains filtered or unexported fields
}
func NewSnapshotter ¶ added in v0.20.5
func NewSnapshotter(st store.RStore, client ctrlclient.Client) *Snapshotter
func (*Snapshotter) WriteSnapshot ¶ added in v0.20.5
func (s *Snapshotter) WriteSnapshot(ctx context.Context, path string)
Click to show internal directories.
Click to hide internal directories.