github.com/DaAlbrecht/cf-cli@v0.0.0-20231128151943-1fe19bb400b9/actor/v7action/uaa_client.go (about)

     1  package v7action
     2  
     3  import (
     4  	"code.cloudfoundry.org/cli/api/uaa"
     5  	"code.cloudfoundry.org/cli/api/uaa/constant"
     6  )
     7  
     8  //go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 . UAAClient
     9  
    10  type UAAClient interface {
    11  	Authenticate(credentials map[string]string, origin string, grantType constant.GrantType) (string, string, error)
    12  	CreateUser(username string, password string, origin string) (uaa.User, error)
    13  	DeleteUser(userGuid string) (uaa.User, error)
    14  	GetAPIVersion() (string, error)
    15  	GetLoginPrompts() (map[string][]string, error)
    16  	GetSSHPasscode(accessToken string, sshOAuthClient string) (string, error)
    17  	ListUsers(userName, origin string) ([]uaa.User, error)
    18  	RefreshAccessToken(refreshToken string) (uaa.RefreshedTokens, error)
    19  	UpdatePassword(userGUID string, oldPassword string, newPassword string) error
    20  	ValidateClientUser(clientID string) error
    21  	Revoke(token string) error
    22  }