mtest

package module
v0.0.0-...-fe395ad Latest Latest
Warning

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

Go to latest
Published: May 25, 2025 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plan

type Plan struct {
	Environment   map[string]string     `json:"environment"`
	DatabaseTypes []PlannedDatabaseType `json:"database_types"`
}

func FromPrintable

func FromPrintable(printable string) (*Plan, error)

Convert back to a plan from printable form

func (*Plan) ToPrintable

func (p *Plan) ToPrintable() (string, error)

Turn the plan into printable form

type PlannedDatabase

type PlannedDatabase struct {
	ConfigName string `json:"config_name"` // Name in the config
	Name       string `json:"name"`
	Username   string `json:"username"`
	Password   string `json:"password"`
	Hostname   string `json:"hostname"`
}

type PlannedDatabaseType

type PlannedDatabaseType struct {
	Port      uint                 `json:"port"`
	Type      mconfig.DatabaseType `json:"type"`
	Databases []PlannedDatabase    `json:"databases"`
}

Jump to

Keyboard shortcuts

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