fx

package
v0.0.0-...-50ddb51 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package fx provides the fx module for the ipc component

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModuleInsecure

func ModuleInsecure() fxutil.Module

ModuleInsecure provides fx options for the IPC component suitable for specific commands (like 'flare' or 'diagnose') that must function even when the main Agent isn't running or IPC artifacts (like auth tokens) are missing or invalid.

The component constructor provided by this module *always* succeeds, unlike ModuleReadWrite or ModuleReadOnly which might fail if artifacts are absent or incorrect. However, the resulting IPC component instance might be non-functional or only partially functional, potentially leading to failures later, such as rejected connections during the IPC handshake if communication with the core Agent is attempted.

WARNING: This module is intended *only* for edge cases like diagnostics and flare generation. Using it in standard agent processes or commands that rely on stable IPC communication will likely lead to unexpected runtime errors or security issues.

func ModuleReadOnly

func ModuleReadOnly() fxutil.Module

ModuleReadOnly defines the fx options for this component for the one-shot commands. It will try to read the auth artifacts from the configured location. If they are not found, it will fail.

func ModuleReadWrite

func ModuleReadWrite() fxutil.Module

ModuleReadWrite defines the fx options for this component for the daemon commands. It will try to read the auth artifacts from the configured location. If they are not found, it will create them.

Types

This section is empty.

Jump to

Keyboard shortcuts

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