Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) CallApiWithBody(method string, group *UserGroup) (payload UserGroup, response *http.Response, err error)
- func (c *Client) CallApiWithID(method string, id string) (payload UserGroup, response *http.Response, err error)
- func (c *Client) CreateUserGroup(create *UserGroup) (UserGroup, *http.Response, error)
- func (c *Client) DeleteUserGroup(id string) (*http.Response, error)
- func (c *Client) GetUserGroupDetails(id string) (UserGroup, *http.Response, error)
- func (c *Client) ReadBody(r io.Reader) string
- func (c *Client) ReusableReader(r io.Reader) io.Reader
- func (c *Client) UpdateUserGroup(update *UserGroup) (UserGroup, *http.Response, error)
- type LdapGroup
- type PosixGroup
- type QueryFilter
- type RadiusReply
- type UserGroup
- type UserGroupAttributes
- type UserGroupMemberQuery
- type UserGroupMemberQueryExceptions
- type UserGroupMemberSuggestionCounts
- type UserGroupRadiusConfig
- type UserGroupSudoConfig
Constants ¶
View Source
const ( JUMPCLOUD_API_BASE_URL = "https://console.jumpcloud.com/api" CONTENT_TYPE = "application/json" SUBSYSTEM_NAME = "apiclient.Client" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { ApiKey string ProviderVersion string Context context.Context // contains filtered or unexported fields }
func (*Client) CallApiWithBody ¶
func (*Client) CallApiWithID ¶
func (*Client) CreateUserGroup ¶
func (*Client) DeleteUserGroup ¶
func (*Client) GetUserGroupDetails ¶
type PosixGroup ¶
type QueryFilter ¶
type RadiusReply ¶
type UserGroup ¶
type UserGroup struct { Attributes *UserGroupAttributes `json:"attributes,omitempty"` Description string `json:"description,omitempty"` Email string `json:"email,omitempty"` Id string `json:"id"` MemberQuery *UserGroupMemberQuery `json:"memberQuery,omitempty"` MemberQueryExceptions []UserGroupMemberQueryExceptions `json:"memberQueryExceptions,omitempty"` MemberSuggestionsNotify bool `json:"memberSuggestionsNotify,omitempty"` MembershipAutomated bool `json:"membershipAutomated,omitempty"` Name string `json:"name"` SuggestionCounts *UserGroupMemberSuggestionCounts `json:"suggestionCounts,omitempty"` Type string `json:"type,omitempty"` }
type UserGroupAttributes ¶
type UserGroupAttributes struct { Sudo *UserGroupSudoConfig `json:"sudo,omitempty"` LdapGroups []LdapGroup `json:"ldapGroups,omitempty"` PosixGroups []PosixGroup `json:"posixGroups,omitempty"` Radius *UserGroupRadiusConfig `json:"radius,omitempty"` SambaEnabled bool `json:"sambaEnabled,omitempty"` }
type UserGroupMemberQuery ¶
type UserGroupMemberQuery struct { QueryType string `json:"queryType,omitempty"` Filters []QueryFilter `json:"filters,omitempty"` }
type UserGroupRadiusConfig ¶
type UserGroupRadiusConfig struct {
Reply []RadiusReply `json:"reply,omitempty"`
}
type UserGroupSudoConfig ¶
Click to show internal directories.
Click to hide internal directories.