dump

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const DateFormat = "2006-01-02_150405"

Variables

View Source
var FilenameTemplate = fmt.Sprintf("{{ .Namespace }}_{{ .Date.Format %#v }}{{ .Ext }}", DateFormat)

Functions

func HelpFilename

func HelpFilename() string

Types

type Dump

type Dump struct {
	config.Dump `mapstructure:",squash"`
}

func (Dump) Run

func (action Dump) Run(ctx context.Context) (err error)

type Filename

type Filename struct {
	Namespace string
	Ext       string
	Date      time.Time
}

func (Filename) Generate

func (vars Filename) Generate() (string, error)

Jump to

Keyboard shortcuts

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