Documentation ¶
Overview ¶
Copyright 2018 Oracle and/or its affiliates. All rights reserved.
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 NewNamespaceAdapter(clientset versioned.Interface, kubeclient kubernetes.Interface, ...) kubecommon.KubernetesTypeAdapter
- type NamespaceAdapter
- func (a *NamespaceAdapter) Copy(obj runtime.Object) runtime.Object
- func (a *NamespaceAdapter) Create(obj runtime.Object) (runtime.Object, error)
- func (a *NamespaceAdapter) CreateObject(obj runtime.Object) (runtime.Object, error)
- func (a *NamespaceAdapter) Delete(obj runtime.Object) (runtime.Object, error)
- func (a *NamespaceAdapter) DeleteObject(obj runtime.Object, options *metav1.DeleteOptions) error
- func (a *NamespaceAdapter) Get(obj runtime.Object) (runtime.Object, error)
- func (a *NamespaceAdapter) GroupVersionWithResource() schema.GroupVersionResource
- func (a *NamespaceAdapter) Id(obj runtime.Object) string
- func (a *NamespaceAdapter) IsCompliant(obj runtime.Object) bool
- func (a *NamespaceAdapter) IsExpectedType(obj interface{}) bool
- func (a *NamespaceAdapter) Kind() string
- func (a *NamespaceAdapter) ObjectMeta(obj runtime.Object) *metav1.ObjectMeta
- func (a *NamespaceAdapter) ObjectType() runtime.Object
- func (a *NamespaceAdapter) Update(obj runtime.Object) (runtime.Object, error)
- func (a *NamespaceAdapter) UpdateObject(obj runtime.Object) (runtime.Object, error)
Constants ¶
const ( GroupName = "k8s.io" KubernetesDomain = "core" )
OciDomain is unique domain string for all resources in core package
Variables ¶
This section is empty.
Functions ¶
func NewNamespaceAdapter ¶
func NewNamespaceAdapter( clientset versioned.Interface, kubeclient kubernetes.Interface, adapterSpecificArgs map[string]interface{}) kubecommon.KubernetesTypeAdapter
NewNamespaceAdapter creates a new adapter for Namespace resource
Types ¶
type NamespaceAdapter ¶
type NamespaceAdapter struct {
// contains filtered or unexported fields
}
NamespaceAdapter implements the adapter interface for Namespace resource
func (*NamespaceAdapter) Copy ¶
func (a *NamespaceAdapter) Copy(obj runtime.Object) runtime.Object
Copy returns a copy of a Namespace object
func (*NamespaceAdapter) CreateObject ¶
CreateObject creates the Namespace object
func (*NamespaceAdapter) DeleteObject ¶
func (a *NamespaceAdapter) DeleteObject(obj runtime.Object, options *metav1.DeleteOptions) error
DeleteObject deletes the Namespace object
func (*NamespaceAdapter) GroupVersionWithResource ¶
func (a *NamespaceAdapter) GroupVersionWithResource() schema.GroupVersionResource
GroupVersionWithResource returns the group version schema with the resource type
func (*NamespaceAdapter) Id ¶
func (a *NamespaceAdapter) Id(obj runtime.Object) string
Id returns the name of the compartment if label exists to create it ... when empty the controller will call Create
func (*NamespaceAdapter) IsCompliant ¶
func (a *NamespaceAdapter) IsCompliant(obj runtime.Object) bool
Equivalent checks if two Namespace objects are the same
func (*NamespaceAdapter) IsExpectedType ¶
func (a *NamespaceAdapter) IsExpectedType(obj interface{}) bool
IsExpectedType ensures the resource type matches the adapter type
func (*NamespaceAdapter) Kind ¶
func (a *NamespaceAdapter) Kind() string
Kind returns the string type for this adapter
func (*NamespaceAdapter) ObjectMeta ¶
func (a *NamespaceAdapter) ObjectMeta(obj runtime.Object) *metav1.ObjectMeta
ObjectMeta returns the object meta struct from the Namespace object
func (*NamespaceAdapter) ObjectType ¶
func (a *NamespaceAdapter) ObjectType() runtime.Object
ObjectType returns the Namespace type for this adapter
func (*NamespaceAdapter) UpdateObject ¶
UpdateObject updates the Namespace object