Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{
Use: "caasp-cli",
Short: "SUSE CaaS Platform CLI",
Long: "",
}
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
type AuthRequest ¶
type AuthRequest struct { ClientID string ClientSecret string IssuerURL string Username string Password string RootCA []byte // contains filtered or unexported fields }
AuthRequest represents an OAuth2 auth request flow
type AuthResponse ¶
type AuthResponse struct { IDToken string AccessToken string TokenType string Expiry time.Time RefreshToken string Scopes []string }
AuthResponse is the final auth response
func Auth ¶
func Auth(authRequest AuthRequest) (AuthResponse, error)
Auth will perform an OIDC / OAuth2 handshake without requiring a web browser
Click to show internal directories.
Click to hide internal directories.