compute

package
v0.0.0-...-b3f0fa4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

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

View Source
const (
	IMAGE_ANNOTATION = "oci.oracle.com/instance.image"
	SHAPE_ANNOTATION = "oci.oracle.com/instance.shape"
)
View Source
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

func DeleteSubnet(c clientset.Interface, namespace string, name string) (*v1alpha1.Subnet, error)

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

callback for resource

func (*ComputeAdapter) Delete

func (a *ComputeAdapter) Delete(obj runtime.Object) (runtime.Object, error)

delete compute cloud event handler

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) Kind

func (a *ComputeAdapter) Kind() string

kind

func (*ComputeAdapter) ObjectMeta

func (a *ComputeAdapter) ObjectMeta(obj runtime.Object) *metav1.ObjectMeta

object meta

func (*ComputeAdapter) Reconcile

func (a *ComputeAdapter) Reconcile(obj runtime.Object) (runtime.Object, error)

reconcile - handles create and updates

func (*ComputeAdapter) Resource

func (a *ComputeAdapter) Resource() string

resource

func (*ComputeAdapter) SetLister

func (a *ComputeAdapter) SetLister(lister cache.GenericLister)

set lister

func (*ComputeAdapter) SetQueue

set queue

func (*ComputeAdapter) Subscriptions

func (a *ComputeAdapter) Subscriptions() []schema.GroupVersionResource

subscriptions

func (*ComputeAdapter) Update

func (a *ComputeAdapter) Update(obj runtime.Object) (runtime.Object, error)

update compute cloud event handler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL