groups

package
v1.70.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRevision added in v1.60.0

func GetRevision() string

func NewGroupService

func NewGroupService(clientID string, accountID string, clientSecret string, tokenURL string, endpointURL 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(ctx context.Context, 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(ctx context.Context, id string) error

func (*GroupServiceClient) EndpointURL added in v1.67.0

func (me *GroupServiceClient) EndpointURL() string

func (*GroupServiceClient) Get

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

func (*GroupServiceClient) List

func (me *GroupServiceClient) List(ctx context.Context) (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) TokenURL added in v1.67.0

func (me *GroupServiceClient) TokenURL() string

func (*GroupServiceClient) Update

func (me *GroupServiceClient) Update(ctx context.Context, 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