github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+incompatible/actor/v2action/uaa_client.go (about)

     1  package v2action
     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  	Authenticate(ID string, secret string, grantType constant.GrantType) (string, string, error)
    12  	CreateUser(username string, password string, origin string) (uaa.User, error)
    13  	GetSSHPasscode(accessToken string, sshOAuthClient string) (string, error)
    14  	RefreshAccessToken(refreshToken string) (uaa.RefreshedTokens, error)
    15  }