Documentation ¶
Index ¶
- func AddAdminUserToTeam(ctx context.Context, apiClient client.APIClient, ...) (bool, error)
- func AddUserToTeam(ctx context.Context, apiClient client.APIClient, teamID, membershipID string, ...) (bool, error)
- func CreateAdminTeamIfMissing(ctx context.Context, apiClient client.APIClient, dryRun bool) (bool, error)
- func CreateAdminUserOrUpdatePassword(ctx context.Context, apiClient client.APIClient, newAdminPassword string, ...) (string, bool, error)
- func CreateUserOrUpdatePassword(ctx context.Context, apiClient client.APIClient, ...) (string, bool, error)
- func EnsureTeam(ctx context.Context, id, name string, apiClient client.APIClient, dryRun bool) (bool, error)
- func UpdateAdminsPolicyIfNeeded(ctx context.Context, apiClient client.APIClient, dryRun bool) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAdminUserToTeam ¶
func AddUserToTeam ¶
func AddUserToTeam(ctx context.Context, apiClient client.APIClient, teamID, membershipID string, dryRun bool) (bool, error)
AddUserToTeam adds the user to a team by its ID, unless they are already in the team. It returns a boolean representing whether or not the user needed to be added.
func CreateAdminTeamIfMissing ¶
func CreateAdminTeamIfMissing(ctx context.Context, apiClient client.APIClient, dryRun bool) (bool, error)
CreateAdminTeamIfMissing creates the admins team if it is missing. It returns a boolean for if it was found or created.
func CreateAdminUserOrUpdatePassword ¶
func CreateAdminUserOrUpdatePassword(ctx context.Context, apiClient client.APIClient, newAdminPassword string, dryRun bool) (string, bool, error)
CreateAdminUserOrUpdatePassword either creates a new admin user or updates the existing users password. In either case, it should return the ID and a boolean representing whether the user was found or created.
func CreateUserOrUpdatePassword ¶
func CreateUserOrUpdatePassword(ctx context.Context, apiClient client.APIClient, username, displayName, newPassword string, dryRun bool) (string, bool, error)
CreateUserOrUpdatePassword either creates a new user with the supplied username or updates the existing user's password. In either case, it returns the ID and a boolean representing whether the user was found or created.
Types ¶
This section is empty.