daemon_server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 54 Imported by: 0 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

This section is empty.

Variables

This section is empty.

Functions

func GetTopController

func GetTopController(refs []v1.OwnerReference, client *clientgoutils.ClientGoUtils) *v1.OwnerReference

func ParseErrToForwardPort

func ParseErrToForwardPort(errStr string) (*clientgoutils.ForwardPort, error)

func Process

func Process(conn net.Conn, fun func(conn net.Conn) (interface{}, error)) error

func ProcessStream

func ProcessStream(conn net.Conn, fun func(conn net.Conn) (io.ReadCloser, error)) error

func StartDaemon

func StartDaemon(isSudoUser bool, v string, c string) error

Types

type ConfigSaveParams

type ConfigSaveParams struct {
	Application string
	Kubeconfig  string
	Name        string // svcName
	Namespace   string
	Type        string // svcType
	Config      string // config content
}

type ConfigSaveResp

type ConfigSaveResp struct {
	Success bool
	Message string
}

type PortForwardManager

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

func NewPortForwardManager

func NewPortForwardManager() *PortForwardManager

func (*PortForwardManager) ListAllRunningPFGoRoutineProfile

func (p *PortForwardManager) ListAllRunningPFGoRoutineProfile() []*daemon_common.PortForwardProfile

ListAllRunningPortForwardGoRoutineProfile

func (*PortForwardManager) RecoverAllPortForward

func (p *PortForwardManager) RecoverAllPortForward()

func (*PortForwardManager) RecoverPortForwardForApplication

func (p *PortForwardManager) RecoverPortForwardForApplication(ns, appName, nid string) error

func (*PortForwardManager) StartPortForwardGoRoutine

func (p *PortForwardManager) StartPortForwardGoRoutine(startCmd *command.PortForwardCommand, saveToDB bool) error

StartPortForwardGoRoutine Start a port-forward If saveToDB is true, record it to leveldb

func (*PortForwardManager) StopPortForwardGoRoutine

func (p *PortForwardManager) StopPortForwardGoRoutine(cmd *command.PortForwardCommand) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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