client

package
v0.0.0-...-af0b780 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0, Apache-2.0 Imports: 30 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.YugabyteDBAnywhereAPIs
	SwaggerAuth  runtime.ClientAuthInfoWriter
	// contains filtered or unexported fields
}

func New

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

func (*YugawareClient) APIToken

func (c *YugawareClient) APIToken(token string) *YugawareClient

func (*YugawareClient) Connect

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

func (*YugawareClient) CustomerUUID

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

func (*YugawareClient) GetCertByIdentifier

func (c *YugawareClient) GetCertByIdentifier(identifier string) (*models.CertificateInfo, error)

func (*YugawareClient) GetProviderByIdentifier

func (c *YugawareClient) GetProviderByIdentifier(identifier string) (*models.Provider, error)

func (*YugawareClient) GetStorageConfigByIdentifier

func (c *YugawareClient) GetStorageConfigByIdentifier(identifier string) (*models.CustomerConfigUI, error)

func (*YugawareClient) GetUniverseByIdentifier

func (c *YugawareClient) GetUniverseByIdentifier(identifier string) (*models.UniverseResp, error)

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