rolesformatter

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: EPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

* Copyright contributors to the Galasa project * * SPDX-License-Identifier: EPL-2.0

* Copyright contributors to the Galasa project * * SPDX-License-Identifier: EPL-2.0

Index

Constants

View Source
const (
	HEADER_ROLE_NAME        = "name"
	HEADER_ROLE_DESCRIPTION = "description"
)

----------------------------------------------------- RoleFormatter - implementations can take a collection of roles and turn them into a string for display to the user.

View Source
const (
	SUMMARY_FORMATTER_NAME = "summary"
)

----------------------------------------------------- Summary format.

View Source
const (
	YAML_FORMATTER_NAME = "yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RolesFormatter

type RolesFormatter interface {
	FormatRoles(roles []galasaapi.RBACRole) (string, error)
	GetName() string
}

func NewRolesSummaryFormatter

func NewRolesSummaryFormatter() RolesFormatter

func NewRolesYamlFormatter

func NewRolesYamlFormatter() RolesFormatter

type RolesSummaryFormatter

type RolesSummaryFormatter struct {
}

func (*RolesSummaryFormatter) FormatRoles

func (*RolesSummaryFormatter) FormatRoles(roles []galasaapi.RBACRole) (string, error)

func (*RolesSummaryFormatter) GetName

func (*RolesSummaryFormatter) GetName() string

type RolesYamlFormatter

type RolesYamlFormatter struct {
}

func (*RolesYamlFormatter) FormatRoles

func (*RolesYamlFormatter) FormatRoles(roles []galasaapi.RBACRole) (string, error)

func (*RolesYamlFormatter) GetName

func (*RolesYamlFormatter) GetName() string

Jump to

Keyboard shortcuts

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