rainbond: github.com/goodrain/rainbond/node/kubecache Index | Files

package kubecache

import "github.com/goodrain/rainbond/node/kubecache"

Index

Package Files

kube_cache.go

Constants

const (
    //EvictionKind EvictionKind
    EvictionKind = "Eviction"
    //EvictionSubresource EvictionSubresource
    EvictionSubresource = "pods/eviction"
)

type KubeClient Uses

type KubeClient interface {
    GetKubeClient() kubernetes.Interface
    UpK8sNode(*client.HostNode) (*v1.Node, error)
    DownK8sNode(nodename string) error
    GetAllPods() (pods []*v1.Pod, err error)
    GetPods(namespace string) (pods []*v1.Pod, err error)
    GetNodeByName(nodename string) (*v1.Node, error)
    GetNodes() ([]*v1.Node, error)
    GetNode(nodeName string) (*v1.Node, error)
    CordonOrUnCordon(nodeName string, drain bool) (*v1.Node, error)
    UpdateLabels(nodeName string, labels map[string]string) (*v1.Node, error)
    DeleteOrEvictPodsSimple(nodeName string) error
    GetPodsByNodes(nodeName string) (pods []v1.Pod, err error)
    GetEndpoints(namespace string, selector labels.Selector) ([]*v1.Endpoints, error)
    GetServices(namespace string, selector labels.Selector) ([]*v1.Service, error)
    GetConfig(namespace string, selector labels.Selector) ([]*v1.ConfigMap, error)
    Stop()
}

KubeClient KubeClient

func NewKubeClient Uses

func NewKubeClient(cfg *conf.Conf) (KubeClient, error)

NewKubeClient NewKubeClient

Package kubecache imports 20 packages (graph) and is imported by 7 packages. Updated 2019-09-15. Refresh now. Tools for package owners.