client

package
v0.0.0-...-6504949 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	Log logr.Logger
	// contains filtered or unexported fields
}

func NewRequest

func NewRequest(ctx context.Context, log logr.Logger, session *http.Client, baseURI *url.URL, authToken string, csrfToken string) *Request

func (*Request) DecodeResponseInto

func (r *Request) DecodeResponseInto(message interface{}) *Request

func (*Request) Do

func (r *Request) Do() (*YugawareResponse, error)

func (*Request) Get

func (r *Request) Get() *Request

func (*Request) Path

func (r *Request) Path(path string) *Request

func (*Request) Post

func (r *Request) Post() *Request

func (*Request) RequestBody

func (r *Request) RequestBody(message interface{}) *Request

type TLSOptions

type TLSOptions struct {
	SkipHostVerification bool
	CaCertPath           string
	CertPath             string
	KeyPath              string
}

type YugawareClient

type YugawareClient struct {
	Ctx context.Context

	Log logr.Logger

	PlatformAPIs *swaggerclient.YugabytePlatformAPIs
	SwaggerAuth  runtime.ClientAuthInfoWriter
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, log logr.Logger, hostname string) *YugawareClient

func (*YugawareClient) Connect

func (c *YugawareClient) Connect() (*YugawareClient, error)

func (*YugawareClient) CustomerCount

func (c *YugawareClient) CustomerCount() (*yugaware.CustomerCountResponse, error)

func (*YugawareClient) CustomerUUID

func (c *YugawareClient) CustomerUUID() strfmt.UUID

func (*YugawareClient) Login

func (*YugawareClient) Logout

func (c *YugawareClient) Logout() error

func (*YugawareClient) RegisterYugaware

func (*YugawareClient) Session

func (c *YugawareClient) Session() *http.Client

func (*YugawareClient) TLSOptions

func (c *YugawareClient) TLSOptions(opts *TLSOptions) *YugawareClient

func (*YugawareClient) TimeoutSeconds

func (c *YugawareClient) TimeoutSeconds(timeout int) *YugawareClient

type YugawareResponse

type YugawareResponse struct {
	Response *http.Response
	Body     []byte
}

Jump to

Keyboard shortcuts

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