client

package
v0.0.0-...-9321e41 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(addr string) (*Client, error)

func (*Client) AddMember

func (c *Client) AddMember(ctx context.Context, groupID string, userID string) error

func (*Client) AssignRole

func (c *Client) AssignRole(ctx context.Context, roleID string, userID string) error

func (*Client) CreateGroup

func (c *Client) CreateGroup(ctx context.Context, name string, options *directory.CreateGroupOptions) (*directory.Group, error)

func (*Client) CreateRole

func (c *Client) CreateRole(ctx context.Context, groupID string, name string, options *directory.CreateRoleOptions) (*directory.Role, error)

func (*Client) CreateUser

func (c *Client) CreateUser(ctx context.Context, username string, options *directory.CreateUserOptions) (*directory.User, error)

func (*Client) DeleteGroup

func (c *Client) DeleteGroup(ctx context.Context, groupID string, options *directory.DeleteGroupOptions) error

func (*Client) DeleteRole

func (c *Client) DeleteRole(ctx context.Context, roleID string, options *directory.DeleteRoleOptions) error

func (*Client) DeleteUser

func (c *Client) DeleteUser(ctx context.Context, userID string, options *directory.DeleteUserOptions) error

func (*Client) Group

func (c *Client) Group(ctx context.Context, groupID string) (*directory.Group, error)

func (*Client) Groups

func (c *Client) Groups(ctx context.Context, options *directory.GroupListOptions) ([]directory.Group, error)

func (*Client) Members

func (c *Client) Members(ctx context.Context, groupID string, options *directory.MemberListOptions) ([]directory.Member, error)

func (*Client) RemoveMember

func (c *Client) RemoveMember(ctx context.Context, groupID string, userID string) error

func (*Client) RemoveRole

func (c *Client) RemoveRole(ctx context.Context, roleID string, userID string) error

func (*Client) Role

func (c *Client) Role(ctx context.Context, roleID string) (*directory.Role, error)

func (*Client) Roles

func (c *Client) Roles(ctx context.Context, groupID string, options *directory.RoleListOptions) ([]directory.Role, error)

func (*Client) UpdateGroupExtensions

func (c *Client) UpdateGroupExtensions(ctx context.Context, groupID string, extensions map[string]string) error

func (*Client) User

func (c *Client) User(ctx context.Context, userID string) (*directory.User, error)

func (*Client) Users

func (c *Client) Users(ctx context.Context, options *directory.UserListOptions) ([]directory.User, error)

Jump to

Keyboard shortcuts

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