 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package extension implements Tilt extensions. This is not the internal Starkit abstraction, but the user-visible feature. In a Tiltfile, you can write `load("ext://foo", "bar")` to load the function bar from the extension foo.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Extension ¶
type Extension struct {
	// contains filtered or unexported fields
}
    func NewExtension ¶
type Fetcher ¶
type Fetcher interface {
	Fetch(ctx context.Context, moduleName string) (ModuleContents, error)
}
    type GithubFetcher ¶
type GithubFetcher struct {
}
    func NewGithubFetcher ¶
func NewGithubFetcher() *GithubFetcher
TODO(dmiller): DI github TODO(dmiller): DI HTTP client
func (*GithubFetcher) Fetch ¶
func (f *GithubFetcher) Fetch(ctx context.Context, moduleName string) (ModuleContents, error)
type LocalStore ¶
type LocalStore struct {
	// contains filtered or unexported fields
}
    func NewLocalStore ¶
func NewLocalStore(baseDir string) *LocalStore
func (*LocalStore) ModulePath ¶
func (*LocalStore) Write ¶
func (s *LocalStore) Write(ctx context.Context, contents ModuleContents) (string, error)
TODO(dmiller): should this error if we try to write an extension with the same name as one that already exists?
type MetadataFile ¶
type MetadataFile struct {
	Extensions []Metadata
}
     Click to show internal directories. 
   Click to hide internal directories.