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.
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 CreateOrUpdateInstance(c clientset.Interface, compute *cloudv1alpha1.Compute, ...) (*v1alpha1.Instance, bool, error)
- func CreateOrUpdateSubnet(c clientset.Interface, namespace string, ownerType string, ownerName string, ...) (*v1alpha1.Subnet, bool, error)
- func DeleteInstance(c clientset.Interface, namespace string, instanceName string) (*v1alpha1.Instance, error)
- func DeleteSubnet(c clientset.Interface, namespace string, name string) (*v1alpha1.Subnet, error)
- func NewComputeAdapter(clientSet versioned.Interface, kubeclient kubernetes.Interface) cloudcommon.CloudTypeAdapter
- type ComputeAdapter
- func (a *ComputeAdapter) CallbackForResource(resource schema.GroupVersionResource) cache.ResourceEventHandlerFuncs
- func (a *ComputeAdapter) Delete(obj runtime.Object) (runtime.Object, error)
- func (a *ComputeAdapter) Equivalent(obj1, obj2 runtime.Object) bool
- func (a *ComputeAdapter) GroupVersionWithResource() schema.GroupVersionResource
- func (a *ComputeAdapter) Kind() string
- func (a *ComputeAdapter) ObjectMeta(obj runtime.Object) *metav1.ObjectMeta
- func (a *ComputeAdapter) Reconcile(obj runtime.Object) (runtime.Object, error)
- func (a *ComputeAdapter) Resource() string
- func (a *ComputeAdapter) SetLister(lister cache.GenericLister)
- func (a *ComputeAdapter) SetQueue(q workqueue.RateLimitingInterface)
- func (a *ComputeAdapter) Subscriptions() []schema.GroupVersionResource
- func (a *ComputeAdapter) Update(obj runtime.Object) (runtime.Object, error)
Constants ¶
const ( IMAGE_ANNOTATION = "oci.oracle.com/instance.image" SHAPE_ANNOTATION = "oci.oracle.com/instance.shape" )
const (
CloudDomain = "compute"
)
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateInstance ¶
func CreateOrUpdateInstance(c clientset.Interface, compute *cloudv1alpha1.Compute, controllerRef *metav1.OwnerReference, availabilityDomain *string, subnetRef *string, instanceName *string) (*v1alpha1.Instance, bool, error)
CreateOrUpdateInstance reconciles the instance resource
func CreateOrUpdateSubnet ¶
func CreateOrUpdateSubnet(c clientset.Interface, namespace string, ownerType string, ownerName string, networkName string, controllerRef *metav1.OwnerReference, uniqueName string, availabilityDomain string, cidrBlock string, securitySelector *map[string]string) (*v1alpha1.Subnet, bool, error)
CreateOrUpdateSubnet reconciles the subnet resource
func DeleteInstance ¶
func DeleteInstance(c clientset.Interface, namespace string, instanceName string) (*v1alpha1.Instance, error)
DeleteInstance deletes the instance resource
func DeleteSubnet ¶
DeleteSubnet deletes the subnet resource
func NewComputeAdapter ¶
func NewComputeAdapter(clientSet versioned.Interface, kubeclient kubernetes.Interface) cloudcommon.CloudTypeAdapter
factory method
Types ¶
type ComputeAdapter ¶
type ComputeAdapter struct {
// contains filtered or unexported fields
}
func (*ComputeAdapter) CallbackForResource ¶
func (a *ComputeAdapter) CallbackForResource(resource schema.GroupVersionResource) cache.ResourceEventHandlerFuncs
callback for resource
func (*ComputeAdapter) Equivalent ¶
func (a *ComputeAdapter) Equivalent(obj1, obj2 runtime.Object) bool
equivalent
func (*ComputeAdapter) GroupVersionWithResource ¶
func (a *ComputeAdapter) GroupVersionWithResource() schema.GroupVersionResource
group version with resource
func (*ComputeAdapter) ObjectMeta ¶
func (a *ComputeAdapter) ObjectMeta(obj runtime.Object) *metav1.ObjectMeta
object meta
func (*ComputeAdapter) SetLister ¶
func (a *ComputeAdapter) SetLister(lister cache.GenericLister)
set lister
func (*ComputeAdapter) SetQueue ¶
func (a *ComputeAdapter) SetQueue(q workqueue.RateLimitingInterface)
set queue
func (*ComputeAdapter) Subscriptions ¶
func (a *ComputeAdapter) Subscriptions() []schema.GroupVersionResource
subscriptions