Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory interface { // WithBearerToken creates a factory from a k8s bearer token WithBearerToken(token string) Factory // ImpersonateUser creates a factory with an impersonated users ImpersonateUser(user string) Factory // CreateKubeClient creates a new Kubernetes client CreateKubeClient() (kubernetes.Interface, string, error) // CreateKubeConfig creates the kubernetes configuration CreateKubeConfig() (*rest.Config, error) // CreateJXClient creates a new Kubernetes client for Jenkins X CRDs CreateJXClient() (versioned.Interface, string, error) // CreateTektonClient create a new Kubernetes client for Tekton resources CreateTektonClient() (tektonclient.Interface, string, error) // KubeConfig returns a Kuber instance to interact with the kube configuration. KubeConfig() kube.Kuber }
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 if optionalClientConfig is nil, then flags will be bound to a new clientcmd.ClientConfig. if optionalClientConfig is not nil, then this factory will make use of it.
Click to show internal directories.
Click to hide internal directories.