Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnmarshal = errors.New("cannot unmarshal JSON")
)
Functions ¶
This section is empty.
Types ¶
type SMDClient ¶
type SMDClient struct {
// contains filtered or unexported fields
}
SMDClient is a client for SMD
func NewSMDClient ¶
NewSMDClient creates a new SMDClient which connects to the SMD server at baseurl and uses the provided JWT server for authentication
func (*SMDClient) GroupMembership ¶
GroupMembership returns the group labels for the xname with the given ID
func (*SMDClient) RefreshToken ¶ added in v0.1.0
Refresh the cached access token, using the provided JWT server TODO: OPAAL returns a token without having to perform the usual OAuth2 authorization grant. Support for said grant should probably be implemented at some point.
Click to show internal directories.
Click to hide internal directories.