Documentation ¶
Overview ¶
Package gsmci implements the Cloud Identity API Copyright © 2020-2021 Hannes Hayashi
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Package gsmci implements the Cloud Identity API Copyright © 2020-2021 Hannes Hayashi
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Package gsmci implements the Cloud Identity API Copyright © 2020-2021 Hannes Hayashi
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Index ¶
- func CheckTransitiveMembership(parent, query string) (bool, error)
- func CreateGroup(group *ci.Group, initialGroupConfig, fields string) (map[string]interface{}, error)
- func CreateMembership(parent, fields string, membership *ci.Membership) (googleapi.RawMessage, error)
- func DeleteGroup(name string) (bool, error)
- func DeleteMembership(name string) (bool, error)
- func GetGroup(name, fields string) (*ci.Group, error)
- func GetMembership(name, fields string) (*ci.Membership, error)
- func GetMembershipGraph(parent, query, fields string) (map[string]interface{}, error)
- func ListGroups(parent, view, fields string, cap int) (<-chan *ci.Group, <-chan error)
- func ListMembers(parent, fields, view string, cap int) (<-chan *ci.Membership, <-chan error)
- func LookupGroup(email string) (string, error)
- func LookupMembership(parent, memberKeyID, memberKeyNamespace string) (string, error)
- func ModifyMembershipRoles(name, fields string, ...) (*ci.Membership, error)
- func PatchGroup(name, updateMask, fields string, group *ci.Group) (map[string]interface{}, error)
- func SearchGroups(query, view, fields string, cap int) (<-chan *ci.Group, <-chan error)
- func SearchTransitiveGroups(parent, query, fields string, cap int) (<-chan *ci.GroupRelation, <-chan error)
- func SearchTransitiveMemberships(parent, fields string, cap int) (<-chan *ci.MemberRelation, <-chan error)
- func SetClient(c *http.Client)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckTransitiveMembership ¶
CheckTransitiveMembership checks a potential member for membership in a group.
func CreateGroup ¶
func CreateGroup(group *ci.Group, initialGroupConfig, fields string) (map[string]interface{}, error)
CreateGroup creates a group.
func CreateMembership ¶
func CreateMembership(parent, fields string, membership *ci.Membership) (googleapi.RawMessage, error)
CreateMembership creates a Membership.
func DeleteMembership ¶
DeleteMembership deletes a Membership.
func GetMembership ¶
func GetMembership(name, fields string) (*ci.Membership, error)
GetMembership retrieves a Membership.
func GetMembershipGraph ¶
GetMembershipGraph gets a membership graph of just a member or both a member and a group. Given a member, the response will contain all membership paths from the member. Given both a group and a member, the response will contain all membership paths between the group and the member.
func ListGroups ¶
ListGroups retrieves a list of groups
func ListMembers ¶
func ListMembers(parent, fields, view string, cap int) (<-chan *ci.Membership, <-chan error)
ListMembers lists the members of a group
func LookupGroup ¶
LookupGroup looks up a group via its email address and returns its resourceName
func LookupMembership ¶
LookupMembership looks up the resource name of a Membership by its EntityKey.
func ModifyMembershipRoles ¶
func ModifyMembershipRoles(name, fields string, modifyMembershipRolesRequest *ci.ModifyMembershipRolesRequest) (*ci.Membership, error)
ModifyMembershipRoles modifies the MembershipRoles of a Membership.
func PatchGroup ¶
PatchGroup updates a group using patch semantics.
func SearchGroups ¶
SearchGroups searches for Groups matching a specified query.
func SearchTransitiveGroups ¶
func SearchTransitiveGroups(parent, query, fields string, cap int) (<-chan *ci.GroupRelation, <-chan error)
SearchTransitiveGroups searches transitive groups of a member.
func SearchTransitiveMemberships ¶
func SearchTransitiveMemberships(parent, fields string, cap int) (<-chan *ci.MemberRelation, <-chan error)
SearchTransitiveMemberships search transitive memberships of a group.
Types ¶
This section is empty.