Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigurationProvider ¶
type ConfigurationProvider = common.ConfigurationProvider
ConfigurationProvider aliases the official SDK credentials surface so callers need not import the SDK to compose a signing transport.
func NewFileConfigurationProvider ¶
func NewFileConfigurationProvider(configFilePath, profile, passphrase string) (ConfigurationProvider, error)
NewFileConfigurationProvider builds a provider from an OCI config file (the ~/.oci/config convention every OCI tool shares; `~` is expanded by the SDK), so semantics match the OCI CLI/SDK ecosystem exactly.
func NewRawConfigurationProvider ¶
func NewRawConfigurationProvider( tenancyOCID, userOCID, region, fingerprint, privateKeyPEM, passphrase string, ) ConfigurationProvider
NewRawConfigurationProvider builds a provider from explicit values, twelve-factor style. The region does not participate in signing and may be empty. An empty passphrase means an unencrypted key.
type Transport ¶
Transport mirrors the awssign Transport seam: an http.RoundTripper decorator.
func NewOciSignTransport ¶
func NewOciSignTransport( underlyingTransport http.RoundTripper, provider ConfigurationProvider, ) (Transport, error)
NewOciSignTransport builds a signing transport around the supplied configuration provider, using the SDK's default signer (three generic headers on all requests; content-length, content-type and x-content-sha256 additionally on POST/PUT/PATCH).