k8s

package
v4.0.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: MIT Imports: 12 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 {
	API *kubernetes.Clientset
	// contains filtered or unexported fields
}

Client represents an active kubernetes object

func New

func New(opts Options) (*Client, error)

New initializes a new Kubernetes client

func (*Client) PodList

func (c *Client) PodList(opts metav1.ListOptions) ([]v1.Pod, error)

PodList returns Kubernetes pods

type Options

type Options struct {
	Endpoint         string
	Token            string
	TokenFile        string
	CertAuthFilePath string
	TLSInsecure      *bool
	Namespaces       []string
}

Options holds kubernetes client object options

Jump to

Keyboard shortcuts

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