Documentation ¶
Index ¶
- type Client
- func (c *Client) Add(ctx context.Context, request *v2.CreateGroupRequest, ...) (*v2.Group, error)
- func (c *Client) Delete(ctx context.Context, groupID string, opts ...option.RequestOption) (*v2.SuccessResponse, error)
- func (c *Client) GetAGroup(ctx context.Context, groupID string, opts ...option.RequestOption) (*v2.Group, error)
- func (c *Client) GetFacts(ctx context.Context, groupID string, opts ...option.RequestOption) (*v2.FactsResponse, error)
- func (c *Client) ListAllGroups(ctx context.Context, request *v2.GetGroupsOrderedRequest, ...) (*v2.GroupListResponse, error)
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.
Click to show internal directories.
Click to hide internal directories.