directory

package
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DelApplPermCmd

type DelApplPermCmd struct {
	UserID  string `arg:"id" name:"id" required:"" help:"user id or identifier"`
	AppName string `arg:"name" name:"name" required:"" help:"application name"`
	Key     string `arg:"perm" name:"perm" required:"" help:"permission name"`
}

func (*DelApplPermCmd) Run

func (cmd *DelApplPermCmd) Run(c *cc.CommonCtx) error

type DelApplPropCmd

type DelApplPropCmd struct {
	UserID  string `arg:"id" name:"id" required:"" help:"user id or identifier"`
	AppName string `arg:"name" name:"name" required:"" help:"application name"`
	Key     string `arg:"prop" name:"prop" required:"" help:"property name"`
}

func (*DelApplPropCmd) Run

func (cmd *DelApplPropCmd) Run(c *cc.CommonCtx) error

type DelApplRoleCmd

type DelApplRoleCmd struct {
	UserID  string `arg:"id" name:"id" required:"" help:"user id or identifier"`
	AppName string `arg:"name" name:"name" required:"" help:"application name"`
	Key     string `arg:"role" name:"role" required:"" help:"role name"`
}

func (*DelApplRoleCmd) Run

func (cmd *DelApplRoleCmd) Run(c *cc.CommonCtx) error

type DelResCmd

type DelResCmd struct {
	Key string `arg:"key" name:"key" required:"" help:"resource key"`
}

func (*DelResCmd) Run

func (cmd *DelResCmd) Run(c *cc.CommonCtx) error

type DelUserAppCmd

type DelUserAppCmd struct {
	UserID  string `arg:"id" name:"id" required:"" help:"user id or identifier"`
	AppName string `arg:"name" name:"name" required:"" help:"application name"`
}

func (*DelUserAppCmd) Run

func (cmd *DelUserAppCmd) Run(c *cc.CommonCtx) error

type DelUserPermCmd

type DelUserPermCmd struct {
	UserID string `arg:"id" name:"id" required:"" help:"user id or identifier"`
	Key    string `arg:"perm" name:"perm" required:"" help:"permission name"`
}

func (*DelUserPermCmd) Run

func (cmd *DelUserPermCmd) Run(c *cc.CommonCtx) error

type DelUserPropCmd

type DelUserPropCmd struct {
	UserID string `arg:"id" name:"id" required:"" help:"user id or identifier"`
	Key    string `arg:"prop" name:"prop" required:"" help:"property name"`
}

func (*DelUserPropCmd) Run

func (cmd *DelUserPropCmd) Run(c *cc.CommonCtx) error

type DelUserRoleCmd

type DelUserRoleCmd struct {
	UserID string `arg:"id" name:"id" required:"" help:"user id or identifier"`
	Key    string `arg:"role" name:"role" required:"" help:"role name"`
}

func (*DelUserRoleCmd) Run

func (cmd *DelUserRoleCmd) Run(c *cc.CommonCtx) error

type DeleteUsersCmd added in v0.1.7

type DeleteUsersCmd struct {
}

func (*DeleteUsersCmd) Run added in v0.1.7

func (cmd *DeleteUsersCmd) Run(c *cc.CommonCtx) error

type GetApplPermsCmd

type GetApplPermsCmd struct {
	UserID  string `arg:"id" name:"id" required:"" help:"user id or identifier"`
	AppName string `arg:"name" name:"name" required:"" help:"application name"`
}

func (*GetApplPermsCmd) Run

func (cmd *GetApplPermsCmd) Run(c *cc.CommonCtx) error

type GetApplPropsCmd

type GetApplPropsCmd struct {
	UserID  string `arg:"id" name:"id" required:"" help:"user id or identifier"`
	AppName string `arg:"name" name:"name" required:"" help:"application name"`
}

func (*GetApplPropsCmd) Run

func (cmd *GetApplPropsCmd) Run(c *cc.CommonCtx) error

type GetApplRolesCmd

