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 NewAutonomousDatabaseAdapter(clientset versioned.Interface, kubeclient kubernetes.Interface, ...) resourcescommon.ResourceTypeAdapter
- func Unzip(src string, dest string) ([]string, error)
- type AutonomousDatabaseAdapter
- func (a *AutonomousDatabaseAdapter) Copy(obj runtime.Object) runtime.Object
- func (a *AutonomousDatabaseAdapter) Create(obj runtime.Object) (runtime.Object, error)
- func (a *AutonomousDatabaseAdapter) CreateObject(obj runtime.Object) (runtime.Object, error)
- func (a *AutonomousDatabaseAdapter) Delete(obj runtime.Object) (runtime.Object, error)
- func (a *AutonomousDatabaseAdapter) DeleteObject(obj runtime.Object, options *metav1.DeleteOptions) error
- func (a *AutonomousDatabaseAdapter) Dependents(obj runtime.Object) map[string][]string
- func (a *AutonomousDatabaseAdapter) DependsOn(obj runtime.Object) map[string]ocicommon.DependsOn
- func (a *AutonomousDatabaseAdapter) DependsOnRefs(obj runtime.Object) ([]runtime.Object, error)
- func (a *AutonomousDatabaseAdapter) Equivalent(obj1, obj2 runtime.Object) bool
- func (a *AutonomousDatabaseAdapter) FetchWalletToSecret(db *ocidbv1alpha1.AutonomousDatabase) error
- func (a *AutonomousDatabaseAdapter) Get(obj runtime.Object) (runtime.Object, error)
- func (a *AutonomousDatabaseAdapter) GroupVersionWithResource() schema.GroupVersionResource
- func (a *AutonomousDatabaseAdapter) Id(obj runtime.Object) string
- func (a *AutonomousDatabaseAdapter) IsExpectedType(obj interface{}) bool
- func (a *AutonomousDatabaseAdapter) IsResourceCompliant(obj runtime.Object) bool
- func (a *AutonomousDatabaseAdapter) IsResourceStatusChanged(obj1, obj2 runtime.Object) bool
- func (a *AutonomousDatabaseAdapter) Kind() string
- func (a *AutonomousDatabaseAdapter) ObjectMeta(obj runtime.Object) *metav1.ObjectMeta
- func (a *AutonomousDatabaseAdapter) ObjectType() runtime.Object
- func (a *AutonomousDatabaseAdapter) RandomString(length int) string
- func (a *AutonomousDatabaseAdapter) RandomStringWithCharset(length int, charset string) string
- func (a *AutonomousDatabaseAdapter) Resource() string
- func (a *AutonomousDatabaseAdapter) Update(obj runtime.Object) (runtime.Object, error)
- func (a *AutonomousDatabaseAdapter) UpdateForResource(resource schema.GroupVersionResource, obj runtime.Object) (runtime.Object, error)
- func (a *AutonomousDatabaseAdapter) UpdateObject(obj runtime.Object) (runtime.Object, error)
Constants ¶
const (
OciDomain = "db"
)
OciDomain is unique domain string for all resources in db package
Variables ¶
This section is empty.
Functions ¶
func NewAutonomousDatabaseAdapter ¶
func NewAutonomousDatabaseAdapter(clientset versioned.Interface, kubeclient kubernetes.Interface, ociconfig ocisdkcommon.ConfigurationProvider, adapterSpecificArgs map[string]interface{}) resourcescommon.ResourceTypeAdapter
NewAutonomousDatabaseAdapter creates a new adapter for autonomousdatabase resource
Types ¶
type AutonomousDatabaseAdapter ¶
type AutonomousDatabaseAdapter struct {
// contains filtered or unexported fields
}
AutonomousDatabaseAdapter implements the adapter interface for autonomousdatabase resource
func (*AutonomousDatabaseAdapter) Copy ¶
func (a *AutonomousDatabaseAdapter) Copy(obj runtime.Object) runtime.Object
Copy returns a copy of a autonomousdatabase object
func (*AutonomousDatabaseAdapter) CreateObject ¶
CreateObject creates the autonomousdatabase object
func (*AutonomousDatabaseAdapter) DeleteObject ¶
func (a *AutonomousDatabaseAdapter) DeleteObject(obj runtime.Object, options *metav1.DeleteOptions) error
DeleteObject deletes the autonomousdatabase object
func (*AutonomousDatabaseAdapter) Dependents ¶
func (a *AutonomousDatabaseAdapter) Dependents(obj runtime.Object) map[string][]string
Dependents returns a map of autonomousdatabase dependents (objects that depend on the autonomousdatabase)
func (*AutonomousDatabaseAdapter) DependsOn ¶
DependsOn returns a map of autonomousdatabase dependencies (objects that the autonomousdatabase depends on)
func (*AutonomousDatabaseAdapter) DependsOnRefs ¶
DependsOnRefs returns the objects that the autonomousdatabase depends on
func (*AutonomousDatabaseAdapter) Equivalent ¶
func (a *AutonomousDatabaseAdapter) Equivalent(obj1, obj2 runtime.Object) bool
Equivalent checks if two autonomousdatabase objects are the same
func (*AutonomousDatabaseAdapter) FetchWalletToSecret ¶
func (a *AutonomousDatabaseAdapter) FetchWalletToSecret(db *ocidbv1alpha1.AutonomousDatabase) error
use db name to fetch wallet zip and put into secret
func (*AutonomousDatabaseAdapter) GroupVersionWithResource ¶
func (a *AutonomousDatabaseAdapter) GroupVersionWithResource() schema.GroupVersionResource
GroupVersionWithResource returns the group version schema with the resource type
func (*AutonomousDatabaseAdapter) Id ¶
func (a *AutonomousDatabaseAdapter) Id(obj runtime.Object) string
Id returns the unique resource id via the object type method (i.e the oci id)
func (*AutonomousDatabaseAdapter) IsExpectedType ¶
func (a *AutonomousDatabaseAdapter) IsExpectedType(obj interface{}) bool
IsExpectedType ensures the resource type matches the adapter type
func (*AutonomousDatabaseAdapter) IsResourceCompliant ¶
func (a *AutonomousDatabaseAdapter) IsResourceCompliant(obj runtime.Object) bool
IsResourceCompliant
func (*AutonomousDatabaseAdapter) IsResourceStatusChanged ¶
func (a *AutonomousDatabaseAdapter) IsResourceStatusChanged(obj1, obj2 runtime.Object) bool
IsResourceStatusChanged checks if two autonomousdatabase objects are the same
func (*AutonomousDatabaseAdapter) Kind ¶
func (a *AutonomousDatabaseAdapter) Kind() string
Kind returns the resource kind string
func (*AutonomousDatabaseAdapter) ObjectMeta ¶
func (a *AutonomousDatabaseAdapter) ObjectMeta(obj runtime.Object) *metav1.ObjectMeta
ObjectMeta returns the object meta struct from the autonomousdatabase object
func (*AutonomousDatabaseAdapter) ObjectType ¶
func (a *AutonomousDatabaseAdapter) ObjectType() runtime.Object
ObjectType returns the autonomousdatabase type for this adapter
func (*AutonomousDatabaseAdapter) RandomString ¶
func (a *AutonomousDatabaseAdapter) RandomString(length int) string
func (*AutonomousDatabaseAdapter) RandomStringWithCharset ¶
func (a *AutonomousDatabaseAdapter) RandomStringWithCharset(length int, charset string) string
get limited set of random char from charset const
func (*AutonomousDatabaseAdapter) Resource ¶
func (a *AutonomousDatabaseAdapter) Resource() string
Resource returns the plural name of the resource type
func (*AutonomousDatabaseAdapter) UpdateForResource ¶
func (a *AutonomousDatabaseAdapter) UpdateForResource(resource schema.GroupVersionResource, obj runtime.Object) (runtime.Object, error)
UpdateForResource calls a common UpdateForResource method to update the autonomousdatabase resource in the autonomousdatabase object
func (*AutonomousDatabaseAdapter) UpdateObject ¶
UpdateObject updates the autonomousdatabase object