oracle

package
v0.0.0-...-f3f062a Latest Latest
Warning

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

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

Documentation

Overview

Package oracle provides utilities to detect oracle cloud provider.

Index

Constants

This section is empty.

Variables

View Source
var (

	// CloudProviderName contains the inventory name of for EC2
	CloudProviderName = "Oracle"
)

declare these as vars not const to ease testing

Functions

func GetHostAliases

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

GetHostAliases returns the VM ID from the Oracle Metadata api

func GetHostCCRID

func GetHostCCRID(ctx context.Context) (string, error)

GetHostCCRID return the CCRID for the current instance

func GetInstanceType

func GetInstanceType(ctx context.Context) (string, error)

GetInstanceType returns the instance shape / type of the current Oracle Cloud instance

func GetNTPHosts

func GetNTPHosts(ctx context.Context) []string

GetNTPHosts returns the NTP hosts for Oracle if it is detected as the cloud provider, otherwise an nil array. Docs: https://docs.oracle.com/en-us/iaas/Content/Compute/Tasks/configuringntpservice.htm

func IsRunningOn

func IsRunningOn(ctx context.Context) bool

IsRunningOn returns true if the agent is running on Oracle

Types

This section is empty.

Jump to

Keyboard shortcuts

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