Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateSigningKeyPair(publicPath, privatePath string) error
- func RenderConfig(templateValues ConfigTemplateValues, writer io.Writer) error
- type ConfigTemplateValues
- type DataPlaneSigningKeys
- type DockerEnvironmentConfig
- type Installer
- func (inst *Installer) ApplyMigrations(ctx context.Context, targetVersion int, ...) error
- func (inst *Installer) GetMigrationLogs(ctx context.Context, id int, destination io.Writer) error
- func (inst *Installer) InstallTyger(ctx context.Context) error
- func (inst *Installer) ListDatabaseVersions(ctx context.Context, allVersions bool) ([]install.DatabaseVersion, error)
- func (inst *Installer) QuickValidateConfig() bool
- func (inst *Installer) UninstallTyger(ctx context.Context, deleteData bool, preserveRunContainers bool) error
- type KeyPair
- type NetworkConfig
Constants ¶
View Source
const (
EnvironmentKindDocker = "docker"
)
Variables ¶
View Source
var ( NameRegex = regexp.MustCompile(`^[a-z][a-z\-0-9]{1,23}$`) DefaultEnvironmentName = "local" DefaultPostgresImage = "postgres:16.2" DefaultMarinerImage = "mcr.microsoft.com/azurelinux/base/core:3.0" )
Functions ¶
func GenerateSigningKeyPair ¶
func RenderConfig ¶
func RenderConfig(templateValues ConfigTemplateValues, writer io.Writer) error
Types ¶
type ConfigTemplateValues ¶
type DataPlaneSigningKeys ¶
type DockerEnvironmentConfig ¶
type DockerEnvironmentConfig struct { Kind string `json:"kind"` EnvironmentName string `json:"environmentName"` DataPlanePort int `json:"dataPlanePort"` UserId string `json:"userId"` AllowedGroupId string `json:"allowedGroupId"` InstallationPath string `json:"installationPath"` PostgresImage string `json:"postgresImage"` MarinerImage string `json:"marinerImage"` ControlPlaneImage string `json:"controlPlaneImage"` DataPlaneImage string `json:"dataPlaneImage"` BufferSidecarImage string `json:"bufferSidecarImage"` GatewayImage string `json:"gatewayImage"` UseGateway *bool `json:"useGateway"` SigningKeys DataPlaneSigningKeys `json:"signingKeys"` InitialDatabaseVersion *int `json:"initialDatabaseVersion"` Network *NetworkConfig `json:"network"` }
func (*DockerEnvironmentConfig) GetGroupIdInt ¶
func (c *DockerEnvironmentConfig) GetGroupIdInt() int
func (*DockerEnvironmentConfig) GetUserIdInt ¶
func (c *DockerEnvironmentConfig) GetUserIdInt() int
type Installer ¶
type Installer struct { Config *DockerEnvironmentConfig // contains filtered or unexported fields }
func NewInstaller ¶
func NewInstaller(config *DockerEnvironmentConfig) (*Installer, error)
func (*Installer) ApplyMigrations ¶
func (*Installer) GetMigrationLogs ¶
func (*Installer) ListDatabaseVersions ¶
func (*Installer) QuickValidateConfig ¶
type NetworkConfig ¶
type NetworkConfig struct {
Subnet string `json:"subnet"`
}
Click to show internal directories.
Click to hide internal directories.