Help us shape the future of Go! Take the 2026 Go Developer Survey

databases

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package databases is the Azure Resource Manager management plane of Azure SQL, PostgreSQL and MySQL servers and Cache for Redis. The servers are real: each runs as a container next to pogi (the same containers RDS and ElastiCache start, through rds.Box), with the admin login and password from the PUT body. Databases are created in the engine. Without Docker the resources are metadata only.

The HTTP surface is internal/azure/arm's; this package registers one arm.Provider per resource type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service holds the resources of every kind of server.

func New

func New(hub *core.Hub) *Service

func (*Service) Close

func (s *Service) Close() error

func (*Service) Info

func (s *Service) Info() core.Info

func (*Service) Inspect

func (s *Service) Inspect(table, name string) any

Inspect returns a server with pogi's side (container, admin password, note).

func (*Service) Load

func (s *Service) Load(b []byte) error

Load restores state and reconnects to the containers by name (--persist leaves them behind on shutdown); containers of dropped servers go.

func (*Service) Reset

func (s *Service) Reset()

func (*Service) Resources

func (s *Service) Resources() []core.Table

Resources lists servers and databases for the console.

func (*Service) Save

func (s *Service) Save() ([]byte, error)

func (*Service) ServeHTTP

func (s *Service) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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