ssmconnectionchannel

package
v0.0.0-...-176c957 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package ssmconnectionchannel contains logic for tracking the Agent's primary upstream connection channel and its various states.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseMDSSwitchChannel

func CloseMDSSwitchChannel()

CloseMDSSwitchChannel close MDS switch golang channel

func GetConnectionChannel

func GetConnectionChannel() contracts.SSMConnectionChannel

GetConnectionChannel returns the SSM Connection channel(MDS or MGS)

func GetMDSSwitchChannel

func GetMDSSwitchChannel() chan bool

GetMDSSwitchChannel returns the golang channel containing values to switch ON or OFF MDS

func SetConnectionChannel

func SetConnectionChannel(context context.T, state MGSState)

SetConnectionChannel sets the Upstream SSM connection channel(MDS or MGS)

Types

type MGSState

type MGSState string

MGSState shows the current MGS connection state

const (
	// MGSSuccess denotes that the current MGS connection state is successful
	MGSSuccess MGSState = "MGSSuccess"

	// MGSFailed denotes that the current MGS connection state has failed
	MGSFailed MGSState = "MGSFailed"

	// MGSFailedDueToAccessDenied denotes that the current MGS connection state threw access denied
	MGSFailedDueToAccessDenied MGSState = "MGSFailedDueToAccessDenied"
)

Jump to

Keyboard shortcuts

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