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 ¶
- type Server
- func (s *Server) BounceDatabase(ctx context.Context, req *dbdpb.BounceDatabaseRequest) (*dbdpb.BounceDatabaseResponse, error)
- func (s *Server) BounceListener(_ context.Context, req *dbdpb.BounceListenerRequest) (*dbdpb.BounceListenerResponse, error)
- func (s *Server) ProxyFetchServiceImageMetaData(ctx context.Context, req *dbdpb.ProxyFetchServiceImageMetaDataRequest) (*dbdpb.ProxyFetchServiceImageMetaDataResponse, error)
- func (s *Server) ProxyRunDbca(ctx context.Context, req *dbdpb.ProxyRunDbcaRequest) (*dbdpb.ProxyRunDbcaResponse, error)
- func (s *Server) ProxyRunInitOracle(ctx context.Context, req *dbdpb.ProxyRunInitOracleRequest) (*dbdpb.ProxyRunInitOracleResponse, error)
- func (s *Server) ProxyRunNID(ctx context.Context, req *dbdpb.ProxyRunNIDRequest) (*dbdpb.ProxyRunNIDResponse, error)
- func (s *Server) SetEnv(ctx context.Context, req *dbdpb.SetEnvRequest) (*dbdpb.SetEnvResponse, error)
- func (s Server) String() string
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 ¶
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 ¶
func (s *Server) BounceDatabase(ctx context.Context, req *dbdpb.BounceDatabaseRequest) (*dbdpb.BounceDatabaseResponse, error)
BounceDatabase is a Database Daemon method to start or stop a database.
func (*Server) BounceListener ¶
func (s *Server) BounceListener(_ context.Context, req *dbdpb.BounceListenerRequest) (*dbdpb.BounceListenerResponse, error)
BounceListener is a Database Daemon method to start or stop a listener.
func (*Server) ProxyFetchServiceImageMetaData ¶
func (s *Server) ProxyFetchServiceImageMetaData(ctx context.Context, req *dbdpb.ProxyFetchServiceImageMetaDataRequest) (*dbdpb.ProxyFetchServiceImageMetaDataResponse, error)
ProxyFetchServiceImageMetaData returns metadata from the container running the oracledb container
func (*Server) ProxyRunDbca ¶
func (s *Server) ProxyRunDbca(ctx context.Context, req *dbdpb.ProxyRunDbcaRequest) (*dbdpb.ProxyRunDbcaResponse, error)
ProxyRunDbca execute the command to create a database instance
func (*Server) ProxyRunInitOracle ¶
func (s *Server) ProxyRunInitOracle(ctx context.Context, req *dbdpb.ProxyRunInitOracleRequest) (*dbdpb.ProxyRunInitOracleResponse, error)
ProxyRunInitOracle execute the init_oracle binary with input params
func (*Server) ProxyRunNID ¶
func (s *Server) ProxyRunNID(ctx context.Context, req *dbdpb.ProxyRunNIDRequest) (*dbdpb.ProxyRunNIDResponse, error)
ProxyRunNID execute the command to rename a database instance
func (*Server) SetEnv ¶
func (s *Server) SetEnv(ctx context.Context, req *dbdpb.SetEnvRequest) (*dbdpb.SetEnvResponse, error)
SetEnv moves/relink oracle config files