type GetApplRolesCmd struct {
	UserID  string `arg:"id" name:"id" required:"" help:"user id or identifier"`
	AppName string `arg:"name" name:"name" required:"" help:"application name"`
}

func (*GetApplRolesCmd) Run

func (cmd *GetApplRolesCmd) Run(c *cc.CommonCtx) error

type GetIdentityCmd

type GetIdentityCmd struct {
	Identity string `arg:"" name:"identity" required:"" help:"User identity"`
}

func (*GetIdentityCmd) Run

func (cmd *GetIdentityCmd) Run(c *cc.CommonCtx) error

type GetResCmd

type GetResCmd struct {
	Key string `arg:"key" name:"key" required:"" help:"resource key"`
}

func (*GetResCmd) Run

func (cmd *GetResCmd) Run(c *cc.CommonCtx) error

type GetUserCmd

type GetUserCmd struct {
	ID   string `arg:"id" name:"id" required:"" help:"user id or identity"`
	Base bool   `name:"base" optional:"" help:"return base user object (without extensions)"`
}

func (*GetUserCmd) Run

func (cmd *GetUserCmd) Run(c *cc.CommonCtx) error

type GetUserPermsCmd

type GetUserPermsCmd struct {
	UserID string `arg:"id" name:"id" required:"" help:"user id or identifier"`
}

func (*GetUserPermsCmd) Run

func (cmd *GetUserPermsCmd) Run(c *cc.CommonCtx) error

type GetUserPropsCmd

type GetUserPropsCmd struct {
	UserID string `arg:"id" name:"id" required:"" help:"user id or identifier"`
}

func (*GetUserPropsCmd) Run

func (cmd *GetUserPropsCmd) Run(c *cc.CommonCtx) error

type GetUserRolesCmd

type GetUserRolesCmd struct {
	UserID string `arg:"id" name:"id" required:"" help:"user id or identifier"`
}

func (*GetUserRolesCmd) Run

func (cmd *GetUserRolesCmd) Run(c *cc.CommonCtx) error

type ListResCmd

type ListResCmd struct{}

func (*ListResCmd) Run

func (cmd *ListResCmd) Run(c *cc.CommonCtx) error

type ListUserAppsCmd

type ListUserAppsCmd struct {
	UserID string `arg:"id" name:"id" required:"" help:"user id or identifier"`
}

func (*ListUserAppsCmd) Run

func (cmd *ListUserAppsCmd) Run(c *cc.CommonCtx) error

type ListUsersCmd

type ListUsersCmd struct {
	Base bool `name:"base" optional:"" help:"return base user object (without extensions)"`
}

func (*ListUsersCmd) Run

func (cmd *ListUsersCmd) Run(c *cc.CommonCtx) error

TODO : add mask TODO : add pagination (instead of -1) TODO : add filtering?

type LoadUserExtCmd added in v0.1.10

type LoadUserExtCmd struct {
	Provider string `required:"" help:"load users provider (json | auth0)" enum:"json,auth0"`
	Profile  string `optional:"" type:"existingfile" help:"provider profile file (.env)"`
	File     string `optional:"" type:"existingfile" help:"input file (.json)"`
}

func (*LoadUserExtCmd) Run added in v0.1.10

func (cmd *LoadUserExtCmd) Run(c *cc.CommonCtx) error

type LoadUsersCmd

type LoadUsersCmd struct {
	Provider    string `required:"" help:"load users provider (json | auth0)" enum:"json,auth0"`
	Profile     string `optional:"" type:"existingfile" help:"provider profile file (.env)"`
	File        string `optional:"" type:"existingfile" help:"input file (.json)"`
	InclUserExt bool   `optional:"" help:"include user extensions (attributes & applications) in the base user object"`
}

TODO : make using IDP connection explicit

func (*LoadUsersCmd) Run

func (cmd *LoadUsersCmd) Run(c *cc.CommonCtx) error

type SetApplPermCmd

