tokens

package
v0.4.11 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 16 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

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

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

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

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

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