Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultK8Client ¶
func NewDefaultK8Client() *defaultK8Client
func NewDefaultOpenshiftController ¶
func NewDefaultOpenshiftController() *defaultOpenshiftClient
Types ¶
type K8Client ¶
type K8Client interface { Authenticate(rc *rest.Config) error Config() *rest.Config DeleteCollection(namespace string, obj runtime.Object, opts *metav1.DeleteOptions, listOpts metav1.ListOptions) error DeleteList(namespace string, list *corev1.List) error DeleteObject(namespace string, object runtime.Object) error GetClusterRole(name string, options metav1.GetOptions) (*v1.ClusterRole, error) GetClusterRoleBinding(name string, options metav1.GetOptions) (*v1.ClusterRoleBinding, error) GetConfigMap(namespace, name string, options metav1.GetOptions) (*corev1.ConfigMap, error) GetDeployment(namespace, name string, options metav1.GetOptions) (*appsv1.Deployment, error) GetPersistentVolumeClaim(namespace, name string, options metav1.GetOptions) (*corev1.PersistentVolumeClaim, error) GetPod(namespace, name string, options metav1.GetOptions) (*corev1.Pod, error) GetPodLogs(namespace, name string, options *corev1.PodLogOptions) ([]byte, error) GetRole(namespace, name string, options metav1.GetOptions) (*v1.Role, error) GetRoleBinding(namespace, name string, options metav1.GetOptions) (*v1.RoleBinding, error) ListClusterRoleBindings(options metav1.ListOptions) (*v1.ClusterRoleBindingList, error) ListClusterRoles(options metav1.ListOptions) (*v1.ClusterRoleList, error) ListCronJobs(namespace string, options metav1.ListOptions) (*v1beta1.CronJobList, error) ListConfigMaps(namespace string, listOptions metav1.ListOptions) (*corev1.ConfigMapList, error) ListDeployments(namespace string, listOptions metav1.ListOptions) (*appsv1.DeploymentList, error) ListIngresses(namespace string, listOptions metav1.ListOptions) (*v1beta1api.IngressList, error) ListJobs(namespace string, listOptions metav1.ListOptions) (*batchv1.JobList, error) ListNamespaces(options metav1.ListOptions) (*corev1.NamespaceList, error) ListObjects(namespace string, listOptions metav1.ListOptions) (*corev1.List, error) ListPersistentVolumeClaims(namespace string, listOptions metav1.ListOptions) (*corev1.PersistentVolumeClaimList, error) ListPods(namespace string, listOptions metav1.ListOptions) (*corev1.PodList, error) ListRoles(namespace string, options metav1.ListOptions) (*v1.RoleList, error) ListRoleBindings(namespace string, options metav1.ListOptions) (*v1.RoleBindingList, error) ListSecrets(namespace string, listOptions metav1.ListOptions) (*corev1.SecretList, error) ListServices(namespace string, listOptions metav1.ListOptions) (*corev1.ServiceList, error) ListStatefulSets(namespace string, listOptions metav1.ListOptions) (*appsv1.StatefulSetList, error) LogServerInfo() (*ServerInfo, error) PatchDeployment(namespace, name string, patch []byte) (*appsv1.Deployment, error) SupportedObject(object runtime.Object) (bool, string) UpdateClusterRole(obj *v1.ClusterRole) error UpdateClusterRoleBinding(obj *v1.ClusterRoleBinding) error UpdateConfigMap(namespace string, obj *corev1.ConfigMap) error UpdateDeployment(namespace string, obj *appsv1.Deployment) error UpdateIngress(namespace string, obj *v1beta1api.Ingress) error UpdateCronJob(namespace string, obj *v1beta1.CronJob) error UpdateJob(namespace string, obj *batchv1.Job) error UpdateList(namespace string, list *corev1.List) error UpdateObject(namespace string, object runtime.Object) error UpdatePersistentVolumeClaim(namespace string, obj *corev1.PersistentVolumeClaim) error UpdatePod(namespace string, obj *corev1.Pod) error UpdateRole(namespace string, obj *v1.Role) error UpdateRoleBinding(namespace string, obj *v1.RoleBinding) error UpdateSecret(namespace string, obj *corev1.Secret) error UpdateService(namespace string, obj *corev1.Service) error UpdateStatefulSet(namespace string, obj *appsv1.StatefulSet) error WatchEvents(namespace string, listOptions metav1.ListOptions) (watch.Interface, error) }
type OpenshiftClient ¶
type OpenshiftClient interface { K8Client IsIngressBackedRoute(route *osroutev1.Route) bool ListDeploymentConfigs(namespace string, listOptions metav1.ListOptions) (*osappsv1.DeploymentConfigList, error) ListImageStreams(namespace string, listOptions metav1.ListOptions) (*osimagev1.ImageStreamList, error) ListRoutes(namespace string, listOptions metav1.ListOptions) (*osroutev1.RouteList, error) UpdateDeploymentConfig(namespace string, obj *osappsv1.DeploymentConfig) error UpdateImageStream(namespace string, obj *osimagev1.ImageStream) error UpdateRoute(namespace string, obj *osroutev1.Route) error }
type ServerInfo ¶
type ServerInfo struct { Document *openapi_v2.Document Info *version.Info }
Click to show internal directories.
Click to hide internal directories.