clean

package
v0.0.0-...-e990211 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BillOfMaterialsHasService

func BillOfMaterialsHasService(ctx context.Context, configKey string, env CleanEnvironmentConfig, productType management.EnumProductType) (bool, error)

func GetJSON

func GetJSON() map[string]string

func Init

func Init()

func ReadAllConfig

func ReadAllConfig(ctx context.Context, configKey string, env CleanEnvironmentConfig, readAllSdkFunction sdk.SDKInterfaceFunc, targetObject any) error

func TryCleanConfig

func TryCleanConfig(ctx context.Context, configKey string, env CleanEnvironmentConfig, configItem ConfigItem, configItemEval ConfigItemEval, deleteSdkFunction sdk.SDKInterfaceFunc, disableSdkFunction sdk.SDKInterfaceFunc) error

Types

type CleanEnvironmentConfig

type CleanEnvironmentConfig struct {
	EnvironmentID string
	DryRun        bool
	Client        *pingone.Client
}

type CleanOutput

type CleanOutput struct {
	ConfigItem     ConfigItem
	ConfigItemEval ConfigItemEval
	Action         CleanOutputAction
	Result         CleanOutputResult
	Message        *string
}

type CleanOutputAction

type CleanOutputAction string
const (
	ENUMCLEANOUTPUTACTION_DELETE  CleanOutputAction = "Delete"
	ENUMCLEANOUTPUTRESULT_DISABLE CleanOutputAction = "Disable"
)

type CleanOutputResult

type CleanOutputResult string
const (
	ENUMCLEANOUTPUTRESULT_SUCCESS       CleanOutputResult = "Success"
	ENUMCLEANOUTPUTRESULT_NOACTION_OK   CleanOutputResult = "No Action (OK)"
	ENUMCLEANOUTPUTRESULT_NOACTION_WARN CleanOutputResult = "No Action (Warning)"
	ENUMCLEANOUTPUTRESULT_FAILURE       CleanOutputResult = "Failure"
)

type ConfigItem

type ConfigItem struct {
	IdentifierToEvaluate string
	Id                   string
	Default              *bool
	Enabled              *bool
}

type ConfigItemEval

type ConfigItemEval struct {
	IdentifierListToSearch []string
	StartsWithStringMatch  bool
	CaseSensitive          *bool
}

Directories

Path Synopsis
services
mfa
sso

Jump to

Keyboard shortcuts

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