cmd

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialClientCommands added in v0.2.9

type CredentialClientCommands struct {
	CredentialList   CredentialListCmd   `cmd:"" name:"credentials" help:"List credential keys." group:"CREDENTIAL"`
	CredentialGet    CredentialGetCmd    `cmd:"" name:"credential-get" help:"Get a credential by key." group:"CREDENTIAL"`
	CredentialCreate CredentialCreateCmd `cmd:"" name:"credential-set" help:"Create or update a credential from stdin." group:"CREDENTIAL"`
	CredentialDelete CredentialDeleteCmd `cmd:"" name:"credential-delete" help:"Delete a credential by key." group:"CREDENTIAL"`
}

type CredentialCreateCmd added in v0.2.9

type CredentialCreateCmd struct {
	Json bool   `name:"json" help:"Interpret the credential value as JSON." negatable:""`
	Key  string `arg:"" name:"key" help:"Credential key (identifier)."`
}

func (*CredentialCreateCmd) Run added in v0.2.9

func (cmd *CredentialCreateCmd) Run(ctx server.Cmd) error

type CredentialDeleteCmd added in v0.2.9

type CredentialDeleteCmd struct {
	Key string `arg:"" name:"key" help:"Credential key (identifier)."`
}

func (*CredentialDeleteCmd) Run added in v0.2.9

func (cmd *CredentialDeleteCmd) Run(ctx server.Cmd) error

type CredentialGetCmd added in v0.2.9

type CredentialGetCmd struct {
	Json bool   `name:"json" help:"Output string credentials as JSON strings." negatable:""`
	Key  string `arg:"" name:"key" help:"Credential key (identifier)."`
}

func (*CredentialGetCmd) Run added in v0.2.9

func (cmd *CredentialGetCmd) Run(ctx server.Cmd) error

type CredentialListCmd added in v0.2.9

type CredentialListCmd struct {
	schema.CredentialListRequest
}

func (*CredentialListCmd) Run added in v0.2.9

func (cmd *CredentialListCmd) Run(ctx server.Cmd) error

type LLMProviderClientCommands added in v0.2.10

type LLMProviderClientCommands struct {
	LLMProviderCreate LLMProviderCreateCmd `cmd:"" name:"llm-create" help:"Create or update an LLM provider." group:"LLM PROVIDER"`
}

type LLMProviderCreateCmd added in v0.2.10

type LLMProviderCreateCmd struct {
	schema.LLMProviderCreate
}

func (*LLMProviderCreateCmd) Run added in v0.2.10

func (cmd *LLMProviderCreateCmd) Run(ctx server.Cmd) error

type MetadataClientCommands added in v0.2.3

type MetadataClientCommands struct {
	Metadata MetadataCmd `cmd:"" name:"metadata" help:"Extract metadata for a file using the server endpoint." group:"METADATA"`
}

type MetadataCmd added in v0.2.3

type MetadataCmd struct {
	Path string `arg:"" name:"path" type:"file" help:"Path to the local file."`
}

func (*MetadataCmd) Run added in v0.2.3

func (cmd *MetadataCmd) Run(ctx server.Cmd) error

type ObjectClientCommands added in v0.2.0

type ObjectClientCommands struct {
	ObjectList ObjectListCmd `cmd:"" name:"objects" help:"List server objects." group:"OBJECT"`
}

type ObjectListCmd added in v0.2.0

type ObjectListCmd struct {
	schema.ObjectListRequest
}

func (*ObjectListCmd) Run added in v0.2.0

func (cmd *ObjectListCmd) Run(ctx server.Cmd) error

type RunServer added in v0.2.0

type RunServer struct {
	pgcmd.PostgresFlags
	servercmd.RunServer

	// Other flags
	Indexer     bool     `long:"indexer" help:"Run this instance as an indexer of content" default:"false" negatable:""`
	Passphrases []string `name:"passphrase" env:"${ENV_NAME}_PASSPHRASES" help:"One or more passphrases used to encrypt credentials."`
}

func (*RunServer) Run added in v0.2.0

func (runner *RunServer) Run(ctx server.Cmd) error

func (*RunServer) WithManager added in v0.2.0

func (runner *RunServer) WithManager(ctx server.Cmd, conn pg.PoolConn, fn func(*manager.Manager) error) error

type SearchClientCommands added in v0.2.10

type SearchClientCommands struct {
	Search SearchCmd `cmd:"" name:"search" help:"Search server objects." group:"SEARCH"`
}

type SearchCmd added in v0.2.10

type SearchCmd struct {
	schema.SearchListRequest
}

func (*SearchCmd) Run added in v0.2.10

func (cmd *SearchCmd) Run(ctx server.Cmd) error

type ServerCommands

type ServerCommands struct {
	RunServer RunServer `cmd:"" name:"run" help:"Run the filer server." group:"SERVER"`
	servercmd.OpenAPICommands
}

type VolumeClientCommands added in v0.2.0

type VolumeClientCommands struct {
	VolumeList   VolumeListCmd   `cmd:"" name:"volumes" help:"List server volumes." group:"VOLUME"`
	VolumeCreate VolumeCreateCmd `cmd:"" name:"volume-create" help:"Create a new volume." group:"VOLUME"`
}

type VolumeCreateCmd added in v0.2.0

type VolumeCreateCmd struct {
	schema.VolumeCreate
}

func (*VolumeCreateCmd) Run added in v0.2.0

func (cmd *VolumeCreateCmd) Run(ctx server.Cmd) error

type VolumeListCmd added in v0.2.7

type VolumeListCmd struct {
	schema.VolumeListRequest
}

func (*VolumeListCmd) Run added in v0.2.7

func (cmd *VolumeListCmd) Run(ctx server.Cmd) error

Jump to

Keyboard shortcuts

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