info

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 10 Imported by: 0

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

func ViewConfiguration(useJSON bool, realm string) error

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.

Jump to

Keyboard shortcuts

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