Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterSource ¶
type ClusterSource interface { cluster.Cluster // SourceFor returns a controller.Watches source for the given object. SourceFor(client.Object) source.SyncingSource }
ClusterSource is a cluster with added methods to be used as a source for controller Watches.
func FromKubeConfig ¶
func FromKubeConfig(kubeconfig []byte, scheme *runtime.Scheme) (ClusterSource, error)
FromKubeConfig creates a ClusterSource from a kubeconfig.
func FromURLAndBearerToken ¶
func FromURLAndBearerToken(url, token string, scheme *runtime.Scheme) (ClusterSource, error)
FromURLAndBearerToken creates a ClusterSource from a url and token. If more complex configuration is needed, use FromKubeConfig.
Click to show internal directories.
Click to hide internal directories.