oci

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IMDSURL         = "http://169.254.169.254/opc/v2"
	IMDSInstanceURL = IMDSURL + "/instance/id"
	IMDSRegionURL   = IMDSURL + "/instance/region"
	IMDSTopologyURL = IMDSURL + "/host/rdmaTopologyData"
	IMDSHeaderKey   = "Authorization"
	IMDSHeaderVal   = "Bearer Oracle"
	IMDSHeader      = IMDSHeaderKey + ": " + IMDSHeaderVal
)
View Source
const (
	NAME = "oci"
)
View Source
const (
	NAME_IMDS = "oci-imds"
)
View Source
const (
	NAME_SIM = "oci-sim"
)

Variables

This section is empty.

Functions

func GetNodeAnnotations

func GetNodeAnnotations(ctx context.Context) (map[string]string, error)

func LoaderAPI

func LoaderAPI(ctx context.Context, config providers.Config) (providers.Provider, error)

func LoaderIMDS

func LoaderIMDS(ctx context.Context, _ providers.Config) (providers.Provider, error)

func LoaderSim

func LoaderSim(ctx context.Context, cfg providers.Config) (providers.Provider, error)

func NamedLoaderAPI

func NamedLoaderAPI() (string, providers.Loader)

func NamedLoaderIMDS

func NamedLoaderIMDS() (string, providers.Loader)

func NamedLoaderSim

func NamedLoaderSim() (string, providers.Loader)

func NewAPI

func NewAPI(clientFactory ClientFactory) *apiProvider

func NewSim

func NewSim(factory ClientFactory) *simProvider

Types

type ClientFactory

type ClientFactory func(region string, pageSize *int) (Client, error)

Jump to

Keyboard shortcuts

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