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 { AgentELFCluster struct { ID func(childComplexity int) int LocalID func(childComplexity int) int } EverouteCluster struct { AgentELFClusters func(childComplexity int) int AgentELFVDSes func(childComplexity int) int ControllerInstances func(childComplexity int) int EnableLogging func(childComplexity int) int GlobalDefaultAction func(childComplexity int) int GlobalWhitelist func(childComplexity int) int ID func(childComplexity int) int } EverouteClusterEvent struct { Mutation func(childComplexity int) int Node func(childComplexity int) int PreviousValues func(childComplexity int) int } EverouteClusterWhitelist struct { Egress func(childComplexity int) int Enable func(childComplexity int) int Ingress func(childComplexity int) int } EverouteControllerInstance struct { IPAddr func(childComplexity int) int } Host struct { ID func(childComplexity int) int Name func(childComplexity int) int Nics func(childComplexity int) int } HostEvent struct { Mutation func(childComplexity int) int Node func(childComplexity int) int PreviousValues func(childComplexity int) int } IDSystemEndpoint struct { Key func(childComplexity int) int VMID func(childComplexity int) int } IPPortSystemEndpoint struct { IP func(childComplexity int) int Key func(childComplexity int) int Port func(childComplexity int) int } IsolationPolicy struct { Egress func(childComplexity int) int EnableLogging func(childComplexity int) int EverouteCluster func(childComplexity int) int ID func(childComplexity int) int Ingress func(childComplexity int) int Mode func(childComplexity int) int VM func(childComplexity int) int } IsolationPolicyEvent struct { Mutation func(childComplexity int) int Node func(childComplexity int) int PreviousValues func(childComplexity int) int } KSCNamespacedName struct { Name func(childComplexity int) int Namespace func(childComplexity int) int } Label struct { ID func(childComplexity int) int Key func(childComplexity int) int Value func(childComplexity int) int Vms func(childComplexity int) int } LabelEvent struct { Mutation func(childComplexity int) int Node func(childComplexity int) int PreviousValues func(childComplexity int) int } LabelGroup struct { Labels func(childComplexity int) int } Login struct { Token func(childComplexity int) int } Mutation struct { Login func(childComplexity int, data model.LoginInput) int } NetworkPolicyRule struct { ExceptIPBlock func(childComplexity int) int IPBlock func(childComplexity int) int OnlyApplyToExternalTraffic func(childComplexity int) int Ports func(childComplexity int) int SecurityGroup func(childComplexity int) int Selector func(childComplexity int) int Services func(childComplexity int) int Type func(childComplexity int) int } NetworkPolicyRulePort struct { AlgProtocol func(childComplexity int) int Port func(childComplexity int) int Protocol func(childComplexity int) int } NetworkPolicyRuleService struct { ID func(childComplexity int) int Members func(childComplexity int) int } Nic struct { ID func(childComplexity int) int IPAddress func(childComplexity int) int MacAddress func(childComplexity int) int Name func(childComplexity int) int Physical func(childComplexity int) int } ObjectReference struct { ID func(childComplexity int) int } PodLabel struct { Key func(childComplexity int) int Value func(childComplexity int) int } PodLabelGroup struct { KSC func(childComplexity int) int Namespaces func(childComplexity int) int PodLabels func(childComplexity int) int } Query struct { EverouteClusters func(childComplexity int) int Hosts func(childComplexity int) int IsolationPolicies func(childComplexity int) int Labels func(childComplexity int) int NetworkPolicyRuleServices func(childComplexity int) int SecurityGroups func(childComplexity int) int SecurityPolicies func(childComplexity int) int SystemEndpoints func(childComplexity int) int Tasks func(childComplexity int, orderBy *model.TaskOrderByInput, last *int) int Vms func(childComplexity int) int } SecurityGroup struct { EverouteCluster func(childComplexity int) int ID func(childComplexity int) int LabelGroups func(childComplexity int) int MemberType func(childComplexity int) int PodLabelGroups func(childComplexity int) int VMs func(childComplexity int) int } SecurityGroupEvent struct { Mutation func(childComplexity int) int Node func(childComplexity int) int PreviousValues func(childComplexity int) int } SecurityPolicy struct { ApplyTo func(childComplexity int) int Egress func(childComplexity int) int EnableLogging func(childComplexity int) int EverouteCluster func(childComplexity int) int ID func(childComplexity int) int Ingress func(childComplexity int) int IsBlocklist func(childComplexity int) int Name func(childComplexity int) int PolicyMode func(childComplexity int) int } SecurityPolicyApply struct { Communicable func(childComplexity int) int SecurityGroup func(childComplexity int) int Selector func(childComplexity int) int Type func(childComplexity int) int } SecurityPolicyEvent struct { Mutation func(childComplexity int) int Node func(childComplexity int) int PreviousValues func(childComplexity int) int } ServiceEvent struct { Mutation func(childComplexity int) int Node func(childComplexity int) int PreviousValues func(childComplexity int) int } Subscription struct { EverouteCluster func(childComplexity int) int Host func(childComplexity int) int IsolationPolicy func(childComplexity int) int Label func(childComplexity int) int NetworkPolicyRuleService func(childComplexity int) int SecurityGroup func(childComplexity int) int SecurityPolicy func(childComplexity int) int SystemEndpoints func(childComplexity int) int Task func(childComplexity int) int VM func(childComplexity int) int } SystemEndpoints struct { IDEndpoints func(childComplexity int) int IPPortEndpoints func(childComplexity int) int } Task struct { Description func(childComplexity int) int ErrorCode func(childComplexity int) int ErrorMessage func(childComplexity int) int ID func(childComplexity int) int Internal func(childComplexity int) int Progress func(childComplexity int) int Snapshot func(childComplexity int) int Status func(childComplexity int) int } TaskEvent struct { Mutation func(childComplexity int) int Node func(childComplexity int) int PreviousValues func(childComplexity int) int } VM struct { Description func(childComplexity int) int ID func(childComplexity int) int Memory func(childComplexity int) int Name func(childComplexity int) int Status func(childComplexity int) int VMNics func(childComplexity int) int Vcpu func(childComplexity int) int } VMEvent struct { Mutation func(childComplexity int) int Node func(childComplexity int) int PreviousValues func(childComplexity int) int } VMNic struct { Enabled func(childComplexity int) int ID func(childComplexity int) int IPAddress func(childComplexity int) int InterfaceID func(childComplexity int) int MacAddress func(childComplexity int) int Mirror func(childComplexity int) int Model func(childComplexity int) int Vlan func(childComplexity int) int } Vlan struct { ID func(childComplexity int) int Name func(childComplexity int) int Type func(childComplexity int) int VDS func(childComplexity int) int VlanID func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type LabelResolver ¶
type MutationResolver ¶
type QueryResolver ¶
type QueryResolver interface { Vms(ctx context.Context) ([]schema.VM, error) Labels(ctx context.Context) ([]schema.Label, error) SecurityPolicies(ctx context.Context) ([]schema.SecurityPolicy, error) IsolationPolicies(ctx context.Context) ([]schema.IsolationPolicy, error) EverouteClusters(ctx context.Context) ([]schema.EverouteCluster, error) Hosts(ctx context.Context) ([]schema.Host, error) SystemEndpoints(ctx context.Context) (*schema.SystemEndpoints, error) Tasks(ctx context.Context, orderBy *model.TaskOrderByInput, last *int) ([]schema.Task, error) SecurityGroups(ctx context.Context) ([]schema.SecurityGroup, error) NetworkPolicyRuleServices(ctx context.Context) ([]schema.NetworkPolicyRuleService, error) }
type ResolverRoot ¶
type ResolverRoot interface { Label() LabelResolver Mutation() MutationResolver Query() QueryResolver Subscription() SubscriptionResolver }
type SubscriptionResolver ¶
type SubscriptionResolver interface { VM(ctx context.Context) (<-chan *model.VMEvent, error) Label(ctx context.Context) (<-chan *model.LabelEvent, error) SecurityPolicy(ctx context.Context) (<-chan *model.SecurityPolicyEvent, error) IsolationPolicy(ctx context.Context) (<-chan *model.IsolationPolicyEvent, error) EverouteCluster(ctx context.Context) (<-chan *model.EverouteClusterEvent, error) Host(ctx context.Context) (<-chan *model.HostEvent, error) SystemEndpoints(ctx context.Context) (<-chan *schema.SystemEndpoints, error) Task(ctx context.Context) (<-chan *model.TaskEvent, error) SecurityGroup(ctx context.Context) (<-chan *model.SecurityGroupEvent, error) NetworkPolicyRuleService(ctx context.Context) (<-chan *model.ServiceEvent, error) }
Click to show internal directories.
Click to hide internal directories.