identity

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.

Index

Constants

View Source
const (
	FullDeleteLabel = "FullDelete"
)
View Source
const (
	OciDomain = "identity"
)

OciDomain is unique domain string for all resources in identity package

Variables

This section is empty.

Functions

func NewCompartmentAdapter

func NewCompartmentAdapter(clientset versioned.Interface, kubeclient kubernetes.Interface,
	ociconfig ocisdkcommon.ConfigurationProvider, adapterSpecificArgs map[string]interface{}) resourcescommon.ResourceTypeAdapter

NewCompartmentAdapter creates a new adapter for compartment resource

func NewPolicyAdapter

func NewPolicyAdapter(clientset versioned.Interface, kubeclient kubernetes.Interface,
	ociconfpolicy ocisdkcommon.ConfigurationProvider, adapterSpecificArgs map[string]interface{}) resourcescommon.ResourceTypeAdapter

NewPolicyAdapter creates a new adapter for policy resource

Types

type CompartmentAdapter

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

CompartmentAdapter implements the adapter interface for compartment resource

func (*CompartmentAdapter) AvailabilityDomains

func (a *CompartmentAdapter) AvailabilityDomains(obj runtime.Object) []string

AvailabilityDomains returns the oci availability domains available in this compartment

func (*CompartmentAdapter) Copy

Copy returns a copy of a compartment object

func (*CompartmentAdapter) Create

Create creates the compartment resource in oci

func (*CompartmentAdapter) CreateObject

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

CreateObject creates the compartment object

func (*CompartmentAdapter) Delete

Delete deletes the compartment resource in oci

func (*CompartmentAdapter) DeleteObject

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

DeleteObject deletes the compartment object

func (*CompartmentAdapter) Dependents

func (a *CompartmentAdapter) Dependents(obj runtime.Object) map[string][]string

Dependents returns a map of compartment dependents (objects that depend on the compartment)

func (*CompartmentAdapter) DependsOn

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

func (*CompartmentAdapter) DependsOnRefs

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

DependsOnRefs returns the objects that the compartment depends on

func (*CompartmentAdapter) Equivalent

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

Equivalent checks if two compartment objects are the same

func (*CompartmentAdapter) Get

Get retrieves the compartment resource from oci

func (*CompartmentAdapter) GroupVersionWithResource

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

GroupVersionWithResource returns the group version schema with the resource type

func (*CompartmentAdapter) Id

Id returns the unique resource id via the object type method (i.e the oci id)

func (*CompartmentAdapter) Images

func (a *CompartmentAdapter) Images(obj runtime.Object) map[string]string

Images returns the oci images available in this compartment

func (*CompartmentAdapter) IsExpectedType

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

IsExpectedType ensures the resource type matches the adapter type

func (*CompartmentAdapter) IsResourceCompliant

func (a *CompartmentAdapter) IsResourceCompliant(obj runtime.Object) bool

IsResourceCompliant checks if resource config is complient with CRD spec

func (*CompartmentAdapter) IsResourceStatusChanged

func (a *CompartmentAdapter) IsResourceStatusChanged(obj1, obj2 runtime.Object) bool

IsResourceStatusChanged checks if two vcn objects are the same

func (*CompartmentAdapter) Kind

func (a *CompartmentAdapter) Kind() string

Kind returns the resource kind string

func (*CompartmentAdapter) ObjectMeta

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

ObjectMeta returns the object meta struct from the compartment object

func (*CompartmentAdapter) ObjectType

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

ObjectType returns the compartment type for this adapter

func (*CompartmentAdapter) Resource

func (a *CompartmentAdapter) Resource() string

Resource returns the plural name of the resource type

func (*CompartmentAdapter) Shapes

func (a *CompartmentAdapter) Shapes(obj runtime.Object) []string

Shapes returns the oci shapes available in this compartment

func (*CompartmentAdapter) Update

Update updates the compartment resource in oci - NOT IMPLEMENTED!

func (*CompartmentAdapter) UpdateForResource

func (a *CompartmentAdapter) UpdateForResource(resource schema.GroupVersionResource, obj runtime.Object) (runtime.Object, error)

UpdateForResource calls a common UpdateForResource method to update the compartment resource in the compartment object

func (*CompartmentAdapter) UpdateObject

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

UpdateObject updates the compartment object

type PolicyAdapter

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

PolicyAdapter implements the adapter interface for policy resource

func (*PolicyAdapter) Copy

func (a *PolicyAdapter) Copy(obj runtime.Object) runtime.Object

Copy returns a copy of a policy object

func (*PolicyAdapter) Create

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

Create creates the policy resource in oci

func (*PolicyAdapter) CreateObject

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

CreateObject creates the policy object

func (*PolicyAdapter) Delete

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

Delete deletes the policy resource in oci

func (*PolicyAdapter) DeleteObject

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

DeleteObject deletes the policy object

func (*PolicyAdapter) Dependents

func (a *PolicyAdapter) Dependents(obj runtime.Object) map[string][]string

Dependents returns a map of policy dependents (objects that depend on the policy)

func (*PolicyAdapter) DependsOn

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

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

func (*PolicyAdapter) DependsOnRefs

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

DependsOnRefs returns the objects that the policy depends on

func (*PolicyAdapter) Equivalent

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

Equivalent checks if two policy objects are the same

func (*PolicyAdapter) Get

Get retrieves the policy resource from oci

func (*PolicyAdapter) GroupVersionWithResource

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

GroupVersionWithResource returns the group version schema with the resource type

func (*PolicyAdapter) Id

func (a *PolicyAdapter) Id(obj runtime.Object) string

Id returns the unique resource id via the object type method (i.e the oci id)

func (*PolicyAdapter) IsExpectedType

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

IsExpectedType ensures the resource type matches the adapter type

func (*PolicyAdapter) IsResourceCompliant

func (a *PolicyAdapter) IsResourceCompliant(obj runtime.Object) bool

IsResourceCompliant checks if resource config is complient with CRD spec

func (*PolicyAdapter) IsResourceStatusChanged

func (a *PolicyAdapter) IsResourceStatusChanged(obj1, obj2 runtime.Object) bool

IsResourceStatusChanged checks if two vcn objects are the same

func (*PolicyAdapter) Kind

func (a *PolicyAdapter) Kind() string

Kind returns the resource kind string

func (*PolicyAdapter) ObjectMeta

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

ObjectMeta returns the object meta struct from the policy object

func (*PolicyAdapter) ObjectType

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

ObjectType returns the policy type for this adapter

func (*PolicyAdapter) Resource

func (a *PolicyAdapter) Resource() string

Resource returns the plural name of the resource type

func (*PolicyAdapter) Update

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

Update updates the policy resource in oci

func (*PolicyAdapter) UpdateForResource

func (a *PolicyAdapter) UpdateForResource(resource schema.GroupVersionResource, obj runtime.Object) (runtime.Object, error)

UpdateForResource calls a common UpdateForResource method to update the policy resource in the policy object

func (*PolicyAdapter) UpdateObject

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

UpdateObject updates the policy object

Jump to

Keyboard shortcuts

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