Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintMappingsFile ¶
func PrintMappingsFile(mappings []appConfig.MappingsFile, useJSON bool) error
PrintMappingsFile displays tenancy mapping information in a formatted table or JSON format. It takes a slice of MappingsFile, the application context, and a boolean indicating whether to use JSON format.
func ViewConfiguration ¶
ViewConfiguration displays the tenancy mapping information. It reads the tenancy-map.yaml file and displays its contents. If the realm is not empty, it filters the mappings by the specified realm.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides operations and functionalities related to tenancy mapping information.
func NewService ¶
func NewService() *Service
NewService initializes a new Service instance with the provided application context.
func (*Service) LoadTenancyMappings ¶
func (s *Service) LoadTenancyMappings(realm string) (*TenancyMappingResult, error)
LoadTenancyMappings loads the tenancy mappings from the file and filters them by realm if specified.
type TenancyMappingResult ¶
type TenancyMappingResult struct {
Mappings []appConfig.MappingsFile
}
TenancyMappingResult represents the result of loading and filtering tenancy mappings.