v1

package
v0.0.1-beta Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentData

type AgentData struct {
	Name string `json:"name" bson:"name"`
}

type CompanyQueryOption

type CompanyQueryOption struct {
	Pagination       Pagination
	LoadRepositories string
	LoadApplications string
}

CompanyQueryOption company query param.

type Jwt

type Jwt struct {
	PrivateKey               *rsa.PrivateKey
	PublicKey                *rsa.PublicKey
	PublicKeyForInternalCall *rsa.PublicKey
}

Jwt Struct of Jwt keys

type Pagination

type Pagination struct {
	Page  string
	Limit string
}

Pagination Pagination query params

type Permission

type Permission struct {
	Name string `json:"name" bson:"name"`
}

Permission roles permission

type ProcessQueryOption

type ProcessQueryOption struct {
	Pagination Pagination
	Step       string
}

ProcessQueryOption process query option

type RepositoryQueryOption

type RepositoryQueryOption struct {
	Pagination       Pagination
	LoadApplications string
}

RepositoryQueryOption repository query option

type ResourceQueryOption

type ResourceQueryOption struct {
	Pagination    Pagination
	AscendingSort string
}

ResourceQueryOption contains resource query options

type ResourceWiseRoles

type ResourceWiseRoles struct {
	Name  string `json:"name" bson:"name"`
	Roles []Role `json:"roles" bson:"roles"`
}

ResourceWiseRoles resource wise roles

type Role

type Role struct {
	Name        string       `json:"name" bson:"name"`
	Permissions []Permission `json:"permissions" bson:"permissions"`
}

Role users roles

type UserMetadata

type UserMetadata struct {
	CompanyId string `json:"company_id" bson:"company_id"`
}

UserMetadata users metadata

type UserResourcePermission

type UserResourcePermission struct {
	Metadata  UserMetadata        `json:"metadata" bson:"-"`
	UserId    string              `json:"user_id" bson:"user_id"`
	Resources []ResourceWiseRoles `json:"resources" bson:"resources"`
}

UserResourcePermission user and resources wise role

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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