ce

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.

Index

Constants

View Source
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

Copy returns a copy of a cluster object

func (*ClusterAdapter) Create

func (a *ClusterAdapter) Create(obj runtime.Object) (runtime.Object, error)

Create creates the cluster resource in oci

func (*ClusterAdapter) CreateObject

func (a *ClusterAdapter) CreateObject(obj runtime.Object) (runtime.Object, error)

CreateObject creates the cluster object

func (*ClusterAdapter) Delete

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

Delete deletes the cluster resource in oci

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

func (a *ClusterAdapter) DependsOn(obj runtime.Object) map[string]ocicommon.DependsOn

DependsOn returns a map of cluster dependencies (objects that the cluster depends on)

func (*ClusterAdapter) DependsOnRefs

func (a *ClusterAdapter) DependsOnRefs(obj runtime.Object) ([]runtime.Object, error)

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

Get retrieves the cluster resource from oci

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

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

Update updates the cluster resource in oci

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

func (a *ClusterAdapter) UpdateObject(obj runtime.Object) (runtime.Object, error)

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

Copy returns a copy of a nodePool object

func (*NodePoolAdapter) Create

func (a *NodePoolAdapter) Create(obj runtime.Object) (runtime.Object, error)

Create creates the nodePool resource in oci

func (*NodePoolAdapter) CreateObject

func (a *NodePoolAdapter) CreateObject(obj runtime.Object) (runtime.Object, error)

CreateObject creates the nodePool object

func (*NodePoolAdapter) Delete

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

Delete deletes the nodePool resource in oci

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

func (a *NodePoolAdapter) DependsOn(obj runtime.Object) map[string]ocicommon.DependsOn

DependsOn returns a map of nodePool dependencies (objects that the nodePool depends on)

func (*NodePoolAdapter) DependsOnRefs

func (a *NodePoolAdapter) DependsOnRefs(obj runtime.Object) ([]runtime.Object, error)

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

Get retrieves the nodePool resource from oci

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

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

Update updates the nodePool resource in oci

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

func (a *NodePoolAdapter) UpdateObject(obj runtime.Object) (runtime.Object, error)

UpdateObject updates the nodePool object

Jump to

Keyboard shortcuts

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