manager

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithClient

func WithClient(ctx server.Cmd, fn func(*manager.Client, string) error) error

WithClient returns auth client configured from the global HTTP flags.

Types

type AddUserGroupsCommand

type AddUserGroupsCommand struct {
	GetUserCommand
	Groups schema.UserGroupList `arg:"" name:"groups" help:"Groups for user the join"`
}

func (*AddUserGroupsCommand) Run

func (cmd *AddUserGroupsCommand) Run(ctx server.Cmd) error

type ChangesCommand

type ChangesCommand struct{}

func (*ChangesCommand) Run

func (cmd *ChangesCommand) Run(ctx server.Cmd) error

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

func (*CmdTokenStore) Token

func (s *CmdTokenStore) Token(endpoint string) (*oauth2.Token, string, error)

type CreateGroupCommand

type CreateGroupCommand struct {
	ID string `arg:"" name:"group" help:"Group identifier"`
	schema.GroupMeta
}

func (*CreateGroupCommand) Run

func (cmd *CreateGroupCommand) Run(ctx server.Cmd) error

type DeleteGroupCommand

type DeleteGroupCommand struct {
	GetGroupCommand
}

func (*DeleteGroupCommand) Run

func (cmd *DeleteGroupCommand) Run(ctx server.Cmd) error

type GetGroupCommand

type GetGroupCommand struct {
	ID string `arg:"" name:"group" help:"Group identifier"`
}

func (*GetGroupCommand) Run

func (cmd *GetGroupCommand) Run(ctx server.Cmd) error

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
}

func (*ListGroupsCommand) Run

func (cmd *ListGroupsCommand) Run(ctx server.Cmd) error

type ListScopesCommand

type ListScopesCommand struct {
	schema.ScopeListRequest
}

func (*ListScopesCommand) Run

func (cmd *ListScopesCommand) Run(ctx server.Cmd) error

type LoginCommand

type LoginCommand struct {
	Provider string `` /* 161-byte string literal not displayed */
}

func (*LoginCommand) Run

func (cmd *LoginCommand) Run(ctx server.Cmd) error

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{}

func (*ProvidersCommand) Run

func (cmd *ProvidersCommand) Run(ctx server.Cmd) error

type RemoveUserGroupsCommand

type RemoveUserGroupsCommand struct {
	GetUserCommand
	Groups schema.UserGroupList `arg:"" name:"groups" help:"Groups for user the leave"`
}

func (*RemoveUserGroupsCommand) Run

func (cmd *RemoveUserGroupsCommand) Run(ctx server.Cmd) error

type ScopeCommands

type ScopeCommands struct {
	Scopes ListScopesCommand `cmd:"" name:"scopes" help:"Get Scopes." group:"USER MANAGER"`
}

type UICommand

type UICommand struct{}

func (*UICommand) Run

func (cmd *UICommand) Run(ctx server.Cmd) error

type UpdateGroupCommand

type UpdateGroupCommand struct {
	GetGroupCommand
	schema.GroupMeta
}

func (*UpdateGroupCommand) Run

func (cmd *UpdateGroupCommand) Run(ctx server.Cmd) error

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"`
}

Jump to

Keyboard shortcuts

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