pipinfile

package
v0.0.0-...-29e199f Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package pipinfile defines the implementations of the Policy Information Point output adapters to read information from files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionCollection

type ActionCollection struct {
	Actions []string `yaml:"actions"`
}

ActionCollection group of actions.

type DefaultRBACActionsPolicyInformationPointYAMLOutputAdapter

type DefaultRBACActionsPolicyInformationPointYAMLOutputAdapter struct {
	// contains filtered or unexported fields
}

DefaultRBACActionsPolicyInformationPointYAMLOutputAdapter is a port to adapt requests related to the Actions

func ProvideDefaultRBACActionsPolicyInformationPointYAMLOutputAdapter

func ProvideDefaultRBACActionsPolicyInformationPointYAMLOutputAdapter(options DefaultRBACActionsPolicyInformationPointYAMLOutputAdapterOptions) (*DefaultRBACActionsPolicyInformationPointYAMLOutputAdapter, error)

ProvideDefaultRBACActionsPolicyInformationPointYAMLOutputAdapter provides an instance of an DefaultRBACActionsPolicyInformationPointYAMLOutputAdapter

func (DefaultRBACActionsPolicyInformationPointYAMLOutputAdapter) ListActions

ListActions list the Actions assigned to the given roles

type DefaultRBACActionsPolicyInformationPointYAMLOutputAdapterOptions

type DefaultRBACActionsPolicyInformationPointYAMLOutputAdapterOptions struct {
	FileSystem fs.FS
	BasePath   string
}

DefaultRBACActionsPolicyInformationPointYAMLOutputAdapterOptions are the set of fields to create an DefaultRBACActionsPolicyInformationPointYAMLOutputAdapter

type Permission

type Permission struct {
	// ID identifier of the permission.
	ID string `yaml:"id"`
	// Description of the permission.
	Description string `yaml:"description"`
	// Actions group of actions the permission grants access to.
	Actions []string `yaml:"actions"`
}

Permission contains a set of actions.

type PermissionCollection

type PermissionCollection struct {
	Permissions []Permission `yaml:"permissions"`
}

PermissionCollection group of Permission.

type Role

type Role struct {
	// ID identifier of the role.
	ID string `yaml:"id"`
	// Description role description.
	Description string `yaml:"description"`
	// Permissions permissions allowed for the role.
	Permissions []string `yaml:"permissions"`
}

Role defines a role to use for access controls.

type RolesInfo

type RolesInfo struct {
	// Roles group of roles.
	Roles []Role `yaml:"roles"`
}

RolesInfo information about roles.

Jump to

Keyboard shortcuts

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