baseResolver

package
v0.0.0-...-56b22ea Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FilterDisplayServiceCcrn      string = "Service"
	FilterDisplaySupportGroupCcrn string = "Support Group"
	FilterDisplayUserName         string = "User Name"
	FilterDisplayUniqueUserId     string = "Unique User ID"
	FilterDisplayComponentCcrn    string = "Pod"
	FilterDisplayIssueType        string = "Issue Type"
	FilterDisplayIssueMatchStatus string = "Issue Match Status"
	FilterDisplayIssueMatchID     string = "Issue Match ID"
	FilterDisplayIssuePrimaryName string = "Issue Name"
	FilterDisplayIssueSeverity    string = "Severity"
	FilterDisplayCcrn             string = "CCRN"

	ServiceFilterServiceCcrn      string = "serviceCcrn"
	ServiceFilterUniqueUserId     string = "uniqueUserId"
	ServiceFilterType             string = "type"
	ServiceFilterUserName         string = "userName"
	ServiceFilterSupportGroupCcrn string = "supportGroupCcrn"

	IssueMatchFilterPrimaryName      string = "primaryName"
	IssueMatchFilterComponentCcrn    string = "componentCcrn"
	IssueMatchFilterIssueType        string = "issueType"
	IssueMatchFilterStatus           string = "status"
	IssueMatchFilterSeverity         string = "severity"
	IssueMatchFilterAffectedService  string = "affectedService"
	IssueMatchFilterSupportGroupCcrn string = "supportGroupCcrn"

	ComponentFilterComponentCcrn string = "componentCcrn"
)

Functions

func ActivityBaseResolver

func ActivityBaseResolver(app app.Heureka, ctx context.Context, filter *model.ActivityFilter, first *int, after *string, parent *model.NodeParent) (*model.ActivityConnection, error)

func CcrnBaseResolver

func CcrnBaseResolver(app app.Heureka, ctx context.Context, filter *model.ComponentInstanceFilter) (*model.FilterItem, error)

func ComponentBaseResolver

func ComponentBaseResolver(app app.Heureka, ctx context.Context, filter *model.ComponentFilter, first *int, after *string, parent *model.NodeParent) (*model.ComponentConnection, error)

func ComponentCcrnBaseResolver

func ComponentCcrnBaseResolver(app app.Heureka, ctx context.Context, filter *model.ComponentFilter) (*model.FilterItem, error)

func ComponentInstanceBaseResolver

func ComponentInstanceBaseResolver(app app.Heureka, ctx context.Context, filter *model.ComponentInstanceFilter, first *int, after *string, parent *model.NodeParent) (*model.ComponentInstanceConnection, error)

func ComponentVersionBaseResolver

func ComponentVersionBaseResolver(app app.Heureka, ctx context.Context, filter *model.ComponentVersionFilter, first *int, after *string, parent *model.NodeParent) (*model.ComponentVersionConnection, error)

func EffectiveIssueVariantBaseResolver

func EffectiveIssueVariantBaseResolver(app app.Heureka, ctx context.Context, filter *model.IssueVariantFilter, first *int, after *string, parent *model.NodeParent) (*model.IssueVariantConnection, error)

func EvidenceBaseResolver

func EvidenceBaseResolver(app app.Heureka, ctx context.Context, filter *model.EvidenceFilter, first *int, after *string, parent *model.NodeParent) (*model.EvidenceConnection, error)

func GetIssueListOptions

func GetIssueListOptions(requestedFields []string) *entity.IssueListOptions

func GetListOptions

func GetListOptions(requestedFields []string) *entity.ListOptions

func GetNestedPreloads

func GetNestedPreloads(ctx *graphql.OperationContext, fields []graphql.CollectedField, prefix string) (preloads []string)

func GetPreloadString

func GetPreloadString(prefix, name string) string

func GetPreloads

func GetPreloads(ctx context.Context) []string

func IssueBaseResolver

func IssueBaseResolver(app app.Heureka, ctx context.Context, filter *model.IssueFilter, first *int, after *string, parent *model.NodeParent) (*model.IssueConnection, error)

func IssueMatchBaseResolver

func IssueMatchBaseResolver(app app.Heureka, ctx context.Context, filter *model.IssueMatchFilter, first *int, after *string, parent *model.NodeParent) (*model.IssueMatchConnection, error)

func IssueMatchChangeBaseResolver

