tokens

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCommands

func RegisterCommands(rootCmd *cobra.Command)

func RegisterTokenCommands

func RegisterTokenCommands(tokensCmd *cobra.Command)

Types

type CountCommand

type CountCommand struct {
	*cmds.CommandDescription
}

func NewCountCommand

func NewCountCommand() (*CountCommand, error)

func (*CountCommand) RunIntoWriter

func (cc *CountCommand) RunIntoWriter(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	w io.Writer,
) error

type CountSettings added in v0.3.0

type CountSettings struct {
	Model string `glazed.parameter:"model"`
	Codec string `glazed.parameter:"codec"`
	Input string `glazed.parameter:"input"`
}

type DecodeCommand

type DecodeCommand struct {
	*cmds.CommandDescription
}

func NewDecodeCommand

func NewDecodeCommand() (*DecodeCommand, error)

func (*DecodeCommand) RunIntoWriter

func (d *DecodeCommand) RunIntoWriter(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	w io.Writer,
) error

type DecodeSettings added in v0.3.0

type DecodeSettings struct {
	Model string `glazed.parameter:"model"`
	Codec string `glazed.parameter:"codec"`
	Input string `glazed.parameter:"input"`
}

type EncodeCommand

type EncodeCommand struct {
	*cmds.CommandDescription
}

func NewEncodeCommand

func NewEncodeCommand() (*EncodeCommand, error)

func (*EncodeCommand) RunIntoWriter

func (cmd *EncodeCommand) RunIntoWriter(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	w io.Writer,
) error

type EncodeSettings added in v0.3.0

type EncodeSettings struct {
	Model string `glazed.parameter:"model"`
	Codec string `glazed.parameter:"codec"`
	Input string `glazed.parameter:"input"`
}

type ListCodecsCommand

type ListCodecsCommand struct {
	*cmds.CommandDescription
}

func NewListCodecsCommand

func NewListCodecsCommand() (*ListCodecsCommand, error)

func (*ListCodecsCommand) RunIntoGlazeProcessor added in v0.3.0

func (l *ListCodecsCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	gp middlewares.Processor,
) error

type ListModelsCommand

type ListModelsCommand struct {
	*cmds.CommandDescription
}

func NewListModelsCommand

func NewListModelsCommand() (*ListModelsCommand, error)

func (*ListModelsCommand) RunIntoGlazeProcessor added in v0.3.0

func (c *ListModelsCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	gp middlewares.Processor,
) error

Jump to

Keyboard shortcuts

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