Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
group.command('show', 'get')
group.command('delete', 'delete')
group.command('list', 'list')
with CommandGroup(self, 'mesh code-package-log', mesh_code_package_func_path,
client_factory=mesh_code_package_create) as group:
group.command('get', 'get_container_logs')
with CommandGroup(self, 'mesh secret', mesh_secret_func_path,
client_factory=mesh_secret_create) as group:
group.command('show', 'get')
group.command('delete', 'delete')
group.command('list', 'list')
with CommandGroup(self, 'mesh secretvalue', mesh_secret_value_func_path,
client_factory=mesh_secret_value_create) as group:
group.command('delete', 'delete')
group.command('list', 'list')
with CommandGroup(self, 'mesh app', mesh_application_func_path,
client_factory=mesh_app_create) as group:
group.command('show', 'get')
group.command('delete', 'delete')
group.command('list', 'list')
with CommandGroup(self, 'mesh volume', mesh_volume_func_path,
client_factory=mesh_volume_create) as group:
group.command('show', 'get')
group.command('delete', 'delete')
group.command('list', 'list')
with CommandGroup(self, 'mesh service', mesh_service_func_path,
client_factory=client_create) as group:
group.command('report-health', 'report_replica_health')
with CommandGroup(self, 'node', client_func_path_health,
client_factory=client_create) as group:
group.command('report-health', 'report_node_health')
with CommandGroup(self, 'cluster', client_func_path_health,
client_factory=client_create) as group:
group.command('report-health', 'report_cluster_health')
# ---------------
# Mesh custom commands
# ---------------
with CommandGroup(self, 'mesh secretvalue', 'sfctl.custom_secret_value#{}',
client_factory=mesh_secret_value_create) as group:
group.command('show', 'get_secret_value')
client_func_path_mesh = 'sfctl.custom_deployment#{}'
with CommandGroup(self, 'mesh deployment', client_func_path_mesh,
client_factory=client_create) as group:
group.command('create', 'mesh_deploy')
# ---------------
# Settings
# ---------------
with CommandGroup(self, 'settings telemetry', 'sfctl.custom_settings#{}') as group:
group.command('set-telemetry', 'set_telemetry')
return OrderedDict(self.command_table)