cli

package
v0.0.0-...-59d93fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCommands

func RegisterCommands(app *cobra.Command, c *auth.Client)

RegisterCommands registers the resource action CLI commands.

Types

type AcceptInviteInvitationCommand

type AcceptInviteInvitationCommand struct {
	// Unique acceptance code for a user to accept a previously extended invitation
	AcceptCode  string
	PrettyPrint bool
}

AcceptInviteInvitationCommand is the command line data structure for the acceptInvite action of invitation

func (*AcceptInviteInvitationCommand) RegisterFlags

func (cmd *AcceptInviteInvitationCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*AcceptInviteInvitationCommand) Run

func (cmd *AcceptInviteInvitationCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the AcceptInviteInvitationCommand command.

type AddCollaboratorsCommand

type AddCollaboratorsCommand struct {
	IdentityID string
	// ID of the space
	SpaceID     string
	PrettyPrint bool
}

AddCollaboratorsCommand is the command line data structure for the add action of collaborators

func (*AddCollaboratorsCommand) RegisterFlags

func (cmd *AddCollaboratorsCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*AddCollaboratorsCommand) Run

func (cmd *AddCollaboratorsCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the AddCollaboratorsCommand command.

type AddManyCollaboratorsCommand

type AddManyCollaboratorsCommand struct {
	Payload     string
	ContentType string
	// ID of the space
	SpaceID     string
	PrettyPrint bool
}

AddManyCollaboratorsCommand is the command line data structure for the add-many action of collaborators

func (*AddManyCollaboratorsCommand) RegisterFlags

func (cmd *AddManyCollaboratorsCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*AddManyCollaboratorsCommand) Run

func (cmd *AddManyCollaboratorsCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the AddManyCollaboratorsCommand command.

type AssignRoleResourceRolesCommand

type AssignRoleResourceRolesCommand struct {
	Payload     string
	ContentType string
	ResourceID  string
	PrettyPrint bool
}

AssignRoleResourceRolesCommand is the command line data structure for the assignRole action of resource_roles

func (*AssignRoleResourceRolesCommand) RegisterFlags

func (cmd *AssignRoleResourceRolesCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*AssignRoleResourceRolesCommand) Run

func (cmd *AssignRoleResourceRolesCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the AssignRoleResourceRolesCommand command.

type AuditTokenCommand

type AuditTokenCommand struct {
	// Resource ID of a resource on which the user wishes to perform an operation
	ResourceID  string
	PrettyPrint bool
}

AuditTokenCommand is the command line data structure for the audit action of token

func (*AuditTokenCommand) RegisterFlags

func (cmd *AuditTokenCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*AuditTokenCommand) Run

func (cmd *AuditTokenCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the AuditTokenCommand command.

type AuthorizeAuthorizeCommand

type AuthorizeAuthorizeCommand struct {
	// The name of the api client which is requesting a token
	APIClient string
	ClientID  string
	// This is where authorization provider will send authorization_code
	RedirectURI string
	// Informs the Authorization Server of the mechanism to be used for returning Authorization Response parameters. If response_mode=query then response parameters are encoded in the query string added to the redirect_uri when redirecting back to the Client. If response_mode=fragment then response parameters are encoded in the fragment added to the redirect_uri when redirecting back to the Client. The default Response Mode for the code Response Type is the query encoding
	ResponseMode string
	// response_type=code for grant_type authorization_code
	ResponseType string
	Scope        string
	State        string
	PrettyPrint  bool
}

AuthorizeAuthorizeCommand is the command line data structure for the authorize action of authorize

func (*AuthorizeAuthorizeCommand) RegisterFlags

func (cmd *AuthorizeAuthorizeCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*AuthorizeAuthorizeCommand) Run

func (cmd *AuthorizeAuthorizeCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the AuthorizeAuthorizeCommand command.

type BanNamedusersCommand

type BanNamedusersCommand struct {
	// Username
	Username    string
	PrettyPrint bool
}

BanNamedusersCommand is the command line data structure for the ban action of namedusers

func (*BanNamedusersCommand) RegisterFlags

func (cmd *BanNamedusersCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*BanNamedusersCommand) Run

func (cmd *BanNamedusersCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the BanNamedusersCommand command.

type CallbackAuthorizeCommand

type CallbackAuthorizeCommand struct {
	// authorization_code
	Code        string
	State       string
	PrettyPrint bool
}

CallbackAuthorizeCommand is the command line data structure for the callback action of authorize

func (*CallbackAuthorizeCommand) RegisterFlags

func (cmd *CallbackAuthorizeCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*CallbackAuthorizeCommand) Run

func (cmd *CallbackAuthorizeCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the CallbackAuthorizeCommand command.

type CallbackLoginCommand

type CallbackLoginCommand struct {
	// Authorization code
	Code string
	// state value
	State       string
	PrettyPrint bool
}

CallbackLoginCommand is the command line data structure for the callback action of login

func (*CallbackLoginCommand) RegisterFlags

func (cmd *CallbackLoginCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*CallbackLoginCommand) Run

func (cmd *CallbackLoginCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the CallbackLoginCommand command.

type CreateInviteInvitationCommand

type CreateInviteInvitationCommand struct {
	Payload     string
	ContentType string
	// Unique identifier of the organization, team, security group or resource
	InviteTo    string
	PrettyPrint bool
}

CreateInviteInvitationCommand is the command line data structure for the createInvite action of invitation

func (*CreateInviteInvitationCommand) RegisterFlags

func (cmd *CreateInviteInvitationCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*CreateInviteInvitationCommand) Run

func (cmd *CreateInviteInvitationCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the CreateInviteInvitationCommand command.

type CreateOrganizationCommand

type CreateOrganizationCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

CreateOrganizationCommand is the command line data structure for the create action of organization

func (*CreateOrganizationCommand) RegisterFlags

func (cmd *CreateOrganizationCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*CreateOrganizationCommand) Run

func (cmd *CreateOrganizationCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the CreateOrganizationCommand command.

type CreateSpaceCommand

type CreateSpaceCommand struct {
	// ID of the space
	SpaceID     string
	PrettyPrint bool
}

CreateSpaceCommand is the command line data structure for the create action of space

func (*CreateSpaceCommand) RegisterFlags

func (cmd *CreateSpaceCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*CreateSpaceCommand) Run

func (cmd *CreateSpaceCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the CreateSpaceCommand command.

type CreateTeamCommand

type CreateTeamCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

CreateTeamCommand is the command line data structure for the create action of team

func (*CreateTeamCommand) RegisterFlags

func (cmd *CreateTeamCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*CreateTeamCommand) Run

func (cmd *CreateTeamCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the CreateTeamCommand command.

type CreateUsersCommand

type CreateUsersCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

CreateUsersCommand is the command line data structure for the create action of users

func (*CreateUsersCommand) RegisterFlags

func (cmd *CreateUsersCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*CreateUsersCommand) Run

func (cmd *CreateUsersCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the CreateUsersCommand command.

type DeactivateNamedusersCommand

type DeactivateNamedusersCommand struct {
	// Username
	Username    string
	PrettyPrint bool
}

DeactivateNamedusersCommand is the command line data structure for the deactivate action of namedusers

func (*DeactivateNamedusersCommand) RegisterFlags

func (cmd *DeactivateNamedusersCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*DeactivateNamedusersCommand) Run

func (cmd *DeactivateNamedusersCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the DeactivateNamedusersCommand command.

type DeleteResourceCommand

type DeleteResourceCommand struct {
	// Identifier of the resource to delete
	ResourceID  string
	PrettyPrint bool
}

DeleteResourceCommand is the command line data structure for the delete action of resource

func (*DeleteResourceCommand) RegisterFlags

func (cmd *DeleteResourceCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*DeleteResourceCommand) Run

func (cmd *DeleteResourceCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the DeleteResourceCommand command.

type DeleteSpaceCommand

type DeleteSpaceCommand struct {
	// ID of the space
	SpaceID     string
	PrettyPrint bool
}

DeleteSpaceCommand is the command line data structure for the delete action of space

func (*DeleteSpaceCommand) RegisterFlags

func (cmd *DeleteSpaceCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*DeleteSpaceCommand) Run

func (cmd *DeleteSpaceCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the DeleteSpaceCommand command.

type DeleteTokenCommand

type DeleteTokenCommand struct {
	// The resource for which the external token is being deleted, example https://github.com or https://api.starter-us-east-2.openshift.com
	For         string
	PrettyPrint bool
}

DeleteTokenCommand is the command line data structure for the Delete action of token

func (*DeleteTokenCommand) RegisterFlags

func (cmd *DeleteTokenCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*DeleteTokenCommand) Run

func (cmd *DeleteTokenCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the DeleteTokenCommand command.

type DeprovisionNamedusersCommand

type DeprovisionNamedusersCommand struct {
	// Username
	Username    string
	PrettyPrint bool
}

DeprovisionNamedusersCommand is the command line data structure for the deprovision action of namedusers

func (*DeprovisionNamedusersCommand) RegisterFlags

func (cmd *DeprovisionNamedusersCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*DeprovisionNamedusersCommand) Run

func (cmd *DeprovisionNamedusersCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the DeprovisionNamedusersCommand command.

type ExchangeTokenCommand

type ExchangeTokenCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

ExchangeTokenCommand is the command line data structure for the Exchange action of token

func (*ExchangeTokenCommand) RegisterFlags

func (cmd *ExchangeTokenCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*ExchangeTokenCommand) Run

func (cmd *ExchangeTokenCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the ExchangeTokenCommand command.

type HasScopeResourceRolesCommand

type HasScopeResourceRolesCommand struct {
	// The identifier of the resource to check for a user scope
	ResourceID string
	// The name of the scope to check for the user
	ScopeName   string
	PrettyPrint bool
}

HasScopeResourceRolesCommand is the command line data structure for the hasScope action of resource_roles

func (*HasScopeResourceRolesCommand) RegisterFlags

func (cmd *HasScopeResourceRolesCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*HasScopeResourceRolesCommand) Run

func (cmd *HasScopeResourceRolesCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the HasScopeResourceRolesCommand command.

type KeysTokenCommand

type KeysTokenCommand struct {
	// Key format. If set to "jwk" (used by default) then JSON Web Key format will be used. If "pem" then a PEM-like format (PEM without header and footer) will be used.
	Format      string
	PrettyPrint bool
}

KeysTokenCommand is the command line data structure for the keys action of token

func (*KeysTokenCommand) RegisterFlags

func (cmd *KeysTokenCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*KeysTokenCommand) Run

func (cmd *KeysTokenCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the KeysTokenCommand command.

type LinkCallbackTokenCommand

type LinkCallbackTokenCommand struct {
	// Code provided by an external oauth2 resource provider
	Code string
	// State generated by the link request
	State       string
	PrettyPrint bool
}

LinkCallbackTokenCommand is the command line data structure for the LinkCallback action of token

func (*LinkCallbackTokenCommand) RegisterFlags

func (cmd *LinkCallbackTokenCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*LinkCallbackTokenCommand) Run

func (cmd *LinkCallbackTokenCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the LinkCallbackTokenCommand command.

type LinkTokenCommand

type LinkTokenCommand struct {
	// Resource we need to link accounts for. Multiple resources should be separated by comma.
	For string
	// URL to be redirected to after successful account linking. If not set then will redirect to the referrer instead.
	Redirect    string
	PrettyPrint bool
}

LinkTokenCommand is the command line data structure for the link action of token

func (*LinkTokenCommand) RegisterFlags

func (cmd *LinkTokenCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*LinkTokenCommand) Run

func (cmd *LinkTokenCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the LinkTokenCommand command.

type ListAssignedByRoleNameResourceRolesCommand

type ListAssignedByRoleNameResourceRolesCommand struct {
	ResourceID  string
	RoleName    string
	PrettyPrint bool
}

ListAssignedByRoleNameResourceRolesCommand is the command line data structure for the listAssignedByRoleName action of resource_roles

func (*ListAssignedByRoleNameResourceRolesCommand) RegisterFlags

RegisterFlags registers the command flags with the command line.

func (*ListAssignedByRoleNameResourceRolesCommand) Run

Run makes the HTTP request corresponding to the ListAssignedByRoleNameResourceRolesCommand command.

type ListAssignedResourceRolesCommand

type ListAssignedResourceRolesCommand struct {
	ResourceID  string
	PrettyPrint bool
}

ListAssignedResourceRolesCommand is the command line data structure for the listAssigned action of resource_roles

func (*ListAssignedResourceRolesCommand) RegisterFlags

func (cmd *ListAssignedResourceRolesCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*ListAssignedResourceRolesCommand) Run

Run makes the HTTP request corresponding to the ListAssignedResourceRolesCommand command.

type ListCollaboratorsCommand

type ListCollaboratorsCommand struct {
	// ID of the space
	SpaceID string
	// Paging size
	PageLimit int
	// Paging start position
	PageOffset      string
	IfModifiedSince string
	IfNoneMatch     string
	PrettyPrint     bool
}

ListCollaboratorsCommand is the command line data structure for the list action of collaborators

func (*ListCollaboratorsCommand) RegisterFlags

func (cmd *ListCollaboratorsCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*ListCollaboratorsCommand) Run

func (cmd *ListCollaboratorsCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the ListCollaboratorsCommand command.

type ListOrganizationCommand

type ListOrganizationCommand struct {
	PrettyPrint bool
}

ListOrganizationCommand is the command line data structure for the list action of organization

func (*ListOrganizationCommand) RegisterFlags

func (cmd *ListOrganizationCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*ListOrganizationCommand) Run

func (cmd *ListOrganizationCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the ListOrganizationCommand command.

type ListResourcesUserCommand

type ListResourcesUserCommand struct {
	// the type of resource to list
	Type        string
	PrettyPrint bool
}

ListResourcesUserCommand is the command line data structure for the listResources action of user

func (*ListResourcesUserCommand) RegisterFlags

func (cmd *ListResourcesUserCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*ListResourcesUserCommand) Run

func (cmd *ListResourcesUserCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the ListResourcesUserCommand command.

type ListRolesCommand

type ListRolesCommand struct {
	// resource type for which roles are being listed
	ResourceType string
	PrettyPrint  bool
}

ListRolesCommand is the command line data structure for the list action of roles

func (*ListRolesCommand) RegisterFlags

func (cmd *ListRolesCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*ListRolesCommand) Run

func (cmd *ListRolesCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the ListRolesCommand command.

type ListTeamCommand

type ListTeamCommand struct {
	PrettyPrint bool
}

ListTeamCommand is the command line data structure for the list action of team

func (*ListTeamCommand) RegisterFlags

func (cmd *ListTeamCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*ListTeamCommand) Run

func (cmd *ListTeamCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the ListTeamCommand command.

type ListTeamsSpaceCommand

type ListTeamsSpaceCommand struct {
	// ID of the space
	SpaceID     string
	PrettyPrint bool
}

ListTeamsSpaceCommand is the command line data structure for the listTeams action of space

func (*ListTeamsSpaceCommand) RegisterFlags

func (cmd *ListTeamsSpaceCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*ListTeamsSpaceCommand) Run

func (cmd *ListTeamsSpaceCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the ListTeamsSpaceCommand command.

type ListTokensUsersCommand

type ListTokensUsersCommand struct {
	// the ID value of the user's identity
	ID          string
	PrettyPrint bool
}

ListTokensUsersCommand is the command line data structure for the listTokens action of users

func (*ListTokensUsersCommand) RegisterFlags

func (cmd *ListTokensUsersCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*ListTokensUsersCommand) Run

func (cmd *ListTokensUsersCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the ListTokensUsersCommand command.

type ListUsersCommand

type ListUsersCommand struct {
	// email to search users
	FilterEmail string
	// username to search users
	FilterUsername  string
	IfModifiedSince string
	IfNoneMatch     string
	PrettyPrint     bool
}

ListUsersCommand is the command line data structure for the list action of users

func (*ListUsersCommand) RegisterFlags

func (cmd *ListUsersCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*ListUsersCommand) Run

func (cmd *ListUsersCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the ListUsersCommand command.

type LoginLoginCommand

type LoginLoginCommand struct {
	// The name of the api client which is requesting a token
	APIClient string
	// URL to be redirected to after successful login. If not set then will redirect to the referrer instead.
	Redirect string
	// If scope=offline_access then an offline token will be issued instead of a regular refresh token
	Scope       string
	PrettyPrint bool
}

LoginLoginCommand is the command line data structure for the login action of login

func (*LoginLoginCommand) RegisterFlags

func (cmd *LoginLoginCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*LoginLoginCommand) Run

func (cmd *LoginLoginCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the LoginLoginCommand command.

type LogoutLogoutCommand

type LogoutLogoutCommand struct {
	// URL to be redirected to after successful logout. If not set then will redirect to the referrer instead.
	Redirect    string
	Referer     string
	PrettyPrint bool
}

LogoutLogoutCommand is the command line data structure for the logout action of logout

func (*LogoutLogoutCommand) RegisterFlags

func (cmd *LogoutLogoutCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*LogoutLogoutCommand) Run

func (cmd *LogoutLogoutCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the LogoutLogoutCommand command.

type Logoutv2LogoutCommand

type Logoutv2LogoutCommand struct {
	// URL to be redirected to after successful logout. If not set then will redirect to the referrer instead.
	Redirect    string
	Referer     string
	PrettyPrint bool
}

Logoutv2LogoutCommand is the command line data structure for the logoutv2 action of logout

func (*Logoutv2LogoutCommand) RegisterFlags

func (cmd *Logoutv2LogoutCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*Logoutv2LogoutCommand) Run

func (cmd *Logoutv2LogoutCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the Logoutv2LogoutCommand command.

type RefreshTokenCommand

type RefreshTokenCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

RefreshTokenCommand is the command line data structure for the refresh action of token

func (*RefreshTokenCommand) RegisterFlags

func (cmd *RefreshTokenCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*RefreshTokenCommand) Run

func (cmd *RefreshTokenCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the RefreshTokenCommand command.

type RegisterResourceCommand

type RegisterResourceCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

RegisterResourceCommand is the command line data structure for the register action of resource

func (*RegisterResourceCommand) RegisterFlags

func (cmd *RegisterResourceCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*RegisterResourceCommand) Run

func (cmd *RegisterResourceCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the RegisterResourceCommand command.

type RemoveCollaboratorsCommand

type RemoveCollaboratorsCommand struct {
	IdentityID string
	// ID of the space
	SpaceID     string
	PrettyPrint bool
}

RemoveCollaboratorsCommand is the command line data structure for the remove action of collaborators

func (*RemoveCollaboratorsCommand) RegisterFlags

func (cmd *RemoveCollaboratorsCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*RemoveCollaboratorsCommand) Run

func (cmd *RemoveCollaboratorsCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the RemoveCollaboratorsCommand command.

type RemoveManyCollaboratorsCommand

type RemoveManyCollaboratorsCommand struct {
	Payload     string
	ContentType string
	// ID of the space
	SpaceID     string
	PrettyPrint bool
}

RemoveManyCollaboratorsCommand is the command line data structure for the remove-many action of collaborators

func (*RemoveManyCollaboratorsCommand) RegisterFlags

func (cmd *RemoveManyCollaboratorsCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*RemoveManyCollaboratorsCommand) Run

func (cmd *RemoveManyCollaboratorsCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the RemoveManyCollaboratorsCommand command.

type RescindInviteInvitationCommand

type RescindInviteInvitationCommand struct {
	// Unique identifier for the invitation to the organization, team, security group or resource
	InviteTo    string
	PrettyPrint bool
}

RescindInviteInvitationCommand is the command line data structure for the rescindInvite action of invitation

func (*RescindInviteInvitationCommand) RegisterFlags

func (cmd *RescindInviteInvitationCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*RescindInviteInvitationCommand) Run

func (cmd *RescindInviteInvitationCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the RescindInviteInvitationCommand command.

type RetrieveTokenCommand

type RetrieveTokenCommand struct {
	// The resource for which the external token is being fetched, example https://github.com or https://api.starter-us-east-2.openshift.com
	For string
	// Pull the user's details for the specific connected account, example, the user's updated github username would be fetched from github. If this is not set or false, then the user profile will be pulled only if the stored user's details did not have the username
	ForcePull   string
	PrettyPrint bool
}

RetrieveTokenCommand is the command line data structure for the Retrieve action of token

func (*RetrieveTokenCommand) RegisterFlags

func (cmd *RetrieveTokenCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*RetrieveTokenCommand) Run

func (cmd *RetrieveTokenCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the RetrieveTokenCommand command.

type RevokeAllTokensUsersCommand

type RevokeAllTokensUsersCommand struct {
	// Identifier of the identity for which all tokens will be revoked
	ID          string
	PrettyPrint bool
}

RevokeAllTokensUsersCommand is the command line data structure for the RevokeAllTokens action of users

func (*RevokeAllTokensUsersCommand) RegisterFlags

func (cmd *RevokeAllTokensUsersCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*RevokeAllTokensUsersCommand) Run

func (cmd *RevokeAllTokensUsersCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the RevokeAllTokensUsersCommand command.

type ScopesResourceCommand

type ScopesResourceCommand struct {
	// Identifier of the resource to list scopes for
	ResourceID  string
	PrettyPrint bool
}

ScopesResourceCommand is the command line data structure for the scopes action of resource

func (*ScopesResourceCommand) RegisterFlags

func (cmd *ScopesResourceCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*ScopesResourceCommand) Run

func (cmd *ScopesResourceCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the ScopesResourceCommand command.

type SendEmailVerificationCodeUsersCommand

type SendEmailVerificationCodeUsersCommand struct {
	PrettyPrint bool
}

SendEmailVerificationCodeUsersCommand is the command line data structure for the sendEmailVerificationCode action of users

func (*SendEmailVerificationCodeUsersCommand) RegisterFlags

func (cmd *SendEmailVerificationCodeUsersCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*SendEmailVerificationCodeUsersCommand) Run

Run makes the HTTP request corresponding to the SendEmailVerificationCodeUsersCommand command.

type ShowClustersCommand

type ShowClustersCommand struct {
	PrettyPrint bool
}

ShowClustersCommand is the command line data structure for the show action of clusters

func (*ShowClustersCommand) RegisterFlags

func (cmd *ShowClustersCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*ShowClustersCommand) Run

func (cmd *ShowClustersCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the ShowClustersCommand command.

type ShowOpenidConfigurationCommand

type ShowOpenidConfigurationCommand struct {
	PrettyPrint bool
}

ShowOpenidConfigurationCommand is the command line data structure for the show action of openid_configuration

func (*ShowOpenidConfigurationCommand) RegisterFlags

func (cmd *ShowOpenidConfigurationCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*ShowOpenidConfigurationCommand) Run

func (cmd *ShowOpenidConfigurationCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the ShowOpenidConfigurationCommand command.

type ShowResourceCommand

type ShowResourceCommand struct {
	// The identifier of the resource to read
	ResourceID  string
	PrettyPrint bool
}

ShowResourceCommand is the command line data structure for the show action of resource

func (*ShowResourceCommand) RegisterFlags

func (cmd *ShowResourceCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*ShowResourceCommand) Run

func (cmd *ShowResourceCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the ShowResourceCommand command.

type ShowStatusCommand

type ShowStatusCommand struct {
	PrettyPrint bool
}

ShowStatusCommand is the command line data structure for the show action of status

func (*ShowStatusCommand) RegisterFlags

func (cmd *ShowStatusCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*ShowStatusCommand) Run

func (cmd *ShowStatusCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the ShowStatusCommand command.

type ShowUserCommand

type ShowUserCommand struct {
	IfModifiedSince string
	IfNoneMatch     string
	PrettyPrint     bool
}

ShowUserCommand is the command line data structure for the show action of user

func (*ShowUserCommand) RegisterFlags

func (cmd *ShowUserCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*ShowUserCommand) Run

func (cmd *ShowUserCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the ShowUserCommand command.

type ShowUserinfoCommand

type ShowUserinfoCommand struct {
	PrettyPrint bool
}

ShowUserinfoCommand is the command line data structure for the show action of userinfo

func (*ShowUserinfoCommand) RegisterFlags

func (cmd *ShowUserinfoCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*ShowUserinfoCommand) Run

func (cmd *ShowUserinfoCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the ShowUserinfoCommand command.

type ShowUsersCommand

type ShowUsersCommand struct {
	// Identity ID
	ID              string
	IfModifiedSince string
	IfNoneMatch     string
	PrettyPrint     bool
}

ShowUsersCommand is the command line data structure for the show action of users

func (*ShowUsersCommand) RegisterFlags

func (cmd *ShowUsersCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*ShowUsersCommand) Run

func (cmd *ShowUsersCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the ShowUsersCommand command.

type StatusTokenCommand

type StatusTokenCommand struct {
	// The resource for which the external token is being checked, example https://github.com or https://api.starter-us-east-2.openshift.com
	For string
	// Pull the user's details for the specific connected account, example, the user's updated github username would be fetched from github. If this is not set or false, then the user profile will be pulled only if the stored user's details did not have the username
	ForcePull   string
	PrettyPrint bool
}

StatusTokenCommand is the command line data structure for the Status action of token

func (*StatusTokenCommand) RegisterFlags

func (cmd *StatusTokenCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*StatusTokenCommand) Run

func (cmd *StatusTokenCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the StatusTokenCommand command.

type UpdateUsersCommand

type UpdateUsersCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

UpdateUsersCommand is the command line data structure for the update action of users

func (*UpdateUsersCommand) RegisterFlags

func (cmd *UpdateUsersCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*UpdateUsersCommand) Run

func (cmd *UpdateUsersCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the UpdateUsersCommand command.

type UsersSearchCommand

type UsersSearchCommand struct {
	// Paging size
	PageLimit int
	// Paging start position
	PageOffset  string
	Q           string
	PrettyPrint bool
}

UsersSearchCommand is the command line data structure for the users action of search

func (*UsersSearchCommand) RegisterFlags

func (cmd *UsersSearchCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*UsersSearchCommand) Run

func (cmd *UsersSearchCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the UsersSearchCommand command.

type VerifyEmailUsersCommand

type VerifyEmailUsersCommand struct {
	// code
	Code        string
	PrettyPrint bool
}

VerifyEmailUsersCommand is the command line data structure for the verifyEmail action of users

func (*VerifyEmailUsersCommand) RegisterFlags

func (cmd *VerifyEmailUsersCommand) RegisterFlags(cc *cobra.Command, c *auth.Client)

RegisterFlags registers the command flags with the command line.

func (*VerifyEmailUsersCommand) Run

func (cmd *VerifyEmailUsersCommand) Run(c *auth.Client, args []string) error

Run makes the HTTP request corresponding to the VerifyEmailUsersCommand command.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL