Documentation ¶
Overview ¶
Some code in this file was adopted from https://github.com/atlasmap/atlasmap-operator
Index ¶
- type APIGroupInfo
- type CRDClient
- func (this *CRDClient) GetApicurioRegistry(namespace common.Namespace, name common.Name) (*ar.ApicurioRegistry, error)
- func (this *CRDClient) PatchApicurioRegistry(namespace common.Namespace, name common.Name, patchData []byte) (*ar.ApicurioRegistry, error)
- func (this *CRDClient) PatchApicurioRegistryStatus(namespace common.Namespace, name common.Name, patchData []byte) (*ar.ApicurioRegistryStatus, error)
- func (this *CRDClient) UpdateApicurioRegistry(namespace common.Namespace, value *ar.ApicurioRegistry) (*ar.ApicurioRegistry, error)
- type Clients
- type DiscoveryClient
- type KubeClient
- func (this *KubeClient) CreateDeployment(owner meta.Object, namespace common.Namespace, value *apps.Deployment) (*apps.Deployment, error)
- func (this *KubeClient) CreateIngress(owner meta.Object, namespace common.Namespace, value *networking.Ingress) (*networking.Ingress, error)
- func (this *KubeClient) CreateNetworkPolicy(owner meta.Object, namespace common.Namespace, value *networking.NetworkPolicy) (*networking.NetworkPolicy, error)
- func (this *KubeClient) CreatePodDisruptionBudgetV1(owner meta.Object, namespace common.Namespace, ...) (*policy_v1.PodDisruptionBudget, error)
- func (this *KubeClient) CreatePodDisruptionBudgetV1beta1(owner meta.Object, namespace common.Namespace, ...) (*policy_v1beta1.PodDisruptionBudget, error)
- func (this *KubeClient) CreateSecret(owner meta.Object, namespace common.Namespace, value *core.Secret) (*core.Secret, error)
- func (this *KubeClient) CreateService(owner meta.Object, namespace common.Namespace, value *core.Service) (*core.Service, error)
- func (this *KubeClient) DeleteDeployment(value *apps.Deployment) error
- func (this *KubeClient) DeleteIngress(value *networking.Ingress) error
- func (this *KubeClient) DeleteNetworkPolicy(value *networking.NetworkPolicy) error
- func (this *KubeClient) DeletePodDisruptionBudgetV1(value *policy_v1.PodDisruptionBudget) error
- func (this *KubeClient) DeletePodDisruptionBudgetV1beta1(value *policy_v1beta1.PodDisruptionBudget) error
- func (this *KubeClient) DeleteSecret(value *core.Secret, options *meta.DeleteOptions) error
- func (this *KubeClient) DeleteService(value *core.Service) error
- func (this *KubeClient) GetDeployment(namespace common.Namespace, name common.Name) (*apps.Deployment, error)
- func (this *KubeClient) GetDeployments(namespace common.Namespace, options meta.ListOptions) (*apps.DeploymentList, error)
- func (this *KubeClient) GetIngress(namespace common.Namespace, name common.Name, options *meta.GetOptions) (*networking.Ingress, error)
- func (this *KubeClient) GetIngresses(namespace common.Namespace, options meta.ListOptions) (*networking.IngressList, error)
- func (this *KubeClient) GetNetworkPolicies(namespace common.Namespace, options meta.ListOptions) (*networking.NetworkPolicyList, error)
- func (this *KubeClient) GetNetworkPolicy(namespace common.Namespace, name common.Name, options *meta.GetOptions) (*networking.NetworkPolicy, error)
- func (this *KubeClient) GetPod(namespace common.Namespace, name common.Name) (*core.Pod, error)
- func (this *KubeClient) GetPodDisruptionBudgetV1(namespace common.Namespace, name common.Name) (*policy_v1.PodDisruptionBudget, error)
- func (this *KubeClient) GetPodDisruptionBudgetV1beta1(namespace common.Namespace, name common.Name) (*policy_v1beta1.PodDisruptionBudget, error)
- func (this *KubeClient) GetPodDisruptionBudgetsV1(namespace common.Namespace, options meta.ListOptions) (*policy_v1.PodDisruptionBudgetList, error)
- func (this *KubeClient) GetPodDisruptionBudgetsV1beta1(namespace common.Namespace, options meta.ListOptions) (*policy_v1beta1.PodDisruptionBudgetList, error)
- func (this *KubeClient) GetSecret(namespace common.Namespace, name common.Name, options *meta.GetOptions) (*core.Secret, error)
- func (this *KubeClient) GetService(namespace common.Namespace, name common.Name) (*core.Service, error)
- func (this *KubeClient) GetServices(namespace common.Namespace, options meta.ListOptions) (*core.ServiceList, error)
- func (this *KubeClient) PatchDeployment(namespace common.Namespace, name common.Name, patchData []byte) (*apps.Deployment, error)
- func (this *KubeClient) PatchIngress(namespace common.Namespace, name common.Name, patchData []byte) (*networking.Ingress, error)
- func (this *KubeClient) PatchNetworkPolicy(namespace common.Namespace, name common.Name, patchData []byte) (*networking.NetworkPolicy, error)
- func (this *KubeClient) PatchPodDisruptionBudgetV1(namespace common.Namespace, name common.Name, patchData []byte) (*policy_v1.PodDisruptionBudget, error)
- func (this *KubeClient) PatchPodDisruptionBudgetV1beta1(namespace common.Namespace, name common.Name, patchData []byte) (*policy_v1beta1.PodDisruptionBudget, error)
- func (this *KubeClient) PatchService(namespace common.Namespace, name common.Name, patchData []byte) (*core.Service, error)
- func (this *KubeClient) UpdateDeployment(namespace common.Namespace, value *apps.Deployment) (*apps.Deployment, error)
- func (this *KubeClient) UpdateIngress(namespace common.Namespace, value *networking.Ingress) (*networking.Ingress, error)
- func (this *KubeClient) UpdateNetworkPolicy(namespace common.Namespace, value *networking.NetworkPolicy) (*networking.NetworkPolicy, error)
- func (this *KubeClient) UpdatePodDisruptionBudgetV1(namespace common.Namespace, value *policy_v1.PodDisruptionBudget) (*policy_v1.PodDisruptionBudget, error)
- func (this *KubeClient) UpdatePodDisruptionBudgetV1beta1(namespace common.Namespace, value *policy_v1beta1.PodDisruptionBudget) (*policy_v1beta1.PodDisruptionBudget, error)
- func (this *KubeClient) UpdateService(namespace common.Namespace, value *core.Service) (*core.Service, error)
- type MonitoringClient
- func (this *MonitoringClient) CreateServiceMonitor(owner meta.Object, namespace common.Namespace, obj *monitoring.ServiceMonitor) (*monitoring.ServiceMonitor, error)
- func (this *MonitoringClient) DeleteServiceMonitor(value *monitoring.ServiceMonitor) error
- func (this *MonitoringClient) GetServiceMonitor(namespace common.Namespace, name common.Name) (*monitoring.ServiceMonitor, error)
- func (this *MonitoringClient) UpdateServiceMonitor(namespace common.Namespace, obj *monitoring.ServiceMonitor) (*monitoring.ServiceMonitor, error)
- type OCPClient
- func (this *OCPClient) CreateDeployment(owner meta.Object, namespace common.Namespace, ...) (*ocp_apps.DeploymentConfig, error)
- func (this *OCPClient) DeleteDeployment(value *ocp_apps.DeploymentConfig, options *meta.DeleteOptions) error
- func (this *OCPClient) GetDeployment(namespace common.Namespace, name common.Name, options *meta.GetOptions) (*ocp_apps.DeploymentConfig, error)
- func (this *OCPClient) GetDeployments(namespace common.Namespace, options *meta.ListOptions) (*ocp_apps.DeploymentConfigList, error)
- func (this *OCPClient) GetRoute(namespace common.Namespace, name common.Name, options *meta.GetOptions) (*ocp_route.Route, error)
- func (this *OCPClient) GetRoutes(namespace common.Namespace, options *meta.ListOptions) (*ocp_route.RouteList, error)
- func (this *OCPClient) PatchDeployment(namespace common.Namespace, name common.Name, patchData []byte) (*ocp_apps.DeploymentConfig, error)
- func (this *OCPClient) UpdateDeployment(namespace common.Namespace, value *ocp_apps.DeploymentConfig) (*ocp_apps.DeploymentConfig, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIGroupInfo ¶
type CRDClient ¶
type CRDClient struct {
// contains filtered or unexported fields
}
func NewCRDClient ¶
func (*CRDClient) GetApicurioRegistry ¶
func (this *CRDClient) GetApicurioRegistry(namespace common.Namespace, name common.Name) (*ar.ApicurioRegistry, error)
TODO Returns nil if the resource is not found, but request was OK
func (*CRDClient) PatchApicurioRegistry ¶
func (*CRDClient) PatchApicurioRegistryStatus ¶
func (*CRDClient) UpdateApicurioRegistry ¶
func (this *CRDClient) UpdateApicurioRegistry(namespace common.Namespace, value *ar.ApicurioRegistry) (*ar.ApicurioRegistry, error)
type Clients ¶
type Clients struct {
// contains filtered or unexported fields
}
func NewClients ¶
func (*Clients) Discovery ¶
func (this *Clients) Discovery() *DiscoveryClient
func (*Clients) Kube ¶
func (this *Clients) Kube() *KubeClient
func (*Clients) Monitoring ¶
func (this *Clients) Monitoring() *MonitoringClient
type DiscoveryClient ¶
type DiscoveryClient struct {
// contains filtered or unexported fields
}
func NewDiscoveryClient ¶
func NewDiscoveryClient(log *zap.Logger, clientConfig *rest.Config) *DiscoveryClient
func (*DiscoveryClient) GetVersionInfoForAPIGroup ¶
func (this *DiscoveryClient) GetVersionInfoForAPIGroup(apiGroup string) (*APIGroupInfo, error)
Get information about the given API group. Returns an error if the API Group does not exist or the info could not be determined.
func (*DiscoveryClient) IsMonitoringInstalled ¶
func (this *DiscoveryClient) IsMonitoringInstalled() (bool, error)
func (*DiscoveryClient) IsOCP ¶
func (this *DiscoveryClient) IsOCP() (bool, error)
type KubeClient ¶
type KubeClient struct {
// contains filtered or unexported fields
}
func NewKubeClient ¶
func (*KubeClient) CreateDeployment ¶
func (this *KubeClient) CreateDeployment(owner meta.Object, namespace common.Namespace, value *apps.Deployment) (*apps.Deployment, error)
func (*KubeClient) CreateIngress ¶
func (this *KubeClient) CreateIngress(owner meta.Object, namespace common.Namespace, value *networking.Ingress) (*networking.Ingress, error)
func (*KubeClient) CreateNetworkPolicy ¶
func (this *KubeClient) CreateNetworkPolicy(owner meta.Object, namespace common.Namespace, value *networking.NetworkPolicy) (*networking.NetworkPolicy, error)
func (*KubeClient) CreatePodDisruptionBudgetV1 ¶
func (this *KubeClient) CreatePodDisruptionBudgetV1(owner meta.Object, namespace common.Namespace, value *policy_v1.PodDisruptionBudget) (*policy_v1.PodDisruptionBudget, error)
func (*KubeClient) CreatePodDisruptionBudgetV1beta1 ¶
func (this *KubeClient) CreatePodDisruptionBudgetV1beta1(owner meta.Object, namespace common.Namespace, value *policy_v1beta1.PodDisruptionBudget) (*policy_v1beta1.PodDisruptionBudget, error)
func (*KubeClient) CreateSecret ¶
func (*KubeClient) CreateService ¶
func (*KubeClient) DeleteDeployment ¶
func (this *KubeClient) DeleteDeployment(value *apps.Deployment) error
func (*KubeClient) DeleteIngress ¶
func (this *KubeClient) DeleteIngress(value *networking.Ingress) error
func (*KubeClient) DeleteNetworkPolicy ¶
func (this *KubeClient) DeleteNetworkPolicy(value *networking.NetworkPolicy) error
func (*KubeClient) DeletePodDisruptionBudgetV1 ¶
func (this *KubeClient) DeletePodDisruptionBudgetV1(value *policy_v1.PodDisruptionBudget) error
func (*KubeClient) DeletePodDisruptionBudgetV1beta1 ¶
func (this *KubeClient) DeletePodDisruptionBudgetV1beta1(value *policy_v1beta1.PodDisruptionBudget) error
func (*KubeClient) DeleteSecret ¶
func (this *KubeClient) DeleteSecret(value *core.Secret, options *meta.DeleteOptions) error
func (*KubeClient) DeleteService ¶
func (this *KubeClient) DeleteService(value *core.Service) error
func (*KubeClient) GetDeployment ¶
func (this *KubeClient) GetDeployment(namespace common.Namespace, name common.Name) (*apps.Deployment, error)
func (*KubeClient) GetDeployments ¶
func (this *KubeClient) GetDeployments(namespace common.Namespace, options meta.ListOptions) (*apps.DeploymentList, error)
func (*KubeClient) GetIngress ¶
func (this *KubeClient) GetIngress(namespace common.Namespace, name common.Name, options *meta.GetOptions) (*networking.Ingress, error)
func (*KubeClient) GetIngresses ¶
func (this *KubeClient) GetIngresses(namespace common.Namespace, options meta.ListOptions) (*networking.IngressList, error)
func (*KubeClient) GetNetworkPolicies ¶
func (this *KubeClient) GetNetworkPolicies(namespace common.Namespace, options meta.ListOptions) (*networking.NetworkPolicyList, error)
func (*KubeClient) GetNetworkPolicy ¶
func (this *KubeClient) GetNetworkPolicy(namespace common.Namespace, name common.Name, options *meta.GetOptions) (*networking.NetworkPolicy, error)
func (*KubeClient) GetPodDisruptionBudgetV1 ¶
func (this *KubeClient) GetPodDisruptionBudgetV1(namespace common.Namespace, name common.Name) (*policy_v1.PodDisruptionBudget, error)
func (*KubeClient) GetPodDisruptionBudgetV1beta1 ¶
func (this *KubeClient) GetPodDisruptionBudgetV1beta1(namespace common.Namespace, name common.Name) (*policy_v1beta1.PodDisruptionBudget, error)
func (*KubeClient) GetPodDisruptionBudgetsV1 ¶
func (this *KubeClient) GetPodDisruptionBudgetsV1(namespace common.Namespace, options meta.ListOptions) (*policy_v1.PodDisruptionBudgetList, error)
func (*KubeClient) GetPodDisruptionBudgetsV1beta1 ¶
func (this *KubeClient) GetPodDisruptionBudgetsV1beta1(namespace common.Namespace, options meta.ListOptions) (*policy_v1beta1.PodDisruptionBudgetList, error)
func (*KubeClient) GetSecret ¶
func (this *KubeClient) GetSecret(namespace common.Namespace, name common.Name, options *meta.GetOptions) (*core.Secret, error)
func (*KubeClient) GetService ¶
func (*KubeClient) GetServices ¶
func (this *KubeClient) GetServices(namespace common.Namespace, options meta.ListOptions) (*core.ServiceList, error)
func (*KubeClient) PatchDeployment ¶
func (this *KubeClient) PatchDeployment(namespace common.Namespace, name common.Name, patchData []byte) (*apps.Deployment, error)
func (*KubeClient) PatchIngress ¶
func (this *KubeClient) PatchIngress(namespace common.Namespace, name common.Name, patchData []byte) (*networking.Ingress, error)
func (*KubeClient) PatchNetworkPolicy ¶
func (this *KubeClient) PatchNetworkPolicy(namespace common.Namespace, name common.Name, patchData []byte) (*networking.NetworkPolicy, error)
func (*KubeClient) PatchPodDisruptionBudgetV1 ¶
func (this *KubeClient) PatchPodDisruptionBudgetV1(namespace common.Namespace, name common.Name, patchData []byte) (*policy_v1.PodDisruptionBudget, error)
func (*KubeClient) PatchPodDisruptionBudgetV1beta1 ¶
func (this *KubeClient) PatchPodDisruptionBudgetV1beta1(namespace common.Namespace, name common.Name, patchData []byte) (*policy_v1beta1.PodDisruptionBudget, error)
func (*KubeClient) PatchService ¶
func (*KubeClient) UpdateDeployment ¶
func (this *KubeClient) UpdateDeployment(namespace common.Namespace, value *apps.Deployment) (*apps.Deployment, error)
func (*KubeClient) UpdateIngress ¶
func (this *KubeClient) UpdateIngress(namespace common.Namespace, value *networking.Ingress) (*networking.Ingress, error)
func (*KubeClient) UpdateNetworkPolicy ¶
func (this *KubeClient) UpdateNetworkPolicy(namespace common.Namespace, value *networking.NetworkPolicy) (*networking.NetworkPolicy, error)
func (*KubeClient) UpdatePodDisruptionBudgetV1 ¶
func (this *KubeClient) UpdatePodDisruptionBudgetV1(namespace common.Namespace, value *policy_v1.PodDisruptionBudget) (*policy_v1.PodDisruptionBudget, error)
func (*KubeClient) UpdatePodDisruptionBudgetV1beta1 ¶
func (this *KubeClient) UpdatePodDisruptionBudgetV1beta1(namespace common.Namespace, value *policy_v1beta1.PodDisruptionBudget) (*policy_v1beta1.PodDisruptionBudget, error)
func (*KubeClient) UpdateService ¶
type MonitoringClient ¶
type MonitoringClient struct {
// contains filtered or unexported fields
}
func NewMonitoringClient ¶
func (*MonitoringClient) CreateServiceMonitor ¶
func (this *MonitoringClient) CreateServiceMonitor(owner meta.Object, namespace common.Namespace, obj *monitoring.ServiceMonitor) (*monitoring.ServiceMonitor, error)
func (*MonitoringClient) DeleteServiceMonitor ¶
func (this *MonitoringClient) DeleteServiceMonitor(value *monitoring.ServiceMonitor) error
func (*MonitoringClient) GetServiceMonitor ¶
func (this *MonitoringClient) GetServiceMonitor(namespace common.Namespace, name common.Name) (*monitoring.ServiceMonitor, error)
func (*MonitoringClient) UpdateServiceMonitor ¶
func (this *MonitoringClient) UpdateServiceMonitor(namespace common.Namespace, obj *monitoring.ServiceMonitor) (*monitoring.ServiceMonitor, error)
type OCPClient ¶
type OCPClient struct {
// contains filtered or unexported fields
}
func NewOCPClient ¶
func (*OCPClient) CreateDeployment ¶
func (this *OCPClient) CreateDeployment(owner meta.Object, namespace common.Namespace, value *ocp_apps.DeploymentConfig) (*ocp_apps.DeploymentConfig, error)
func (*OCPClient) DeleteDeployment ¶
func (this *OCPClient) DeleteDeployment(value *ocp_apps.DeploymentConfig, options *meta.DeleteOptions) error
func (*OCPClient) GetDeployment ¶
func (this *OCPClient) GetDeployment(namespace common.Namespace, name common.Name, options *meta.GetOptions) (*ocp_apps.DeploymentConfig, error)
func (*OCPClient) GetDeployments ¶
func (this *OCPClient) GetDeployments(namespace common.Namespace, options *meta.ListOptions) (*ocp_apps.DeploymentConfigList, error)
func (*OCPClient) PatchDeployment ¶
func (*OCPClient) UpdateDeployment ¶
func (this *OCPClient) UpdateDeployment(namespace common.Namespace, value *ocp_apps.DeploymentConfig) (*ocp_apps.DeploymentConfig, error)
Click to show internal directories.
Click to hide internal directories.