Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface {
Login(user, password string) (*oauth2.Token, error)
Refresh(refreshToken string) (*oauth2.Token, error)
DeviceCode(authKind, authProvider string) (*oauth2.DeviceAuthResponse, error)
DeviceAccessToken(authKind, slugID string, deviceCAuthResp *oauth2.DeviceAuthResponse) (*oauth2.Token, error)
ClientCredentialsToken(authKind, slugID, clientID, clientSecret string) (*oauth2.Token, error)
}
Interface has methods to work with Auth resource
func New ¶
func New(client *perseshttp.RESTClient) Interface
Click to show internal directories.
Click to hide internal directories.