kubernetes

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Client        kubernetes.Interface
	CtrlClient    ctrl.Client
	Config        *rest.Config
	ServerVersion *version.Info
}

func NewClient

func NewClient(kubecontext string, kubeconfig string) (*Client, error)

func (*Client) GetClient

func (c *Client) GetClient() kubernetes.Interface

func (*Client) GetConfig

func (c *Client) GetConfig() *rest.Config

func (*Client) GetCtrlClient

func (c *Client) GetCtrlClient() ctrl.Client

type K8sApiReference

type K8sApiReference struct {
	ApiVersion    schema.GroupVersion
	Kind          string
	OpenapiSchema *openapi_v2.Document
}

func (*K8sApiReference) GetApiDocV2

func (k *K8sApiReference) GetApiDocV2(field string) string

Jump to

Keyboard shortcuts

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