client

package
Version: v0.0.0-...-367d749 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigProvider

type ConfigProvider interface {
	ClientConfig(serviceName string, cfgs ...*config.Config) config.Config
}

ConfigProvider provides a generic way for a service client to receive the ClientConfig without circular dependencies.

type Options

type Options struct {
	Config         config.Config
	CustomCABundle io.Reader
}

type PfClient

type PfClient struct {
	//request.Retryer
	metadata.ClientInfo

	Config config.Config
}

A Client implements the base client request and response handling used by all service clients.

func New

func New(cfg config.Config, info metadata.ClientInfo) *PfClient

func (*PfClient) NewRequest

func (c *PfClient) NewRequest(operation *request.Operation, params interface{}, data interface{}) *request.Request

NewRequest returns a new Request pointer for the service API operation and parameters.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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