Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Grouper ¶
type Grouper struct {
// contains filtered or unexported fields
}
func NewGrouper ¶
func NewGrouper(credentialsPath string, delegator string, pattern string, timeout time.Duration) (*Grouper, error)
NewGrouper returns a grouper initialized with the jwt.Config from credentialsPath.
The delagator is the account on whose behalf the service account should operate. The client id must be registered with that account so that it may act on its behalf.
Pattern, it non-empty, is a regexp pattern accounts must match before forwarding to the API. Accounts that do not match the pattern will return ErrNotFound.
The timeout will set a context timeout for a fetch of all pages for each group.
Click to show internal directories.
Click to hide internal directories.