Documentation
¶
Index ¶
- type GetRequest
- type Group
- func (g Group) Get(ctx context.Context, req GetRequest) (*ItemGroup, error)
- func (g Group) GetRaw(ctx context.Context, req GetRequest) ([]byte, error)
- func (g Group) List(ctx context.Context, req ListRequest) (*ListGroups, error)
- func (g Group) ListRaw(ctx context.Context, req ListRequest) ([]byte, error)
- type ItemGroup
- type ListGroups
- type ListRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetRequest ¶
type GetRequest struct { // Group ID // Required: true GroupID string `url:"groupId" json:"groupId" validate:"required"` }
GetRequest struct to get details of the specified group.
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
Structure for creating request to group
func (Group) GetRaw ¶ added in v1.6.6
GetRaw gets details of the specified group as an array of bytes
func (Group) List ¶
func (g Group) List(ctx context.Context, req ListRequest) (*ListGroups, error)
List gets list of group instances as a ListGroups struct
type ItemGroup ¶
type ItemGroup struct { // CKey CKey string `json:"_ckey"` // Meta Meta []interface{} `json:"meta"` // Is active Actice bool `json:"active"` // Description Description string `json:"description"` // Domain Domain string `json:"domain"` // GID GID uint64 `json:"gid"` // GUID GUID string `json:"guid"` // ID ID string // Last check LastCheck uint64 `json:"lastcheck"` // Roles Roles []interface{} `json:"roles"` // Users Users []string `json:"users"` }
type ListGroups ¶
type ListRequest ¶
type ListRequest struct { // Find by id. // Requires: false ByID uint64 `url:"by_id,omitempty" json:"by_id,omitempty"` // Find by list users. // Required: false User string `url:"user,omitempty" json:"user,omitempty"` // Page number. // Required: false Page uint64 `url:"page,omitempty" json:"page,omitempty"` // Page size, maximum - 100. // Required: false Size uint64 `url:"size,omitempty" json:"size,omitempty"` // Find by active True or False. // Required: false Active bool `url:"active" json:"active"` }
ListRequest struct to get list of group instances.
Click to show internal directories.
Click to hide internal directories.