list

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 11 Imported by: 0

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