func IssueMatchChangeBaseResolver(app app.Heureka, ctx context.Context, filter *model.IssueMatchChangeFilter, first *int, after *string, parent *model.NodeParent) (*model.IssueMatchChangeConnection, error)

func IssueNameBaseResolver

func IssueNameBaseResolver(app app.Heureka, ctx context.Context, filter *model.IssueFilter) (*model.FilterItem, error)

func IssueRepositoryBaseResolver

func IssueRepositoryBaseResolver(app app.Heureka, ctx context.Context, filter *model.IssueRepositoryFilter, first *int, after *string, parent *model.NodeParent) (*model.IssueRepositoryConnection, error)

func IssueVariantBaseResolver

func IssueVariantBaseResolver(app app.Heureka, ctx context.Context, filter *model.IssueVariantFilter, first *int, after *string, parent *model.NodeParent) (*model.IssueVariantConnection, error)

func ParseCursor

func ParseCursor(cursor *string) (*int64, error)

func ServiceBaseResolver

func ServiceBaseResolver(app app.Heureka, ctx context.Context, filter *model.ServiceFilter, first *int, after *string, parent *model.NodeParent) (*model.ServiceConnection, error)

func ServiceCcrnBaseResolver

func ServiceCcrnBaseResolver(app app.Heureka, ctx context.Context, filter *model.ServiceFilter) (*model.FilterItem, error)

func SingleActivityBaseResolver

func SingleActivityBaseResolver(app app.Heureka, ctx context.Context, parent *model.NodeParent) (*model.Activity, error)

func SingleComponentBaseResolver

func SingleComponentBaseResolver(app app.Heureka, ctx context.Context, parent *model.NodeParent) (*model.Component, error)

func SingleComponentInstanceBaseResolver

func SingleComponentInstanceBaseResolver(app app.Heureka, ctx context.Context, parent *model.NodeParent) (*model.ComponentInstance, error)

func SingleComponentVersionBaseResolver

func SingleComponentVersionBaseResolver(app app.Heureka, ctx context.Context, parent *model.NodeParent) (*model.ComponentVersion, error)

func SingleIssueBaseResolver

func SingleIssueBaseResolver(app app.Heureka, ctx context.Context, parent *model.NodeParent) (*model.Issue, error)

func SingleIssueMatchBaseResolver

func SingleIssueMatchBaseResolver(app app.Heureka, ctx context.Context, parent *model.NodeParent) (*model.IssueMatch, error)

func SingleIssueRepositoryBaseResolver

func SingleIssueRepositoryBaseResolver(app app.Heureka, ctx context.Context, parent *model.NodeParent) (*model.IssueRepository, error)

func SingleIssueVariantBaseResolver

func SingleIssueVariantBaseResolver(app app.Heureka, ctx context.Context, parent *model.NodeParent) (*model.IssueVariant, error)

func SingleServiceBaseResolver

func SingleServiceBaseResolver(app app.Heureka, ctx context.Context, parent *model.NodeParent) (*model.Service, error)

func SingleUserBaseResolver

func SingleUserBaseResolver(app app.Heureka, ctx context.Context, parent *model.NodeParent) (*model.User, error)

func SupportGroupBaseResolver

func SupportGroupBaseResolver(app app.Heureka, ctx context.Context, filter *model.SupportGroupFilter, first *int, after *string, parent *model.NodeParent) (*model.SupportGroupConnection, error)

func SupportGroupCcrnBaseResolver

func SupportGroupCcrnBaseResolver(app app.Heureka, ctx context.Context, filter *model.SupportGroupFilter) (*model.FilterItem, error)

func UniqueUserIDBaseResolver

func UniqueUserIDBaseResolver(app app.Heureka, ctx context.Context, filter *model.UserFilter) (*model.FilterItem, error)

func UserBaseResolver

func UserBaseResolver(app app.Heureka, ctx context.Context, filter *model.UserFilter, first *int, after *string, parent *model.NodeParent) (*model.UserConnection, error)

func UserNameBaseResolver

func UserNameBaseResolver(app app.Heureka, ctx context.Context, filter *model.UserFilter) (*model.FilterItem, error)

Types

type ResolverError

type ResolverError struct {
	// contains filtered or unexported fields
}

func NewResolverError

func NewResolverError(resolver string, msg string) *ResolverError

func (*ResolverError) Error

func (re *ResolverError) Error() string

Jump to

Keyboard shortcuts

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