|
| 1 | +// |
| 2 | +// DISCLAIMER |
| 3 | +// |
| 4 | +// Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany |
| 5 | +// |
| 6 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | +// you may not use this file except in compliance with the License. |
| 8 | +// You may obtain a copy of the License at |
| 9 | +// |
| 10 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +// |
| 12 | +// Unless required by applicable law or agreed to in writing, software |
| 13 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | +// See the License for the specific language governing permissions and |
| 16 | +// limitations under the License. |
| 17 | +// |
| 18 | +// Copyright holder is ArangoDB GmbH, Cologne, Germany |
| 19 | +// |
| 20 | + |
| 21 | +package inspector |
| 22 | + |
| 23 | +import ( |
| 24 | + "github.com/arangodb/kube-arangodb/pkg/apis/deployment" |
| 25 | + deploymentv1 "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1" |
| 26 | + "k8s.io/apimachinery/pkg/runtime/schema" |
| 27 | +) |
| 28 | + |
| 29 | +// ArangoClusterSynchronization |
| 30 | +const ( |
| 31 | + ArangoClusterSynchronizationGroup = deployment.ArangoDeploymentGroupName |
| 32 | + ArangoClusterSynchronizationResource = deployment.ArangoClusterSynchronizationResourcePlural |
| 33 | + ArangoClusterSynchronizationKind = deployment.ArangoClusterSynchronizationResourceKind |
| 34 | + ArangoClusterSynchronizationVersionV1 = deploymentv1.ArangoDeploymentVersion |
| 35 | +) |
| 36 | + |
| 37 | +func ArangoClusterSynchronizationGK() schema.GroupKind { |
| 38 | + return schema.GroupKind{ |
| 39 | + Group: ArangoClusterSynchronizationGroup, |
| 40 | + Kind: ArangoClusterSynchronizationKind, |
| 41 | + } |
| 42 | +} |
| 43 | + |
| 44 | +func ArangoClusterSynchronizationGKv1() schema.GroupVersionKind { |
| 45 | + return schema.GroupVersionKind{ |
| 46 | + Group: ArangoClusterSynchronizationGroup, |
| 47 | + Kind: ArangoClusterSynchronizationKind, |
| 48 | + Version: ArangoClusterSynchronizationVersionV1, |
| 49 | + } |
| 50 | +} |
| 51 | + |
| 52 | +func ArangoClusterSynchronizationGR() schema.GroupResource { |
| 53 | + return schema.GroupResource{ |
| 54 | + Group: ArangoClusterSynchronizationGroup, |
| 55 | + Resource: ArangoClusterSynchronizationResource, |
| 56 | + } |
| 57 | +} |
| 58 | + |
| 59 | +func ArangoClusterSynchronizationGRv1() schema.GroupVersionResource { |
| 60 | + return schema.GroupVersionResource{ |
| 61 | + Group: ArangoClusterSynchronizationGroup, |
| 62 | + Resource: ArangoClusterSynchronizationResource, |
| 63 | + Version: ArangoClusterSynchronizationVersionV1, |
| 64 | + } |
| 65 | +} |
| 66 | + |
| 67 | +func (p *arangoClusterSynchronizationsInspectorV1) GroupVersionKind() schema.GroupVersionKind { |
| 68 | + return ArangoClusterSynchronizationGKv1() |
| 69 | +} |
| 70 | + |
| 71 | +func (p *arangoClusterSynchronizationsInspectorV1) GroupVersionResource() schema.GroupVersionResource { |
| 72 | + return ArangoClusterSynchronizationGRv1() |
| 73 | +} |
| 74 | + |
| 75 | +func (p *arangoClusterSynchronizationsInspector) GroupKind() schema.GroupKind { |
| 76 | + return ArangoClusterSynchronizationGK() |
| 77 | +} |
| 78 | + |
| 79 | +func (p *arangoClusterSynchronizationsInspector) GroupResource() schema.GroupResource { |
| 80 | + return ArangoClusterSynchronizationGR() |
| 81 | +} |
0 commit comments