top

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2017 License: Apache-2.0 Imports: 20 Imported by: 0

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) *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