workloadlist

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type ContainerAnyPortForwardTarget

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

func (ContainerAnyPortForwardTarget) GetInfo

func (ContainerAnyPortForwardTarget) GetTableRow

type ContainerPortForwardTarget

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

func (ContainerPortForwardTarget) GetInfo

func (ContainerPortForwardTarget) GetTableRow

type PortForwardInfo

type PortForwardInfo struct {
	PodName       string
	ContainerName string
	Port          int
}

type PortForwardTableRow

type PortForwardTableRow struct {
	Type     string
	Name     string
	Port     string
	PortName string
	Protocol string
}

type PortForwardTarget

type PortForwardTarget interface {
	// GetInfo provides port forwarding info for this particular type. If the info and error are both nil, this is take to mean
	// that the action has been cancelled
	GetInfo(ctx context.Context, clientset kubernetes.Clientset, namespace string) (*PortForwardInfo, error)

	// GetTableRow provides a table row that describes this target
	GetTableRow() PortForwardTableRow
}

type ServicePortForwardTarget

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

func (ServicePortForwardTarget) GetInfo

func (s ServicePortForwardTarget) GetInfo(ctx context.Context, clientset kubernetes.Clientset, namespace string) (*PortForwardInfo, error)

func (ServicePortForwardTarget) GetTableRow

Jump to

Keyboard shortcuts

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