entities

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccountIndices = []repos.IndexField{
	{
		Field: []repos.IndexKey{
			{Key: "id", Value: repos.IndexAsc},
		},
		Unique: true,
	},
	{
		Field: []repos.IndexKey{
			{Key: "metadata.name", Value: repos.IndexAsc},
		},
		Unique: true,
	},
	{
		Field: []repos.IndexKey{
			{Key: "targetNamespace", Value: repos.IndexAsc},
		},
		Unique: true,
	},
}
View Source
var InvitationIndices = []repos.IndexField{
	{
		Field: []repos.IndexKey{
			{Key: "id", Value: repos.IndexAsc},
		},
		Unique: true,
	},
	{
		Field: []repos.IndexKey{
			{Key: "inviteToken", Value: repos.IndexAsc},
		},
		Unique: true,
	},
	{
		Field: []repos.IndexKey{
			{Key: "accountName", Value: repos.IndexAsc},
			{Key: "userEmail", Value: repos.IndexAsc},
			{Key: "userRole", Value: repos.IndexAsc},
		},
		Unique: true,
	},
}

Functions

This section is empty.

Types

type Account

type Account struct {
	repos.BaseEntity  `json:",inline" graphql:"noinput"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	TargetNamespace   string `json:"targetNamespace,omitempty" graphql:"noinput"`

	common.ResourceMetadata `json:",inline"`

	IsActive     *bool   `json:"isActive,omitempty"`
	ContactEmail string  `json:"contactEmail,omitempty"`

	KloudliteGatewayRegion string `json:"kloudliteGatewayRegion"`
}

type AccountMembership

type AccountMembership struct {
	AccountName string    `json:"accountName"`
	UserId      repos.ID  `json:"userId"`
	Role        iamT.Role `json:"role"`
}

type Invitation

type Invitation struct {
	repos.BaseEntity `json:",inline" graphql:"noinput"`
	InvitedBy        string    `json:"invitedBy" graphql:"noinput"`
	InviteToken      string    `json:"inviteToken" graphql:"noinput"`
	UserEmail        string    `json:"userEmail,omitempty"`
	UserName         string    `json:"userName,omitempty"`
	UserRole         iamT.Role `json:"userRole"`
	AccountName      string    `json:"accountName" graphql:"noinput"`
	Accepted         *bool     `json:"accepted,omitempty" graphql:"noinput"`
	Rejected         *bool     `json:"rejected,omitempty" graphql:"noinput"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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