type SetApplPermCmd struct {
	UserID  string `arg:"id" name:"id" required:"" help:"user id or identifier"`
	AppName string `arg:"name" name:"name" required:"" help:"application name"`
	Key     string `arg:"perm" name:"perm" required:"" help:"permission name"`
}

func (*SetApplPermCmd) Run

func (cmd *SetApplPermCmd) Run(c *cc.CommonCtx) error

type SetApplPropCmd

type SetApplPropCmd struct {
	UserID  string `arg:"id" name:"id" required:"" help:"user id or identifier"`
	AppName string `arg:"name" name:"name" required:"" help:"application name"`
	Key     string `arg:"key" name:"key" required:"" help:"property key"`
	Value   string `optional:"" help:"set property using string value"`
	Stdin   bool   `optional:"" name:"stdin" help:"set property using from --stdin"`
	File    string `optional:"" type:"existingfile" help:"set property using file content"`
}

func (*SetApplPropCmd) Run

func (cmd *SetApplPropCmd) Run(c *cc.CommonCtx) error

type SetApplRoleCmd

type SetApplRoleCmd struct {
	UserID  string `arg:"id" name:"id" required:"" help:"user id or identifier"`
	AppName string `arg:"name" name:"name" required:"" help:"application name"`
	Key     string `arg:"role" name:"role" required:"" help:"role name"`
}

func (*SetApplRoleCmd) Run

func (cmd *SetApplRoleCmd) Run(c *cc.CommonCtx) error

type SetResCmd

type SetResCmd struct {
	Key   string `arg:"key" name:"key" required:"" help:"resource key"`
	Value string `optional:"" help:"set resource using string value"`
	Stdin bool   `optional:"" name:"stdin" help:"set resource using from --stdin"`
	File  string `optional:"" type:"existingfile" help:"set resource using file content"`
}

func (*SetResCmd) Run

func (cmd *SetResCmd) Run(c *cc.CommonCtx) error

type SetUserAppCmd

type SetUserAppCmd struct {
	UserID  string `arg:"id" name:"id" required:"" help:"user id or identifier"`
	AppName string `arg:"name" name:"name" required:"" help:"application name"`
}

func (*SetUserAppCmd) Run

func (cmd *SetUserAppCmd) Run(c *cc.CommonCtx) error

type SetUserCmd added in v0.1.7

type SetUserCmd struct {
	UserID  string `arg:"id" name:"id" required:"" help:"user id or identifier"`
	Disable bool   `xor:"group" help:"disable user"`
	Enable  bool   `xor:"group" help:"enable user"`
	Output  bool   `optional:"" help:"output updated user object"`
}

func (*SetUserCmd) Run added in v0.1.7

func (cmd *SetUserCmd) Run(c *cc.CommonCtx) error

type SetUserPermCmd

type SetUserPermCmd struct {
	UserID string `arg:"id" name:"id" required:"" help:"user id or identifier"`
	Key    string `arg:"perm" name:"perm" required:"" help:"permission name"`
}

func (*SetUserPermCmd) Run

func (cmd *SetUserPermCmd) Run(c *cc.CommonCtx) error

type SetUserPropCmd

type SetUserPropCmd struct {
	UserID string `arg:"id" name:"id" required:"" help:"user id or identifier"`
	Key    string `arg:"key" name:"key" required:"" help:"property key"`
	Value  string `optional:"" help:"set property using string value"`
	Stdin  bool   `optional:"" name:"stdin" help:"set property using from --stdin"`
	File   string `optional:"" type:"existingfile" help:"set property using file content"`
}

func (*SetUserPropCmd) Run

func (cmd *SetUserPropCmd) Run(c *cc.CommonCtx) error

type SetUserRoleCmd

type SetUserRoleCmd struct {
	UserID string `arg:"id" name:"id" required:"" help:"user id or identifier"`
	Key    string `arg:"role" name:"role" required:"" help:"role name"`
}

func (*SetUserRoleCmd) Run

func (cmd *SetUserRoleCmd) Run(c *cc.CommonCtx) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL