group

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts ...option.RequestOption) *Client

func (*Client) Add

func (c *Client) Add(
	ctx context.Context,
	request *v2.CreateGroupRequest,
	opts ...option.RequestOption,
) (*v2.Group, error)

Create a new user group

func (*Client) Delete

func (c *Client) Delete(
	ctx context.Context,

	groupID string,
	opts ...option.RequestOption,
) (*v2.SuccessResponse, error)

Delete group

func (*Client) GetAGroup added in v2.3.1

func (c *Client) GetAGroup(
	ctx context.Context,

	groupID string,
	opts ...option.RequestOption,
) (*v2.Group, error)

Get a group.

func (*Client) GetFacts added in v2.3.1

func (c *Client) GetFacts(
	ctx context.Context,

	groupID string,
	opts ...option.RequestOption,
) (*v2.FactsResponse, error)

Get group facts.

func (*Client) ListAllGroups added in v2.3.1

func (c *Client) ListAllGroups(
	ctx context.Context,
	request *v2.GetGroupsOrderedRequest,
	opts ...option.RequestOption,
) (*v2.GroupListResponse, error)

List all groups with pagination.

Jump to

Keyboard shortcuts

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