Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) Command(ctx context.Context, options ...curl.Option) cmdutils.Cmd
- func (c *Client) GetInputSnapshot(ctx context.Context) ([]interface{}, error)
- func (c *Client) InputSnapshotCmd(ctx context.Context) cmdutils.Cmd
- func (c *Client) RequestPathCmd(ctx context.Context, path string) cmdutils.Cmd
- func (c *Client) RunCommand(ctx context.Context, options ...curl.Option) error
- func (c *Client) WithCurlOptions(options ...curl.Option) *Client
- func (c *Client) WithReceiver(receiver io.Writer) *Client
Constants ¶
const ( InputSnapshotPath = "/snapshots/input" DefaultAdminPort = 9091 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a utility for executing requests against the Gloo Admin API The Admin API handlers can be found at: /projects/gloo/pkg/servers/admin
func NewClient ¶
func NewClient() *Client
NewClient returns an implementation of the admincli.Client
func (*Client) Command ¶
Command returns a curl Command, using the provided curl.Option as well as the client.curlOptions
func (*Client) GetInputSnapshot ¶
GetInputSnapshot returns the data that is available at the input snapshot endpoint
func (*Client) InputSnapshotCmd ¶
InputSnapshotCmd returns the cmdutils.Cmd that can be run, and will execute a request against the Input Snapshot path
func (*Client) RequestPathCmd ¶
RequestPathCmd returns the cmdutils.Cmd that can be run, and will execute a request against the provided path
func (*Client) RunCommand ¶
RunCommand executes a curl Command, using the provided curl.Option as well as the client.curlOptions
func (*Client) WithCurlOptions ¶
WithCurlOptions sets the default set of curl.Option that will be used by default with the cmdutils.Cmd created by the Client