groups

package
v1.58.6 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGroupService

func NewGroupService(clientID string, accountID string, clientSecret string) settings.CRUDService[*groups.Group]

func Service

func Service(credentials *settings.Credentials) settings.CRUDService[*groups.Group]

Types

type GroupServiceClient

type GroupServiceClient struct {
	// contains filtered or unexported fields
}

func (*GroupServiceClient) AccountID

func (me *GroupServiceClient) AccountID() string

func (*GroupServiceClient) ClientID

func (me *GroupServiceClient) ClientID() string

func (*GroupServiceClient) ClientSecret

func (me *GroupServiceClient) ClientSecret() string

func (*GroupServiceClient) Create

func (me *GroupServiceClient) Create(group *groups.Group) (*api.Stub, error)

TODO ... keep group cache up to date UUID string `json:"uuid"` Name string `json:"name"` Description string `json:"description"` FederatedAttributeValues []string `json:"federatedAttributeValues"` Permissions groups.Permissions `json:"permissions"`

func (*GroupServiceClient) Delete

func (me *GroupServiceClient) Delete(id string) error

func (*GroupServiceClient) Get

func (me *GroupServiceClient) Get(id string, v *groups.Group) (err error)

func (*GroupServiceClient) List

func (me *GroupServiceClient) List() (api.Stubs, error)

func (*GroupServiceClient) Name added in v1.28.0

func (me *GroupServiceClient) Name() string

func (*GroupServiceClient) SchemaID

func (me *GroupServiceClient) SchemaID() string

func (*GroupServiceClient) Update

func (me *GroupServiceClient) Update(uuid string, group *groups.Group) error

type ListGroup

type ListGroup struct {
	UUID                     string             `json:"uuid"`
	Name                     string             `json:"name"`
	Description              string             `json:"description"`
	FederatedAttributeValues []string           `json:"federatedAttributeValues"`
	Permissions              groups.Permissions `json:"permissions"`
}

type ListGroupsResponse

type ListGroupsResponse struct {
	Count int          `json:"count:"`
	Items []*ListGroup `json:"items"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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