Documentation ¶
Index ¶
- Constants
- func Authorization() *rest.WebTarget
- func CheckInstalled()
- func ClientForm() url.Values
- func ConfigPath() string
- func CreateTokenDir()
- func DelegationComplete() *rest.WebTarget
- func Execute()
- func GetFreePort() (int, error)
- func InitializeClient()
- func Logout() *rest.WebTarget
- func Oidc() *rest.WebTarget
- func Token() *rest.WebTarget
- func TokenDir() string
- func TokenFile(client string) string
- func Userinfo() *rest.WebTarget
- type AccessTokenResponse
- type ExecCredential
- type KeycloakClient
- type LoginParams
- type ResponseType
- type SpecType
Constants ¶
View Source
const LOGIN_CLIENT = "login_client"
View Source
const LOGIN_SECRET = "login_secret"
View Source
const REALM_URL = "realm_url"
View Source
const SAVE = "save"
Variables ¶
This section is empty.
Functions ¶
func Authorization ¶
func CheckInstalled ¶
func CheckInstalled()
func ClientForm ¶
func ConfigPath ¶
func ConfigPath() string
func CreateTokenDir ¶
func CreateTokenDir()
func DelegationComplete ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetFreePort ¶
func InitializeClient ¶
func InitializeClient()
Types ¶
type AccessTokenResponse ¶
type AccessTokenResponse struct { AccessToken string `json:"access_token"` IdToken string `json:"id_token"` RefreshToken string `json:"refresh_token"` ExpiresIn int64 `json:"expires_in"` RefreshExpiresIn int64 `json:"refresh_expires_in"` }
func Browser ¶
func Browser() *AccessTokenResponse
func DoLogin ¶
func DoLogin() *AccessTokenResponse
func ReadToken ¶
func ReadToken(client string) (*AccessTokenResponse, error)
func (*AccessTokenResponse) ProcessTokenResponse ¶
func (tokenResponse *AccessTokenResponse) ProcessTokenResponse(client string)
type ExecCredential ¶
type ExecCredential struct {
Spec SpecType
}
type KeycloakClient ¶
type KeycloakClient struct {
// contains filtered or unexported fields
}
type LoginParams ¶
type ResponseType ¶
type ResponseType struct {
Status int
}
type SpecType ¶
type SpecType struct { Interactive bool Response ResponseType }
Click to show internal directories.
Click to hide internal directories.