github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+incompatible/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 counterfeiter . UAAClient
     9  
    10  type UAAClient interface {
    11  	APIVersion() string
    12  	Authenticate(credentials map[string]string, origin string, grantType constant.GrantType) (string, string, error)
    13  	CreateUser(username string, password string, origin string) (uaa.User, error)
    14  	DeleteUser(userGuid string) (uaa.User, error)
    15  	GetSSHPasscode(accessToken string, sshOAuthClient string) (string, error)
    16  	ListUsers(userName, origin string) ([]uaa.User, error)
    17  	RefreshAccessToken(refreshToken string) (uaa.RefreshedTokens, error)
    18  	ValidateClientUser(clientID string) error
    19  }