k8splugin

package
v0.0.0-01-15-2016.03-1... Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2016 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitCNIServer

func InitCNIServer(netplugin *plugin.NetPlugin) error

InitCNIServer initializes the k8s cni server

Types

type APIClient

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

APIClient defines informatio needed for the k8s api client

func NewAPIClient

func NewAPIClient(serverURL, caFile, keyFile, certFile string) *APIClient

NewAPIClient creates an instance of the k8s api client

func (*APIClient) GetPodLabel

func (c *APIClient) GetPodLabel(ns, name, label string) (string, error)

GetPodLabel retrieves the specified label

type ContivConfig

type ContivConfig struct {
	K8sAPIServer string `json:"K8S_API_SERVER,omitempty"`
	K8sCa        string `json:"K8S_CA,omitempty"`
	K8sKey       string `json:"K8S_KEY,omitempty"`
	K8sCert      string `json:"K8S_CERT,omitempty"`
}

ContivConfig holds information passed via config file during cluster set up

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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