github.com/jenkins-x/jx/v2@v2.1.155/pkg/kube/interface.go (about) 1 package kube 2 3 import ( 4 "k8s.io/client-go/tools/clientcmd" 5 "k8s.io/client-go/tools/clientcmd/api" 6 ) 7 8 // Kuber defines common kube actions used within Jenkins X 9 //go:generate pegomock generate github.com/jenkins-x/jx/v2/pkg/kube Kuber -o mocks/kuber.go 10 type Kuber interface { 11 // LoadConfig loads the Kubernetes configuration 12 LoadConfig() (*api.Config, *clientcmd.PathOptions, error) 13 14 // UpdateConfig defines new config entries for jx 15 UpdateConfig(namespace string, server string, caData string, user string, token string) error 16 }