directories

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Role  = "ROLE"
	User  = "USER"
	Group = "GROUP"
)

Possible entity types

Variables

This section is empty.

Functions

This section is empty.

Types

type ArkIdentityBaseEntity

type ArkIdentityBaseEntity struct {
	ArkIdentityEntity        `json:"-" mapstructure:"-"`
	ID                       string `json:"id" mapstructure:"id" flag:"id" desc:"ID of the entity" required:"true"`
	Name                     string `json:"name" mapstructure:"name" flag:"name" desc:"Name of the entity" required:"true"`
	EntityType               string `` /* 132-byte string literal not displayed */
	DirectoryServiceType     string `` /* 175-byte string literal not displayed */
	DisplayName              string `json:"display_name,omitempty" mapstructure:"display_name" flag:"display-name" desc:"Display name of the entity"`
	ServiceInstanceLocalized string `` /* 163-byte string literal not displayed */
}

ArkIdentityBaseEntity represents the schema for an identity entity.

func (*ArkIdentityBaseEntity) GetEntityType

func (a *ArkIdentityBaseEntity) GetEntityType() string

GetEntityType returns the entity type of the ArkIdentityUserEntity.

type ArkIdentityDirectory

type ArkIdentityDirectory struct {
	Directory            string `json:"directory" mapstructure:"directory" flag:"directory" desc:"Name of the directory" required:"true"`
	DirectoryServiceUUID string `` /* 140-byte string literal not displayed */
}

ArkIdentityDirectory represents the schema for an identity directory.

type ArkIdentityEntity

type ArkIdentityEntity interface {
	GetEntityType() string
}

ArkIdentityEntity is an interface that defines the methods for an identity entity.

type ArkIdentityGroupEntity

type ArkIdentityGroupEntity struct {
	ArkIdentityBaseEntity
}

ArkIdentityGroupEntity represents the schema for a group entity.

func (*ArkIdentityGroupEntity) GetEntityType

func (a *ArkIdentityGroupEntity) GetEntityType() string

GetEntityType returns the entity type of the ArkIdentityGroupEntity.

type ArkIdentityListDirectories

type ArkIdentityListDirectories struct {
	Directories []string `json:"directories,omitempty" mapstructure:"directories" flag:"directories" desc:"Directories types to list" required:"true"`
}

ArkIdentityListDirectories represents the schema for listing directory types.

type ArkIdentityListDirectoriesEntities

type ArkIdentityListDirectoriesEntities struct {
	Directories  []string `json:"directories,omitempty" mapstructure:"directories" flag:"directories" desc:"Directories to search on"`
	EntityTypes  []string `json:"entity_types,omitempty" mapstructure:"entity_types" flag:"entity-types" desc:"Member types to search"`
	Search       string   `json:"search,omitempty" mapstructure:"search" flag:"search" desc:"Search string to use"`
	PageSize     int      `json:"page_size" mapstructure:"page_size" flag:"page-size" desc:"Page size to emit" default:"10000"`
	Limit        int      `json:"limit" mapstructure:"limit" flag:"limit" desc:"Limit amount to list" default:"10000"`
	MaxPageCount int      `json:"max_page_count" mapstructure:"max_page_count" flag:"max-page-size" desc:"Max page count to reach to" default:"-1"`
}

ArkIdentityListDirectoriesEntities represents the schema for listing directory entities.

type ArkIdentityRoleEntity

type ArkIdentityRoleEntity struct {
	ArkIdentityBaseEntity
	AdminRights []identity.RoleAdminRight `json:"admin_rights,omitempty" mapstructure:"admin_rights" flag:"admin-rights" desc:"Admin rights of the role"`
	IsHidden    bool                      `json:"is_hidden" mapstructure:"is_hidden" flag:"is-hidden" desc:"Whether this role is hidden or not" required:"true"`
	Description string                    `json:"description,omitempty" mapstructure:"description" flag:"description" desc:"Description of the role"`
}

ArkIdentityRoleEntity represents the schema for a role entity.

func (*ArkIdentityRoleEntity) GetEntityType

func (a *ArkIdentityRoleEntity) GetEntityType() string

GetEntityType returns the entity type of the ArkIdentityRoleEntity.

type ArkIdentityUserEntity

type ArkIdentityUserEntity struct {
	ArkIdentityBaseEntity
	Email       string `json:"email,omitempty" mapstructure:"email" flag:"email" desc:"Email of the user"`
	Description string `json:"description,omitempty" mapstructure:"description" flag:"description" desc:"Description of the user"`
}

ArkIdentityUserEntity represents the schema for a user entity.

Jump to

Keyboard shortcuts

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