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
- func NewCompartmentAdapter(clientset versioned.Interface, kubeclient kubernetes.Interface, ...) resourcescommon.ResourceTypeAdapter
- func NewPolicyAdapter(clientset versioned.Interface, kubeclient kubernetes.Interface, ...) resourcescommon.ResourceTypeAdapter
- type CompartmentAdapter
- func (a *CompartmentAdapter) AvailabilityDomains(obj runtime.Object) []string
- func (a *CompartmentAdapter) Copy(obj runtime.Object) runtime.Object
- func (a *CompartmentAdapter) Create(obj runtime.Object) (runtime.Object, error)
- func (a *CompartmentAdapter) CreateObject(obj runtime.Object) (runtime.Object, error)
- func (a *CompartmentAdapter) Delete(obj runtime.Object) (runtime.Object, error)
- func (a *CompartmentAdapter) DeleteObject(obj runtime.Object, options *metav1.DeleteOptions) error
- func (a *CompartmentAdapter) Dependents(obj runtime.Object) map[string][]string
- func (a *CompartmentAdapter) DependsOn(obj runtime.Object) map[string]ocicommon.DependsOn
- func (a *CompartmentAdapter) DependsOnRefs(obj runtime.Object) ([]runtime.Object, error)
- func (a *CompartmentAdapter) Equivalent(obj1, obj2 runtime.Object) bool
- func (a *CompartmentAdapter) Get(obj runtime.Object) (runtime.Object, error)
- func (a *CompartmentAdapter) GroupVersionWithResource() schema.GroupVersionResource
- func (a *CompartmentAdapter) Id(obj runtime.Object) string
- func (a *CompartmentAdapter) Images(obj runtime.Object) map[string]string
- func (a *CompartmentAdapter) IsExpectedType(obj interface{}) bool
- func (a *CompartmentAdapter) IsResourceCompliant(obj runtime.Object) bool
- func (a *CompartmentAdapter) IsResourceStatusChanged(obj1, obj2 runtime.Object) bool
- func (a *CompartmentAdapter) Kind() string
- func (a *CompartmentAdapter) ObjectMeta(obj runtime.Object) *metav1.ObjectMeta
- func (a *CompartmentAdapter) ObjectType() runtime.Object
- func (a *CompartmentAdapter) Resource() string
- func (a *CompartmentAdapter) Shapes(obj runtime.Object) []string
- func (a *CompartmentAdapter) Update(obj runtime.Object) (runtime.Object, error)
- func (a *CompartmentAdapter) UpdateForResource(resource schema.GroupVersionResource, obj runtime.Object) (runtime.Object, error)
- func (a *CompartmentAdapter) UpdateObject(obj runtime.Object) (runtime.Object, error)
- type PolicyAdapter
- func (a *PolicyAdapter) Copy(obj runtime.Object) runtime.Object
- func (a *PolicyAdapter) Create(obj runtime.Object) (runtime.Object, error)
- func (a *PolicyAdapter) CreateObject(obj runtime.Object) (runtime.Object, error)
- func (a *PolicyAdapter) Delete(obj runtime.Object) (runtime.Object, error)
- func (a *PolicyAdapter) DeleteObject(obj runtime.Object, options *metav1.DeleteOptions) error
- func (a *PolicyAdapter) Dependents(obj runtime.Object) map[string][]string
- func (a *PolicyAdapter) DependsOn(obj runtime.Object) map[string]ocicommon.DependsOn
- func (a *PolicyAdapter) DependsOnRefs(obj runtime.Object) ([]runtime.Object, error)
- func (a *PolicyAdapter) Equivalent(obj1, obj2 runtime.Object) bool
- func (a *PolicyAdapter) Get(obj runtime.Object) (runtime.Object, error)
- func (a *PolicyAdapter) GroupVersionWithResource() schema.GroupVersionResource
- func (a *PolicyAdapter) Id(obj runtime.Object) string
- func (a *PolicyAdapter) IsExpectedType(obj interface{}) bool
- func (a *PolicyAdapter) IsResourceCompliant(obj runtime.Object) bool
- func (a *PolicyAdapter) IsResourceStatusChanged(obj1, obj2 runtime.Object) bool
- func (a *PolicyAdapter) Kind() string
- func (a *PolicyAdapter) ObjectMeta(obj runtime.Object) *metav1.ObjectMeta
- func (a *PolicyAdapter) ObjectType() runtime.Object
- func (a *PolicyAdapter) Resource() string
- func (a *PolicyAdapter) Update(obj runtime.Object) (runtime.Object, error)
- func (a *PolicyAdapter) UpdateForResource(resource schema.GroupVersionResource, obj runtime.Object) (runtime.Object, error)
- func (a *PolicyAdapter) UpdateObject(obj runtime.Object) (runtime.Object, error)
Constants ¶
const (
FullDeleteLabel = "FullDelete"
)
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 ¶
func (a *CompartmentAdapter) Copy(obj runtime.Object) runtime.Object
Copy returns a copy of a compartment object
func (*CompartmentAdapter) CreateObject ¶
CreateObject creates the compartment object
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 ¶
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) GroupVersionWithResource ¶
func (a *CompartmentAdapter) GroupVersionWithResource() schema.GroupVersionResource
GroupVersionWithResource returns the group version schema with the resource type
func (*CompartmentAdapter) Id ¶
func (a *CompartmentAdapter) Id(obj runtime.Object) string
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 ¶
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) CreateObject ¶
CreateObject creates the policy object
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 ¶
DependsOn returns a map of policy dependencies (objects that the policy depends on)
func (*PolicyAdapter) DependsOnRefs ¶
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) 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) 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 ¶
UpdateObject updates the policy object