Class: Pvectl::Commands::FeatureContainer

Inherits:
Object
  • Object
show all
Includes:
FeatureCommand
Defined in:
lib/pvectl/commands/feature_container.rb,
sig/pvectl/commands/feature_container.rbs

Overview

Handler for the pvectl feature ct command.

Queries whether a Proxmox feature (clone, snapshot, copy) is available for an LXC container. The LXC feature endpoint returns only hasFeature (no nodes list), so the nodes column is always empty.

Examples:

Check whether container 200 supports snapshot

pvectl feature ct 200 snapshot

Constant Summary collapse

RESOURCE_TYPE =

Returns:

  • (Symbol)
:container
SUPPORTED_RESOURCES =

Returns:

  • (Array[String])
%w[container ct].freeze

Constants included from FeatureCommand

Pvectl::Commands::FeatureCommand::VALID_FEATURES

Method Summary

Methods included from FeatureCommand

#build_repository, #execute, #id_label, included, #initialize, #load_config, #output_result, #payload, #perform_operation, #resolve_resource, #resource_not_found, #resource_type_symbol, #stringify_keys, #type_name, #usage_error