cmds

package
v0.0.0-...-f271d84 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

README

Package cloudeng.io/glean/gleancli/cmds

import cloudeng.io/glean/gleancli/cmds

Functions

Func MustNew
func MustNew(options Options) *subcmd.CommandSetYAML

Types

Type BulkFlags
type BulkFlags struct {
	index.BulkFlags
}
Type Crawl
type Crawl struct {
	Options
}
Methods
func (cmd *Crawl) Run(ctx context.Context, values interface{}, args []string) error
Type Datasources
type Datasources struct {
	Options
	// contains filtered or unexported fields
}
Methods
func (ds Datasources) Download(ctx context.Context, values any, args []string) error
func (ds Datasources) ExplainConfig(_ context.Context, _ interface{}, _ []string) error
func (ds Datasources) Register(ctx context.Context, values interface{}, args []string) error
func (ds Datasources) ShowConfig(ctx context.Context, _ interface{}, args []string) error
Type DeleteAllFlags
type DeleteAllFlags struct {
	index.DeleteAllFlags
}
Type DeleteFlags
type DeleteFlags struct {
	index.DeleteFlags
}
Type DownloadFlags
type DownloadFlags struct {
	config.FileFlags
}
Type Index
type Index struct {
	Options
	// contains filtered or unexported fields
}
Type LocalKeysAndLogging
type LocalKeysAndLogging struct {
	LocalKeysAndLoggingFlags
}
Methods
func (lf *LocalKeysAndLogging) InitContext(ctx context.Context) (context.Context, error)
func (lf *LocalKeysAndLogging) RegisterGlobalFlags(cmdset *subcmd.CommandSetYAML)
Type LocalKeysAndLoggingFlags
type LocalKeysAndLoggingFlags struct {
	cmdutil.LoggingFlags
	LocalKeyFile string `subcmd:"local-key-file,,'local cleartext file to use for retrieving keys'"`
}
Type Options
type Options struct {
	extensions.StaticResources

	extensions.DynamicResources

	Extensions    []extensions.Extension
	APIExtensions []extensions.Extension

	PlatformSpecific PlatformSpecificConfig
}
Type PlatformSpecificConfig
type PlatformSpecificConfig interface {
	RegisterGlobalFlags(*subcmd.CommandSetYAML)
	InitContext(context.Context) (context.Context, error)
}
Type ProcessNowFlags
type ProcessNowFlags struct {
	index.ProcessNowFlags
}
Type QueryFlags
type QueryFlags struct {
	index.QueryFlags
}
Type RegisterFlags
type RegisterFlags struct {
	config.FileFlags
}
Type StatsFlags
type StatsFlags struct {
	index.StatsFlags
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustNew

func MustNew(options Options) *subcmd.CommandSetYAML

Types

type BulkFlags

type BulkFlags struct {
	index.BulkFlags
}

type Crawl

type Crawl struct {
	Options
}

func (*Crawl) Run

func (cmd *Crawl) Run(ctx context.Context, values interface{}, args []string) error

type Datasources

type Datasources struct {
	Options
	// contains filtered or unexported fields
}

func (Datasources) Download

func (ds Datasources) Download(ctx context.Context, values any, args []string) error

func (Datasources) ExplainConfig

func (ds Datasources) ExplainConfig(_ context.Context, _ interface{}, _ []string) error

func (Datasources) Register

func (ds Datasources) Register(ctx context.Context, values interface{}, args []string) error

func (Datasources) ShowConfig

func (ds Datasources) ShowConfig(ctx context.Context, _ interface{}, args []string) error

type DeleteAllFlags

type DeleteAllFlags struct {
	index.DeleteAllFlags
}

type DeleteFlags

type DeleteFlags struct {
	index.DeleteFlags
}

type DownloadFlags

type DownloadFlags struct {
	config.FileFlags
}

type Index

type Index struct {
	Options
	// contains filtered or unexported fields
}

type LocalKeysAndLogging

type LocalKeysAndLogging struct {
	LocalKeysAndLoggingFlags
}

func (*LocalKeysAndLogging) InitContext

func (lf *LocalKeysAndLogging) InitContext(ctx context.Context) (context.Context, error)

func (*LocalKeysAndLogging) RegisterGlobalFlags

func (lf *LocalKeysAndLogging) RegisterGlobalFlags(cmdset *subcmd.CommandSetYAML)

type LocalKeysAndLoggingFlags

type LocalKeysAndLoggingFlags struct {
	cmdutil.LoggingFlags
	LocalKeyFile string `subcmd:"local-key-file,,'local cleartext file to use for retrieving keys'"`
}

type Options

type Options struct {
	extensions.StaticResources

	extensions.DynamicResources

	Extensions    []extensions.Extension
	APIExtensions []extensions.Extension

	PlatformSpecific PlatformSpecificConfig
}

type PlatformSpecificConfig

type PlatformSpecificConfig interface {
	RegisterGlobalFlags(*subcmd.CommandSetYAML)
	InitContext(context.Context) (context.Context, error)
}

type ProcessNowFlags

type ProcessNowFlags struct {
	index.ProcessNowFlags
}

type QueryFlags

type QueryFlags struct {
	index.QueryFlags
}

type RegisterFlags

type RegisterFlags struct {
	config.FileFlags
}

type StatsFlags

type StatsFlags struct {
	index.StatsFlags
}

Jump to

Keyboard shortcuts

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