Documentation ¶
Index ¶
- Constants
- Variables
- func AssumeAgentEnvironmentProxy()
- func ExecuteCommandWithTimeout(timeout time.Duration, cmd string, args ...string) (string, error)
- func GetAwsSession(agentIdentity identity.IAgentIdentity, service string) (*session.Session, error)
- func GetSSMAgentVersion() (string, error)
- func GetUserRunningAgentProcess() (string, error)
- func IsAgentInstalledSnap() bool
- func IsOnPremRegistration() bool
- func RegisterDiagnosticQuery(diagnosticQuery DiagnosticQuery)
- type DiagnosticOutput
- type DiagnosticQuery
- type TableFormatter
Constants ¶
View Source
const ( DiagnosticsStatusSuccess = "Success" DiagnosticsStatusSkipped = "Skipped" DiagnosticsStatusFailed = "Failed" )
View Source
const (
// ExpectedServiceRunningUser is the user we expect the agent to be running as
ExpectedServiceRunningUser = "root"
)
Variables ¶
View Source
var DiagnosticQueries []DiagnosticQuery
Functions ¶
func AssumeAgentEnvironmentProxy ¶
func AssumeAgentEnvironmentProxy()
AssumeAgentEnvironmentProxy reads the amazon-ssm-agent environment variables and assumes the same proxy settings
func GetAwsSession ¶
GetAwsSession create a single session and shares the session cross diagnostics queries
func GetSSMAgentVersion ¶
func IsAgentInstalledSnap ¶
func IsAgentInstalledSnap() bool
func IsOnPremRegistration ¶
func IsOnPremRegistration() bool
func RegisterDiagnosticQuery ¶
func RegisterDiagnosticQuery(diagnosticQuery DiagnosticQuery)
RegisterDiagnosticQuery registers a new diagnostics query to be used by get-diagnostics
Types ¶
type DiagnosticOutput ¶
type DiagnosticQuery ¶
type DiagnosticQuery interface { Execute() DiagnosticOutput GetName() string GetPriority() int }
type TableFormatter ¶
type TableFormatter struct {
// contains filtered or unexported fields
}
func NewTableFormatter ¶
func NewTableFormatter(maxWidth int, executions []DiagnosticOutput) TableFormatter
func (*TableFormatter) String ¶
func (t *TableFormatter) String() string
Click to show internal directories.
Click to hide internal directories.