Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PodNamespaceFile the file path and name for pod namespace PodNamespaceFile = "/var/run/secrets/kubernetes.io/serviceaccount/namespace" DefaultKubeConfigFile = "config" DefaultKubeConfigPath = ".kube" )
Variables ¶
This section is empty.
Functions ¶
func CurrentContext ¶
CurrentContext returns the current context
func CurrentNamespace ¶
CurrentNamespace returns the current namespace in the context
func LoadConfig ¶
func LoadConfig() (*api.Config, *clientcmd.PathOptions, error)
LoadConfig loads the Kubernetes configuration
Types ¶
type Factory ¶
type Factory interface { // CreateKubeConfig creates the kubernetes configuration CreateKubeConfig() (*rest.Config, error) CreateKubeConfigFromCustomLocation(string, string) (*rest.Config, error) }
Factory is the interface defined for Kubernetes, Jenkins X, and Tekton REST APIs
func NewFactory ¶
func NewFactory() Factory
NewFactory creates a factory with the default Kubernetes resources defined
type Tracer ¶
type Tracer struct {
http.RoundTripper
}
Tracer implements http.RoundTripper. It prints each request and response/error to os.Stderr.
Click to show internal directories.
Click to hide internal directories.