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 SetProjectRoot(args []string) error
- func Update(name, value string) error
- func Write(text, file string) error
- type Formatter
- type JsonFormatter
- type Property
- 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 SetProjectRoot ¶
SetProjectRoot sets project root location in ENV.
Types ¶
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 TextFormatter ¶ added in v1.1.2
type TextFormatter struct {
Headers []string
}