Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = Options{ Address: "", Port: "8080", PermitWrite: true, IndexFile: "", TitleFormat: "GRTTY Command", EnableReconnect: true, ReconnectTime: 10, CloseSignal: 1, SessionKey: "_auth_user_id", }
DefaultOptions -
View Source
var ExecuteCommandFailed float64
ExecuteCommandFailed metric
View Source
var ExecuteCommandTotal float64
ExecuteCommandTotal metric
View Source
var Version = "0.0.2"
Version -
Functions ¶
func NewExecContext ¶
func NewExecContext(kubeRequest *restclient.Request, config *restclient.Config) (server.Slave, error)
NewExecContext new exec Context
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App -
func (*App) GetContainerArgs ¶
func (app *App) GetContainerArgs(namespace, podname, containerName string) (string, string, []string, error)
GetContainerArgs get default container name
type Exporter ¶
type Exporter struct { ExecuteCommandTotal prometheus.Counter ExecuteCommandFailed prometheus.Counter }
Exporter collects webcli metrics. It implements prometheus.Collector.
func (*Exporter) Collect ¶
func (e *Exporter) Collect(ch chan<- prometheus.Metric)
Collect implements prometheus.Collector.
func (*Exporter) Describe ¶
func (e *Exporter) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector.
type InitMessage ¶
type InitMessage struct { // TenantEnvID string `json:"T_id"` // ServiceID string `json:"S_id"` PodName string `json:"C_id"` ContainerName string `json:"containerName"` Md5 string `json:"Md5"` Namespace string `json:"namespace"` }
InitMessage -
type Options ¶
type Options struct { Address string `hcl:"address"` Port string `hcl:"port"` PermitWrite bool `hcl:"permit_write"` IndexFile string `hcl:"index_file"` //titile format by golang templete TitleFormat string `hcl:"title_format"` EnableReconnect bool `hcl:"enable_reconnect"` ReconnectTime int `hcl:"reconnect_time"` PermitArguments bool `hcl:"permit_arguments"` CloseSignal int `hcl:"close_signal"` RawPreferences map[string]interface{} `hcl:"preferences"` SessionKey string `hcl:"session_key"` K8SConfPath string }
Options options
Click to show internal directories.
Click to hide internal directories.