fmt

package
v0.6.8-mod.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: BSD-3-Clause Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const ContainerPrefix = "hof-fmt-"

Variables

View Source
var DOCKER_FORMAT_DISABLED = false
View Source
var FORMAT_DISABLED = false

Functions

func FormatSource

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

func Info

func Info(which string) (err error)

func Init

func Init() error

func Pull

func Pull(fmtr string) error

func Run

func Run(args []string, rflags flags.RootPflagpole, cflags flags.FmtFlagpole) (err 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