Documentation ¶
Overview ¶
Package roleinfile defines the implementation of the output adapter to read roles from YAML files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultRoleStorageInFile ¶
type DefaultRoleStorageInFile struct {
// contains filtered or unexported fields
}
DefaultRoleStorageInFile is a port to adapt requests related to the Roles
func ProvideDefaultRoleStorageInFile ¶
func ProvideDefaultRoleStorageInFile(options DefaultRoleStorageInFileOptions) (*DefaultRoleStorageInFile, error)
ProvideDefaultRoleStorageInFile provides an instance of an DefaultRoleStorageInFile
func (DefaultRoleStorageInFile) ListRoles ¶
func (d DefaultRoleStorageInFile) ListRoles(_ context.Context, _ role.ListRolesInput) (*role.ListRolesOutput, error)
ListRoles fetches a collection of Role based on the ListRolesInput
type DefaultRoleStorageInFileOptions ¶
DefaultRoleStorageInFileOptions are the set of fields to create an DefaultRoleStorageInFile
type Role ¶
type Role struct { // ID is the name of the Role ID string `yaml:"id"` // Description describes the role with a phrase Description string `yaml:"description"` // Permissions are the array of permissions associated to the Role Permissions []string `yaml:"permissions"` }
Role is the name of the definition of the collection of permissions
Click to show internal directories.
Click to hide internal directories.