oci

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 21 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, *httperr.Error)

func LoaderIMDS

func LoaderIMDS(_ context.Context, config providers.Config) (providers.Provider, *httperr.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, trimTiers int) *apiProvider

func NewSim

func NewSim(factory ClientFactory, trimTiers int) *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