top

package
v0.9.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2019 License: Apache-2.0 Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const MAX_APPS_TO_MONITOR = 50

Maximum number of app streams to open if non-privileged user

Variables

This section is empty.

Functions

func CpuResetAvg

func CpuResetAvg()

func CpuUsagePercent

func CpuUsagePercent() float64

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client struct

func NewClient

func NewClient(cliConnection plugin.CliConnection, options *ClientOptions, ui terminal.UI, pluginMetadata *plugin.PluginMetadata) *Client

NewClient instantiating the top client

func (*Client) Ask added in v0.7.1

func (c *Client) Ask(prompt string) string

Ask Created my own Ask func instead of the CF provided one because the CF version adds a call to PromptColor(">") which does not work cleanly on MS-Windows

func (*Client) Start

func (c *Client) Start()

Start starting the client

type ClientOptions

type ClientOptions struct {
	Debug      bool
	NoTopCheck bool
	Cygwin     bool
	Nozzles    int
}

ClientOptions needed to start the Client

type TokenRefresher added in v0.7.6

type TokenRefresher struct {
	// contains filtered or unexported fields
}

func NewTokenRefresher added in v0.7.6

func NewTokenRefresher(cliConnection plugin.CliConnection, nozzleInstanceId int) *TokenRefresher

func (*TokenRefresher) RefreshAuthToken added in v0.7.6

func (tr *TokenRefresher) RefreshAuthToken() (string, error)

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL