k8x

package module
v0.0.0-...-8e33440 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Helper

type Helper interface {
	GetClient(context.Context) (client.Client, error)
	GetConfig(context.Context) (*rest.Config, error)
	SetClient(client.Client)
	SetConfig(config *rest.Config)
}

Helper is K8X methods interface

func New

func New(opts ...Option) Helper

New return an empty k8s configuration instance

type Option

type Option func(*Options)

Option ...

func ConfigPath

func ConfigPath(c string) Option

ConfigPath return the config path option setting

func Context

func Context(c string) Option

Context return the context option setting

func Namespace

func Namespace(n string) Option

Namespace return the namespace option setting

type Options

type Options struct {
	Namespace  string
	Context    string
	ConfigPath string
}

Options ...

func NewOptions

func NewOptions(opts ...Option) Options

NewOptions ...

Jump to

Keyboard shortcuts

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