rbac

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 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 AccessKeyResponse

type AccessKeyResponse struct {
	CreatedAt int64  `json:"createdAt,omitempty"`
	Id        string `json:"id,omitempty"`
	Status    string `json:"status,omitempty"`
}

type AuthorizationRequest

type AuthorizationRequest struct {
	// The set of access which is granted or removed
	Access  []string    `json:"access"`
	Subject *SubjectRef `json:"subject"`
	Target  *TargetRef  `json:"target"`
}

type ConductorApplication

type ConductorApplication struct {
	CreateTime int64       `json:"createTime,omitempty"`
	CreatedBy  string      `json:"createdBy,omitempty"`
	Id         string      `json:"id,omitempty"`
	Name       string      `json:"name,omitempty"`
	Tags       []model.Tag `json:"tags,omitempty"`
	UpdateTime int64       `json:"updateTime,omitempty"`
	UpdatedBy  string      `json:"updatedBy,omitempty"`
}

type ConductorUser

type ConductorUser struct {
	ApplicationUser         bool    `json:"applicationUser,omitempty"`
	EncryptedId             bool    `json:"encryptedId,omitempty"`
	EncryptedIdDisplayValue string  `json:"encryptedIdDisplayValue,omitempty"`
	Groups                  []Group `json:"groups,omitempty"`
	Id                      string  `json:"id,omitempty"`
	Name                    string  `json:"name,omitempty"`
	Roles                   []Role  `json:"roles,omitempty"`
	Uuid                    string  `json:"uuid,omitempty"`
}

type CreateOrUpdateApplicationRequest

type CreateOrUpdateApplicationRequest struct {
	// Application's name e.g.: Payment Processors
	Name string `json:"name"`
}

type GrantedAccess

type GrantedAccess struct {
	Access []string   `json:"access,omitempty"`
	Tag    string     `json:"tag,omitempty"`
	Target *TargetRef `json:"target,omitempty"`
}

type GrantedAccessResponse

type GrantedAccessResponse struct {
	GrantedAccess []GrantedAccess `json:"grantedAccess,omitempty"`
}

type Group

type Group struct {
	DefaultAccess map[string][]string `json:"defaultAccess,omitempty"`
	Description   string              `json:"description,omitempty"`
	Id            string              `json:"id,omitempty"`
	Roles         []Role              `json:"roles,omitempty"`
}

type Permission

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

type Role

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

type SubjectRef

type SubjectRef struct {
	Id string `json:"id"`
	// User, role or group
	Type_ string `json:"type,omitempty"`
}

User, group or role which is granted/removed access

type TargetRef

type TargetRef struct {
	Id    string `json:"id"`
	Type_ string `json:"type"`
}

The object over which access is being granted or removed

type UpsertGroupRequest

type UpsertGroupRequest struct {
	// a default Map<TargetType, Set<Access> to share permissions, allowed target types: WORKFLOW_DEF, TASK_DEF, WORKFLOW_SCHEDULE
	DefaultAccess map[string][]string `json:"defaultAccess,omitempty"`
	// A general description of the group
	Description string   `json:"description"`
	Roles       []string `json:"roles,omitempty"`
}

type UpsertUserRequest

type UpsertUserRequest struct {
	// Ids of the groups this user belongs to
	Groups []string `json:"groups,omitempty"`
	// User's full name
	Name  string   `json:"name"`
	Roles []string `json:"roles,omitempty"`
}

Jump to

Keyboard shortcuts

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