api

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package api implements the generic api command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdAPI

func NewCmdAPI(f *cmdutil.Factory, runF func(*Options) error) *cobra.Command

NewCmdAPI creates the generic api command.

Types

type Options

type Options struct {
	IO         *iostreams.IOStreams
	HttpClient func() (*http.Client, error)

	Endpoint  string
	Method    string
	MethodSet bool
	Headers   []string
	Input     string
}

Source Files

  • api.go

Jump to

Keyboard shortcuts

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