config

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forward

type Forward struct {
	Context    *string
	Namespace  *string
	Pod        string
	Deployment string
	Service    string
	Remote     string
	Local      string
}

func (*Forward) LocalAddr

func (f *Forward) LocalAddr() (string, int32, error)

func (*Forward) Type

func (f *Forward) Type() ForwardType

func (*Forward) Validate

func (f *Forward) Validate() error

type ForwardType

type ForwardType int
const (
	ForwardTypePod ForwardType = iota
	ForwardTypeDeployment
	ForwardTypeService
)

type Forwardfile

type Forwardfile struct {
	Path     string `toml:"-"`
	Relaxed  bool
	Forwards map[string]Forward
}

func Load

func Load(opts ...ForwardfileOption) (*Forwardfile, error)

func (*Forwardfile) Validate

func (ff *Forwardfile) Validate() error

type ForwardfileOption

type ForwardfileOption func(ff *Forwardfile)

func WithPath

func WithPath(path string) ForwardfileOption

Jump to

Keyboard shortcuts

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