client

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 Client

type Client struct {
	*client.Client
}

func New

func New(url string, opts ...client.ClientOpt) (*Client, error)

Create a new client

func (*Client) Auth added in v1.5.13

func (c *Client) Auth(ctx context.Context, dn, password string) (*schema.Object, error)

func (*Client) ChangePassword added in v1.5.13

func (c *Client) ChangePassword(ctx context.Context, dn, password string) (*schema.Object, error)

func (*Client) CreateGroup added in v1.5.13

func (c *Client) CreateGroup(ctx context.Context, meta schema.Object) (*schema.Object, error)

func (*Client) CreateObject added in v1.5.13

func (c *Client) CreateObject(ctx context.Context, meta schema.Object) (*schema.Object, error)

func (*Client) CreateUser added in v1.5.13

func (c *Client) CreateUser(ctx context.Context, meta schema.Object) (*schema.Object, error)

func (*Client) DeleteGroup added in v1.5.13

func (c *Client) DeleteGroup(ctx context.Context, user string) error

func (*Client) DeleteObject added in v1.5.13

func (c *Client) DeleteObject(ctx context.Context, dn string) error

func (*Client) DeleteUser added in v1.5.13

func (c *Client) DeleteUser(ctx context.Context, user string) error

func (*Client) GetGroup added in v1.5.13

func (c *Client) GetGroup(ctx context.Context, user string) (*schema.Object, error)

func (*Client) GetObject added in v1.5.13

func (c *Client) GetObject(ctx context.Context, dn string) (*schema.Object, error)

func (*Client) GetUser added in v1.5.13

func (c *Client) GetUser(ctx context.Context, user string) (*schema.Object, error)

func (*Client) ListGroups added in v1.5.13

func (c *Client) ListGroups(ctx context.Context, opts ...Opt) (*schema.ObjectList, error)

func (*Client) ListObjects

func (c *Client) ListObjects(ctx context.Context, opts ...Opt) (*schema.ObjectList, error)

func (*Client) ListUsers added in v1.5.13

func (c *Client) ListUsers(ctx context.Context, opts ...Opt) (*schema.ObjectList, error)

func (*Client) UpdateObject added in v1.5.13

func (c *Client) UpdateObject(ctx context.Context, meta schema.Object) (*schema.Object, error)

type Opt

type Opt func(*opt) error

An Option to set on the client

func OptSet

func OptSet(k, v string) Opt

func WithAttr added in v1.5.13

func WithAttr(v ...string) Opt

Set LDAP attributes

func WithFilter

func WithFilter(v *string) Opt

Set LDAP filter

func WithOffsetLimit

func WithOffsetLimit(offset uint64, limit *uint64) Opt

Set offset and limit

Jump to

Keyboard shortcuts

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