kubelib

package module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 10 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRESTClient added in v0.1.1

func CreateRESTClient(rc *rest.Config, opts ...CreateRESTClientOption) (*rest.RESTClient, error)

CreateRESTClient returns a rest.RESTClient that satisfies the requested options on a rest.Config

func RESTConfigFromKubeConfig

func RESTConfigFromKubeConfig(kubeconfig string) (*rest.Config, error)

Types

type CreateRESTClientOption added in v0.1.2

type CreateRESTClientOption func(*rest.Config)

func APIPath added in v0.1.2

func APIPath(apiPath string) CreateRESTClientOption

APIPath set a sub-path that points to an API root (optional, default '/apis')

func GroupVersion added in v0.1.2

GroupVersion is the API version to talk to (required)

func UserAgent added in v0.1.2

func UserAgent(ua string) CreateRESTClientOption

UserAgent specifies the caller of this request (optional)

func Verbose added in v0.1.2

func Verbose(verbose bool) CreateRESTClientOption

Verbose if true adds a http wire dump transport middleware (optional)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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