oracle

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package oracle provides Oracle Cloud Infrastructure (OCI) environment detection and metadata retrieval using the OCI Instance Metadata Service (IMDS) v2.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scout

type Scout struct {
	// contains filtered or unexported fields
}

Scout detects and describes an OCI environment.

func NewScout

func NewScout() *Scout

NewScout creates a new OCI metadata scout.

func (*Scout) Detect

func (s *Scout) Detect(ctx context.Context) (types.CloudProvider, error)

Detect determines whether the current environment is running on OCI by querying the Instance Metadata Service. Network failures, non-200 responses, and unparseable bodies are treated as "not OCI" rather than errors.

func (*Scout) EnvironmentInfo

func (s *Scout) EnvironmentInfo(ctx context.Context) (*types.EnvironmentInfo, error)

EnvironmentInfo retrieves OCI environment information from the Instance Metadata Service.

Jump to

Keyboard shortcuts

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