cpod

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: 20 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 (
	DefaultShape                 string = "VM.Standard1.1"
	DefaultCpodInstanceOsType    string = "Oracle-Linux"
	DefaultCpodInstanceOSVersion string = "7.5-2018.05.09-1"
	DefaultCpodHostPort          string = "80"
)
View Source
const (
	CloudDomain = "cpod"
)

Variables

This section is empty.

Functions

func CreateOrUpdateCpodInstance

func CreateOrUpdateCpodInstance(c clientset.Interface,
	cpod *cloudv1alpha1.Cpod,
	controllerRef *metav1.OwnerReference) (*v1alpha1.Instance, bool, error)

func DeleteCpodInstance

func DeleteCpodInstance(c clientset.Interface, cpod *cloudv1alpha1.Cpod) (*v1alpha1.Instance, error)

DeleteInstance deletes the virtual compute resource

func NewCpodAdapter

func NewCpodAdapter(clientSet versioned.Interface, kubeclient kubernetes.Interface) cloudcommon.CloudTypeAdapter

factory method

Types

type CpodAdapter

type CpodAdapter struct {
	// contains filtered or unexported fields
}

func (*CpodAdapter) CallbackForResource

func (a *CpodAdapter) CallbackForResource(resource schema.GroupVersionResource) cache.ResourceEventHandlerFuncs

callback for resource

func (*CpodAdapter) Delete

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

delete cpod cloud event handler

func (*CpodAdapter) Equivalent

func (a *CpodAdapter) Equivalent(obj1, obj2 runtime.Object) bool

equivalent

func (*CpodAdapter) GroupVersionWithResource

func (a *CpodAdapter) GroupVersionWithResource() schema.GroupVersionResource

group version with resource

func (*CpodAdapter) Kind

func (a *CpodAdapter) Kind() string

kind

func (*CpodAdapter) ObjectMeta

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

object meta

func (*CpodAdapter) Reconcile

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

reconcile - handles create and updates

func (*CpodAdapter) Resource

func (a *CpodAdapter) Resource() string

resource

func (*CpodAdapter) SetLister

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

set lister

func (*CpodAdapter) SetQueue

set queue

func (*CpodAdapter) Subscriptions

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

subscriptions

func (*CpodAdapter) Update

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

update cpod cloud event handler

Jump to

Keyboard shortcuts

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