Documentation
¶
Index ¶
- Variables
- func DropSchema(db *multitenancy.DB, schemaName string) error
- func FormatTenant(tenant *model.Tenant, cmd *cobra.Command) error
- type CommandFactory
- func (f *CommandFactory) NewCreateGroupsCmd(ctx context.Context) *cobra.Command
- func (f *CommandFactory) NewCreateTenantCmd(ctx context.Context) *cobra.Command
- func (f *CommandFactory) NewDeleteTenantCmd(ctx context.Context) *cobra.Command
- func (f *CommandFactory) NewGetTenantCmd(ctx context.Context) *cobra.Command
- func (f *CommandFactory) NewListTenantsCmd(ctx context.Context) *cobra.Command
- func (f *CommandFactory) NewRootCmd(ctx context.Context) *cobra.Command
- func (f *CommandFactory) NewUpdateTenantCmd(ctx context.Context) *cobra.Command
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DropSchema ¶
func DropSchema(db *multitenancy.DB, schemaName string) error
Types ¶
type CommandFactory ¶
type CommandFactory struct {
// contains filtered or unexported fields
}
func NewCommandFactory ¶
func NewCommandFactory( ctx context.Context, cfg *config.Config, dbCon *multitenancy.DB, ctlg *plugincatalog.Catalog, ) (*CommandFactory, error)
func (*CommandFactory) NewCreateGroupsCmd ¶
func (f *CommandFactory) NewCreateGroupsCmd(ctx context.Context) *cobra.Command
NewCreateGroupsCmd creates a Cobra command that creates tenant groups
func (*CommandFactory) NewCreateTenantCmd ¶
func (f *CommandFactory) NewCreateTenantCmd(ctx context.Context) *cobra.Command
NewCreateTenantCmd creates a Cobra command that creates tenant.
func (*CommandFactory) NewDeleteTenantCmd ¶
func (f *CommandFactory) NewDeleteTenantCmd(ctx context.Context) *cobra.Command
NewDeleteTenantCmd creates a Cobra command that deletes a tenant.
func (*CommandFactory) NewGetTenantCmd ¶
func (f *CommandFactory) NewGetTenantCmd(ctx context.Context) *cobra.Command
NewGetTenantCmd creates a Cobra command that gets tenant information.
func (*CommandFactory) NewListTenantsCmd ¶
func (f *CommandFactory) NewListTenantsCmd(ctx context.Context) *cobra.Command
NewListTenantsCmd creates a Cobra command that gets tenant list.
func (*CommandFactory) NewRootCmd ¶
func (f *CommandFactory) NewRootCmd(ctx context.Context) *cobra.Command
func (*CommandFactory) NewUpdateTenantCmd ¶
func (f *CommandFactory) NewUpdateTenantCmd(ctx context.Context) *cobra.Command
NewUpdateTenantCmd creates a Cobra command that updates single tenant.
Click to show internal directories.
Click to hide internal directories.