Documentation
¶
Index ¶
- func WithClient(ctx server.Cmd, fn func(*manager.Client, string) error) error
- type AddUserGroupsCommand
- type ChangesCommand
- type ChangesCommands
- type CmdTokenStore
- type CreateGroupCommand
- type DeleteGroupCommand
- type GetGroupCommand
- type GroupCommands
- type ListGroupsCommand
- type ListScopesCommand
- type LoginCommand
- type ManagerCommands
- type ProvidersCommand
- type RemoveUserGroupsCommand
- type ScopeCommands
- type UICommand
- type UpdateGroupCommand
- type UserGroupCommands
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddUserGroupsCommand ¶
type AddUserGroupsCommand struct {
GetUserCommand
Groups schema.UserGroupList `arg:"" name:"groups" help:"Groups for user the join"`
}
type ChangesCommand ¶
type ChangesCommand struct{}
type ChangesCommands ¶
type ChangesCommands struct {
Changes ChangesCommand `cmd:"" name:"changes" help:"Stream protected change notifications until interrupted." group:"USER MANAGER"`
}
type CmdTokenStore ¶
type CmdTokenStore struct {
// contains filtered or unexported fields
}
func NewCmdTokenStore ¶
func NewCmdTokenStore(ctx server.Cmd) *CmdTokenStore
func (*CmdTokenStore) StoreToken ¶
func (s *CmdTokenStore) StoreToken(endpoint, issuer string, token *oauth2.Token) error
type CreateGroupCommand ¶
type DeleteGroupCommand ¶
type DeleteGroupCommand struct {
GetGroupCommand
}
type GetGroupCommand ¶
type GetGroupCommand struct {
ID string `arg:"" name:"group" help:"Group identifier"`
}
type GroupCommands ¶
type GroupCommands struct {
Groups ListGroupsCommand `cmd:"" name:"groups" help:"Get Groups." group:"USER MANAGER"`
Group GetGroupCommand `cmd:"" name:"group" help:"Get Group." group:"USER MANAGER"`
CreateGroup CreateGroupCommand `cmd:"" name:"group-create" help:"Create Group." group:"USER MANAGER"`
UpdateGroup UpdateGroupCommand `cmd:"" name:"group-update" help:"Update Group." group:"USER MANAGER"`
DeleteGroup DeleteGroupCommand `cmd:"" name:"group-delete" help:"Delete Group." group:"USER MANAGER"`
}
type ListGroupsCommand ¶
type ListGroupsCommand struct {
schema.GroupListRequest
}
type ListScopesCommand ¶
type ListScopesCommand struct {
schema.ScopeListRequest
}
type LoginCommand ¶
type LoginCommand struct {
Provider string `` /* 161-byte string literal not displayed */
}
type ManagerCommands ¶
type ManagerCommands struct {
Providers ProvidersCommand `cmd:"" help:"Print the configured identity providers." group:"USER MANAGER"`
Login LoginCommand `cmd:"" help:"Login to a provider." group:"USER MANAGER"`
UI UICommand `cmd:"" help:"Open the admin UI in a browser." group:"USER MANAGER"`
UserCommands
UserGroupCommands
GroupCommands
ScopeCommands
ChangesCommands
}
type ProvidersCommand ¶
type ProvidersCommand struct{}
type RemoveUserGroupsCommand ¶
type RemoveUserGroupsCommand struct {
GetUserCommand
Groups schema.UserGroupList `arg:"" name:"groups" help:"Groups for user the leave"`
}
type ScopeCommands ¶
type ScopeCommands struct {
Scopes ListScopesCommand `cmd:"" name:"scopes" help:"Get Scopes." group:"USER MANAGER"`
}
type UpdateGroupCommand ¶
type UpdateGroupCommand struct {
GetGroupCommand
schema.GroupMeta
}
type UserGroupCommands ¶
type UserGroupCommands struct {
UserJoin AddUserGroupsCommand `cmd:"" name:"user-join" help:"Add user to groups." group:"USER MANAGER"`
UserLeave RemoveUserGroupsCommand `cmd:"" name:"user-leave" help:"Remove user from groups." group:"USER MANAGER"`
}
Click to show internal directories.
Click to hide internal directories.