Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStore ¶
GetStore returns a file handle to the store for the given plugin and capability. If the store does not exist, it will be created. Make sure to close the file handle after using it!
func InitializePluginStore ¶
func InitializePluginStore(storeRoot *appstate.ScopedRoot) error
InitializePluginStore creates the store directory for the given plugin.
func RemoveStore ¶
func RemoveStore(capability string, storeRoot *appstate.ScopedRoot) error
RemoveStore removes the store for the given plugin and capability.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DetectLanguage ¶
func (c *Client) DetectLanguage(params GetLanguageInput) string
DetectLanguage detects the language of a file based on its filename and contents.
func (*Client) ServiceShutdown ¶ added in v0.4.0
func (*Client) ServiceStartup ¶ added in v0.4.0
func (c *Client) ServiceStartup(_ context.Context, _ application.ServiceOptions) error