oracle

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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