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 CreateOrUpdateCpodInstance(c clientset.Interface, cpod *cloudv1alpha1.Cpod, ...) (*v1alpha1.Instance, bool, error)
- func DeleteCpodInstance(c clientset.Interface, cpod *cloudv1alpha1.Cpod) (*v1alpha1.Instance, error)
- func NewCpodAdapter(clientSet versioned.Interface, kubeclient kubernetes.Interface) cloudcommon.CloudTypeAdapter
- type CpodAdapter
- func (a *CpodAdapter) CallbackForResource(resource schema.GroupVersionResource) cache.ResourceEventHandlerFuncs
- func (a *CpodAdapter) Delete(obj runtime.Object) (runtime.Object, error)
- func (a *CpodAdapter) Equivalent(obj1, obj2 runtime.Object) bool
- func (a *CpodAdapter) GroupVersionWithResource() schema.GroupVersionResource
- func (a *CpodAdapter) Kind() string
- func (a *CpodAdapter) ObjectMeta(obj runtime.Object) *metav1.ObjectMeta
- func (a *CpodAdapter) Reconcile(obj runtime.Object) (runtime.Object, error)
- func (a *CpodAdapter) Resource() string
- func (a *CpodAdapter) SetLister(lister cache.GenericLister)
- func (a *CpodAdapter) SetQueue(q workqueue.RateLimitingInterface)
- func (a *CpodAdapter) Subscriptions() []schema.GroupVersionResource
- func (a *CpodAdapter) Update(obj runtime.Object) (runtime.Object, error)
Constants ¶
const ( DefaultShape string = "VM.Standard1.1" DefaultCpodInstanceOsType string = "Oracle-Linux" DefaultCpodInstanceOSVersion string = "7.5-2018.05.09-1" DefaultCpodHostPort string = "80" )
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) 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) ObjectMeta ¶
func (a *CpodAdapter) ObjectMeta(obj runtime.Object) *metav1.ObjectMeta
object meta
func (*CpodAdapter) SetLister ¶
func (a *CpodAdapter) SetLister(lister cache.GenericLister)
set lister
func (*CpodAdapter) SetQueue ¶
func (a *CpodAdapter) SetQueue(q workqueue.RateLimitingInterface)
set queue
func (*CpodAdapter) Subscriptions ¶
func (a *CpodAdapter) Subscriptions() []schema.GroupVersionResource
subscriptions