fargate

package
v0.0.0-...-c4caace Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEKSFargateNodename

func GetEKSFargateNodename() (string, error)

GetEKSFargateNodename returns the node name in EKS Fargate

func GetFargateHost

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

GetFargateHost returns the Fargate hostname used by the core Agent for Fargate

func IsEKSFargateInstance

func IsEKSFargateInstance() bool

IsEKSFargateInstance returns whether the Agent is running in EKS Fargate.

func IsFargateInstance

func IsFargateInstance(ctx context.Context) bool

IsFargateInstance returns whether the Agent is running in Fargate.

Types

type OrchestratorName

type OrchestratorName string

OrchestratorName covers the possible platform names where Fargate can run

const (
	// ECS represents AWS ECS
	ECS OrchestratorName = "ECS"
	// EKS represents AWS EKS
	EKS OrchestratorName = "EKS"
	// Unknown is used when we cannot retrieve the orchestrator
	Unknown OrchestratorName = "Unknown"
)

func GetOrchestrator

func GetOrchestrator(ctx context.Context) OrchestratorName

GetOrchestrator returns whether the Agent is running on ECS or EKS.

Jump to

Keyboard shortcuts

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