Documentation ¶
Index ¶
- Constants
- Variables
- func FormatSource(filename string, content []byte, fmtrName string, config interface{}, ...) ([]byte, error)
- func Info(which string) (err error)
- func Pull(fmtr string) error
- func Run(args []string, rflags flags.RootPflagpole, cflags flags.FmtFlagpole) (err error)
- func Start(fmtr string, replace bool) error
- func Stop(fmtr string) error
- func Test(fmtr string) error
- func UpdateFormatterStatus() error
- type Formatter
- type NoFormatterError
Constants ¶
View Source
const ContainerPrefix = "hof-fmt-"
Variables ¶
View Source
var ( FORMAT_DISABLED = false DOCKER_FORMAT_DISABLED = false )
View Source
var CONTAINER_REPO = "ghcr.io/hofstadter-io"
(CONSIDER) make this comma separated, so we can have fallback?
Functions ¶
func FormatSource ¶
func Run ¶
func Run(args []string, rflags flags.RootPflagpole, cflags flags.FmtFlagpole) (err error)
func UpdateFormatterStatus ¶ added in v0.6.8
func UpdateFormatterStatus() error
Types ¶
type Formatter ¶
type Formatter struct { // name, same as tools/% Name string Version string Available []string // Info Status string Running bool Ready bool Host string Port string Container *container.Container Images []*container.Image Config interface{} Default interface{} }
func (*Formatter) WaitForReady ¶ added in v0.6.8
type NoFormatterError ¶ added in v0.6.9
type NoFormatterError struct {
// contains filtered or unexported fields
}
func NewNoFormatterError ¶ added in v0.6.9
func NewNoFormatterError(filename, reason string) *NoFormatterError
func (*NoFormatterError) Error ¶ added in v0.6.9
func (e *NoFormatterError) Error() string
Click to show internal directories.
Click to hide internal directories.