signup

package
v0.0.0-...-1ec6b49 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PollUpdateSignup

func PollUpdateSignup(ctx *gin.Context, updater func() error) error

PollUpdateSignup will attempt to execute the provided updater function, and if it fails will reattempt the update for a limited number of retries

Types

type Signup

type Signup struct {
	// The UserSignup resource name
	Name string `json:"name"`
	// The Web Console URL of the cluster which the user was provisioned to
	ConsoleURL string `json:"consoleURL,omitempty"`
	// The Che Dashboard URL of the cluster which the user was provisioned to
	CheDashboardURL string `json:"cheDashboardURL,omitempty"`
	// The proxy URL of the cluster
	ProxyURL string `json:"proxyURL,omitempty"`
	// The RHODS URL for the user's cluster
	RHODSMemberURL string `json:"rhodsMemberURL,omitempty"`
	// The server api URL of the cluster which the user was provisioned to
	APIEndpoint string `json:"apiEndpoint,omitempty"`
	// The name of the cluster which the user was provisioned to
	ClusterName string `json:"clusterName,omitempty"`
	// The user's default namespace
	DefaultUserNamespace string `json:"defaultUserNamespace,omitempty"`
	// The complaint username.  This may differ from the corresponding Identity Provider username, because of the
	// limited character set available for naming (see RFC1123) in K8s. If the username contains characters which are
	// disqualified from the resource name, the username is transformed into an acceptable resource name instead.
	// For example, johnsmith@redhat.com -> johnsmith
	CompliantUsername string `json:"compliantUsername"`
	// Original username from the Identity Provider
	Username string `json:"username"`
	// GivenName from the Identity Provider
	GivenName string `json:"givenName"`
	// FamilyName from the Identity Provider
	FamilyName string `json:"familyName"`
	// Company from the Identity Provider
	Company string `json:"company"`
	Status  Status `json:"status,omitempty"`
}

Signup represents Signup resource which is a wrapper of K8s UserSignup and the corresponding MasterUserRecord resources.

type Status

type Status struct {
	// If true then the corresponding user's account is ready to be used
	Ready bool `json:"ready"`
	// Brief reason for the status last transition.
	Reason string `json:"reason"`
	// Human readable message indicating details about last transition.
	Message string `json:"message,omitempty"`
	// VerificationRequired is used to determine if a user requires phone verification.
	// The user should not be provisioned if VerificationRequired is set to true.
	// VerificationRequired is set to false when the user is ether exempt from phone verification or has already successfully passed the verification.
	// Default value is false.
	VerificationRequired bool `json:"verificationRequired"`
}

Status represents UserSignup resource status

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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