Documentation ¶
Index ¶
- Constants
- func GetOCIRegionTenancy() (region string, tenancy string, err error)
- func GetRealmDomain() (string, error)
- func InsecureRoundTripper(roundTripper http.RoundTripper) http.RoundTripper
- func NewCSProvider(configSource provider.ConfigSource, passphraseSource provider.PassPhraseSource) (provider.Provider, error)
- 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 CloudShellConfig
- type OracleProvider
- func (op *OracleProvider) APIClientv2() *clientv2.Fn
- func (op *OracleProvider) APIURL() *url.URL
- func (op *OracleProvider) UnavailableResources() []provider.FnResourceType
- func (op *OracleProvider) VersionClient() *version.Client
- func (op *OracleProvider) WrapCallTransport(roundTripper http.RoundTripper) http.RoundTripper
- type Response
Constants ¶
View Source
const ( CfgTenancyID = "oracle.tenancy-id" CfgProfile = "oracle.profile" CfgCompartmentID = "oracle.compartment-id" CfgDisableCerts = "oracle.disable-certs" CompartmentMetadata = "http://169.254.169.254/opc/v1/instance/compartmentId" FunctionsAPIURLTmpl = "https://functions.%s.oci.%s" OCI_CLI_PROFILE_ENV_VAR = "OCI_CLI_PROFILE" OCI_CLI_REGION_ENV_VAR = "OCI_CLI_REGION" OCI_CLI_TENANCY_ENV_VAR = "OCI_CLI_TENANCY" OCI_CLI_CONFIG_FILE_ENV_VAR = "OCI_CLI_CONFIG_FILE" OCI_CLI_DELEGATION_TOKEN_FILE_ENV_VAR = "OCI_CLI_DELEGATION_TOKEN_FILE" OCI_CLI_USER_ENV_VAR = "OCI_CLI_USER" OCI_CLI_FINGERPRINT_ENV_VAR = "OCI_CLI_FINGERPRINT" OCI_CLI_KEY_FILE_ENV_VAR = "OCI_CLI_KEY_FILE" )
View Source
const ( CfgUserID = "oracle.user-id" CfgFingerprint = "oracle.fingerprint" CfgKeyFile = "oracle.key-file" CfgPassPhrase = "oracle.pass-phrase" )
View Source
const (
DelegationTokenFileLocation = "/etc/oci/delegation_token"
)
Variables ¶
This section is empty.
Functions ¶
func GetOCIRegionTenancy ¶ added in v0.5.3
func GetRealmDomain ¶ added in v0.6.0
Retrieve second-level domain for the current realm from IMDS
func InsecureRoundTripper ¶
func InsecureRoundTripper(roundTripper http.RoundTripper) http.RoundTripper
Skip verification of insecure certs
func NewCSProvider ¶ added in v0.5.2
func NewCSProvider(configSource provider.ConfigSource, passphraseSource provider.PassPhraseSource) (provider.Provider, error)
Creates a new "oracle-cs" provider instance for use when Fn is deployed in an OCI CloudShell environment.
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 CloudShellConfig ¶ added in v0.5.2
type CloudShellConfig struct {
// contains filtered or unexported fields
}
Holds the three required config values in a CS env.
type OracleProvider ¶ added in v0.5.2
type OracleProvider struct { // FnApiUrl is the endpoint to use for API interactions FnApiUrl *url.URL //Signer performs auth operation Signer common.HTTPRequestSigner //A request interceptor can be used to customize the request before signing and dispatching Interceptor common.RequestInterceptor // DisableCerts indicates if server certificates should be ignored - TBD DisableCerts bool // CompartmentID is the ocid of the functions compartment ID for a given function CompartmentID string }
func (*OracleProvider) APIClientv2 ¶ added in v0.5.2
func (op *OracleProvider) APIClientv2() *clientv2.Fn
func (*OracleProvider) APIURL ¶ added in v0.5.2
func (op *OracleProvider) APIURL() *url.URL
func (*OracleProvider) UnavailableResources ¶ added in v0.5.2
func (op *OracleProvider) UnavailableResources() []provider.FnResourceType
func (*OracleProvider) VersionClient ¶ added in v0.5.2
func (op *OracleProvider) VersionClient() *version.Client
func (*OracleProvider) WrapCallTransport ¶ added in v0.5.2
func (op *OracleProvider) WrapCallTransport(roundTripper http.RoundTripper) http.RoundTripper
Click to show internal directories.
Click to hide internal directories.