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 NewClusterAdapter(clientset versioned.Interface, kubeclient kubernetes.Interface, ...) resourcescommon.ResourceTypeAdapter
- func NewNodePoolAdapter(clientset versioned.Interface, kubeclient kubernetes.Interface, ...) resourcescommon.ResourceTypeAdapter
- type ClusterAdapter
- func (a *ClusterAdapter) Copy(obj runtime.Object) runtime.Object
- func (a *ClusterAdapter) Create(obj runtime.Object) (runtime.Object, error)
- func (a *ClusterAdapter) CreateObject(obj runtime.Object) (runtime.Object, error)
- func (a *ClusterAdapter) Delete(obj runtime.Object) (runtime.Object, error)
- func (a *ClusterAdapter) DeleteObject(obj runtime.Object, options *metav1.DeleteOptions) error
- func (a *ClusterAdapter) Dependents(obj runtime.Object) map[string][]string
- func (a *ClusterAdapter) DependsOn(obj runtime.Object) map[string]ocicommon.DependsOn
- func (a *ClusterAdapter) DependsOnRefs(obj runtime.Object) ([]runtime.Object, error)
- func (a *ClusterAdapter) Equivalent(obj1, obj2 runtime.Object) bool
- func (a *ClusterAdapter) Get(obj runtime.Object) (runtime.Object, error)
- func (a *ClusterAdapter) GroupVersionWithResource() schema.GroupVersionResource
- func (a *ClusterAdapter) Id(obj runtime.Object) string
- func (a *ClusterAdapter) IsExpectedType(obj interface{}) bool
- func (a *ClusterAdapter) IsResourceCompliant(obj runtime.Object) bool
- func (a *ClusterAdapter) IsResourceStatusChanged(obj1, obj2 runtime.Object) bool
- func (a *ClusterAdapter) Kind() string
- func (a *ClusterAdapter) ObjectMeta(obj runtime.Object) *metav1.ObjectMeta
- func (a *ClusterAdapter) ObjectType() runtime.Object
- func (a *ClusterAdapter) Resource() string
- func (a *ClusterAdapter) Update(obj runtime.Object) (runtime.Object, error)
- func (a *ClusterAdapter) UpdateForResource(resource schema.GroupVersionResource, obj runtime.Object) (runtime.Object, error)
- func (a *ClusterAdapter) UpdateObject(obj runtime.Object) (runtime.Object, error)
- type NodePoolAdapter
- func (a *NodePoolAdapter) Copy(obj runtime.Object) runtime.Object
- func (a *NodePoolAdapter) Create(obj runtime.Object) (runtime.Object, error)
- func (a *NodePoolAdapter) CreateObject(obj runtime.Object) (runtime.Object, error)
- func (a *NodePoolAdapter) Delete(obj runtime.Object) (runtime.Object, error)
- func (a *NodePoolAdapter) DeleteObject(obj runtime.Object, options *metav1.DeleteOptions) error
- func (a *NodePoolAdapter) Dependents(obj runtime.Object) map[string][]string
- func (a *NodePoolAdapter) DependsOn(obj runtime.Object) map[string]ocicommon.DependsOn
- func (a *NodePoolAdapter) DependsOnRefs(obj runtime.Object) ([]runtime.Object, error)
- func (a *NodePoolAdapter) Equivalent(obj1, obj2 runtime.Object) bool
- func (a *NodePoolAdapter) Get(obj runtime.Object) (runtime.Object, error)
- func (a *NodePoolAdapter) GroupVersionWithResource() schema.GroupVersionResource
- func (a *NodePoolAdapter) Id(obj runtime.Object) string
- func (a *NodePoolAdapter) IsExpectedType(obj interface{}) bool
- func (a *NodePoolAdapter) IsResourceCompliant(obj runtime.Object) bool
- func (a *NodePoolAdapter) IsResourceStatusChanged(obj1, obj2 runtime.Object) bool
- func (a *NodePoolAdapter) Kind() string
- func (a *NodePoolAdapter) ObjectMeta(obj runtime.Object) *metav1.ObjectMeta
- func (a *NodePoolAdapter) ObjectType() runtime.Object
- func (a *NodePoolAdapter) Resource() string
- func (a *NodePoolAdapter) Update(obj runtime.Object) (runtime.Object, error)
- func (a *NodePoolAdapter) UpdateForResource(resource schema.GroupVersionResource, obj runtime.Object) (runtime.Object, error)
- func (a *NodePoolAdapter) UpdateObject(obj runtime.Object) (runtime.Object, error)
Constants ¶
const (
OciDomain = "ce"
)
OciDomain is unique domain string for all resources in ce package
Variables ¶
This section is empty.
Functions ¶
func NewClusterAdapter ¶
func NewClusterAdapter(clientset versioned.Interface, kubeclient kubernetes.Interface, ociconfig ocisdkcommon.ConfigurationProvider, adapterSpecificArgs map[string]interface{}) resourcescommon.ResourceTypeAdapter
NewClusterAdapter creates a new adapter for cluster resource
func NewNodePoolAdapter ¶
func NewNodePoolAdapter(clientset versioned.Interface, kubeclient kubernetes.Interface, ociconfig ocisdkcommon.ConfigurationProvider, adapterSpecificArgs map[string]interface{}) resourcescommon.ResourceTypeAdapter
NewNodePoolAdapter creates a new adapter for nodePool resource
Types ¶
type ClusterAdapter ¶
type ClusterAdapter struct {
// contains filtered or unexported fields
}
ClusterAdapter implements the adapter interface for cluster resource
func (*ClusterAdapter) Copy ¶
func (a *ClusterAdapter) Copy(obj runtime.Object) runtime.Object
Copy returns a copy of a cluster object
func (*ClusterAdapter) CreateObject ¶
CreateObject creates the cluster object
func (*ClusterAdapter) DeleteObject ¶
func (a *ClusterAdapter) DeleteObject(obj runtime.Object, options *metav1.DeleteOptions) error
DeleteObject deletes the cluster object
func (*ClusterAdapter) Dependents ¶
func (a *ClusterAdapter) Dependents(obj runtime.Object) map[string][]string
Dependents returns a map of cluster dependents (objects that depend on the cluster)
func (*ClusterAdapter) DependsOn ¶
DependsOn returns a map of cluster dependencies (objects that the cluster depends on)
func (*ClusterAdapter) DependsOnRefs ¶
DependsOnRefs returns the objects that the cluster depends on
func (*ClusterAdapter) Equivalent ¶
func (a *ClusterAdapter) Equivalent(obj1, obj2 runtime.Object) bool
Equivalent checks if two cluster objects are the same
func (*ClusterAdapter) GroupVersionWithResource ¶
func (a *ClusterAdapter) GroupVersionWithResource() schema.GroupVersionResource
GroupVersionWithResource returns the group version schema with the resource type
func (*ClusterAdapter) Id ¶
func (a *ClusterAdapter) Id(obj runtime.Object) string
Id returns the unique resource id via the object type method (i.e the oci id)
func (*ClusterAdapter) IsExpectedType ¶
func (a *ClusterAdapter) IsExpectedType(obj interface{}) bool
IsExpectedType ensures the resource type matches the adapter type
func (*ClusterAdapter) IsResourceCompliant ¶
func (a *ClusterAdapter) IsResourceCompliant(obj runtime.Object) bool
IsResourceComplient checks if resource config is complient with CRD spec
func (*ClusterAdapter) IsResourceStatusChanged ¶
func (a *ClusterAdapter) IsResourceStatusChanged(obj1, obj2 runtime.Object) bool
IsResourceStatusChanged checks if two cluster objects are the same
func (*ClusterAdapter) Kind ¶
func (a *ClusterAdapter) Kind() string
Kind returns the resource kind string
func (*ClusterAdapter) ObjectMeta ¶
func (a *ClusterAdapter) ObjectMeta(obj runtime.Object) *metav1.ObjectMeta
ObjectMeta returns the object meta struct from the cluster object
func (*ClusterAdapter) ObjectType ¶
func (a *ClusterAdapter) ObjectType() runtime.Object
ObjectType returns the cluster type for this adapter
func (*ClusterAdapter) Resource ¶
func (a *ClusterAdapter) Resource() string
Resource returns the plural name of the resource type
func (*ClusterAdapter) UpdateForResource ¶
func (a *ClusterAdapter) UpdateForResource(resource schema.GroupVersionResource, obj runtime.Object) (runtime.Object, error)
UpdateForResource calls a common UpdateForResource method to update the cluster resource in the cluster object
func (*ClusterAdapter) UpdateObject ¶
UpdateObject updates the cluster object
type NodePoolAdapter ¶
type NodePoolAdapter struct {
// contains filtered or unexported fields
}
NodePoolAdapter implements the adapter interface for nodePool resource
func (*NodePoolAdapter) Copy ¶
func (a *NodePoolAdapter) Copy(obj runtime.Object) runtime.Object
Copy returns a copy of a nodePool object
func (*NodePoolAdapter) CreateObject ¶
CreateObject creates the nodePool object
func (*NodePoolAdapter) DeleteObject ¶
func (a *NodePoolAdapter) DeleteObject(obj runtime.Object, options *metav1.DeleteOptions) error
DeleteObject deletes the nodePool object
func (*NodePoolAdapter) Dependents ¶
func (a *NodePoolAdapter) Dependents(obj runtime.Object) map[string][]string
Dependents returns a map of nodePool dependents (objects that depend on the nodePool)
func (*NodePoolAdapter) DependsOn ¶
DependsOn returns a map of nodePool dependencies (objects that the nodePool depends on)
func (*NodePoolAdapter) DependsOnRefs ¶
DependsOnRefs returns the objects that the nodePool depends on
func (*NodePoolAdapter) Equivalent ¶
func (a *NodePoolAdapter) Equivalent(obj1, obj2 runtime.Object) bool
Equivalent checks if two nodePool objects are the same
func (*NodePoolAdapter) GroupVersionWithResource ¶
func (a *NodePoolAdapter) GroupVersionWithResource() schema.GroupVersionResource
GroupVersionWithResource returns the group version schema with the resource type
func (*NodePoolAdapter) Id ¶
func (a *NodePoolAdapter) Id(obj runtime.Object) string
Id returns the unique resource id via the object type method (i.e the oci id)
func (*NodePoolAdapter) IsExpectedType ¶
func (a *NodePoolAdapter) IsExpectedType(obj interface{}) bool
IsExpectedType ensures the resource type matches the adapter type
func (*NodePoolAdapter) IsResourceCompliant ¶
func (a *NodePoolAdapter) IsResourceCompliant(obj runtime.Object) bool
IsResourceCompliant checks if resource config is complient with CRD spec
func (*NodePoolAdapter) IsResourceStatusChanged ¶
func (a *NodePoolAdapter) IsResourceStatusChanged(obj1, obj2 runtime.Object) bool
IsResourceStatusChanged checks if two vcn objects are the same
func (*NodePoolAdapter) Kind ¶
func (a *NodePoolAdapter) Kind() string
Kind returns the resource kind string
func (*NodePoolAdapter) ObjectMeta ¶
func (a *NodePoolAdapter) ObjectMeta(obj runtime.Object) *metav1.ObjectMeta
ObjectMeta returns the object meta struct from the nodePool object
func (*NodePoolAdapter) ObjectType ¶
func (a *NodePoolAdapter) ObjectType() runtime.Object
ObjectType returns the nodePool type for this adapter
func (*NodePoolAdapter) Resource ¶
func (a *NodePoolAdapter) Resource() string
Resource returns the plural name of the resource type
func (*NodePoolAdapter) UpdateForResource ¶
func (a *NodePoolAdapter) UpdateForResource(resource schema.GroupVersionResource, obj runtime.Object) (runtime.Object, error)
UpdateForResource calls a common UpdateForResource method to update the nodePool resource in the nodePool object
func (*NodePoolAdapter) UpdateObject ¶
UpdateObject updates the nodePool object