templates

package
v0.0.0-...-7d0d13a Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SelectTemplate

func SelectTemplate[T Template](templates []T) (string, error)

Types

type ExportTemplate

type ExportTemplate struct {
	Name        string                         `json:"name"`
	Description string                         `json:"description"`
	Variables   []Variable                     `json:"variables"`
	ExportBody  sailpointbetasdk.ExportPayload `json:"exportBody"`
	Raw         []byte
}

func GetExportTemplates

func GetExportTemplates() ([]ExportTemplate, error)

func (ExportTemplate) GetDescription

func (template ExportTemplate) GetDescription() string

func (ExportTemplate) GetName

func (template ExportTemplate) GetName() string

func (ExportTemplate) GetVariableCount

func (template ExportTemplate) GetVariableCount() int

type ReportQuery

type ReportQuery struct {
	QueryString string `json:"queryString"`
	QueryTitle  string `json:"queryTitle"`
	ResultCount string
}

type ReportTemplate

type ReportTemplate struct {
	Name        string        `json:"name"`
	Description string        `json:"description"`
	Variables   []Variable    `json:"variables"`
	Queries     []ReportQuery `json:"queries"`
	Raw         []byte
}

func GetReportTemplates

func GetReportTemplates() ([]ReportTemplate, error)

func (ReportTemplate) GetDescription

func (template ReportTemplate) GetDescription() string

func (ReportTemplate) GetName

func (template ReportTemplate) GetName() string

func (ReportTemplate) GetVariableCount

func (template ReportTemplate) GetVariableCount() int

type SearchTemplate

type SearchTemplate struct {
	Name        string              `json:"name"`
	Description string              `json:"description"`
	Variables   []Variable          `json:"variables"`
	SearchQuery sailpointsdk.Search `json:"searchQuery"`
	Raw         []byte
}

func GetSearchTemplates

func GetSearchTemplates() ([]SearchTemplate, error)

func (SearchTemplate) GetDescription

func (template SearchTemplate) GetDescription() string

func (SearchTemplate) GetName

func (template SearchTemplate) GetName() string

func (SearchTemplate) GetVariableCount

func (template SearchTemplate) GetVariableCount() int

type Template

type Template interface {
	GetName() string
	GetDescription() string
	GetVariableCount() int
}

type Templates

type Templates struct {
	Templates []SearchTemplate `json:"templates"`
}

type Variable

type Variable struct {
	Name   string `json:"name"`
	Prompt string `json:"prompt"`
}

Jump to

Keyboard shortcuts

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