client

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a catalog client

func NewFromOptions

func NewFromOptions(options ServiceOptions) (*Client, error)

NewFromOptions creates a new Client from the supplied options

func (*Client) DoRequest

func (c *Client) DoRequest(path string, query map[string]string) ([]byte, int, error)

DoRequest sends a request to the catalog service

type ServiceOptions

type ServiceOptions struct {
	KubeconfigPath string
	Namespace      string
	ServiceName    string
	ServicePort    string
}

ServiceOptions holds options to connect to the catalog service

type StatusError

type StatusError struct {
	// contains filtered or unexported fields
}

StatusError represents an HTTP status error

func (*StatusError) Code

func (e *StatusError) Code() int32

Code returns the HTTP status code

func (*StatusError) Error

func (e *StatusError) Error() string

Error implements error

Jump to

Keyboard shortcuts

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