core

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: 10 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 (
	GroupName        = "k8s.io"
	KubernetesDomain = "core"
)

OciDomain is unique domain string for all resources in core package

Variables

This section is empty.

Functions

func NewNamespaceAdapter

func NewNamespaceAdapter(
	clientset versioned.Interface,
	kubeclient kubernetes.Interface,
	adapterSpecificArgs map[string]interface{}) kubecommon.KubernetesTypeAdapter

NewNamespaceAdapter creates a new adapter for Namespace resource

Types

type NamespaceAdapter

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

NamespaceAdapter implements the adapter interface for Namespace resource

func (*NamespaceAdapter) Copy

Copy returns a copy of a Namespace object

func (*NamespaceAdapter) Create

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

Create creates the Namespace resource in oci

func (*NamespaceAdapter) CreateObject

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

CreateObject creates the Namespace object

func (*NamespaceAdapter) Delete

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

Delete deletes the Namespace resource in oci

func (*NamespaceAdapter) DeleteObject

func (a *NamespaceAdapter) DeleteObject(obj runtime.Object, options *metav1.DeleteOptions) error

DeleteObject deletes the Namespace object

func (*NamespaceAdapter) Get

Get retrieves the Namespace resource from oci

func (*NamespaceAdapter) GroupVersionWithResource

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

GroupVersionWithResource returns the group version schema with the resource type

func (*NamespaceAdapter) Id

Id returns the name of the compartment if label exists to create it ... when empty the controller will call Create

func (*NamespaceAdapter) IsCompliant

func (a *NamespaceAdapter) IsCompliant(obj runtime.Object) bool

Equivalent checks if two Namespace objects are the same

func (*NamespaceAdapter) IsExpectedType

func (a *NamespaceAdapter) IsExpectedType(obj interface{}) bool

IsExpectedType ensures the resource type matches the adapter type

func (*NamespaceAdapter) Kind

func (a *NamespaceAdapter) Kind() string

Kind returns the string type for this adapter

func (*NamespaceAdapter) ObjectMeta

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

ObjectMeta returns the object meta struct from the Namespace object

func (*NamespaceAdapter) ObjectType

func (a *NamespaceAdapter) ObjectType() runtime.Object

ObjectType returns the Namespace type for this adapter

func (*NamespaceAdapter) Update

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

Update updates the Namespace resource in oci

func (*NamespaceAdapter) UpdateObject

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

UpdateObject updates the Namespace object

Jump to

Keyboard shortcuts

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