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 { AadConfig struct { AdminGroupObjectID func(childComplexity int) int ClientID func(childComplexity int) int ClientSecret func(childComplexity int) int IsEnabled func(childComplexity int) int LastProcessingMessage func(childComplexity int) int TenantID func(childComplexity int) int } Access struct { AdditionalHostnames func(childComplexity int) int Changed func(childComplexity int) int Config func(childComplexity int) int Description func(childComplexity int) int DeviceInfo func(childComplexity int) int Fqdn func(childComplexity int) int FwConfig func(childComplexity int) int Groups func(childComplexity int) int ID func(childComplexity int) int IPAddress func(childComplexity int) int Listeners func(childComplexity int) int Name func(childComplexity int) int PunchBack func(childComplexity int) int RestrictiveNetwork func(childComplexity int) int Statistics func(childComplexity int) int ValidFrom func(childComplexity int) int ValidTo func(childComplexity int) int } AccessDevice struct { Contacted func(childComplexity int) int DeviceID func(childComplexity int) int DeviceOSType func(childComplexity int) int DeviceOs func(childComplexity int) int DeviceSWVersion func(childComplexity int) int Name func(childComplexity int) int OsAutoUpdate func(childComplexity int) int } AccessListener struct { AccessListenerType func(childComplexity int) int Description func(childComplexity int) int ForwardHost func(childComplexity int) int ForwardPort func(childComplexity int) int ListenPort func(childComplexity int) int Protocol func(childComplexity int) int } AccessListenerType struct { Glyph func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int } AccessStatistic struct { IsConnectd func(childComplexity int) int IsOverRestrictiveNetwork func(childComplexity int) int LastContact func(childComplexity int) int LastContactFromNow func(childComplexity int) int } AdminDashboard struct { InvitedUsers func(childComplexity int) int Servers func(childComplexity int) int UserStatistics func(childComplexity int) int Users func(childComplexity int) int } CliApiConfig struct { APIKey func(childComplexity int) int IsEnabled func(childComplexity int) int URL func(childComplexity int) int } CodeListItem struct { ID func(childComplexity int) int Name func(childComplexity int) int } ConfigItem struct { IdentityImportEnabled func(childComplexity int) int MaxCertificateValidity func(childComplexity int) int MaxDBRecords func(childComplexity int) int TenantID func(childComplexity int) int TenantName func(childComplexity int) int } CostUsageItem struct { Cost func(childComplexity int) int Hours func(childComplexity int) int IsUser func(childComplexity int) int Upn func(childComplexity int) int YearMonth func(childComplexity int) int } CostUsageMonthItem struct { Cost func(childComplexity int) int CostUsageItems func(childComplexity int) int YearMonth func(childComplexity int) int } FwConfig struct { Changed func(childComplexity int) int FwConfigIns func(childComplexity int) int FwConfigOuts func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int } FwConfigRule struct { Groups func(childComplexity int) int Host func(childComplexity int) int Port func(childComplexity int) int Proto func(childComplexity int) int } Group struct { Description func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int } Lighthouse struct { IPAddress func(childComplexity int) int Port func(childComplexity int) int PublicIP func(childComplexity int) int } LogItem struct { Created func(childComplexity int) int Data func(childComplexity int) int ID func(childComplexity int) int Upn func(childComplexity int) int } Mutation struct { FirewallConfigurationDelete func(childComplexity int, id int) int FirewallConfigurationSave func(childComplexity int, data gqlmodel.FwConfigData) int GroupDelete func(childComplexity int, id int) int GroupSave func(childComplexity int, data gqlmodel.GroupData) int ServerDelete func(childComplexity int, id int) int ServerSave func(childComplexity int, data *gqlmodel.ServerData) int SystemAadConfigSave func(childComplexity int, data gqlmodel.AadConfigData) int SystemCliAPIConfigSave func(childComplexity int, data gqlmodel.CliAPIConfigData) int SystemConfigSave func(childComplexity int, data gqlmodel.SystemConfigData) int UserAccessDelete func(childComplexity int, id int) int UserAccessSave func(childComplexity int, data gqlmodel.UserAccessData) int UserAccessTemplateDelete func(childComplexity int, id int) int UserAccessTemplateSave func(childComplexity int, data gqlmodel.UserAccessTemplateData) int UserDelete func(childComplexity int, id int) int UserDeviceCreate func(childComplexity int, userAccessID int, data gqlmodel.AccessDeviceData, publicKey *string) int UserDeviceDelete func(childComplexity int, id int) int UserDeviceSaveNote func(childComplexity int, id int, note string) int UserInvite func(childComplexity int, data gqlmodel.InviteUserData) int UserSave func(childComplexity int, data gqlmodel.UserData) int } OsAutoUpdate struct { Description func(childComplexity int) int LastUpdate func(childComplexity int) int LastUpdateOutput func(childComplexity int) int LastUpdateSuccess func(childComplexity int) int Name func(childComplexity int) int OsType func(childComplexity int) int OtherUpdates func(childComplexity int) int OtherUpdatesCount func(childComplexity int) int SecurityUpdates func(childComplexity int) int SecurityUpdatesCount func(childComplexity int) int Version func(childComplexity int) int } Query struct { AccessListenerTypes func(childComplexity int, name *string) int AdminDashboard func(childComplexity int) int CodelistFirewalls func(childComplexity int) int CodelistGroups func(childComplexity int) int CodelistUserAccessTemplates func(childComplexity int) int Config func(childComplexity int) int FirewallConfiguration func(childComplexity int, id int) int FirewallConfigurations func(childComplexity int, name *string) int Group func(childComplexity int, id int) int Groups func(childComplexity int, name *string) int Me func(childComplexity int) int MonthCostUsage func(childComplexity int) int SecurityLogs func(childComplexity int, filter *string, upn *string, createdFrom *string, createdTo *string) int Server func(childComplexity int, id int) int Servers func(childComplexity int, name *string) int SystemConfig func(childComplexity int) int TelemetryLogs func(childComplexity int, filter *string, upn *string, createdFrom *string, createdTo *string) int User func(childComplexity int, id int) int UserAccessTemplate func(childComplexity int, id int) int UserAccessTemplates func(childComplexity int, name *string) int Users func(childComplexity int, name *string, origin *string) int } Server struct { Access func(childComplexity int) int AllowAutoUpdate func(childComplexity int) int Description func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int ServerOSAutoUpdatePolicy func(childComplexity int) int } ServerForAccess struct { Description func(childComplexity int) int IPAddress func(childComplexity int) int Listeners func(childComplexity int) int Name func(childComplexity int) int Statistics func(childComplexity int) int } ServerOSAutoUpdatePolicy struct { AllAutoUpdateEnabled func(childComplexity int) int OsAutoUpdateEnabled func(childComplexity int) int OsAutoUpdateHour func(childComplexity int) int RestartAfterUpdate func(childComplexity int) int SecurityAutoUpdateEnabled func(childComplexity int) int } SystemConfig struct { AadConfig func(childComplexity int) int CliAPIConfig func(childComplexity int) int Lighthouses func(childComplexity int) int MaximumCertificateValidity func(childComplexity int) int NetworkCidr func(childComplexity int) int } User struct { Description func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int Origin func(childComplexity int) int Roles func(childComplexity int) int Upn func(childComplexity int) int UserAccesses func(childComplexity int) int } UserAccess struct { Accesses func(childComplexity int) int Changed func(childComplexity int) int Description func(childComplexity int) int FwConfig func(childComplexity int) int Groups func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int ServersForAccess func(childComplexity int) int UserAccessTemplate func(childComplexity int) int ValidFrom func(childComplexity int) int ValidTo func(childComplexity int) int } UserAccessDeviceInfo struct { Access func(childComplexity int) int CaPublicKey func(childComplexity int) int Certificate func(childComplexity int) int LighthouseIP func(childComplexity int) int LighthousePort func(childComplexity int) int LighthousePrivateIP func(childComplexity int) int } UserAccessTemplate struct { Changed func(childComplexity int) int Description func(childComplexity int) int FwConfig func(childComplexity int) int Groups func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int ValidFrom func(childComplexity int) int ValidTo func(childComplexity int) int } UserStatistic struct { Date func(childComplexity int) int Hour func(childComplexity int) int UsersOnline func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type MutationResolver interface { SystemConfigSave(ctx context.Context, data gqlmodel.SystemConfigData) (*gqlmodel.SystemConfig, error) SystemAadConfigSave(ctx context.Context, data gqlmodel.AadConfigData) (*gqlmodel.AadConfig, error) SystemCliAPIConfigSave(ctx context.Context, data gqlmodel.CliAPIConfigData) (*gqlmodel.CliAPIConfig, error) UserInvite(ctx context.Context, data gqlmodel.InviteUserData) (*gqlmodel.User, error) ServerDelete(ctx context.Context, id int) (*gqlmodel.Server, error) UserDelete(ctx context.Context, id int) (*gqlmodel.User, error) ServerSave(ctx context.Context, data *gqlmodel.ServerData) (*gqlmodel.Server, error) UserSave(ctx context.Context, data gqlmodel.UserData) (*gqlmodel.User, error) GroupDelete(ctx context.Context, id int) (*gqlmodel.Group, error) GroupSave(ctx context.Context, data gqlmodel.GroupData) (*gqlmodel.Group, error) UserAccessTemplateDelete(ctx context.Context, id int) (*gqlmodel.UserAccessTemplate, error) UserAccessTemplateSave(ctx context.Context, data gqlmodel.UserAccessTemplateData) (*gqlmodel.UserAccessTemplate, error) FirewallConfigurationDelete(ctx context.Context, id int) (*gqlmodel.FwConfig, error) FirewallConfigurationSave(ctx context.Context, data gqlmodel.FwConfigData) (*gqlmodel.FwConfig, error) UserAccessDelete(ctx context.Context, id int) (*gqlmodel.UserAccess, error) UserAccessSave(ctx context.Context, data gqlmodel.UserAccessData) (*gqlmodel.UserAccess, error) UserDeviceSaveNote(ctx context.Context, id int, note string) (*gqlmodel.Access, error) UserDeviceDelete(ctx context.Context, id int) (int, error) UserDeviceCreate(ctx context.Context, userAccessID int, data gqlmodel.AccessDeviceData, publicKey *string) (*gqlmodel.UserAccessDeviceInfo, error) }
type QueryResolver ¶
type QueryResolver interface { MonthCostUsage(ctx context.Context) ([]*gqlmodel.CostUsageMonthItem, error) Config(ctx context.Context) (*gqlmodel.ConfigItem, error) AdminDashboard(ctx context.Context) (*gqlmodel.AdminDashboard, error) CodelistGroups(ctx context.Context) ([]*gqlmodel.CodeListItem, error) CodelistFirewalls(ctx context.Context) ([]*gqlmodel.CodeListItem, error) CodelistUserAccessTemplates(ctx context.Context) ([]*gqlmodel.CodeListItem, error) TelemetryLogs(ctx context.Context, filter *string, upn *string, createdFrom *string, createdTo *string) ([]*gqlmodel.LogItem, error) SecurityLogs(ctx context.Context, filter *string, upn *string, createdFrom *string, createdTo *string) ([]*gqlmodel.LogItem, error) SystemConfig(ctx context.Context) (*gqlmodel.SystemConfig, error) Users(ctx context.Context, name *string, origin *string) ([]*gqlmodel.User, error) Servers(ctx context.Context, name *string) ([]*gqlmodel.Server, error) Me(ctx context.Context) (*gqlmodel.User, error) Server(ctx context.Context, id int) (*gqlmodel.Server, error) User(ctx context.Context, id int) (*gqlmodel.User, error) Group(ctx context.Context, id int) (*gqlmodel.Group, error) Groups(ctx context.Context, name *string) ([]*gqlmodel.Group, error) AccessListenerTypes(ctx context.Context, name *string) ([]*gqlmodel.AccessListenerType, error) UserAccessTemplate(ctx context.Context, id int) (*gqlmodel.UserAccessTemplate, error) UserAccessTemplates(ctx context.Context, name *string) ([]*gqlmodel.UserAccessTemplate, error) FirewallConfiguration(ctx context.Context, id int) (*gqlmodel.FwConfig, error) FirewallConfigurations(ctx context.Context, name *string) ([]*gqlmodel.FwConfig, error) }
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.