Documentation
¶
Index ¶
- Constants
- Variables
- func ActivateUserCmd(api *uaa.API, username, origin, attributes string) error
- func ActivateUserValidations(cfg config.Config, args []string) error
- func AddMemberCmd(api *uaa.API, groupName, username string, log cli.Logger) error
- func AddMemberPreRunValidations(config cli_config.Config, args []string) error
- func AuthcodeTokenArgumentValidation(cfg config.Config, args []string, clientSecret string, tokenFormat string, ...) error
- func AuthcodeTokenCommandRun(doneRunning chan bool, clientId string, authcodeImp cli.ClientImpersonator, ...)
- func CreateClientCmd(api *uaa.API, ...) error
- func CreateClientPreRunValidations(cfg config.Config, args []string) error
- func CreateGroupCmd(api *uaa.API, printer cli.Printer, name, description string) error
- func CreateGroupValidation(cfg config.Config, args []string) error
- func CreateUserCmd(api *uaa.API, printer cli.Printer, ...) error
- func CreateUserValidation(cfg config.Config, args []string, familyName, givenName string, ...) error
- func CurlCmd(api *uaa.API, logger cli.Logger, path, method, data string, headers []string) error
- func DeactivateUserCmd(api *uaa.API, username, origin, attributes string) error
- func DeactivateUserValidations(cfg config.Config, args []string) error
- func DeleteClientCmd(api *uaa.API, clientId string) error
- func DeleteClientValidations(cfg config.Config, args []string) error
- func DeleteUserCmd(api *uaa.API, username, origin, attributes string) error
- func DeleteUserValidations(cfg config.Config, args []string) error
- func Execute()
- func GetAPIFromSavedTokenInContext() *uaa.API
- func GetClientCmd(api *uaa.API, clientId string) error
- func GetClientCredentialsTokenCmd(cfg config.Config, clientId, clientSecret string) error
- func GetClientCredentialsTokenValidations(cfg config.Config, args []string, clientSecret string) error
- func GetClientValidations(cfg config.Config, args []string) error
- func GetCurlValidations(cfg config.Config, args []string) error
- func GetGroupCmd(api *uaa.API, printer cli.Printer, name, attributes string) error
- func GetGroupValidations(cfg config.Config, args []string) error
- func GetLogger() *cli.Logger
- func GetPasswordTokenCmd(cfg config.Config, ...) error
- func GetPasswordTokenValidations(cfg config.Config, args []string, username, password string) error
- func GetSavedConfig() config.Config
- func GetTokenKeyCmd(api *uaa.API) error
- func GetTokenKeysCmd(api *uaa.API) error
- func GetUnauthenticatedAPI() *uaa.API
- func GetUnauthenticatedAPIFromConfig(cfg config.Config) *uaa.API
- func GetUserCmd(api *uaa.API, printer cli.Printer, username, origin, attributes string) error
- func GetUserValidations(cfg config.Config, args []string) error
- func GroupMappingValidations(cfg config.Config, args []string) error
- func ImplicitTokenArgumentValidation(cfg config.Config, args []string, port int) error
- func ImplicitTokenCommandRun(doneRunning chan bool, clientId string, implicitImp cli.ClientImpersonator, ...)
- func InfoCmd(api *uaa.API) error
- func ListClientsCmd(api *uaa.API) error
- func ListClientsValidations(cfg config.Config) error
- func ListGroupMappingsCmd(api *uaa.API, printer cli.Printer) error
- func ListGroupValidations(cfg config.Config) error
- func ListGroupsCmd(api *uaa.API, printer cli.Printer, ...) error
- func ListUserValidations(cfg config.Config) error
- func ListUsersCmd(api *uaa.API, printer cli.Printer, ...) error
- func MapGroupCmd(api *uaa.API, printer cli.Printer, externalGroupName, groupName, origin string) error
- func NewApiFromSavedConfig() *uaa.API
- func RefreshTokenCmd(cfg config.Config, log cli.Logger, tokenFormat string) error
- func RefreshTokenValidations(cfg config.Config, clientSecret string) error
- func RemoveMemberCmd(api *uaa.API, groupName, username string, log cli.Logger) error
- func RemoveMemberPreRunValidations(config cli_config.Config, args []string) error
- func SaveContext(ctx config.UaaContext, log *cli.Logger)
- func SetClientSecretCmd(api *uaa.API, log cli.Logger, clientId, clientSecret string) error
- func SetClientSecretValidation(cfg config.Config, args []string, clientSecret string) error
- func ShowTargetCmd(api *uaa.API, cfg config.Config, log cli.Logger) error
- func UnmapGroupCmd(api *uaa.API, printer cli.Printer, externalGroupName, groupName, origin string) error
- func UpdateClientCmd(api *uaa.API, ...) error
- func UpdateClientValidations(cfg config.Config, args []string, clientSecret string) error
- func UpdateTargetCmd(cfg config.Config, newTarget string, log cli.Logger) error
- func UserinfoCmd(api *uaa.API) error
- func UserinfoValidations(cfg config.Config) error
- type TargetStatus
Constants ¶
View Source
const ( INTRO_CATEGORY = "Getting Started" TOKEN_CATEGORY = "Getting Tokens" CLIENT_CRUD_CATEGORY = "Managing Clients" USER_CRUD_CATEGORY = "Managing Users" GROUP_CRUD_CATEGORY = "Managing Groups" MISC_CATEGORY = "Miscellaneous" )
Command categories
Variables ¶
View Source
var RootCmd = cobra.Command{ Use: "uaa", Short: "A cli for interacting with UAAs", Long: help.Root(version.VersionString()), }
Functions ¶
func ActivateUserCmd ¶
func AddMemberCmd ¶
func AddMemberPreRunValidations ¶
func AddMemberPreRunValidations(config cli_config.Config, args []string) error
func AuthcodeTokenCommandRun ¶
func CreateClientCmd ¶
func CreateGroupCmd ¶
func CreateUserCmd ¶
func CreateUserValidation ¶
func DeactivateUserCmd ¶
func DeleteClientCmd ¶
func DeleteUserCmd ¶
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 GetAPIFromSavedTokenInContext ¶
func GetAPIFromSavedTokenInContext() *uaa.API
func GetClientCmd ¶
func GetGroupCmd ¶
func GetPasswordTokenCmd ¶
func GetSavedConfig ¶
func GetTokenKeyCmd ¶
func GetTokenKeyCmd(api *uaa.API) error
func GetTokenKeysCmd ¶
func GetTokenKeysCmd(api *uaa.API) error
func GetUnauthenticatedAPI ¶
func GetUnauthenticatedAPI() *uaa.API
func GetUserCmd ¶
func ImplicitTokenCommandRun ¶
func ListClientsCmd ¶
func ListClientsCmd(api *uaa.API) error
func ListClientsValidations ¶
func ListGroupMappingsCmd ¶
func ListGroupValidations ¶
func ListGroupsCmd ¶
func ListUserValidations ¶
func ListUsersCmd ¶
func MapGroupCmd ¶
func NewApiFromSavedConfig ¶
func NewApiFromSavedConfig() *uaa.API
func RefreshTokenCmd ¶
func RefreshTokenValidations ¶
func RemoveMemberCmd ¶
func RemoveMemberPreRunValidations ¶
func RemoveMemberPreRunValidations(config cli_config.Config, args []string) error
func SaveContext ¶
func SaveContext(ctx config.UaaContext, log *cli.Logger)
func SetClientSecretCmd ¶
func UnmapGroupCmd ¶
func UpdateClientCmd ¶
func UpdateClientValidations ¶
func UpdateTargetCmd ¶
func UserinfoCmd ¶
func UserinfoCmd(api *uaa.API) error
func UserinfoValidations ¶
Types ¶
Source Files
¶
- activate_user.go
- add_member.go
- api_client.go
- context.go
- contexts.go
- create_client.go
- create_group.go
- create_user.go
- curl.go
- deactivate_user.go
- delete_client.go
- delete_user.go
- get_authcode_token.go
- get_client.go
- get_client_credentials_token.go
- get_group.go
- get_implicit_token.go
- get_password_token.go
- get_token_key.go
- get_token_keys.go
- get_user.go
- group_mapping_validations.go
- info.go
- list_clients.go
- list_group_mappings.go
- list_groups.go
- list_users.go
- map_group.go
- refresh_token.go
- remove_member.go
- root.go
- set_client_secret.go
- target.go
- unmap_group.go
- update_client.go
- userinfo.go
- validations.go
- version.go
Click to show internal directories.
Click to hide internal directories.