Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { GroupVersionKind struct { Group func(childComplexity int) int Kind func(childComplexity int) int Version func(childComplexity int) int } HttpResource struct { Methods func(childComplexity int) int Path func(childComplexity int) int } IdentityResolutionData struct { ExtraInfo func(childComplexity int) int Host func(childComplexity int) int IsService func(childComplexity int) int LastSeen func(childComplexity int) int PodHostname func(childComplexity int) int Port func(childComplexity int) int ProcfsHostname func(childComplexity int) int Uptime func(childComplexity int) int } Intent struct { AwsActions func(childComplexity int) int Client func(childComplexity int) int HTTPResources func(childComplexity int) int KafkaTopics func(childComplexity int) int ResolutionData func(childComplexity int) int Server func(childComplexity int) int Type func(childComplexity int) int } KafkaConfig struct { Name func(childComplexity int) int Operations func(childComplexity int) int } Mutation struct { ReportAWSOperation func(childComplexity int, operation []model.AWSOperation) int ReportAzureOperation func(childComplexity int, operation []model.AzureOperation) int ReportCaptureResults func(childComplexity int, results model.CaptureResults) int ReportIstioConnectionResults func(childComplexity int, results model.IstioConnectionResults) int ReportKafkaMapperResults func(childComplexity int, results model.KafkaMapperResults) int ReportSocketScanResults func(childComplexity int, results model.SocketScanResults) int ReportTCPCaptureResults func(childComplexity int, results model.CaptureTCPResults) int ResetCapture func(childComplexity int) int } OtterizeServiceIdentity struct { KubernetesService func(childComplexity int) int Labels func(childComplexity int) int Name func(childComplexity int) int Namespace func(childComplexity int) int PodOwnerKind func(childComplexity int) int ResolutionData func(childComplexity int) int } PodLabel struct { Key func(childComplexity int) int Value func(childComplexity int) int } Query struct { Health func(childComplexity int) int Intents func(childComplexity int, namespaces []string, includeLabels []string, excludeServiceWithLabels []string, includeAllLabels *bool, server *model.ServerFilter) int ServiceIntents func(childComplexity int, namespaces []string, includeLabels []string, includeAllLabels *bool) int } ServiceIntents struct { Client func(childComplexity int) int Intents func(childComplexity int) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type MutationResolver interface { ResetCapture(ctx context.Context) (bool, error) ReportCaptureResults(ctx context.Context, results model.CaptureResults) (bool, error) ReportTCPCaptureResults(ctx context.Context, results model.CaptureTCPResults) (bool, error) ReportSocketScanResults(ctx context.Context, results model.SocketScanResults) (bool, error) ReportKafkaMapperResults(ctx context.Context, results model.KafkaMapperResults) (bool, error) ReportIstioConnectionResults(ctx context.Context, results model.IstioConnectionResults) (bool, error) ReportAWSOperation(ctx context.Context, operation []model.AWSOperation) (bool, error) ReportAzureOperation(ctx context.Context, operation []model.AzureOperation) (bool, error) }
type QueryResolver ¶
type QueryResolver interface { ServiceIntents(ctx context.Context, namespaces []string, includeLabels []string, includeAllLabels *bool) ([]model.ServiceIntents, error) Intents(ctx context.Context, namespaces []string, includeLabels []string, excludeServiceWithLabels []string, includeAllLabels *bool, server *model.ServerFilter) ([]model.Intent, error) Health(ctx context.Context) (bool, error) }
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.