Documentation ¶
Index ¶
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type ComplexityRoot
- type CompositeResourceClaimResolver
- type CompositeResourceClaimSpecResolver
- type CompositeResourceDefinitionResolver
- type CompositeResourceDefinitionSpecResolver
- type CompositeResourceResolver
- type CompositeResourceSpecResolver
- type CompositionResolver
- type Config
- type ConfigMapResolver
- type ConfigurationResolver
- type ConfigurationRevisionResolver
- type ConfigurationRevisionStatusResolver
- type CustomResourceDefinitionResolver
- type DirectiveRoot
- type EventResolver
- type GenericResourceResolver
- type ManagedResourceResolver
- type ManagedResourceSpecResolver
- type MutationResolver
- type ObjectMetaResolver
- type ProviderConfigResolver
- type ProviderResolver
- type ProviderRevisionResolver
- type ProviderRevisionStatusResolver
- type QueryResolver
- type ResolverRoot
- type SecretResolver
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 { CompositeResource struct { APIVersion func(childComplexity int) int Definition func(childComplexity int) int Events func(childComplexity int) int ID func(childComplexity int) int Kind func(childComplexity int) int Metadata func(childComplexity int) int Spec func(childComplexity int) int Status func(childComplexity int) int Unstructured func(childComplexity int) int } CompositeResourceClaim struct { APIVersion func(childComplexity int) int Definition func(childComplexity int) int Events func(childComplexity int) int ID func(childComplexity int) int Kind func(childComplexity int) int Metadata func(childComplexity int) int Spec func(childComplexity int) int Status func(childComplexity int) int Unstructured func(childComplexity int) int } CompositeResourceClaimConnection struct { Nodes func(childComplexity int) int TotalCount func(childComplexity int) int } CompositeResourceClaimConnectionDetails struct { LastPublishedTime func(childComplexity int) int } CompositeResourceClaimSpec struct { Composition func(childComplexity int) int CompositionSelector func(childComplexity int) int ConnectionSecret func(childComplexity int) int Resource func(childComplexity int) int } CompositeResourceClaimStatus struct { Conditions func(childComplexity int) int ConnectionDetails func(childComplexity int) int } CompositeResourceConnection struct { Nodes func(childComplexity int) int TotalCount func(childComplexity int) int } CompositeResourceConnectionDetails struct { LastPublishedTime func(childComplexity int) int } CompositeResourceDefinition struct { APIVersion func(childComplexity int) int DefinedCompositeResourceClaims func(childComplexity int, version *string, namespace *string) int DefinedCompositeResources func(childComplexity int, version *string) int Events func(childComplexity int) int ID func(childComplexity int) int Kind func(childComplexity int) int Metadata func(childComplexity int) int Spec func(childComplexity int) int Status func(childComplexity int) int Unstructured func(childComplexity int) int } CompositeResourceDefinitionConnection struct { Nodes func(childComplexity int) int TotalCount func(childComplexity int) int } CompositeResourceDefinitionControllerStatus struct { CompositeResourceClaimType func(childComplexity int) int CompositeResourceType func(childComplexity int) int } CompositeResourceDefinitionNames struct { Categories func(childComplexity int) int Kind func(childComplexity int) int ListKind func(childComplexity int) int Plural func(childComplexity int) int ShortNames func(childComplexity int) int Singular func(childComplexity int) int } CompositeResourceDefinitionSpec struct { ClaimNames func(childComplexity int) int ConnectionSecretKeys func(childComplexity int) int DefaultComposition func(childComplexity int) int EnforcedComposition func(childComplexity int) int Group func(childComplexity int) int Names func(childComplexity int) int Versions func(childComplexity int) int } CompositeResourceDefinitionStatus struct { Conditions func(childComplexity int) int Controllers func(childComplexity int) int } CompositeResourceDefinitionVersion struct { Name func(childComplexity int) int Referenceable func(childComplexity int) int Schema func(childComplexity int) int Served func(childComplexity int) int } CompositeResourceSpec struct { Claim func(childComplexity int) int Composition func(childComplexity int) int CompositionSelector func(childComplexity int) int ConnectionSecret func(childComplexity int) int Resources func(childComplexity int) int } CompositeResourceStatus struct { Conditions func(childComplexity int) int ConnectionDetails func(childComplexity int) int } CompositeResourceValidation struct { OpenAPIV3Schema func(childComplexity int) int } Composition struct { APIVersion func(childComplexity int) int Events func(childComplexity int) int ID func(childComplexity int) int Kind func(childComplexity int) int Metadata func(childComplexity int) int Spec func(childComplexity int) int Status func(childComplexity int) int Unstructured func(childComplexity int) int } CompositionConnection struct { Nodes func(childComplexity int) int TotalCount func(childComplexity int) int } CompositionSpec struct { CompositeTypeRef func(childComplexity int) int WriteConnectionSecretsToNamespace func(childComplexity int) int } CompositionStatus struct { Conditions func(childComplexity int) int } Condition struct { LastTransitionTime func(childComplexity int) int Message func(childComplexity int) int Reason func(childComplexity int) int Status func(childComplexity int) int Type func(childComplexity int) int } ConfigMap struct { APIVersion func(childComplexity int) int Data func(childComplexity int, keys []string) int Events func(childComplexity int) int ID func(childComplexity int) int Kind func(childComplexity int) int Metadata func(childComplexity int) int Unstructured func(childComplexity int) int } Configuration struct { APIVersion func(childComplexity int) int ActiveRevision func(childComplexity int) int Events func(childComplexity int) int ID func(childComplexity int) int Kind func(childComplexity int) int Metadata func(childComplexity int) int Revisions func(childComplexity int) int Spec func(childComplexity int) int Status func(childComplexity int) int Unstructured func(childComplexity int) int } ConfigurationConnection struct { Nodes func(childComplexity int) int TotalCount func(childComplexity int) int } ConfigurationRevision struct { APIVersion func(childComplexity int) int Events func(childComplexity int) int ID func(childComplexity int) int Kind func(childComplexity int) int Metadata func(childComplexity int) int Spec func(childComplexity int) int Status func(childComplexity int) int Unstructured func(childComplexity int) int } ConfigurationRevisionConnection struct { Nodes func(childComplexity int) int TotalCount func(childComplexity int) int } ConfigurationRevisionSpec struct { DesiredState func(childComplexity int) int IgnoreCrossplaneConstraints func(childComplexity int) int Package func(childComplexity int) int PackagePullPolicy func(childComplexity int) int Revision func(childComplexity int) int SkipDependencyResolution func(childComplexity int) int } ConfigurationRevisionStatus struct { Conditions func(childComplexity int) int FoundDependencies func(childComplexity int) int InstalledDependencies func(childComplexity int) int InvalidDependencies func(childComplexity int) int Objects func(childComplexity int) int PermissionRequests func(childComplexity int) int } ConfigurationSpec struct { IgnoreCrossplaneConstraints func(childComplexity int) int Package func(childComplexity int) int PackagePullPolicy func(childComplexity int) int RevisionActivationPolicy func(childComplexity int) int RevisionHistoryLimit func(childComplexity int) int SkipDependencyResolution func(childComplexity int) int } ConfigurationStatus struct { Conditions func(childComplexity int) int CurrentIdentifier func(childComplexity int) int CurrentRevision func(childComplexity int) int } CreateKubernetesResourcePayload struct { Resource func(childComplexity int) int } CustomResourceDefinition struct { APIVersion func(childComplexity int) int DefinedResources func(childComplexity int, version *string) int Events func(childComplexity int) int ID func(childComplexity int) int Kind func(childComplexity int) int Metadata func(childComplexity int) int Spec func(childComplexity int) int Status func(childComplexity int) int Unstructured func(childComplexity int) int } CustomResourceDefinitionConnection struct { Nodes func(childComplexity int) int TotalCount func(childComplexity int) int } CustomResourceDefinitionNames struct { Categories func(childComplexity int) int Kind func(childComplexity int) int ListKind func(childComplexity int) int Plural func(childComplexity int) int ShortNames func(childComplexity int) int Singular func(childComplexity int) int } CustomResourceDefinitionSpec struct { Group func(childComplexity int) int Names func(childComplexity int) int Scope func(childComplexity int) int Versions func(childComplexity int) int } CustomResourceDefinitionStatus struct { Conditions func(childComplexity int) int } CustomResourceDefinitionVersion struct { Name func(childComplexity int) int Schema func(childComplexity int) int Served func(childComplexity int) int } CustomResourceValidation struct { OpenAPIV3Schema func(childComplexity int) int } DeleteKubernetesResourcePayload struct { Resource func(childComplexity int) int } Event struct { APIVersion func(childComplexity int) int Count func(childComplexity int) int FirstTime func(childComplexity int) int ID func(childComplexity int) int InvolvedObject func(childComplexity int) int Kind func(childComplexity int) int LastTime func(childComplexity int) int Message func(childComplexity int) int Metadata func(childComplexity int) int Reason func(childComplexity int) int Source func(childComplexity int) int Type func(childComplexity int) int Unstructured func(childComplexity int) int } EventConnection struct { Nodes func(childComplexity int) int TotalCount func(childComplexity int) int } EventSource struct { Component func(childComplexity int) int } GenericResource struct { APIVersion func(childComplexity int) int Events func(childComplexity int) int ID func(childComplexity int) int Kind func(childComplexity int) int Metadata func(childComplexity int) int Unstructured func(childComplexity int) int } KubernetesResourceConnection struct { Nodes func(childComplexity int) int TotalCount func(childComplexity int) int } LabelSelector struct { MatchLabels func(childComplexity int) int } ManagedResource struct { APIVersion func(childComplexity int) int Definition func(childComplexity int) int Events func(childComplexity int) int ID func(childComplexity int) int Kind func(childComplexity int) int Metadata func(childComplexity int) int Spec func(childComplexity int) int Status func(childComplexity int) int Unstructured func(childComplexity int) int } ManagedResourceSpec struct { ConnectionSecret func(childComplexity int) int DeletionPolicy func(childComplexity int) int ProviderConfigRef func(childComplexity int) int } ManagedResourceStatus struct { Conditions func(childComplexity int) int } Mutation struct { CreateKubernetesResource func(childComplexity int, input model.CreateKubernetesResourceInput) int DeleteKubernetesResource func(childComplexity int, id model.ReferenceID) int UpdateKubernetesResource func(childComplexity int, id model.ReferenceID, input model.UpdateKubernetesResourceInput) int } ObjectMeta struct { Annotations func(childComplexity int, keys []string) int Controller func(childComplexity int) int CreationTime func(childComplexity int) int DeletionTime func(childComplexity int) int GenerateName func(childComplexity int) int Generation func(childComplexity int) int Labels func(childComplexity int, keys []string) int Name func(childComplexity int) int Namespace func(childComplexity int) int Owners func(childComplexity int) int ResourceVersion func(childComplexity int) int UID func(childComplexity int) int } Owner struct { Controller func(childComplexity int) int Resource func(childComplexity int) int } OwnerConnection struct { Nodes func(childComplexity int) int TotalCount func(childComplexity int) int } PolicyRule struct { APIGroups func(childComplexity int) int NonResourceURLs func(childComplexity int) int ResourceNames func(childComplexity int) int Resources func(childComplexity int) int Verbs func(childComplexity int) int } Provider struct { APIVersion func(childComplexity int) int ActiveRevision func(childComplexity int) int Events func(childComplexity int) int ID func(childComplexity int) int Kind func(childComplexity int) int Metadata func(childComplexity int) int Revisions func(childComplexity int) int Spec func(childComplexity int) int Status func(childComplexity int) int Unstructured func(childComplexity int) int } ProviderConfig struct { APIVersion func(childComplexity int) int Definition func(childComplexity int) int Events func(childComplexity int) int ID func(childComplexity int) int Kind func(childComplexity int) int Metadata func(childComplexity int) int Status func(childComplexity int) int Unstructured func(childComplexity int) int } ProviderConfigReference struct { Name func(childComplexity int) int } ProviderConfigStatus struct { Conditions func(childComplexity int) int Users func(childComplexity int) int } ProviderConnection struct { Nodes func(childComplexity int) int TotalCount func(childComplexity int) int } ProviderRevision struct { APIVersion func(childComplexity int) int Events func(childComplexity int) int ID func(childComplexity int) int Kind func(childComplexity int) int Metadata func(childComplexity int) int Spec func(childComplexity int) int Status func(childComplexity int) int Unstructured func(childComplexity int) int } ProviderRevisionConnection struct { Nodes func(childComplexity int) int TotalCount func(childComplexity int) int } ProviderRevisionSpec struct { DesiredState func(childComplexity int) int IgnoreCrossplaneConstraints func(childComplexity int) int Package func(childComplexity int) int PackagePullPolicy func(childComplexity int) int Revision func(childComplexity int) int SkipDependencyResolution func(childComplexity int) int } ProviderRevisionStatus struct { Conditions func(childComplexity int) int FoundDependencies func(childComplexity int) int InstalledDependencies func(childComplexity int) int InvalidDependencies func(childComplexity int) int Objects func(childComplexity int) int PermissionRequests func(childComplexity int) int } ProviderSpec struct { IgnoreCrossplaneConstraints func(childComplexity int) int Package func(childComplexity int) int PackagePullPolicy func(childComplexity int) int RevisionActivationPolicy func(childComplexity int) int RevisionHistoryLimit func(childComplexity int) int SkipDependencyResolution func(childComplexity int) int } ProviderStatus struct { Conditions func(childComplexity int) int CurrentIdentifier func(childComplexity int) int CurrentRevision func(childComplexity int) int } Query struct { CompositeResourceDefinitions func(childComplexity int, revision *model.ReferenceID, dangling *bool) int Compositions func(childComplexity int, revision *model.ReferenceID, dangling *bool) int ConfigMap func(childComplexity int, namespace string, name string) int ConfigurationRevisions func(childComplexity int, configuration *model.ReferenceID, active *bool) int Configurations func(childComplexity int) int CustomResourceDefinitions func(childComplexity int, revision *model.ReferenceID) int Events func(childComplexity int, involved *model.ReferenceID) int KubernetesResource func(childComplexity int, id model.ReferenceID) int KubernetesResources func(childComplexity int, apiVersion string, kind string, listKind *string, namespace *string) int ProviderRevisions func(childComplexity int, provider *model.ReferenceID, active *bool) int Providers func(childComplexity int) int Secret func(childComplexity int, namespace string, name string) int } Secret struct { APIVersion func(childComplexity int) int Data func(childComplexity int, keys []string) int Events func(childComplexity int) int ID func(childComplexity int) int Kind func(childComplexity int) int Metadata func(childComplexity int) int Type func(childComplexity int) int Unstructured func(childComplexity int) int } TypeReference struct { APIVersion func(childComplexity int) int Kind func(childComplexity int) int } UpdateKubernetesResourcePayload struct { Resource func(childComplexity int) int } }
type CompositeResourceClaimResolver ¶
type CompositeResourceClaimResolver interface { Events(ctx context.Context, obj *model.CompositeResourceClaim) (*model.EventConnection, error) Definition(ctx context.Context, obj *model.CompositeResourceClaim) (*model.CompositeResourceDefinition, error) }
type CompositeResourceClaimSpecResolver ¶
type CompositeResourceClaimSpecResolver interface { Composition(ctx context.Context, obj *model.CompositeResourceClaimSpec) (*model.Composition, error) Resource(ctx context.Context, obj *model.CompositeResourceClaimSpec) (*model.CompositeResource, error) ConnectionSecret(ctx context.Context, obj *model.CompositeResourceClaimSpec) (*model.Secret, error) }
type CompositeResourceDefinitionResolver ¶
type CompositeResourceDefinitionResolver interface { Events(ctx context.Context, obj *model.CompositeResourceDefinition) (*model.EventConnection, error) DefinedCompositeResources(ctx context.Context, obj *model.CompositeResourceDefinition, version *string) (*model.CompositeResourceConnection, error) DefinedCompositeResourceClaims(ctx context.Context, obj *model.CompositeResourceDefinition, version *string, namespace *string) (*model.CompositeResourceClaimConnection, error) }
type CompositeResourceDefinitionSpecResolver ¶
type CompositeResourceDefinitionSpecResolver interface { DefaultComposition(ctx context.Context, obj *model.CompositeResourceDefinitionSpec) (*model.Composition, error) EnforcedComposition(ctx context.Context, obj *model.CompositeResourceDefinitionSpec) (*model.Composition, error) }
type CompositeResourceResolver ¶
type CompositeResourceResolver interface { Events(ctx context.Context, obj *model.CompositeResource) (*model.EventConnection, error) Definition(ctx context.Context, obj *model.CompositeResource) (*model.CompositeResourceDefinition, error) }
type CompositeResourceSpecResolver ¶
type CompositeResourceSpecResolver interface { Composition(ctx context.Context, obj *model.CompositeResourceSpec) (*model.Composition, error) Claim(ctx context.Context, obj *model.CompositeResourceSpec) (*model.CompositeResourceClaim, error) ConnectionSecret(ctx context.Context, obj *model.CompositeResourceSpec) (*model.Secret, error) Resources(ctx context.Context, obj *model.CompositeResourceSpec) (*model.KubernetesResourceConnection, error) }
type CompositionResolver ¶
type CompositionResolver interface {
Events(ctx context.Context, obj *model.Composition) (*model.EventConnection, error)
}
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type ConfigMapResolver ¶
type ConfigurationResolver ¶
type ConfigurationResolver interface { Events(ctx context.Context, obj *model.Configuration) (*model.EventConnection, error) Revisions(ctx context.Context, obj *model.Configuration) (*model.ConfigurationRevisionConnection, error) ActiveRevision(ctx context.Context, obj *model.Configuration) (*model.ConfigurationRevision, error) }
type ConfigurationRevisionResolver ¶
type ConfigurationRevisionResolver interface {
Events(ctx context.Context, obj *model.ConfigurationRevision) (*model.EventConnection, error)
}
type ConfigurationRevisionStatusResolver ¶
type ConfigurationRevisionStatusResolver interface {
Objects(ctx context.Context, obj *model.ConfigurationRevisionStatus) (*model.KubernetesResourceConnection, error)
}
type CustomResourceDefinitionResolver ¶
type CustomResourceDefinitionResolver interface { Events(ctx context.Context, obj *model.CustomResourceDefinition) (*model.EventConnection, error) DefinedResources(ctx context.Context, obj *model.CustomResourceDefinition, version *string) (*model.KubernetesResourceConnection, error) }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type EventResolver ¶
type GenericResourceResolver ¶
type GenericResourceResolver interface {
Events(ctx context.Context, obj *model.GenericResource) (*model.EventConnection, error)
}
type ManagedResourceResolver ¶
type ManagedResourceResolver interface { Events(ctx context.Context, obj *model.ManagedResource) (*model.EventConnection, error) Definition(ctx context.Context, obj *model.ManagedResource) (model.ManagedResourceDefinition, error) }
type MutationResolver ¶
type MutationResolver interface { CreateKubernetesResource(ctx context.Context, input model.CreateKubernetesResourceInput) (*model.CreateKubernetesResourcePayload, error) UpdateKubernetesResource(ctx context.Context, id model.ReferenceID, input model.UpdateKubernetesResourceInput) (*model.UpdateKubernetesResourcePayload, error) DeleteKubernetesResource(ctx context.Context, id model.ReferenceID) (*model.DeleteKubernetesResourcePayload, error) }
type ObjectMetaResolver ¶
type ObjectMetaResolver interface { Owners(ctx context.Context, obj *model.ObjectMeta) (*model.OwnerConnection, error) Controller(ctx context.Context, obj *model.ObjectMeta) (model.KubernetesResource, error) }
type ProviderConfigResolver ¶
type ProviderConfigResolver interface { Events(ctx context.Context, obj *model.ProviderConfig) (*model.EventConnection, error) Definition(ctx context.Context, obj *model.ProviderConfig) (model.ProviderConfigDefinition, error) }
type ProviderResolver ¶
type ProviderResolver interface { Events(ctx context.Context, obj *model.Provider) (*model.EventConnection, error) Revisions(ctx context.Context, obj *model.Provider) (*model.ProviderRevisionConnection, error) ActiveRevision(ctx context.Context, obj *model.Provider) (*model.ProviderRevision, error) }
type ProviderRevisionResolver ¶
type ProviderRevisionResolver interface {
Events(ctx context.Context, obj *model.ProviderRevision) (*model.EventConnection, error)
}
type ProviderRevisionStatusResolver ¶
type ProviderRevisionStatusResolver interface {
Objects(ctx context.Context, obj *model.ProviderRevisionStatus) (*model.KubernetesResourceConnection, error)
}
type QueryResolver ¶
type QueryResolver interface { KubernetesResource(ctx context.Context, id model.ReferenceID) (model.KubernetesResource, error) KubernetesResources(ctx context.Context, apiVersion string, kind string, listKind *string, namespace *string) (*model.KubernetesResourceConnection, error) Events(ctx context.Context, involved *model.ReferenceID) (*model.EventConnection, error) Secret(ctx context.Context, namespace string, name string) (*model.Secret, error) ConfigMap(ctx context.Context, namespace string, name string) (*model.ConfigMap, error) Providers(ctx context.Context) (*model.ProviderConnection, error) ProviderRevisions(ctx context.Context, provider *model.ReferenceID, active *bool) (*model.ProviderRevisionConnection, error) CustomResourceDefinitions(ctx context.Context, revision *model.ReferenceID) (*model.CustomResourceDefinitionConnection, error) Configurations(ctx context.Context) (*model.ConfigurationConnection, error) ConfigurationRevisions(ctx context.Context, configuration *model.ReferenceID, active *bool) (*model.ConfigurationRevisionConnection, error) CompositeResourceDefinitions(ctx context.Context, revision *model.ReferenceID, dangling *bool) (*model.CompositeResourceDefinitionConnection, error) Compositions(ctx context.Context, revision *model.ReferenceID, dangling *bool) (*model.CompositionConnection, error) }
type ResolverRoot ¶
type ResolverRoot interface { CompositeResource() CompositeResourceResolver CompositeResourceClaim() CompositeResourceClaimResolver CompositeResourceClaimSpec() CompositeResourceClaimSpecResolver CompositeResourceDefinition() CompositeResourceDefinitionResolver CompositeResourceDefinitionSpec() CompositeResourceDefinitionSpecResolver CompositeResourceSpec() CompositeResourceSpecResolver Composition() CompositionResolver ConfigMap() ConfigMapResolver Configuration() ConfigurationResolver ConfigurationRevision() ConfigurationRevisionResolver ConfigurationRevisionStatus() ConfigurationRevisionStatusResolver CustomResourceDefinition() CustomResourceDefinitionResolver Event() EventResolver GenericResource() GenericResourceResolver ManagedResource() ManagedResourceResolver ManagedResourceSpec() ManagedResourceSpecResolver Mutation() MutationResolver ObjectMeta() ObjectMetaResolver Provider() ProviderResolver ProviderConfig() ProviderConfigResolver ProviderRevision() ProviderRevisionResolver ProviderRevisionStatus() ProviderRevisionStatusResolver Query() QueryResolver Secret() SecretResolver }
type SecretResolver ¶
Click to show internal directories.
Click to hide internal directories.