pkg

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version = "unset"
)

Variables

View Source
var ErrNotReady = errors.New("not ready")

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(socketAddr string) *Client

func (*Client) Get

func (c *Client) Get(path string) (string, error)

func (*Client) GetJson added in v0.0.2

func (c *Client) GetJson(path string, data any) error

func (*Client) Ready

func (c *Client) Ready() error

func (*Client) Stop

func (c *Client) Stop() error

type Forwarder

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

func NewForwarder

func NewForwarder(kubeconfig string, target Target) (*Forwarder, error)

func (*Forwarder) Run

func (f *Forwarder) Run(ctx context.Context)

func (*Forwarder) Stop added in v0.0.2

func (f *Forwarder) Stop()

type ForwarderStatus added in v0.0.2

type ForwarderStatus struct {
	Target     `json:,inline`
	Forwarding bool `json:"forwarding"`
}

type Manifest added in v0.0.2

type Manifest struct {
	Targets []Target `json:"targets"`
}

func LoadManifest added in v0.0.2

func LoadManifest(filepath string) (*Manifest, error)

type Server

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

func NewServer

func NewServer(socketAddr string, kubeconfig string, manifest string, logFilePath string) *Server

func (Server) Run

func (s Server) Run() error

type Target

type Target struct {
	ObjectType string   `json:"type"`
	Namespace  string   `json:"namespace"`
	Name       string   `json:"name"`
	Ports      []string `json:"ports"`
}

func (Target) String

func (t Target) String() string

Jump to

Keyboard shortcuts

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