Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMissingClient is returned when a connector is created without a client. ErrMissingClient = errors.New("missing client") // ErrMissingProvider is returned when a connector is created without a provider. ErrMissingProvider = errors.New("missing provider") )
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct { ProviderInfo *providers.ProviderInfo Client *common.JSONHTTPClient // contains filtered or unexported fields }
func NewConnector ¶
func (*Connector) HTTPClient ¶
func (c *Connector) HTTPClient() *common.HTTPClient
func (*Connector) JSONHTTPClient ¶
func (c *Connector) JSONHTTPClient() *common.JSONHTTPClient
type Option ¶
type Option func(*connectorParams)
func WithAuthenticatedClient ¶
func WithAuthenticatedClient(client common.AuthenticatedHTTPClient) Option
WithAuthenticatedClient sets the http client to use for the connector. Its usage is optional.
func WithCatalogSubstitutions ¶
WithCatalogSubstitutions sets the provider values to use while making substitutions & reading from providers.yaml. If the provider values are not set, the connector will use error out.
Click to show internal directories.
Click to hide internal directories.