vantage-agent

Vantage Agent

Channel Revision Published Runs on
latest/edge 14 07 Aug 2025
Ubuntu 24.04
juju deploy vantage-agent --channel edge
Show information

Platform:

Ubuntu
24.04

charms.vantage_agent.v0.agent_snapper

Agent Snapper Library

This library provides the AgentSnapper class that provides all the event handling and operations logic needed to run a Snapped Vantage Agent within a charm. This allows the Charm for a Snapped Vantage Agent to be very minimalist and avoid repeating a lot of boilerplate code.


class AgentSnapperError

class SnapperSysCallError

class AgentSnapper

Methods

AgentSnapper. __init__( self , charm: CharmBase , snap_name: str )

AgentSnapper. handle_install( self , event: InstallEvent )

AgentSnapper. handle_config_changed( self , event: ConfigChangedEvent )

AgentSnapper. handle_start( self , event: StartEvent )

AgentSnapper. handle_stop( self , event: StopEvent )

AgentSnapper. handle_remove( self , event: RemoveEvent )

AgentSnapper. is_snap_installed( self )

AgentSnapper. is_snap_active( self )

AgentSnapper. install_snap( self )

AgentSnapper. configure_snap( self )

AgentSnapper. clear_snap_config( self )

AgentSnapper. get_snap_config( self )

AgentSnapper. remove_snap( self )

AgentSnapper. run_snap_service( self , service: str )