db

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: 24 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 = "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

func Unzip

func Unzip(src string, dest string) ([]string, error)

Unzip will decompress a zip archive, moving all files and folders

Types

type AutonomousDatabaseAdapter

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

AutonomousDatabaseAdapter implements the adapter interface for autonomousdatabase resource

func (*AutonomousDatabaseAdapter) Copy

Copy returns a copy of a autonomousdatabase object

func (*AutonomousDatabaseAdapter) Create

Create creates the autonomousdatabase resource in oci

func (*AutonomousDatabaseAdapter) CreateObject

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

CreateObject creates the autonomousdatabase object

func (*AutonomousDatabaseAdapter) Delete

Delete deletes the autonomousdatabase resource in oci

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

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

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

use db name to fetch wallet zip and put into secret

func (*AutonomousDatabaseAdapter) Get

Get retrieves the autonomousdatabase resource from oci

func (*AutonomousDatabaseAdapter) GroupVersionWithResource

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

GroupVersionWithResource returns the group version schema with the resource type

func (*AutonomousDatabaseAdapter) Id

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

Kind returns the resource kind string

func (*AutonomousDatabaseAdapter) 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) Update

Update updates the autonomousdatabase resource in oci

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

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

UpdateObject updates the autonomousdatabase object

Jump to

Keyboard shortcuts

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