Documentation ¶
Overview ¶
Package cli implements command-line commands for the Kopia.
Index ¶
- type App
- func (c *App) Attach(app *kingpin.Application)
- func (c *App) RunSubcommand(ctx context.Context, kpapp *kingpin.Application, argsAndFlags []string) (stdout, stderr io.Reader, wait func() error, kill func())
- func (c *App) SetLoggerFactory(loggerForModule logging.LoggerFactory)
- func (c *App) Stderr() io.Writer
- type MaintenanceInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { AdvancedCommands string // contains filtered or unexported fields }
App contains per-invocation flags and state of Kopia CLI.
func (*App) Attach ¶ added in v0.9.0
func (c *App) Attach(app *kingpin.Application)
Attach attaches the CLI parser to the application.
func (*App) RunSubcommand ¶ added in v0.9.0
func (c *App) RunSubcommand(ctx context.Context, kpapp *kingpin.Application, argsAndFlags []string) (stdout, stderr io.Reader, wait func() error, kill func())
RunSubcommand executes the subcommand asynchronously in current process with flags in an isolated CLI environment and returns standard output and standard error.
func (*App) SetLoggerFactory ¶ added in v0.9.1
func (c *App) SetLoggerFactory(loggerForModule logging.LoggerFactory)
SetLoggerFactory sets the logger factory to be used throughout the app.
type MaintenanceInfo ¶ added in v0.9.0
type MaintenanceInfo struct { maintenance.Params maintenance.Schedule `json:"schedule"` }
MaintenanceInfo is used to display the maintenance info in JSON format.
Source Files ¶
- app.go
- auto_upgrade.go
- cli_progress.go
- command_acl.go
- command_acl_add.go
- command_acl_delete.go
- command_acl_enable.go
- command_acl_list.go
- command_benchmark.go
- command_benchmark_compression.go
- command_benchmark_crypto.go
- command_benchmark_splitters.go
- command_blob.go
- command_blob_delete.go
- command_blob_gc.go
- command_blob_list.go
- command_blob_shards.go
- command_blob_shards_modify.go
- command_blob_show.go
- command_blob_stats.go
- command_cache.go
- command_cache_clear.go
- command_cache_info.go
- command_cache_set.go
- command_cache_sync.go
- command_content.go
- command_content_delete.go
- command_content_list.go
- command_content_range_flags.go
- command_content_rewrite.go
- command_content_show.go
- command_content_stats.go
- command_content_verify.go
- command_diff.go
- command_index.go
- command_index_epoch.go
- command_index_epoch_list.go
- command_index_inspect.go
- command_index_list.go
- command_index_optimize.go
- command_index_recover.go
- command_logs.go
- command_logs_cleanup.go
- command_logs_list.go
- command_logs_session.go
- command_logs_show.go
- command_ls.go
- command_maintenance.go
- command_maintenance_info.go
- command_maintenance_run.go
- command_maintenance_set.go
- command_manifest.go
- command_manifest_delete.go
- command_manifest_ls.go
- command_manifest_show.go
- command_mount.go
- command_policy.go
- command_policy_edit.go
- command_policy_ls.go
- command_policy_remove.go
- command_policy_set.go
- command_policy_set_actions.go
- command_policy_set_compression.go
- command_policy_set_error_handling.go
- command_policy_set_files.go
- command_policy_set_retention.go
- command_policy_set_scheduling.go
- command_policy_show.go
- command_repository.go
- command_repository_change_password.go
- command_repository_connect.go
- command_repository_connect_from_config.go
- command_repository_connect_server.go
- command_repository_create.go
- command_repository_disconnect.go
- command_repository_repair.go
- command_repository_set_client.go
- command_repository_set_parameters.go
- command_repository_status.go
- command_repository_sync.go
- command_repository_validate_provider.go
- command_restore.go
- command_server.go
- command_server_cancel.go
- command_server_flush.go
- command_server_pause.go
- command_server_refresh.go
- command_server_resume.go
- command_server_start.go
- command_server_status.go
- command_server_tls.go
- command_server_upload.go
- command_session.go
- command_session_list.go
- command_show.go
- command_snapshot.go
- command_snapshot_copy_move_history.go
- command_snapshot_create.go
- command_snapshot_delete.go
- command_snapshot_estimate.go
- command_snapshot_expire.go
- command_snapshot_gc.go
- command_snapshot_list.go
- command_snapshot_migrate.go
- command_snapshot_restore.go
- command_snapshot_verify.go
- command_user.go
- command_user_add_set.go
- command_user_delete.go
- command_user_info.go
- command_user_list.go
- config.go
- inproc.go
- json_output.go
- memory_tracking.go
- password.go
- password_linux.go
- profile.go
- show_utils.go
- sighup_unix.go
- storage_azure.go
- storage_b2.go
- storage_filesystem.go
- storage_gcs.go
- storage_providers.go
- storage_rclone.go
- storage_s3.go
- storage_sftp.go
- storage_webdav.go
- update_check.go
Click to show internal directories.
Click to hide internal directories.