tools

package
v0.0.0-...-4a00286 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonWriter

type JsonWriter struct{}

func NewJsonWriter

func NewJsonWriter() *JsonWriter

func (*JsonWriter) Write

func (w *JsonWriter) Write(tool models.Tool)

func (*JsonWriter) WriteAll

func (w *JsonWriter) WriteAll(tools []models.Tool)

type Reader

type Reader interface {
	GetAll() ([]models.Tool, error)
	Get(id string) (models.Tool, error)
}

type RuntimeReader

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

func NewRuntimeReader

func NewRuntimeReader(runtimePath string) *RuntimeReader

func (*RuntimeReader) Get

func (r *RuntimeReader) Get(id string) (models.Tool, error)

func (*RuntimeReader) GetAll

func (r *RuntimeReader) GetAll() ([]models.Tool, error)

type TableWriter

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

func NewTableWriter

func NewTableWriter() *TableWriter

func (*TableWriter) Write

func (w *TableWriter) Write(tool models.Tool)

func (*TableWriter) WriteAll

func (w *TableWriter) WriteAll(tools []models.Tool)

type Writer

type Writer interface {
	WriteAll([]models.Tool)
	Write(models.Tool)
}

Jump to

Keyboard shortcuts

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