gsmci

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTransitiveMembership

func CheckTransitiveMembership(parent, query string) (bool, error)

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 DeleteGroup

func DeleteGroup(name string) (bool, error)

DeleteGroup deletes a group.

func DeleteMembership

func DeleteMembership(name string) (bool, error)

DeleteMembership deletes a Membership.

func GetGroup

func GetGroup(name, fields string) (*ci.Group, error)

GetGroup retrieves a group.

func GetMembership

func GetMembership(name, fields string) (*ci.Membership, error)

GetMembership retrieves a Membership.

func GetMembershipGraph

func GetMembershipGraph(parent, query, fields string) (map[string]interface{}, error)

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

func ListGroups(parent, view, fields string, cap int) (<-chan *ci.Group, <-chan error)

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

func LookupGroup(email string) (string, error)

LookupGroup looks up a group via its email address and returns its resourceName

func LookupMembership

func LookupMembership(parent, memberKeyID, memberKeyNamespace string) (string, error)

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

func PatchGroup(name, updateMask, fields string, group *ci.Group) (map[string]interface{}, error)

PatchGroup updates a group using patch semantics.

func SearchGroups

func SearchGroups(query, view, fields string, cap int) (<-chan *ci.Group, <-chan error)

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.

func SetClient

func SetClient(c *http.Client)

SetClient is used to inject a *http.Client into the package

Types

This section is empty.

Jump to

Keyboard shortcuts

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