Documentation
¶
Index ¶
- Constants
- Variables
- func AllowInsecureDownload() bool
- func CheckUpdates() bool
- func FilePath(name string) (string, error)
- func GaugeRepositoryUrl() string
- func GaugeVersionInPropertiesFile(name string) (*version.Version, error)
- func GetProperty(name string) (string, error)
- func IdeRequestTimeout() time.Duration
- func List(machineReadable bool) (string, error)
- func Merge() error
- func PluginConnectionTimeout() time.Duration
- func PluginKillTimeout() time.Duration
- func RefactorTimeout() time.Duration
- func RunnerConnectionTimeout() time.Duration
- func RunnerRequestTimeout() time.Duration
- func SetGaugeSettings(gs GaugeSettings)
- func SetProjectRoot(args []string) error
- func SetSkipEmptyLineInsertions(val bool)
- func Update(name, value string) error
- func UpdateSettings(request *jsonrpc2.Request) error
- func Write(text, file string) error
- type DidChangeConfigurationParams
- type FormatConfig
- type Formatter
- type GaugeSettings
- type JsonFormatter
- type Property
- type Settings
- type TextFormatter
Constants ¶
const (
LayoutForTimeStamp = "Jan 2, 2006 at 3:04pm"
)
Variables ¶
var APILog = logging.MustGetLogger("gauge-api")
var GetPropertyFromConfig = func(propertyName string) string { config, err := common.GetGaugeConfiguration() if err != nil { APILog.Warningf("Failed to get configuration from Gauge properties file. Error: %s", err.Error()) return "" } return config[propertyName] }
var Log = logging.MustGetLogger("gauge")
var ProjectRoot string
Functions ¶
func AllowInsecureDownload ¶ added in v1.1.2
func AllowInsecureDownload() bool
AllowInsecureDownload determines if insecure download is enabled
func CheckUpdates ¶ added in v0.3.0
func CheckUpdates() bool
CheckUpdates determines if update check is enabled
func GaugeRepositoryUrl ¶
func GaugeRepositoryUrl() string
GaugeRepositoryUrl fetches the repository URL to locate plugins
func GaugeVersionInPropertiesFile ¶ added in v1.1.2
func GetProperty ¶ added in v0.9.0
func IdeRequestTimeout ¶ added in v0.9.8
Timeout in milliseconds for requests from the grpc language runner.
func PluginConnectionTimeout ¶
PluginConnectionTimeout gets timeout in milliseconds for making a connection to plugins
func PluginKillTimeout ¶
PluginKillTimeout gets timeout in milliseconds for a plugin to stop after a kill message has been sent
func RefactorTimeout ¶
RefactorTimeout returns the default timeout value for a refactoring request.
func RunnerConnectionTimeout ¶
RunnerConnectionTimeout gets timeout in milliseconds for making a connection to the language runner
func RunnerRequestTimeout ¶
Timeout in milliseconds for requests from the language runner.
func SetGaugeSettings ¶ added in v1.6.13
func SetGaugeSettings(gs GaugeSettings)
func SetProjectRoot ¶
SetProjectRoot sets project root location in ENV.
func SetSkipEmptyLineInsertions ¶ added in v1.6.13
func SetSkipEmptyLineInsertions(val bool)
func UpdateSettings ¶ added in v1.6.13
Types ¶
type DidChangeConfigurationParams ¶ added in v1.6.13
type DidChangeConfigurationParams struct {
Settings Settings `json:"settings"`
}
type FormatConfig ¶ added in v1.6.13
type FormatConfig struct {
SkipEmptyLineInsertions bool `json:"skipEmptyLineInsertions"`
}
type GaugeSettings ¶ added in v1.6.13
type GaugeSettings struct {
Format FormatConfig `json:"formatting"`
}
func CurrentGaugeSettings ¶ added in v1.6.13
func CurrentGaugeSettings() GaugeSettings
type JsonFormatter ¶ added in v1.1.2
type JsonFormatter struct { }
type Property ¶ added in v1.1.2
type Property struct { Key string `json:"key"` Value string `json:"value"` Description string // contains filtered or unexported fields }
func NewProperty ¶ added in v1.1.2
type Settings ¶ added in v1.6.13
type Settings struct {
Gauge GaugeSettings `json:"gauge"`
}
type TextFormatter ¶ added in v1.1.2
type TextFormatter struct {
Headers []string
}