Documentation ¶
Index ¶
- Constants
- func InsecureRoundTripper(roundTripper http.RoundTripper) http.RoundTripper
- func NewFromConfig(configSource provider.ConfigSource, passphraseSource provider.PassPhraseSource) (provider.Provider, error)
- func NewIPProvider(configSource provider.ConfigSource, passphraseSource provider.PassPhraseSource) (provider.Provider, error)
- type Annotations
- type Provider
- func (op *Provider) APIClient() *clientv2.Fn
- func (op *Provider) APIClientv2() *clientv2.Fn
- func (op *Provider) APIURL() *url.URL
- func (p *Provider) UnavailableResources() []provider.FnResourceType
- func (op *Provider) VersionClient() *version.Client
- func (op *Provider) WrapCallTransport(roundTripper http.RoundTripper) http.RoundTripper
- type Response
Constants ¶
View Source
const ( CfgTenancyID = "oracle.tenancy-id" CfgUserID = "oracle.user-id" CfgFingerprint = "oracle.fingerprint" CfgKeyFile = "oracle.key-file" CfgPassPhrase = "oracle.pass-phrase" CfgProfile = "oracle.profile" CfgCompartmentID = "oracle.compartment-id" CfgDisableCerts = "oracle.disable-certs" CompartmentMetadata = "http://169.254.169.254/opc/v1/instance/compartmentId" )
Variables ¶
This section is empty.
Functions ¶
func InsecureRoundTripper ¶
func InsecureRoundTripper(roundTripper http.RoundTripper) http.RoundTripper
Skip verification of insecure certs
func NewFromConfig ¶
func NewFromConfig(configSource provider.ConfigSource, passphraseSource provider.PassPhraseSource) (provider.Provider, error)
func NewIPProvider ¶
func NewIPProvider(configSource provider.ConfigSource, passphraseSource provider.PassPhraseSource) (provider.Provider, error)
Types ¶
type Annotations ¶
type Provider ¶
type Provider struct { // FnApiUrl is the endpoint to use for API interactions FnApiUrl *url.URL // FnCallUrl is the endpoint used for call interactions FnCallUrl *url.URL // The key provider can be a user or instance-principal-based one KP oci.KeyProvider //DisableCerts indicates if server certificates should be ignored DisableCerts bool //CompartmentID is the ocid of the functions compartment ID for a given function CompartmentID string // TransportMutator modifies the underpinning transport during the construction of APIClientv2 TransportMutator func(t http.RoundTripper) http.RoundTripper }
Provider : Oracle Authentication provider
func (*Provider) APIClientv2 ¶
func (*Provider) UnavailableResources ¶
func (p *Provider) UnavailableResources() []provider.FnResourceType
func (*Provider) VersionClient ¶
func (*Provider) WrapCallTransport ¶
func (op *Provider) WrapCallTransport(roundTripper http.RoundTripper) http.RoundTripper
Click to show internal directories.
Click to hide internal directories.