iam

package
v0.7.21 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(service *Service) *handler

func Routes

func Routes(shieldClient shieldv1beta1rpc.ShieldServiceClient, wardenClient WardenClient) func(r chiv5.Router)

Types

type Service

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

func NewService

func NewService(shieldClient shieldv1beta1rpc.ShieldServiceClient, wardenClient WardenClient) *Service

func (*Service) LinkGroupToWarden

func (svc *Service) LinkGroupToWarden(ctx context.Context, groupID, wardenTeamID string) (map[string]any, error)

func (*Service) UserWardenTeamList

func (svc *Service) UserWardenTeamList(ctx context.Context, userEmail string) ([]warden.Team, error)

type WardenClient

type WardenClient interface {
	ListUserTeams(ctx context.Context, req warden.TeamListRequest) ([]warden.Team, error)
	TeamByUUID(ctx context.Context, req warden.TeamByUUIDRequest) (*warden.Team, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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