cmd

package
v1.5.17 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthBindCommand added in v1.5.13

type AuthBindCommand struct {
	DN       string `arg:"" help:"User or DN"`
	Password string `required:"" help:"Password"`
}

func (AuthBindCommand) Run added in v1.5.13

func (cmd AuthBindCommand) Run(ctx server.Cmd) error

type AuthChangePasswordCommand added in v1.5.13

type AuthChangePasswordCommand struct {
	AuthBindCommand
}

func (AuthChangePasswordCommand) Run added in v1.5.13

type AuthCommands added in v1.5.13

type AuthCommands struct {
	Auth           AuthBindCommand           `cmd:"" group:"LDAP" help:"Authenticate user"`
	ChangePassword AuthChangePasswordCommand `cmd:"" group:"LDAP" help:"Change password"`
}

type GroupCommands added in v1.5.13

type GroupCommands struct {
	Groups      GroupListCommand   `cmd:"" group:"LDAP" help:"List groups"`
	Group       GroupGetCommand    `cmd:"" group:"LDAP" help:"Get group"`
	CreateGroup GroupCreateCommand `cmd:"" group:"LDAP" help:"Create group"`
	DeleteGroup GroupDeleteCommand `cmd:"" group:"LDAP" help:"Delete group"`
}

type GroupCreateCommand added in v1.5.13

type GroupCreateCommand struct {
	GroupGetCommand
	Attr []string `arg:"" help:"attribute=value,value,..."`
}

func (GroupCreateCommand) Run added in v1.5.13

func (cmd GroupCreateCommand) Run(ctx server.Cmd) error

type GroupDeleteCommand added in v1.5.13

type GroupDeleteCommand struct {
	GroupGetCommand
}

func (GroupDeleteCommand) Run added in v1.5.13

func (cmd GroupDeleteCommand) Run(ctx server.Cmd) error

type GroupGetCommand added in v1.5.13

type GroupGetCommand struct {
	Group string `arg:"" help:"Group name"`
}

func (GroupGetCommand) Run added in v1.5.13

func (cmd GroupGetCommand) Run(ctx server.Cmd) error

type GroupListCommand added in v1.5.13

type GroupListCommand struct {
	schema.ObjectListRequest
}

func (GroupListCommand) Run added in v1.5.13

func (cmd GroupListCommand) Run(ctx server.Cmd) error

type ObjectCommands

type ObjectCommands struct {
	Objects      ObjectListCommand   `cmd:"" group:"LDAP" help:"List objects"`
	Object       ObjectGetCommand    `cmd:"" group:"LDAP" help:"Get object"`
	CreateObject ObjectCreateCommand `cmd:"" group:"LDAP" help:"Create object"`
	UpdateObject ObjectUpdateCommand `cmd:"" group:"LDAP" help:"Update object attributes"`
	DeleteObject ObjectDeleteCommand `cmd:"" group:"LDAP" help:"Delete object"`
}

type ObjectCreateCommand added in v1.5.13

type ObjectCreateCommand struct {
	ObjectGetCommand
	Attr []string `arg:"" help:"attribute=value,value,..."`
}

func (ObjectCreateCommand) Run added in v1.5.13

func (cmd ObjectCreateCommand) Run(ctx server.Cmd) error

type ObjectDeleteCommand added in v1.5.13

type ObjectDeleteCommand struct {
	ObjectGetCommand
}

func (ObjectDeleteCommand) Run added in v1.5.13

func (cmd ObjectDeleteCommand) Run(ctx server.Cmd) error

type ObjectGetCommand added in v1.5.13

type ObjectGetCommand struct {
	DN string `arg:"" help:"Distingushed Name"`
}

func (ObjectGetCommand) Run added in v1.5.13

func (cmd ObjectGetCommand) Run(ctx server.Cmd) error

type ObjectListCommand

type ObjectListCommand struct {
	schema.ObjectListRequest
}

func (ObjectListCommand) Run

func (cmd ObjectListCommand) Run(ctx server.Cmd) error

type ObjectUpdateCommand added in v1.5.13

type ObjectUpdateCommand struct {
	ObjectCreateCommand
}

func (ObjectUpdateCommand) Run added in v1.5.13

func (cmd ObjectUpdateCommand) Run(ctx server.Cmd) error

type UserCommands added in v1.5.13

type UserCommands struct {
	Users      UserListCommand   `cmd:"" group:"LDAP" help:"List users"`
	User       UserGetCommand    `cmd:"" group:"LDAP" help:"Get user"`
	CreateUser UserCreateCommand `cmd:"" group:"LDAP" help:"Create user"`
	DeleteUser UserDeleteCommand `cmd:"" group:"LDAP" help:"Delete user"`
}

type UserCreateCommand added in v1.5.13

type UserCreateCommand struct {
	UserGetCommand
	Attr []string `arg:"" help:"attribute=value,value,..."`
}

func (UserCreateCommand) Run added in v1.5.13

func (cmd UserCreateCommand) Run(ctx server.Cmd) error

type UserDeleteCommand added in v1.5.13

type UserDeleteCommand struct {
	UserGetCommand
}

func (UserDeleteCommand) Run added in v1.5.13

func (cmd UserDeleteCommand) Run(ctx server.Cmd) error

type UserGetCommand added in v1.5.13

type UserGetCommand struct {
	User string `arg:"" help:"Username"`
}

func (UserGetCommand) Run added in v1.5.13

func (cmd UserGetCommand) Run(ctx server.Cmd) error

type UserListCommand added in v1.5.13

type UserListCommand struct {
	schema.ObjectListRequest
}

func (UserListCommand) Run added in v1.5.13

func (cmd UserListCommand) Run(ctx server.Cmd) error

Jump to

Keyboard shortcuts

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