ocisign

package
v0.5.5-alpha01 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2026 License: MIT Imports: 4 Imported by: 0

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

type Transport interface {
	RoundTrip(req *http.Request) (*http.Response, error)
}

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL