Documentation
¶
Overview ¶
Package cmd implements all commands for pydio control client
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( READ = &idm.ACLAction{Name: "read", Value: "1"} WRITE = &idm.ACLAction{Name: "write", Value: "1"} DENY = &idm.ACLAction{Name: "deny", Value: "1"} )
View Source
var RootCmd = &cobra.Command{ Use: "pydioctl", Short: "Pydio Cells Client application", Long: ` Pydio Cells client allows you to interact with the micro services directly. Most actions shall better be performed using the web frontend, but it can be handy to CRUD some specific data directly for automation or testing purposes. `, PersistentPreRun: func(cmd *cobra.Command, args []string) { t1 = time.Now() // Keep only the correct messaging service (nats or consul) depending on user input. // Note that the service listed in this current pydio registry is *NOT* started. var msgService registry.Service services, err := registry.Default.ListServices() if err != nil { cmd.Print("Could not retrieve list of services: " + err.Error()) os.Exit(0) } for _, s := range services { if s.Name() != viper.Get("registry") { registry.Default.Deregister(s) } else { if msgService == nil { msgService = s } else { cmd.Print("Cannot proceed, please unregister all messaging services that are not in use.") os.Exit(0) } } } msgService.BeforeInit() registry.Init(registry.Name(msgService.Name())) msgService.AfterInit() serviceName = common.SERVICE_GRPC_NAMESPACE_ + common.SERVICE_TREE if len(source) > 0 { serviceName = common.SERVICE_GRPC_NAMESPACE_ + common.SERVICE_DATA_INDEX_ + source } }, PersistentPostRun: func(cmd *cobra.Command, args []string) { cmd.Printf("[Time taken : %s]\n", time.Since(t1)) }, }
RootCmd represents the base command when called without any subcommands.
Functions ¶
Types ¶
This section is empty.
Source Files
¶
- acl-create.go
- acl-delete.go
- acl-search.go
- acl.go
- data-create-benc.go
- data-create.go
- data-delete.go
- data-list.go
- data-move.go
- data-read.go
- data-sync.go
- data-test-generate.go
- data-version-create.go
- data-version-list.go
- data-version.go
- data.go
- doc.go
- jobs-mailer-digest.go
- jobs-mailer-test.go
- jobs-sync-users.go
- jobs.go
- meta-put.go
- meta-read.go
- meta.go
- role-create.go
- role-delete.go
- role-search.go
- role.go
- root.go
- user-create.go
- user-delete.go
- user-search.go
- user-set-profile.go
- user.go
- version.go
Click to show internal directories.
Click to hide internal directories.