dbdaemonproxy

package
v0.1.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package dbdaemonproxy provides access to the database container. From the security standpoint only the following requests are honored:

  • only requests from a localhost
  • only requests against predefined database and listener(s)
  • only for tightly controlled commands

All requests are to be logged and audited.

Only New and CheckDatabaseState functions of this package can be called at the instance (aka CDB) provisioning time. The rest of the functions are expected to be called only when a database (aka PDB) is provisioned.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	*dbdpb.UnimplementedDatabaseDaemonProxyServer
	// contains filtered or unexported fields
}

Server holds a database config.

func New

func New(hostname, cdbNameFromYaml string) (*Server, error)

New creates a new Database Daemon Server object. It first gets called on a CDB provisioning and at this time a PDB name is not known yet (to be supplied via a separate call).

func (*Server) BounceDatabase

BounceDatabase is a Database Daemon method to start or stop a database.

func (*Server) BounceListener

BounceListener is a Database Daemon method to start or stop a listener.

func (*Server) ProxyFetchServiceImageMetaData

ProxyFetchServiceImageMetaData returns metadata from the container running the oracledb container

func (*Server) ProxyRunDbca

ProxyRunDbca execute the command to create a database instance

func (*Server) ProxyRunInitOracle

ProxyRunInitOracle execute the init_oracle binary with input params

func (*Server) ProxyRunNID

ProxyRunNID execute the command to rename a database instance

func (*Server) SetEnv

SetEnv moves/relink oracle config files

func (Server) String

func (s Server) String() string

Jump to

Keyboard shortcuts

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