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
Click to show internal directories.
Click to hide internal directories.