Documentation
¶
Index ¶
- func NewFromConfig(configSource provider.ConfigSource, _ provider.PassPhraseSource) (provider.Provider, error)
- type Provider
- func (dp *Provider) APIClient() *client.Fn
- func (dp *Provider) APIClientv2() *clientv2.Fn
- func (dp *Provider) APIURL() *url.URL
- func (dp *Provider) CallURL(appName string) (*url.URL, error)
- func (op *Provider) VersionClient() *version.Client
- func (dp *Provider) WrapCallTransport(t http.RoundTripper) http.RoundTripper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFromConfig ¶
func NewFromConfig(configSource provider.ConfigSource, _ provider.PassPhraseSource) (provider.Provider, error)
NewFromConfig creates a default provider that does un-authenticated calls to
Types ¶
type Provider ¶
type Provider struct { // Optional token to add as bearer token to auth calls Token string // API url to use for FN API interactions FnApiUrl *url.URL // URL to use for FN call interactions CallUrl *url.URL }
Provider is the default Auth provider
func (*Provider) APIClientv2 ¶
func (*Provider) VersionClient ¶
func (*Provider) WrapCallTransport ¶
func (dp *Provider) WrapCallTransport(t http.RoundTripper) http.RoundTripper
Click to show internal directories.
Click to hide internal directories.