list

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewListCmd

func NewListCmd(f *cmdutil.Factory, runF func(*ListOptions) error) *cobra.Command

NewListCmd creates and returns a list command for API Keys.

Types

type JSONKey added in v1.3.0

type JSONKey struct {
	ACL                    []string              `json:"acl"`
	CreatedAt              time.Time             `json:"createdAt"`
	Description            string                `json:"description"`
	Indexes                []string              `json:"indexes"`
	MaxQueriesPerIPPerHour int                   `json:"maxQueriesPerIPPerHour"`
	MaxHitsPerQuery        int                   `json:"maxHitsPerQuery"`
	Referers               []string              `json:"referers"`
	QueryParameters        search.KeyQueryParams `json:"queryParameters"`
	Validity               time.Duration         `json:"validity"`
	Value                  string                `json:"value"`
}

JSONKey is the same as search.Key without omitting values

type ListOptions

type ListOptions struct {
	Config config.IConfig
	IO     *iostreams.IOStreams

	SearchClient func() (*search.Client, error)

	PrintFlags *cmdutil.PrintFlags
}

Jump to

Keyboard shortcuts

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