Help us shape the future of Go! Take the 2026 Go Developer Survey

kubectl

package
v0.12.0 Latest Latest
Warning

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

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

Documentation

Overview

Package kubectl provides a kubectl-compatible HTTP client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(server string) *Client

func (*Client) APIResources

func (c *Client) APIResources() ([]map[string]interface{}, error)

func (*Client) Apply

func (c *Client) Apply(filename string) error

func (*Client) Delete

func (c *Client) Delete(resource, name string) error

func (*Client) Get

func (c *Client) Get(resource, name string) (map[string]interface{}, error)

func (*Client) List

func (c *Client) List(resource string) ([]map[string]interface{}, error)

func (*Client) Logs

func (c *Client) Logs(pod string) (string, error)

func (*Client) SetNamespace

func (c *Client) SetNamespace(ns string)

func (*Client) SetToken

func (c *Client) SetToken(token string)

func (*Client) Version

func (c *Client) Version() (map[string]interface{}, error)

func (*Client) Watch

func (c *Client) Watch(resource string) (<-chan map[string]interface{}, error)

Jump to

Keyboard shortcuts

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