Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Update ¶
func Update(ctx context.Context, rootClient Client, leafClient Client, newPreferences *api.UserPreferences) (*api.UserPreferences, error)
Update updates the preferences for a given user. Only the properties that are set (cluster_preferences, unified_resource_preferences) will be updated.
Types ¶
type Client ¶
type Client interface { // See auth.ClientI.GetUserPreferences GetUserPreferences(ctx context.Context, req *userpreferencesv1.GetUserPreferencesRequest) (*userpreferencesv1.GetUserPreferencesResponse, error) // See auth.ClientI.UpsertUserPreferences UpsertUserPreferences(ctx context.Context, req *userpreferencesv1.UpsertUserPreferencesRequest) error }
Client represents auth.ClientI methods used by Get and Update. During a normal operation, auth.ClientI is passed as this interface.
Click to show internal directories.
Click to hide internal directories.