fmt

package
v0.6.7-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: BSD-3-Clause Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const ContainerPrefix = "hof-fmt-"

Variables

This section is empty.

Functions

func FormatSource

func FormatSource(filename string, content []byte, fmtrName string, config interface{}, formatData bool) ([]byte, error)

func GracefulInit

func GracefulInit() error

func Info

func Info(which string) (err error)

func Pull

func Pull(fmtr string) error

func Run

func Run(args []string, rflags flags.RootPflagpole, cflags flags.FmtFlagpole) error

func Start

func Start(fmtr string) error

func Stop

func Stop(fmtr string) error

Types

type Formatter

type Formatter struct {
	// name, same as tools/%
	Name      string
	Version   string
	Available []string

	// Info
	Running   bool
	Port      string
	Container *types.Container
	Images    []*types.ImageSummary

	Config  interface{}
	Default interface{}
}

Jump to

Keyboard shortcuts

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