refresh

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package refresh restores a configured dump into a named target database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	DumpURI   string
	Confirm   string
	DryRun    bool
	Obfuscate bool
}

Options controls one target refresh request.

type Result

type Result struct {
	Target     string `json:"target"`
	Engine     string `json:"engine"`
	DumpPath   string `json:"dump_path,omitempty"`
	DryRun     bool   `json:"dry_run"`
	Cleaned    bool   `json:"cleaned"`
	Restored   bool   `json:"restored"`
	Obfuscated bool   `json:"obfuscated"`
}

Result summarizes a target refresh.

type Service

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

Service refreshes configured target databases.

func New

func New(cfg *config.Config, events *store.EventStore, docker *client.Client) *Service

func (*Service) Refresh

func (s *Service) Refresh(ctx context.Context, name string, opts Options) (*Result, error)

Jump to

Keyboard shortcuts

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