Documentation ¶
Index ¶
- Variables
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type ComplexityRoot
- type Config
- type DirectiveRoot
- type Github__com___kloudlite___api___common__CreatedOrUpdatedByResolver
- type IOTAppInResolver
- type IOTAppResolver
- type IOTDeploymentInResolver
- type IOTDeploymentResolver
- type IOTDeviceBlueprintInResolver
- type IOTDeviceBlueprintResolver
- type IOTDeviceResolver
- type IOTProjectResolver
- type MatchFilterInResolver
- type MatchFilterResolver
- type MetadataInResolver
- type MetadataResolver
- type MutationResolver
- type QueryResolver
- type ResolverRoot
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownType = errors.New("unknown type") ErrTypeNotFound = errors.New("type not found") )
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { CursorPagination struct { After func(childComplexity int) int Before func(childComplexity int) int First func(childComplexity int) int Last func(childComplexity int) int OrderBy func(childComplexity int) int SortDirection func(childComplexity int) int } Github__com___kloudlite___api___apps___iot____console___internal___entities__ExposedService struct { IP func(childComplexity int) int Name func(childComplexity int) int } Github__com___kloudlite___api___common__CreatedOrUpdatedBy struct { UserEmail func(childComplexity int) int UserID func(childComplexity int) int UserName func(childComplexity int) int } Github__com___kloudlite___operator___apis___crds___v1__AppContainer struct { Args func(childComplexity int) int Command func(childComplexity int) int Env func(childComplexity int) int EnvFrom func(childComplexity int) int Image func(childComplexity int) int ImagePullPolicy func(childComplexity int) int LivenessProbe func(childComplexity int) int Name func(childComplexity int) int ReadinessProbe func(childComplexity int) int ResourceCPU func(childComplexity int) int ResourceMemory func(childComplexity int) int Volumes func(childComplexity int) int } Github__com___kloudlite___operator___apis___crds___v1__AppInterceptPortMappings struct { AppPort func(childComplexity int) int DevicePort func(childComplexity int) int } Github__com___kloudlite___operator___apis___crds___v1__AppRouter struct { BackendProtocol func(childComplexity int) int BasicAuth func(childComplexity int) int Cors func(childComplexity int) int Domains func(childComplexity int) int HTTPS func(childComplexity int) int IngressClass func(childComplexity int) int MaxBodySizeInMb func(childComplexity int) int RateLimit func(childComplexity int) int Routes func(childComplexity int) int } Github__com___kloudlite___operator___apis___crds___v1__AppSpec struct { Containers func(childComplexity int) int DisplayName func(childComplexity int) int Freeze func(childComplexity int) int Hpa func(childComplexity int) int Intercept func(childComplexity int) int NodeSelector func(childComplexity int) int Region func(childComplexity int) int Replicas func(childComplexity int) int Router func(childComplexity int) int ServiceAccount func(childComplexity int) int Services func(childComplexity int) int Tolerations func(childComplexity int) int TopologySpreadConstraints func(childComplexity int) int } Github__com___kloudlite___operator___apis___crds___v1__AppSvc struct { Port func(childComplexity int) int Protocol func(childComplexity int) int } Github__com___kloudlite___operator___apis___crds___v1__BasicAuth struct { Enabled func(childComplexity int) int SecretName func(childComplexity int) int Username func(childComplexity int) int } Github__com___kloudlite___operator___apis___crds___v1__ContainerEnv struct { Key func(childComplexity int) int Optional func(childComplexity int) int RefKey func(childComplexity int) int RefName func(childComplexity int) int Type func(childComplexity int) int Value func(childComplexity int) int } Github__com___kloudlite___operator___apis___crds___v1__ContainerResource struct { Max func(childComplexity int) int Min func(childComplexity int) int } Github__com___kloudlite___operator___apis___crds___v1__ContainerVolume struct { Items func(childComplexity int) int MountPath func(childComplexity int) int RefName func(childComplexity int) int Type func(childComplexity int) int } Github__com___kloudlite___operator___apis___crds___v1__ContainerVolumeItem struct { FileName func(childComplexity int) int Key func(childComplexity int) int } Github__com___kloudlite___operator___apis___crds___v1__Cors struct { AllowCredentials func(childComplexity int) int Enabled func(childComplexity int) int Origins func(childComplexity int) int } Github__com___kloudlite___operator___apis___crds___v1__EnvFrom struct { RefName func(childComplexity int) int Type func(childComplexity int) int } Github__com___kloudlite___operator___apis___crds___v1__HPA struct { Enabled func(childComplexity int) int MaxReplicas func(childComplexity int) int MinReplicas func(childComplexity int) int ThresholdCPU func(childComplexity int) int ThresholdMemory func(childComplexity int) int } Github__com___kloudlite___operator___apis___crds___v1__HttpGetProbe struct { HTTPHeaders func(childComplexity int) int Path func(childComplexity int) int Port func(childComplexity int) int } Github__com___kloudlite___operator___apis___crds___v1__Https struct { ClusterIssuer func(childComplexity int) int Enabled func(childComplexity int) int ForceRedirect func(childComplexity int) int } Github__com___kloudlite___operator___apis___crds___v1__Intercept struct { Enabled func(childComplexity int) int PortMappings func(childComplexity int) int ToDevice func(childComplexity int) int } Github__com___kloudlite___operator___apis___crds___v1__Probe struct { FailureThreshold func(childComplexity int) int HTTPGet func(childComplexity int) int InitialDelay func(childComplexity int) int Interval func(childComplexity int) int Shell func(childComplexity int) int TCP func(childComplexity int) int Type func(childComplexity int) int } Github__com___kloudlite___operator___apis___crds___v1__RateLimit struct { Connections func(childComplexity int) int Enabled func(childComplexity int) int Rpm func(childComplexity int) int Rps func(childComplexity int) int } Github__com___kloudlite___operator___apis___crds___v1__Route struct { App func(childComplexity int) int Path func(childComplexity int) int Port func(childComplexity int) int Rewrite func(childComplexity int) int } Github__com___kloudlite___operator___apis___crds___v1__ShellProbe struct { Command func(childComplexity int) int } Github__com___kloudlite___operator___apis___crds___v1__TcpProbe struct { Port func(childComplexity int) int } Github__com___kloudlite___operator___pkg___operator__Check struct { Debug func(childComplexity int) int Error func(childComplexity int) int Generation func(childComplexity int) int Info func(childComplexity int) int Message func(childComplexity int) int StartedAt func(childComplexity int) int State func(childComplexity int) int Status func(childComplexity int) int } Github__com___kloudlite___operator___pkg___operator__CheckMeta struct { Debug func(childComplexity int) int Description func(childComplexity int) int Hide func(childComplexity int) int Name func(childComplexity int) int Title func(childComplexity int) int } Github__com___kloudlite___operator___pkg___operator__ResourceRef struct { APIVersion func(childComplexity int) int Kind func(childComplexity int) int Name func(childComplexity int) int Namespace func(childComplexity int) int } Github__com___kloudlite___operator___pkg___operator__Status struct { CheckList func(childComplexity int) int Checks func(childComplexity int) int IsReady func(childComplexity int) int LastReadyGeneration func(childComplexity int) int LastReconcileTime func(childComplexity int) int Message func(childComplexity int) int Resources func(childComplexity int) int } Github__com___kloudlite___operator___pkg___raw____json__RawJson struct { RawMessage func(childComplexity int) int } IOTApp struct { APIVersion func(childComplexity int) int AccountName func(childComplexity int) int CreatedBy func(childComplexity int) int CreationTime func(childComplexity int) int DeviceBlueprintName func(childComplexity int) int DisplayName func(childComplexity int) int Enabled func(childComplexity int) int Id func(childComplexity int) int Kind func(childComplexity int) int LastUpdatedBy func(childComplexity int) int MarkedForDeletion func(childComplexity int) int ObjectMeta func(childComplexity int) int ProjectName func(childComplexity int) int RecordVersion func(childComplexity int) int Spec func(childComplexity int) int Status func(childComplexity int) int UpdateTime func(childComplexity int) int } IOTAppEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } IOTAppPaginatedRecords struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } IOTDeployment struct { AccountName func(childComplexity int) int CIDR func(childComplexity int) int CreatedBy func(childComplexity int) int CreationTime func(childComplexity int) int DisplayName func(childComplexity int) int ExposedServices func(childComplexity int) int Id func(childComplexity int) int LastUpdatedBy func(childComplexity int) int MarkedForDeletion func(childComplexity int) int Name func(childComplexity int) int ProjectName func(childComplexity int) int RecordVersion func(childComplexity int) int UpdateTime func(childComplexity int) int } IOTDeploymentEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } IOTDeploymentPaginatedRecords struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } IOTDevice struct { AccountName func(childComplexity int) int CreatedBy func(childComplexity int) int CreationTime func(childComplexity int) int DeploymentName func(childComplexity int) int DisplayName func(childComplexity int) int IP func(childComplexity int) int Id func(childComplexity int) int LastUpdatedBy func(childComplexity int) int MarkedForDeletion func(childComplexity int) int Name func(childComplexity int) int PodCIDR func(childComplexity int) int ProjectName func(childComplexity int) int PublicKey func(childComplexity int) int RecordVersion func(childComplexity int) int ServiceCIDR func(childComplexity int) int UpdateTime func(childComplexity int) int Version func(childComplexity int) int } IOTDeviceBlueprint struct { AccountName func(childComplexity int) int BluePrintType func(childComplexity int) int CreatedBy func(childComplexity int) int CreationTime func(childComplexity int) int DisplayName func(childComplexity int) int Id func(childComplexity int) int LastUpdatedBy func(childComplexity int) int MarkedForDeletion func(childComplexity int) int Name func(childComplexity int) int ProjectName func(childComplexity int) int RecordVersion func(childComplexity int) int UpdateTime func(childComplexity int) int Version func(childComplexity int) int } IOTDeviceBlueprintEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } IOTDeviceBlueprintPaginatedRecords struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } IOTDeviceEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } IOTDevicePaginatedRecords struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } IOTEnvironment struct { AccountName func(childComplexity int) int CreatedBy func(childComplexity int) int CreationTime func(childComplexity int) int DisplayName func(childComplexity int) int ID func(childComplexity int) int LastUpdatedBy func(childComplexity int) int MarkedForDeletion func(childComplexity int) int Name func(childComplexity int) int ProjectName func(childComplexity int) int RecordVersion func(childComplexity int) int UpdateTime func(childComplexity int) int } IOTEnvironmentEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } IOTEnvironmentPaginatedRecords struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } IOTProject struct { AccountName func(childComplexity int) int CreatedBy func(childComplexity int) int CreationTime func(childComplexity int) int DisplayName func(childComplexity int) int Id func(childComplexity int) int LastUpdatedBy func(childComplexity int) int MarkedForDeletion func(childComplexity int) int Name func(childComplexity int) int RecordVersion func(childComplexity int) int UpdateTime func(childComplexity int) int } IOTProjectEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } IOTProjectPaginatedRecords struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } K8s__io___api___core___v1__Toleration struct { Effect func(childComplexity int) int Key func(childComplexity int) int Operator func(childComplexity int) int TolerationSeconds func(childComplexity int) int Value func(childComplexity int) int } K8s__io___api___core___v1__TopologySpreadConstraint struct { LabelSelector func(childComplexity int) int MatchLabelKeys func(childComplexity int) int MaxSkew func(childComplexity int) int MinDomains func(childComplexity int) int NodeAffinityPolicy func(childComplexity int) int NodeTaintsPolicy func(childComplexity int) int TopologyKey func(childComplexity int) int WhenUnsatisfiable func(childComplexity int) int } K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelector struct { MatchExpressions func(childComplexity int) int MatchLabels func(childComplexity int) int } K8s__io___apimachinery___pkg___apis___meta___v1__LabelSelectorRequirement struct { Key func(childComplexity int) int Operator func(childComplexity int) int Values func(childComplexity int) int } MatchFilter struct { Array func(childComplexity int) int Exact func(childComplexity int) int MatchType func(childComplexity int) int NotInArray func(childComplexity int) int Regex func(childComplexity int) int } Metadata struct { Annotations func(childComplexity int) int CreationTimestamp func(childComplexity int) int DeletionTimestamp func(childComplexity int) int Generation func(childComplexity int) int Labels func(childComplexity int) int Name func(childComplexity int) int Namespace func(childComplexity int) int } Mutation struct { IotCreateApp func(childComplexity int, projectName string, deviceBlueprintName string, app entities.IOTApp) int IotCreateDeployment func(childComplexity int, projectName string, deployment entities.IOTDeployment) int IotCreateDevice func(childComplexity int, projectName string, deploymentName string, device entities.IOTDevice) int IotCreateDeviceBlueprint func(childComplexity int, projectName string, deviceBlueprint entities.IOTDeviceBlueprint) int IotCreateProject func(childComplexity int, project entities.IOTProject) int IotDeleteApp func(childComplexity int, projectName string, deviceBlueprintName string, name string) int IotDeleteDeployment func(childComplexity int, projectName string, name string) int IotDeleteDevice func(childComplexity int, projectName string, deploymentName string, name string) int IotDeleteDeviceBlueprint func(childComplexity int, projectName string, name string) int IotDeleteProject func(childComplexity int, name string) int IotUpdateApp func(childComplexity int, projectName string, deviceBlueprintName string, app entities.IOTApp) int IotUpdateDeployment func(childComplexity int, projectName string, deployment entities.IOTDeployment) int IotUpdateDevice func(childComplexity int, projectName string, deploymentName string, device entities.IOTDevice) int IotUpdateDeviceBlueprint func(childComplexity int, projectName string, deviceBlueprint entities.IOTDeviceBlueprint) int IotUpdateProject func(childComplexity int, project entities.IOTProject) int } PageInfo struct { EndCursor func(childComplexity int) int HasNextPage func(childComplexity int) int HasPrevPage func(childComplexity int) int StartCursor func(childComplexity int) int } Query struct { IotGetApp func(childComplexity int, projectName string, deviceBlueprintName string, name string) int IotGetDeployment func(childComplexity int, projectName string, name string) int IotGetDevice func(childComplexity int, projectName string, deploymentName string, name string) int IotGetDeviceBlueprint func(childComplexity int, projectName string, name string) int IotGetProject func(childComplexity int, name string) int IotListApps func(childComplexity int, projectName string, deviceBlueprintName string, search *model.SearchIOTApps, pq *repos.CursorPagination) int IotListDeployments func(childComplexity int, projectName string, search *model.SearchIOTDeployments, pq *repos.CursorPagination) int IotListDeviceBlueprints func(childComplexity int, projectName string, search *model.SearchIOTDeviceBlueprints, pq *repos.CursorPagination) int IotListDevices func(childComplexity int, projectName string, deploymentName string, search *model.SearchIOTDevices, pq *repos.CursorPagination) int IotListProjects func(childComplexity int, search *model.SearchIOTProjects, pq *repos.CursorPagination) int // contains filtered or unexported fields } // contains filtered or unexported fields }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { HasAccount func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) IsLoggedIn func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) IsLoggedInAndVerified func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) }
type IOTAppInResolver ¶
type IOTAppResolver ¶
type IOTAppResolver interface { CreationTime(ctx context.Context, obj *entities.IOTApp) (string, error) Spec(ctx context.Context, obj *entities.IOTApp) (*model.GithubComKloudliteOperatorApisCrdsV1AppSpec, error) Status(ctx context.Context, obj *entities.IOTApp) (*model.GithubComKloudliteOperatorPkgOperatorStatus, error) UpdateTime(ctx context.Context, obj *entities.IOTApp) (string, error) }
type IOTDeploymentInResolver ¶
type IOTDeploymentInResolver interface {
ExposedServices(ctx context.Context, obj *entities.IOTDeployment, data []*model.GithubComKloudliteAPIAppsIotConsoleInternalEntitiesExposedServiceIn) error
}
type IOTDeploymentResolver ¶
type IOTDeploymentResolver interface { CreationTime(ctx context.Context, obj *entities.IOTDeployment) (string, error) ExposedServices(ctx context.Context, obj *entities.IOTDeployment) ([]*model.GithubComKloudliteAPIAppsIotConsoleInternalEntitiesExposedService, error) UpdateTime(ctx context.Context, obj *entities.IOTDeployment) (string, error) }
type IOTDeviceBlueprintInResolver ¶
type IOTDeviceBlueprintInResolver interface {
BluePrintType(ctx context.Context, obj *entities.IOTDeviceBlueprint, data model.GithubComKloudliteAPIAppsIotConsoleInternalEntitiesBluePrintType) error
}
type IOTDeviceBlueprintResolver ¶
type IOTDeviceBlueprintResolver interface { BluePrintType(ctx context.Context, obj *entities.IOTDeviceBlueprint) (model.GithubComKloudliteAPIAppsIotConsoleInternalEntitiesBluePrintType, error) CreationTime(ctx context.Context, obj *entities.IOTDeviceBlueprint) (string, error) UpdateTime(ctx context.Context, obj *entities.IOTDeviceBlueprint) (string, error) }
type IOTDeviceResolver ¶
type IOTProjectResolver ¶
type MatchFilterInResolver ¶
type MatchFilterInResolver interface {
MatchType(ctx context.Context, obj *repos.MatchFilter, data model.GithubComKloudliteAPIPkgReposMatchType) error
}
type MatchFilterResolver ¶
type MatchFilterResolver interface {
MatchType(ctx context.Context, obj *repos.MatchFilter) (model.GithubComKloudliteAPIPkgReposMatchType, error)
}
type MetadataInResolver ¶
type MetadataResolver ¶
type MetadataResolver interface { Annotations(ctx context.Context, obj *v1.ObjectMeta) (map[string]interface{}, error) CreationTimestamp(ctx context.Context, obj *v1.ObjectMeta) (string, error) DeletionTimestamp(ctx context.Context, obj *v1.ObjectMeta) (*string, error) Labels(ctx context.Context, obj *v1.ObjectMeta) (map[string]interface{}, error) }
type MutationResolver ¶
type MutationResolver interface { IotCreateProject(ctx context.Context, project entities.IOTProject) (*entities.IOTProject, error) IotUpdateProject(ctx context.Context, project entities.IOTProject) (*entities.IOTProject, error) IotDeleteProject(ctx context.Context, name string) (bool, error) IotCreateDevice(ctx context.Context, projectName string, deploymentName string, device entities.IOTDevice) (*entities.IOTDevice, error) IotUpdateDevice(ctx context.Context, projectName string, deploymentName string, device entities.IOTDevice) (*entities.IOTDevice, error) IotDeleteDevice(ctx context.Context, projectName string, deploymentName string, name string) (bool, error) IotCreateDeviceBlueprint(ctx context.Context, projectName string, deviceBlueprint entities.IOTDeviceBlueprint) (*entities.IOTDeviceBlueprint, error) IotUpdateDeviceBlueprint(ctx context.Context, projectName string, deviceBlueprint entities.IOTDeviceBlueprint) (*entities.IOTDeviceBlueprint, error) IotDeleteDeviceBlueprint(ctx context.Context, projectName string, name string) (bool, error) IotCreateDeployment(ctx context.Context, projectName string, deployment entities.IOTDeployment) (*entities.IOTDeployment, error) IotUpdateDeployment(ctx context.Context, projectName string, deployment entities.IOTDeployment) (*entities.IOTDeployment, error) IotDeleteDeployment(ctx context.Context, projectName string, name string) (bool, error) IotCreateApp(ctx context.Context, projectName string, deviceBlueprintName string, app entities.IOTApp) (*entities.IOTApp, error) IotUpdateApp(ctx context.Context, projectName string, deviceBlueprintName string, app entities.IOTApp) (*entities.IOTApp, error) IotDeleteApp(ctx context.Context, projectName string, deviceBlueprintName string, name string) (bool, error) }
type QueryResolver ¶
type QueryResolver interface { IotListProjects(ctx context.Context, search *model.SearchIOTProjects, pq *repos.CursorPagination) (*model.IOTProjectPaginatedRecords, error) IotGetProject(ctx context.Context, name string) (*entities.IOTProject, error) IotListDevices(ctx context.Context, projectName string, deploymentName string, search *model.SearchIOTDevices, pq *repos.CursorPagination) (*model.IOTDevicePaginatedRecords, error) IotGetDevice(ctx context.Context, projectName string, deploymentName string, name string) (*entities.IOTDevice, error) IotListDeviceBlueprints(ctx context.Context, projectName string, search *model.SearchIOTDeviceBlueprints, pq *repos.CursorPagination) (*model.IOTDeviceBlueprintPaginatedRecords, error) IotGetDeviceBlueprint(ctx context.Context, projectName string, name string) (*entities.IOTDeviceBlueprint, error) IotListDeployments(ctx context.Context, projectName string, search *model.SearchIOTDeployments, pq *repos.CursorPagination) (*model.IOTDeploymentPaginatedRecords, error) IotGetDeployment(ctx context.Context, projectName string, name string) (*entities.IOTDeployment, error) IotListApps(ctx context.Context, projectName string, deviceBlueprintName string, search *model.SearchIOTApps, pq *repos.CursorPagination) (*model.IOTAppPaginatedRecords, error) IotGetApp(ctx context.Context, projectName string, deviceBlueprintName string, name string) (*entities.IOTApp, error) }
type ResolverRoot ¶
type ResolverRoot interface { Github__com___kloudlite___api___common__CreatedOrUpdatedBy() Github__com___kloudlite___api___common__CreatedOrUpdatedByResolver IOTApp() IOTAppResolver IOTDeployment() IOTDeploymentResolver IOTDevice() IOTDeviceResolver IOTDeviceBlueprint() IOTDeviceBlueprintResolver IOTProject() IOTProjectResolver MatchFilter() MatchFilterResolver Metadata() MetadataResolver Mutation() MutationResolver Query() QueryResolver IOTAppIn() IOTAppInResolver IOTDeploymentIn() IOTDeploymentInResolver IOTDeviceBlueprintIn() IOTDeviceBlueprintInResolver MatchFilterIn() MatchFilterInResolver MetadataIn() MetadataInResolver }
Click to show internal directories.
Click to hide internal directories.