Documentation ¶
Overview ¶
SPDX-License-Identifier: Apache-2.0
Copyright Contributors to the Submariner project.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func AwaitAndVerifyResource(client dynamic.ResourceInterface, name string, ...) *unstructured.Unstructured
- func AwaitNoResource(client dynamic.ResourceInterface, name string)
- func AwaitResource(client dynamic.ResourceInterface, name string) *unstructured.Unstructured
- func CreateResource(resourceInterface dynamic.ResourceInterface, resource runtime.Object) *unstructured.Unstructured
- func GetGroupVersionKindFor(obj runtime.Object) schema.GroupVersionKind
- func GetGroupVersionResourceFor(restMapper metaapi.RESTMapper, obj runtime.Object) *schema.GroupVersionResource
- func GetPod(resourceInterface dynamic.ResourceInterface, from *corev1.Pod) *corev1.Pod
- func GetRESTMapperAndGroupVersionResourceFor(obj runtime.Object) (metaapi.RESTMapper, *schema.GroupVersionResource)
- func GetRESTMapperFor(objs ...runtime.Object) metaapi.RESTMapper
- func GetResource(resourceInterface dynamic.ResourceInterface, obj runtime.Object) *unstructured.Unstructured
- func GetResourceAndError(resourceInterface dynamic.ResourceInterface, obj runtime.Object) (*unstructured.Unstructured, error)
- func NewPod(namespace string) *corev1.Pod
- func NewPodWithImage(namespace, imageName string) *corev1.Pod
- func PrepInitialClientObjs(namespace, clusterID string, initObjs ...runtime.Object) []runtime.Object
- func SetClusterIDLabel(obj runtime.Object, clusterID string) runtime.Object
- func ToUnstructured(obj runtime.Object) *unstructured.Unstructured
- func UpdateResource(resourceInterface dynamic.ResourceInterface, resource runtime.Object) *unstructured.Unstructured
- func VerifyResource(resourceInterface dynamic.ResourceInterface, expected *corev1.Pod, ...)
Constants ¶
View Source
const LocalNamespace = "local-ns"
View Source
const RemoteNamespace = "remote-ns"
Variables ¶
This section is empty.
Functions ¶
func AwaitAndVerifyResource ¶ added in v0.6.0
func AwaitAndVerifyResource(client dynamic.ResourceInterface, name string, verify func(*unstructured.Unstructured) bool) *unstructured.Unstructured
func AwaitNoResource ¶ added in v0.6.0
func AwaitNoResource(client dynamic.ResourceInterface, name string)
func AwaitResource ¶ added in v0.6.0
func AwaitResource(client dynamic.ResourceInterface, name string) *unstructured.Unstructured
func CreateResource ¶
func CreateResource(resourceInterface dynamic.ResourceInterface, resource runtime.Object) *unstructured.Unstructured
func GetGroupVersionKindFor ¶ added in v0.6.0
func GetGroupVersionKindFor(obj runtime.Object) schema.GroupVersionKind
func GetGroupVersionResourceFor ¶ added in v0.6.0
func GetGroupVersionResourceFor(restMapper metaapi.RESTMapper, obj runtime.Object) *schema.GroupVersionResource
func GetRESTMapperAndGroupVersionResourceFor ¶
func GetRESTMapperAndGroupVersionResourceFor(obj runtime.Object) (metaapi.RESTMapper, *schema.GroupVersionResource)
func GetRESTMapperFor ¶ added in v0.6.0
func GetRESTMapperFor(objs ...runtime.Object) metaapi.RESTMapper
func GetResource ¶
func GetResource(resourceInterface dynamic.ResourceInterface, obj runtime.Object) *unstructured.Unstructured
func GetResourceAndError ¶
func GetResourceAndError(resourceInterface dynamic.ResourceInterface, obj runtime.Object) (*unstructured.Unstructured, error)
func NewPodWithImage ¶
func PrepInitialClientObjs ¶
func SetClusterIDLabel ¶
func ToUnstructured ¶
func ToUnstructured(obj runtime.Object) *unstructured.Unstructured
func UpdateResource ¶
func UpdateResource(resourceInterface dynamic.ResourceInterface, resource runtime.Object) *unstructured.Unstructured
func VerifyResource ¶
func VerifyResource(resourceInterface dynamic.ResourceInterface, expected *corev1.Pod, expNamespace, clusterID string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.