k8sc

package module
v0.0.0-...-475c817 Latest Latest
Warning

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

Go to latest
Published: May 25, 2017 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Kubernetes Client

In-cluster and out-of-cluster client creation for https://github.com/ericchiang/k8s.

k8sc.NewClient makes it easier to build programs that will connect running within a Kubernetes cluster and using ~/.kube/config from a development machine. Calling NewClient with a path will load the configuration from that file.

// this will connect using deserialized config
c, err := k8sc.NewClient("/home/me/.kube/config")

// this will connect using the in-cluster client
c, err := k8sc.NewClient("")

License

Licensed under Apache License v2.0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(kubeconfigPath string) (*k8s.Client, error)

Creates a Kubernetes API client. If no path is specified the client is assumed to be in-cluster

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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