identitymocks

package
v1.0.43 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

TODO: This library is imported from ror, should determine if its a public library or not

Index

Constants

This section is empty.

Variables

View Source
var IdentityClusterValid identitymodels.Identity = identitymodels.Identity{
	Type: identitymodels.IdentityTypeCluster,
	ClusterIdentity: &identitymodels.ServiceIdentity{
		Id: "test-cluster-43232",
	},
	ServiceIdentity: &identitymodels.ServiceIdentity{
		Id: "",
	},
}
View Source
var IdentityServiceValid identitymodels.Identity = identitymodels.Identity{
	Type: identitymodels.IdentityTypeCluster,
	ServiceIdentity: &identitymodels.ServiceIdentity{
		Id: "serivce-test@ror.system",
	},
}
View Source
var IdentityUserValid identitymodels.Identity = identitymodels.Identity{
	Type: identitymodels.IdentityTypeUser,
	User: &identitymodels.User{
		Email:           "valid.user@ror.dev",
		IsEmailVerified: true,
		Name:            "Valid User",
		Groups: []string{
			"test1@ror.dev",
			"test1-admin@ror.dev",
		},
		Audience:       "",
		Issuer:         "",
		ExpirationTime: 0,
	},
}

Functions

func ValiduserWithGroups

func ValiduserWithGroups(groups []string) identitymodels.Identity

Types

This section is empty.

Jump to

Keyboard shortcuts

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