Documentation ¶
Index ¶
- Variables
- type ExecutableSchema
- func (m *ExecutableSchema) Clone() proto.Message
- func (*ExecutableSchema) Descriptor() ([]byte, []int)deprecated
- func (m *ExecutableSchema) Equal(that interface{}) bool
- func (x *ExecutableSchema) GetExecutor() *Executor
- func (x *ExecutableSchema) GetGrpcDescriptorRegistry() *GrpcDescriptorRegistry
- func (x *ExecutableSchema) GetSchemaDefinition() string
- func (m *ExecutableSchema) Hash(hasher hash.Hash64) (uint64, error)
- func (*ExecutableSchema) ProtoMessage()
- func (x *ExecutableSchema) ProtoReflect() protoreflect.Message
- func (x *ExecutableSchema) Reset()
- func (x *ExecutableSchema) String() string
- type Executor
- func (m *Executor) Clone() proto.Message
- func (*Executor) Descriptor() ([]byte, []int)deprecated
- func (m *Executor) Equal(that interface{}) bool
- func (m *Executor) GetExecutor() isExecutor_Executor
- func (x *Executor) GetLocal() *Executor_Local
- func (m *Executor) Hash(hasher hash.Hash64) (uint64, error)
- func (*Executor) ProtoMessage()
- func (x *Executor) ProtoReflect() protoreflect.Message
- func (x *Executor) Reset()
- func (x *Executor) String() string
- type Executor_Local
- func (m *Executor_Local) Clone() proto.Message
- func (*Executor_Local) Descriptor() ([]byte, []int)deprecated
- func (m *Executor_Local) Equal(that interface{}) bool
- func (x *Executor_Local) GetEnableIntrospection() bool
- func (x *Executor_Local) GetResolutions() []*Resolution
- func (m *Executor_Local) Hash(hasher hash.Hash64) (uint64, error)
- func (*Executor_Local) ProtoMessage()
- func (x *Executor_Local) ProtoReflect() protoreflect.Message
- func (x *Executor_Local) Reset()
- func (x *Executor_Local) String() string
- type Executor_Local_
- type GraphQLSchema
- func (m *GraphQLSchema) Clone() proto.Message
- func (o *GraphQLSchema) DeepCopyInto(out *GraphQLSchema)
- func (o *GraphQLSchema) DeepCopyObject() runtime.Object
- func (*GraphQLSchema) Descriptor() ([]byte, []int)deprecated
- func (m *GraphQLSchema) Equal(that interface{}) bool
- func (x *GraphQLSchema) GetEnableIntrospection() booldeprecated
- func (x *GraphQLSchema) GetExecutableSchema() *ExecutableSchema
- func (x *GraphQLSchema) GetMetadata() *core.Metadata
- func (x *GraphQLSchema) GetNamespacedStatuses() *core.NamespacedStatuses
- func (o *GraphQLSchema) GetObjectKind() schema.ObjectKind
- func (x *GraphQLSchema) GetResolutions() []*Resolutiondeprecated
- func (x *GraphQLSchema) GetSchema() stringdeprecated
- func (r *GraphQLSchema) GetStatus() *core.Status
- func (r *GraphQLSchema) GroupVersionKind() schema.GroupVersionKind
- func (m *GraphQLSchema) Hash(hasher hash.Hash64) (uint64, error)
- func (r *GraphQLSchema) MustHash() uint64
- func (*GraphQLSchema) ProtoMessage()
- func (x *GraphQLSchema) ProtoReflect() protoreflect.Message
- func (x *GraphQLSchema) Reset()
- func (r *GraphQLSchema) SetMetadata(meta *core.Metadata)
- func (r *GraphQLSchema) SetNamespacedStatuses(namespacedStatuses *core.NamespacedStatuses)
- func (r *GraphQLSchema) SetStatus(status *core.Status)
- func (x *GraphQLSchema) String() string
- type GraphQLSchemaClient
- func NewGraphQLSchemaClient(ctx context.Context, rcFactory factory.ResourceClientFactory) (GraphQLSchemaClient, error)
- func NewGraphQLSchemaClientWithBase(rc clients.ResourceClient) GraphQLSchemaClient
- func NewGraphQLSchemaClientWithToken(ctx context.Context, rcFactory factory.ResourceClientFactory, token string) (GraphQLSchemaClient, error)
- type GraphQLSchemaList
- func (list GraphQLSchemaList) AsInputResources() resources.InputResourceList
- func (list GraphQLSchemaList) AsInterfaces() []interface{}
- func (list GraphQLSchemaList) AsResources() resources.ResourceList
- func (list GraphQLSchemaList) Clone() GraphQLSchemaList
- func (list GraphQLSchemaList) Each(f func(element *GraphQLSchema))
- func (list GraphQLSchemaList) EachResource(f func(element resources.Resource))
- func (list GraphQLSchemaList) Find(namespace, name string) (*GraphQLSchema, error)
- func (list GraphQLSchemaList) Names() []string
- func (list GraphQLSchemaList) NamespacesDotNames() []string
- func (list GraphQLSchemaList) Sort() GraphQLSchemaList
- type GraphQLSchemaReconciler
- type GraphQLSchemaWatcher
- type GrpcDescriptorRegistry
- func (m *GrpcDescriptorRegistry) Clone() proto.Message
- func (*GrpcDescriptorRegistry) Descriptor() ([]byte, []int)deprecated
- func (m *GrpcDescriptorRegistry) Equal(that interface{}) bool
- func (x *GrpcDescriptorRegistry) GetProtoDescriptorsBin() string
- func (m *GrpcDescriptorRegistry) Hash(hasher hash.Hash64) (uint64, error)
- func (*GrpcDescriptorRegistry) ProtoMessage()
- func (x *GrpcDescriptorRegistry) ProtoReflect() protoreflect.Message
- func (x *GrpcDescriptorRegistry) Reset()
- func (x *GrpcDescriptorRegistry) String() string
- type GrpcRequestTemplate
- func (m *GrpcRequestTemplate) Clone() proto.Message
- func (*GrpcRequestTemplate) Descriptor() ([]byte, []int)deprecated
- func (m *GrpcRequestTemplate) Equal(that interface{}) bool
- func (x *GrpcRequestTemplate) GetMethodName() string
- func (x *GrpcRequestTemplate) GetOutgoingMessageJson() *JsonValue
- func (x *GrpcRequestTemplate) GetRequestMetadata() map[string]string
- func (x *GrpcRequestTemplate) GetServiceName() string
- func (m *GrpcRequestTemplate) Hash(hasher hash.Hash64) (uint64, error)
- func (*GrpcRequestTemplate) ProtoMessage()
- func (x *GrpcRequestTemplate) ProtoReflect() protoreflect.Message
- func (x *GrpcRequestTemplate) Reset()
- func (x *GrpcRequestTemplate) String() string
- type GrpcResolver
- func (m *GrpcResolver) Clone() proto.Message
- func (*GrpcResolver) Descriptor() ([]byte, []int)deprecated
- func (m *GrpcResolver) Equal(that interface{}) bool
- func (x *GrpcResolver) GetRequestTransform() *GrpcRequestTemplate
- func (x *GrpcResolver) GetSpanName() string
- func (x *GrpcResolver) GetUpstreamRef() *core.ResourceRef
- func (m *GrpcResolver) Hash(hasher hash.Hash64) (uint64, error)
- func (*GrpcResolver) ProtoMessage()
- func (x *GrpcResolver) ProtoReflect() protoreflect.Message
- func (x *GrpcResolver) Reset()
- func (x *GrpcResolver) String() string
- type JsonKeyValue
- func (m *JsonKeyValue) Clone() proto.Message
- func (*JsonKeyValue) Descriptor() ([]byte, []int)deprecated
- func (m *JsonKeyValue) Equal(that interface{}) bool
- func (x *JsonKeyValue) GetKey() string
- func (x *JsonKeyValue) GetValue() *JsonValue
- func (m *JsonKeyValue) Hash(hasher hash.Hash64) (uint64, error)
- func (*JsonKeyValue) ProtoMessage()
- func (x *JsonKeyValue) ProtoReflect() protoreflect.Message
- func (x *JsonKeyValue) Reset()
- func (x *JsonKeyValue) String() string
- type JsonNode
- func (m *JsonNode) Clone() proto.Message
- func (*JsonNode) Descriptor() ([]byte, []int)deprecated
- func (m *JsonNode) Equal(that interface{}) bool
- func (x *JsonNode) GetKeyValues() []*JsonKeyValue
- func (m *JsonNode) Hash(hasher hash.Hash64) (uint64, error)
- func (*JsonNode) ProtoMessage()
- func (x *JsonNode) ProtoReflect() protoreflect.Message
- func (x *JsonNode) Reset()
- func (x *JsonNode) String() string
- type JsonValue
- func (m *JsonValue) Clone() proto.Message
- func (*JsonValue) Descriptor() ([]byte, []int)deprecated
- func (m *JsonValue) Equal(that interface{}) bool
- func (m *JsonValue) GetJsonVal() isJsonValue_JsonVal
- func (x *JsonValue) GetList() *JsonValueList
- func (x *JsonValue) GetNode() *JsonNode
- func (x *JsonValue) GetValueProvider() *ValueProvider
- func (m *JsonValue) Hash(hasher hash.Hash64) (uint64, error)
- func (*JsonValue) ProtoMessage()
- func (x *JsonValue) ProtoReflect() protoreflect.Message
- func (x *JsonValue) Reset()
- func (x *JsonValue) String() string
- type JsonValueList
- func (m *JsonValueList) Clone() proto.Message
- func (*JsonValueList) Descriptor() ([]byte, []int)deprecated
- func (m *JsonValueList) Equal(that interface{}) bool
- func (x *JsonValueList) GetValues() []*JsonValue
- func (m *JsonValueList) Hash(hasher hash.Hash64) (uint64, error)
- func (*JsonValueList) ProtoMessage()
- func (x *JsonValueList) ProtoReflect() protoreflect.Message
- func (x *JsonValueList) Reset()
- func (x *JsonValueList) String() string
- type JsonValue_List
- type JsonValue_Node
- type JsonValue_ValueProvider
- type Path
- func (m *Path) Clone() proto.Message
- func (*Path) Descriptor() ([]byte, []int)deprecated
- func (m *Path) Equal(that interface{}) bool
- func (x *Path) GetSegments() []*PathSegment
- func (m *Path) Hash(hasher hash.Hash64) (uint64, error)
- func (*Path) ProtoMessage()
- func (x *Path) ProtoReflect() protoreflect.Message
- func (x *Path) Reset()
- func (x *Path) String() string
- type PathSegment
- func (m *PathSegment) Clone() proto.Message
- func (*PathSegment) Descriptor() ([]byte, []int)deprecated
- func (m *PathSegment) Equal(that interface{}) bool
- func (x *PathSegment) GetAll() bool
- func (x *PathSegment) GetIndex() uint32
- func (x *PathSegment) GetKey() string
- func (m *PathSegment) GetSegment() isPathSegment_Segment
- func (m *PathSegment) Hash(hasher hash.Hash64) (uint64, error)
- func (*PathSegment) ProtoMessage()
- func (x *PathSegment) ProtoReflect() protoreflect.Message
- func (x *PathSegment) Reset()
- func (x *PathSegment) String() string
- type PathSegment_All
- type PathSegment_Index
- type PathSegment_Key
- type QueryMatcher
- func (m *QueryMatcher) Clone() proto.Message
- func (*QueryMatcher) Descriptor() ([]byte, []int)deprecated
- func (m *QueryMatcher) Equal(that interface{}) bool
- func (x *QueryMatcher) GetFieldMatcher() *QueryMatcher_FieldMatcher
- func (m *QueryMatcher) GetMatch() isQueryMatcher_Match
- func (m *QueryMatcher) Hash(hasher hash.Hash64) (uint64, error)
- func (*QueryMatcher) ProtoMessage()
- func (x *QueryMatcher) ProtoReflect() protoreflect.Message
- func (x *QueryMatcher) Reset()
- func (x *QueryMatcher) String() string
- type QueryMatcher_FieldMatcher
- func (m *QueryMatcher_FieldMatcher) Clone() proto.Message
- func (*QueryMatcher_FieldMatcher) Descriptor() ([]byte, []int)deprecated
- func (m *QueryMatcher_FieldMatcher) Equal(that interface{}) bool
- func (x *QueryMatcher_FieldMatcher) GetField() string
- func (x *QueryMatcher_FieldMatcher) GetType() string
- func (m *QueryMatcher_FieldMatcher) Hash(hasher hash.Hash64) (uint64, error)
- func (*QueryMatcher_FieldMatcher) ProtoMessage()
- func (x *QueryMatcher_FieldMatcher) ProtoReflect() protoreflect.Message
- func (x *QueryMatcher_FieldMatcher) Reset()
- func (x *QueryMatcher_FieldMatcher) String() string
- type QueryMatcher_FieldMatcher_
- type RESTResolver
- func (m *RESTResolver) Clone() proto.Message
- func (*RESTResolver) Descriptor() ([]byte, []int)deprecated
- func (m *RESTResolver) Equal(that interface{}) bool
- func (x *RESTResolver) GetPreExecutionTransform() *ResponseTemplate
- func (x *RESTResolver) GetRequestTransform() *RequestTemplate
- func (x *RESTResolver) GetSpanName() string
- func (x *RESTResolver) GetUpstreamRef() *core.ResourceRef
- func (m *RESTResolver) Hash(hasher hash.Hash64) (uint64, error)
- func (*RESTResolver) ProtoMessage()
- func (x *RESTResolver) ProtoReflect() protoreflect.Message
- func (x *RESTResolver) Reset()
- func (x *RESTResolver) String() string
- type RequestTemplate
- func (m *RequestTemplate) Clone() proto.Message
- func (*RequestTemplate) Descriptor() ([]byte, []int)deprecated
- func (m *RequestTemplate) Equal(that interface{}) bool
- func (x *RequestTemplate) GetHeaders() map[string]*ValueProvider
- func (x *RequestTemplate) GetOutgoingBody() *JsonValue
- func (x *RequestTemplate) GetQueryParams() map[string]*ValueProvider
- func (m *RequestTemplate) Hash(hasher hash.Hash64) (uint64, error)
- func (*RequestTemplate) ProtoMessage()
- func (x *RequestTemplate) ProtoReflect() protoreflect.Message
- func (x *RequestTemplate) Reset()
- func (x *RequestTemplate) String() string
- type Resolution
- func (m *Resolution) Clone() proto.Message
- func (*Resolution) Descriptor() ([]byte, []int)deprecated
- func (m *Resolution) Equal(that interface{}) bool
- func (x *Resolution) GetGrpcResolver() *GrpcResolver
- func (x *Resolution) GetMatcher() *QueryMatcher
- func (m *Resolution) GetResolver() isResolution_Resolver
- func (x *Resolution) GetRestResolver() *RESTResolver
- func (m *Resolution) Hash(hasher hash.Hash64) (uint64, error)
- func (*Resolution) ProtoMessage()
- func (x *Resolution) ProtoReflect() protoreflect.Message
- func (x *Resolution) Reset()
- func (x *Resolution) String() string
- type Resolution_GrpcResolver
- type Resolution_RestResolver
- type ResponseTemplate
- func (m *ResponseTemplate) Clone() proto.Message
- func (*ResponseTemplate) Descriptor() ([]byte, []int)deprecated
- func (m *ResponseTemplate) Equal(that interface{}) bool
- func (x *ResponseTemplate) GetResultRoot() []*PathSegment
- func (x *ResponseTemplate) GetSetters() map[string]*Path
- func (m *ResponseTemplate) Hash(hasher hash.Hash64) (uint64, error)
- func (*ResponseTemplate) ProtoMessage()
- func (x *ResponseTemplate) ProtoReflect() protoreflect.Message
- func (x *ResponseTemplate) Reset()
- func (x *ResponseTemplate) String() string
- type TransitionGraphQLSchemaFunc
- type ValueProvider
- func (m *ValueProvider) Clone() proto.Message
- func (*ValueProvider) Descriptor() ([]byte, []int)deprecated
- func (m *ValueProvider) Equal(that interface{}) bool
- func (x *ValueProvider) GetProviderTemplate() string
- func (x *ValueProvider) GetProviders() map[string]*ValueProvider_Provider
- func (m *ValueProvider) Hash(hasher hash.Hash64) (uint64, error)
- func (*ValueProvider) ProtoMessage()
- func (x *ValueProvider) ProtoReflect() protoreflect.Message
- func (x *ValueProvider) Reset()
- func (x *ValueProvider) String() string
- type ValueProvider_GraphQLArgExtraction
- func (m *ValueProvider_GraphQLArgExtraction) Clone() proto.Message
- func (*ValueProvider_GraphQLArgExtraction) Descriptor() ([]byte, []int)deprecated
- func (m *ValueProvider_GraphQLArgExtraction) Equal(that interface{}) bool
- func (x *ValueProvider_GraphQLArgExtraction) GetArgName() string
- func (x *ValueProvider_GraphQLArgExtraction) GetPath() []*PathSegment
- func (x *ValueProvider_GraphQLArgExtraction) GetRequired() bool
- func (m *ValueProvider_GraphQLArgExtraction) Hash(hasher hash.Hash64) (uint64, error)
- func (*ValueProvider_GraphQLArgExtraction) ProtoMessage()
- func (x *ValueProvider_GraphQLArgExtraction) ProtoReflect() protoreflect.Message
- func (x *ValueProvider_GraphQLArgExtraction) Reset()
- func (x *ValueProvider_GraphQLArgExtraction) String() string
- type ValueProvider_GraphQLParentExtraction
- func (m *ValueProvider_GraphQLParentExtraction) Clone() proto.Message
- func (*ValueProvider_GraphQLParentExtraction) Descriptor() ([]byte, []int)deprecated
- func (m *ValueProvider_GraphQLParentExtraction) Equal(that interface{}) bool
- func (x *ValueProvider_GraphQLParentExtraction) GetPath() []*PathSegment
- func (m *ValueProvider_GraphQLParentExtraction) Hash(hasher hash.Hash64) (uint64, error)
- func (*ValueProvider_GraphQLParentExtraction) ProtoMessage()
- func (x *ValueProvider_GraphQLParentExtraction) ProtoReflect() protoreflect.Message
- func (x *ValueProvider_GraphQLParentExtraction) Reset()
- func (x *ValueProvider_GraphQLParentExtraction) String() string
- type ValueProvider_Provider
- func (m *ValueProvider_Provider) Clone() proto.Message
- func (*ValueProvider_Provider) Descriptor() ([]byte, []int)deprecated
- func (m *ValueProvider_Provider) Equal(that interface{}) bool
- func (x *ValueProvider_Provider) GetGraphqlArg() *ValueProvider_GraphQLArgExtraction
- func (x *ValueProvider_Provider) GetGraphqlParent() *ValueProvider_GraphQLParentExtraction
- func (m *ValueProvider_Provider) GetProvider() isValueProvider_Provider_Provider
- func (x *ValueProvider_Provider) GetTypedProvider() *ValueProvider_TypedValueProvider
- func (m *ValueProvider_Provider) Hash(hasher hash.Hash64) (uint64, error)
- func (*ValueProvider_Provider) ProtoMessage()
- func (x *ValueProvider_Provider) ProtoReflect() protoreflect.Message
- func (x *ValueProvider_Provider) Reset()
- func (x *ValueProvider_Provider) String() string
- type ValueProvider_Provider_GraphqlArg
- type ValueProvider_Provider_GraphqlParent
- type ValueProvider_Provider_TypedProvider
- type ValueProvider_TypedValueProvider
- func (m *ValueProvider_TypedValueProvider) Clone() proto.Message
- func (*ValueProvider_TypedValueProvider) Descriptor() ([]byte, []int)deprecated
- func (m *ValueProvider_TypedValueProvider) Equal(that interface{}) bool
- func (x *ValueProvider_TypedValueProvider) GetHeader() string
- func (x *ValueProvider_TypedValueProvider) GetType() ValueProvider_TypedValueProvider_Type
- func (m *ValueProvider_TypedValueProvider) GetValProvider() isValueProvider_TypedValueProvider_ValProvider
- func (x *ValueProvider_TypedValueProvider) GetValue() string
- func (m *ValueProvider_TypedValueProvider) Hash(hasher hash.Hash64) (uint64, error)
- func (*ValueProvider_TypedValueProvider) ProtoMessage()
- func (x *ValueProvider_TypedValueProvider) ProtoReflect() protoreflect.Message
- func (x *ValueProvider_TypedValueProvider) Reset()
- func (x *ValueProvider_TypedValueProvider) String() string
- type ValueProvider_TypedValueProvider_Header
- type ValueProvider_TypedValueProvider_Type
- func (ValueProvider_TypedValueProvider_Type) Descriptor() protoreflect.EnumDescriptor
- func (x ValueProvider_TypedValueProvider_Type) Enum() *ValueProvider_TypedValueProvider_Type
- func (ValueProvider_TypedValueProvider_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x ValueProvider_TypedValueProvider_Type) Number() protoreflect.EnumNumber
- func (x ValueProvider_TypedValueProvider_Type) String() string
- func (ValueProvider_TypedValueProvider_Type) Type() protoreflect.EnumType
- type ValueProvider_TypedValueProvider_Value
Constants ¶
This section is empty.
Variables ¶
var ( ValueProvider_TypedValueProvider_Type_name = map[int32]string{ 0: "STRING", 1: "INT", 2: "FLOAT", 3: "BOOLEAN", } ValueProvider_TypedValueProvider_Type_value = map[string]int32{ "STRING": 0, "INT": 1, "FLOAT": 2, "BOOLEAN": 3, } )
Enum value maps for ValueProvider_TypedValueProvider_Type.
var File_github_com_solo_io_gloo_projects_gloo_api_v1_enterprise_options_graphql_v1alpha1_graphql_proto protoreflect.FileDescriptor
var ( GraphQLSchemaCrd = crd.NewCrd( "graphqlschemas", GraphQLSchemaGVK.Group, GraphQLSchemaGVK.Version, GraphQLSchemaGVK.Kind, "gqls", false, &GraphQLSchema{}) )
var (
GraphQLSchemaGVK = schema.GroupVersionKind{
Version: "v1alpha1",
Group: "graphql.gloo.solo.io",
Kind: "GraphQLSchema",
}
)
Functions ¶
This section is empty.
Types ¶
type ExecutableSchema ¶
type ExecutableSchema struct { // Schema to use in string format. SchemaDefinition string `protobuf:"bytes,1,opt,name=schema_definition,json=schemaDefinition,proto3" json:"schema_definition,omitempty"` // how to execute the schema Executor *Executor `protobuf:"bytes,2,opt,name=executor,proto3" json:"executor,omitempty"` // Schema extensions GrpcDescriptorRegistry *GrpcDescriptorRegistry `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ExecutableSchema) Descriptor
deprecated
func (*ExecutableSchema) Descriptor() ([]byte, []int)
Deprecated: Use ExecutableSchema.ProtoReflect.Descriptor instead.
func (*ExecutableSchema) Equal ¶
func (m *ExecutableSchema) Equal(that interface{}) bool
Equal function
func (*ExecutableSchema) GetExecutor ¶
func (x *ExecutableSchema) GetExecutor() *Executor
func (*ExecutableSchema) GetGrpcDescriptorRegistry ¶
func (x *ExecutableSchema) GetGrpcDescriptorRegistry() *GrpcDescriptorRegistry
func (*ExecutableSchema) GetSchemaDefinition ¶
func (x *ExecutableSchema) GetSchemaDefinition() string
func (*ExecutableSchema) Hash ¶
func (m *ExecutableSchema) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*ExecutableSchema) ProtoMessage ¶
func (*ExecutableSchema) ProtoMessage()
func (*ExecutableSchema) ProtoReflect ¶
func (x *ExecutableSchema) ProtoReflect() protoreflect.Message
func (*ExecutableSchema) Reset ¶
func (x *ExecutableSchema) Reset()
func (*ExecutableSchema) String ¶
func (x *ExecutableSchema) String() string
type Executor ¶
type Executor struct { // Types that are assignable to Executor: // *Executor_Local_ Executor isExecutor_Executor `protobuf_oneof:"executor"` // contains filtered or unexported fields }
func (*Executor) Descriptor
deprecated
func (*Executor) GetExecutor ¶
func (m *Executor) GetExecutor() isExecutor_Executor
func (*Executor) GetLocal ¶
func (x *Executor) GetLocal() *Executor_Local
func (*Executor) ProtoMessage ¶
func (*Executor) ProtoMessage()
func (*Executor) ProtoReflect ¶
func (x *Executor) ProtoReflect() protoreflect.Message
type Executor_Local ¶
type Executor_Local struct { // The resolver map to use to resolve the schema. Resolutions []*Resolution `protobuf:"bytes,1,rep,name=resolutions,proto3" json:"resolutions,omitempty"` // Do we enable introspection for the schema? general recommendation is to // disable this for production and hence it defaults to false. EnableIntrospection bool `protobuf:"varint,2,opt,name=enable_introspection,json=enableIntrospection,proto3" json:"enable_introspection,omitempty"` // contains filtered or unexported fields }
Execute schema using resolvers.
func (*Executor_Local) Descriptor
deprecated
func (*Executor_Local) Descriptor() ([]byte, []int)
Deprecated: Use Executor_Local.ProtoReflect.Descriptor instead.
func (*Executor_Local) GetEnableIntrospection ¶
func (x *Executor_Local) GetEnableIntrospection() bool
func (*Executor_Local) GetResolutions ¶
func (x *Executor_Local) GetResolutions() []*Resolution
func (*Executor_Local) Hash ¶
func (m *Executor_Local) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*Executor_Local) ProtoMessage ¶
func (*Executor_Local) ProtoMessage()
func (*Executor_Local) ProtoReflect ¶
func (x *Executor_Local) ProtoReflect() protoreflect.Message
func (*Executor_Local) Reset ¶
func (x *Executor_Local) Reset()
func (*Executor_Local) String ¶
func (x *Executor_Local) String() string
type Executor_Local_ ¶
type Executor_Local_ struct {
Local *Executor_Local `protobuf:"bytes,1,opt,name=local,proto3,oneof"`
}
type GraphQLSchema ¶
type GraphQLSchema struct { // NamespacedStatuses indicates the validation status of this resource. // NamespacedStatuses is read-only by clients, and set by gloo during validation NamespacedStatuses *core.NamespacedStatuses `protobuf:"bytes,1,opt,name=namespaced_statuses,json=namespacedStatuses,proto3" json:"namespaced_statuses,omitempty"` // Metadata contains the object metadata for this resource Metadata *core.Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` // Schema to use in string format. // // Deprecated: Do not use. Schema string `protobuf:"bytes,3,opt,name=schema,proto3" json:"schema,omitempty"` // Do we enable introspection for the schema? general recommendation is to disable this for production // and hence it defaults to false. // // Deprecated: Do not use. EnableIntrospection bool `protobuf:"varint,4,opt,name=enable_introspection,json=enableIntrospection,proto3" json:"enable_introspection,omitempty"` // The resolver map to use to resolve the schema. // Omitted fields will use the default resolver, which looks for a field with that name in the parent's object, // and errors if the field cannot be found. // // Deprecated: Do not use. Resolutions []*Resolution `protobuf:"bytes,5,rep,name=resolutions,proto3" json:"resolutions,omitempty"` ExecutableSchema *ExecutableSchema `protobuf:"bytes,6,opt,name=executable_schema,json=executableSchema,proto3" json:"executable_schema,omitempty"` // contains filtered or unexported fields }
Enterprise-Only: THIS FEATURE IS IN TECH PREVIEW. APIs are versioned as alpha and subject to change. User-facing CR config for resolving client requests to graphql schemas. Routes that have this config will execute graphql queries, and will not make it to the router filter. i.e. this filter will terminate the request for these routes. Note: while users can provide this configuration manually, the eventual UX will be to generate the Executable Schema CRs from other sources and just have users configure the routes to point to these schema CRs.
func NewGraphQLSchema ¶
func NewGraphQLSchema(namespace, name string) *GraphQLSchema
func (*GraphQLSchema) DeepCopyInto ¶
func (o *GraphQLSchema) DeepCopyInto(out *GraphQLSchema)
func (*GraphQLSchema) DeepCopyObject ¶
func (o *GraphQLSchema) DeepCopyObject() runtime.Object
func (*GraphQLSchema) Descriptor
deprecated
func (*GraphQLSchema) Descriptor() ([]byte, []int)
Deprecated: Use GraphQLSchema.ProtoReflect.Descriptor instead.
func (*GraphQLSchema) GetEnableIntrospection
deprecated
func (x *GraphQLSchema) GetEnableIntrospection() bool
Deprecated: Do not use.
func (*GraphQLSchema) GetExecutableSchema ¶
func (x *GraphQLSchema) GetExecutableSchema() *ExecutableSchema
func (*GraphQLSchema) GetMetadata ¶
func (x *GraphQLSchema) GetMetadata() *core.Metadata
func (*GraphQLSchema) GetNamespacedStatuses ¶
func (x *GraphQLSchema) GetNamespacedStatuses() *core.NamespacedStatuses
func (*GraphQLSchema) GetObjectKind ¶
func (o *GraphQLSchema) GetObjectKind() schema.ObjectKind
func (*GraphQLSchema) GetResolutions
deprecated
func (x *GraphQLSchema) GetResolutions() []*Resolution
Deprecated: Do not use.
func (*GraphQLSchema) GetSchema
deprecated
func (x *GraphQLSchema) GetSchema() string
Deprecated: Do not use.
func (*GraphQLSchema) GroupVersionKind ¶
func (r *GraphQLSchema) GroupVersionKind() schema.GroupVersionKind
func (*GraphQLSchema) Hash ¶
func (m *GraphQLSchema) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*GraphQLSchema) MustHash ¶
func (r *GraphQLSchema) MustHash() uint64
func (*GraphQLSchema) ProtoMessage ¶
func (*GraphQLSchema) ProtoMessage()
func (*GraphQLSchema) ProtoReflect ¶
func (x *GraphQLSchema) ProtoReflect() protoreflect.Message
func (*GraphQLSchema) Reset ¶
func (x *GraphQLSchema) Reset()
func (*GraphQLSchema) SetMetadata ¶
func (r *GraphQLSchema) SetMetadata(meta *core.Metadata)
func (*GraphQLSchema) SetNamespacedStatuses ¶
func (r *GraphQLSchema) SetNamespacedStatuses(namespacedStatuses *core.NamespacedStatuses)
func (*GraphQLSchema) String ¶
func (x *GraphQLSchema) String() string
type GraphQLSchemaClient ¶
type GraphQLSchemaClient interface { BaseClient() clients.ResourceClient Register() error Read(namespace, name string, opts clients.ReadOpts) (*GraphQLSchema, error) Write(resource *GraphQLSchema, opts clients.WriteOpts) (*GraphQLSchema, error) Delete(namespace, name string, opts clients.DeleteOpts) error List(namespace string, opts clients.ListOpts) (GraphQLSchemaList, error) GraphQLSchemaWatcher }
func NewGraphQLSchemaClient ¶
func NewGraphQLSchemaClient(ctx context.Context, rcFactory factory.ResourceClientFactory) (GraphQLSchemaClient, error)
func NewGraphQLSchemaClientWithBase ¶
func NewGraphQLSchemaClientWithBase(rc clients.ResourceClient) GraphQLSchemaClient
func NewGraphQLSchemaClientWithToken ¶
func NewGraphQLSchemaClientWithToken(ctx context.Context, rcFactory factory.ResourceClientFactory, token string) (GraphQLSchemaClient, error)
type GraphQLSchemaList ¶
type GraphQLSchemaList []*GraphQLSchema
func (GraphQLSchemaList) AsInputResources ¶
func (list GraphQLSchemaList) AsInputResources() resources.InputResourceList
func (GraphQLSchemaList) AsInterfaces ¶
func (list GraphQLSchemaList) AsInterfaces() []interface{}
func (GraphQLSchemaList) AsResources ¶
func (list GraphQLSchemaList) AsResources() resources.ResourceList
func (GraphQLSchemaList) Clone ¶
func (list GraphQLSchemaList) Clone() GraphQLSchemaList
func (GraphQLSchemaList) Each ¶
func (list GraphQLSchemaList) Each(f func(element *GraphQLSchema))
func (GraphQLSchemaList) EachResource ¶
func (list GraphQLSchemaList) EachResource(f func(element resources.Resource))
func (GraphQLSchemaList) Find ¶
func (list GraphQLSchemaList) Find(namespace, name string) (*GraphQLSchema, error)
func (GraphQLSchemaList) Names ¶
func (list GraphQLSchemaList) Names() []string
func (GraphQLSchemaList) NamespacesDotNames ¶
func (list GraphQLSchemaList) NamespacesDotNames() []string
func (GraphQLSchemaList) Sort ¶
func (list GraphQLSchemaList) Sort() GraphQLSchemaList
type GraphQLSchemaReconciler ¶
type GraphQLSchemaReconciler interface {
Reconcile(namespace string, desiredResources GraphQLSchemaList, transition TransitionGraphQLSchemaFunc, opts clients.ListOpts) error
}
func NewGraphQLSchemaReconciler ¶
func NewGraphQLSchemaReconciler(client GraphQLSchemaClient, statusSetter resources.StatusSetter) GraphQLSchemaReconciler
type GraphQLSchemaWatcher ¶
type GrpcDescriptorRegistry ¶
type GrpcDescriptorRegistry struct { // base64 encoded proto descriptor bin ProtoDescriptorsBin string `protobuf:"bytes,1,opt,name=proto_descriptors_bin,json=protoDescriptorsBin,proto3" json:"proto_descriptors_bin,omitempty"` // contains filtered or unexported fields }
Defines a configuration for serializing and deserializing requests for a gRPC resolver. Is a Schema Extension
func (*GrpcDescriptorRegistry) Clone ¶
func (m *GrpcDescriptorRegistry) Clone() proto.Message
Clone function
func (*GrpcDescriptorRegistry) Descriptor
deprecated
func (*GrpcDescriptorRegistry) Descriptor() ([]byte, []int)
Deprecated: Use GrpcDescriptorRegistry.ProtoReflect.Descriptor instead.
func (*GrpcDescriptorRegistry) Equal ¶
func (m *GrpcDescriptorRegistry) Equal(that interface{}) bool
Equal function
func (*GrpcDescriptorRegistry) GetProtoDescriptorsBin ¶
func (x *GrpcDescriptorRegistry) GetProtoDescriptorsBin() string
func (*GrpcDescriptorRegistry) Hash ¶
func (m *GrpcDescriptorRegistry) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*GrpcDescriptorRegistry) ProtoMessage ¶
func (*GrpcDescriptorRegistry) ProtoMessage()
func (*GrpcDescriptorRegistry) ProtoReflect ¶
func (x *GrpcDescriptorRegistry) ProtoReflect() protoreflect.Message
func (*GrpcDescriptorRegistry) Reset ¶
func (x *GrpcDescriptorRegistry) Reset()
func (*GrpcDescriptorRegistry) String ¶
func (x *GrpcDescriptorRegistry) String() string
type GrpcRequestTemplate ¶
type GrpcRequestTemplate struct { // json representation of outgoing gRPC message to be sent to gRPC service OutgoingMessageJson *JsonValue `protobuf:"bytes,1,opt,name=outgoing_message_json,json=outgoingMessageJson,proto3" json:"outgoing_message_json,omitempty"` // request has shape matching service with name registered in registry // is the full_name(), e.g. main.Bookstore ServiceName string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // make request to method with this name on the grpc service defined above // is just the name(), e.g. GetBook MethodName string `protobuf:"bytes,3,opt,name=method_name,json=methodName,proto3" json:"method_name,omitempty"` // in the future, we may want to make this a map<string, ValueProvider> // once we know better what the use cases are RequestMetadata map[string]string `` /* 194-byte string literal not displayed */ // contains filtered or unexported fields }
Defines a configuration for generating outgoing requests for a resolver.
func (*GrpcRequestTemplate) Clone ¶
func (m *GrpcRequestTemplate) Clone() proto.Message
Clone function
func (*GrpcRequestTemplate) Descriptor
deprecated
func (*GrpcRequestTemplate) Descriptor() ([]byte, []int)
Deprecated: Use GrpcRequestTemplate.ProtoReflect.Descriptor instead.
func (*GrpcRequestTemplate) Equal ¶
func (m *GrpcRequestTemplate) Equal(that interface{}) bool
Equal function
func (*GrpcRequestTemplate) GetMethodName ¶
func (x *GrpcRequestTemplate) GetMethodName() string
func (*GrpcRequestTemplate) GetOutgoingMessageJson ¶
func (x *GrpcRequestTemplate) GetOutgoingMessageJson() *JsonValue
func (*GrpcRequestTemplate) GetRequestMetadata ¶
func (x *GrpcRequestTemplate) GetRequestMetadata() map[string]string
func (*GrpcRequestTemplate) GetServiceName ¶
func (x *GrpcRequestTemplate) GetServiceName() string
func (*GrpcRequestTemplate) Hash ¶
func (m *GrpcRequestTemplate) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*GrpcRequestTemplate) ProtoMessage ¶
func (*GrpcRequestTemplate) ProtoMessage()
func (*GrpcRequestTemplate) ProtoReflect ¶
func (x *GrpcRequestTemplate) ProtoReflect() protoreflect.Message
func (*GrpcRequestTemplate) Reset ¶
func (x *GrpcRequestTemplate) Reset()
func (*GrpcRequestTemplate) String ¶
func (x *GrpcRequestTemplate) String() string
type GrpcResolver ¶
type GrpcResolver struct { UpstreamRef *core.ResourceRef `protobuf:"bytes,1,opt,name=upstream_ref,json=upstreamRef,proto3" json:"upstream_ref,omitempty"` // configuration used to compose the outgoing request to a REST API RequestTransform *GrpcRequestTemplate `protobuf:"bytes,2,opt,name=request_transform,json=requestTransform,proto3" json:"request_transform,omitempty"` SpanName string `protobuf:"bytes,4,opt,name=span_name,json=spanName,proto3" json:"span_name,omitempty"` // contains filtered or unexported fields }
control-plane API
func (*GrpcResolver) Descriptor
deprecated
func (*GrpcResolver) Descriptor() ([]byte, []int)
Deprecated: Use GrpcResolver.ProtoReflect.Descriptor instead.
func (*GrpcResolver) GetRequestTransform ¶
func (x *GrpcResolver) GetRequestTransform() *GrpcRequestTemplate
func (*GrpcResolver) GetSpanName ¶
func (x *GrpcResolver) GetSpanName() string
func (*GrpcResolver) GetUpstreamRef ¶
func (x *GrpcResolver) GetUpstreamRef() *core.ResourceRef
func (*GrpcResolver) Hash ¶
func (m *GrpcResolver) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*GrpcResolver) ProtoMessage ¶
func (*GrpcResolver) ProtoMessage()
func (*GrpcResolver) ProtoReflect ¶
func (x *GrpcResolver) ProtoReflect() protoreflect.Message
func (*GrpcResolver) Reset ¶
func (x *GrpcResolver) Reset()
func (*GrpcResolver) String ¶
func (x *GrpcResolver) String() string
type JsonKeyValue ¶
type JsonKeyValue struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value *JsonValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*JsonKeyValue) Descriptor
deprecated
func (*JsonKeyValue) Descriptor() ([]byte, []int)
Deprecated: Use JsonKeyValue.ProtoReflect.Descriptor instead.
func (*JsonKeyValue) GetKey ¶
func (x *JsonKeyValue) GetKey() string
func (*JsonKeyValue) GetValue ¶
func (x *JsonKeyValue) GetValue() *JsonValue
func (*JsonKeyValue) Hash ¶
func (m *JsonKeyValue) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*JsonKeyValue) ProtoMessage ¶
func (*JsonKeyValue) ProtoMessage()
func (*JsonKeyValue) ProtoReflect ¶
func (x *JsonKeyValue) ProtoReflect() protoreflect.Message
func (*JsonKeyValue) Reset ¶
func (x *JsonKeyValue) Reset()
func (*JsonKeyValue) String ¶
func (x *JsonKeyValue) String() string
type JsonNode ¶
type JsonNode struct { // if keys repeat, the latest one replaces any earlier values associated // with that key. // // repeated list, rather than a map, to have ordering to allow for merge // semantics within the data plane, for example: // - gRPC input uses special empty string for input key to set entire body // - gRPC wants to replace a certain field in parsed body from GraphQL arg KeyValues []*JsonKeyValue `protobuf:"bytes,1,rep,name=key_values,json=keyValues,proto3" json:"key_values,omitempty"` // contains filtered or unexported fields }
Represents a typed JSON structure
func (*JsonNode) Descriptor
deprecated
func (*JsonNode) GetKeyValues ¶
func (x *JsonNode) GetKeyValues() []*JsonKeyValue
func (*JsonNode) ProtoMessage ¶
func (*JsonNode) ProtoMessage()
func (*JsonNode) ProtoReflect ¶
func (x *JsonNode) ProtoReflect() protoreflect.Message
type JsonValue ¶
type JsonValue struct { // Types that are assignable to JsonVal: // *JsonValue_Node // *JsonValue_ValueProvider // *JsonValue_List JsonVal isJsonValue_JsonVal `protobuf_oneof:"json_val"` // contains filtered or unexported fields }
func (*JsonValue) Descriptor
deprecated
func (*JsonValue) GetJsonVal ¶
func (m *JsonValue) GetJsonVal() isJsonValue_JsonVal
func (*JsonValue) GetList ¶
func (x *JsonValue) GetList() *JsonValueList
func (*JsonValue) GetValueProvider ¶
func (x *JsonValue) GetValueProvider() *ValueProvider
func (*JsonValue) ProtoMessage ¶
func (*JsonValue) ProtoMessage()
func (*JsonValue) ProtoReflect ¶
func (x *JsonValue) ProtoReflect() protoreflect.Message
type JsonValueList ¶
type JsonValueList struct { Values []*JsonValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*JsonValueList) Descriptor
deprecated
func (*JsonValueList) Descriptor() ([]byte, []int)
Deprecated: Use JsonValueList.ProtoReflect.Descriptor instead.
func (*JsonValueList) GetValues ¶
func (x *JsonValueList) GetValues() []*JsonValue
func (*JsonValueList) Hash ¶
func (m *JsonValueList) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*JsonValueList) ProtoMessage ¶
func (*JsonValueList) ProtoMessage()
func (*JsonValueList) ProtoReflect ¶
func (x *JsonValueList) ProtoReflect() protoreflect.Message
func (*JsonValueList) Reset ¶
func (x *JsonValueList) Reset()
func (*JsonValueList) String ¶
func (x *JsonValueList) String() string
type JsonValue_List ¶
type JsonValue_List struct {
List *JsonValueList `protobuf:"bytes,3,opt,name=list,proto3,oneof"`
}
type JsonValue_Node ¶
type JsonValue_Node struct {
Node *JsonNode `protobuf:"bytes,1,opt,name=node,proto3,oneof"`
}
type JsonValue_ValueProvider ¶
type JsonValue_ValueProvider struct {
ValueProvider *ValueProvider `protobuf:"bytes,2,opt,name=value_provider,json=valueProvider,proto3,oneof"`
}
type Path ¶
type Path struct { Segments []*PathSegment `protobuf:"bytes,1,rep,name=segments,proto3" json:"segments,omitempty"` // contains filtered or unexported fields }
func (*Path) Descriptor
deprecated
func (*Path) GetSegments ¶
func (x *Path) GetSegments() []*PathSegment
func (*Path) ProtoMessage ¶
func (*Path) ProtoMessage()
func (*Path) ProtoReflect ¶
func (x *Path) ProtoReflect() protoreflect.Message
type PathSegment ¶
type PathSegment struct { // Types that are assignable to Segment: // *PathSegment_Key // *PathSegment_Index // *PathSegment_All Segment isPathSegment_Segment `protobuf_oneof:"segment"` // contains filtered or unexported fields }
used to reference into json structures by key(s).
func (*PathSegment) Descriptor
deprecated
func (*PathSegment) Descriptor() ([]byte, []int)
Deprecated: Use PathSegment.ProtoReflect.Descriptor instead.
func (*PathSegment) GetAll ¶
func (x *PathSegment) GetAll() bool
func (*PathSegment) GetIndex ¶
func (x *PathSegment) GetIndex() uint32
func (*PathSegment) GetKey ¶
func (x *PathSegment) GetKey() string
func (*PathSegment) GetSegment ¶
func (m *PathSegment) GetSegment() isPathSegment_Segment
func (*PathSegment) Hash ¶
func (m *PathSegment) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*PathSegment) ProtoMessage ¶
func (*PathSegment) ProtoMessage()
func (*PathSegment) ProtoReflect ¶
func (x *PathSegment) ProtoReflect() protoreflect.Message
func (*PathSegment) Reset ¶
func (x *PathSegment) Reset()
func (*PathSegment) String ¶
func (x *PathSegment) String() string
type PathSegment_All ¶
type PathSegment_All struct { // all selects all from the current element at in the path. This is useful for extracting list arguments / object arguments. All bool `protobuf:"varint,3,opt,name=all,proto3,oneof"` }
type PathSegment_Index ¶
type PathSegment_Index struct { // Index is used to extract an element at a certain index from a list Index uint32 `protobuf:"varint,2,opt,name=index,proto3,oneof"` }
type PathSegment_Key ¶
type PathSegment_Key struct { // Key is used to extract named values from a map Key string `protobuf:"bytes,1,opt,name=key,proto3,oneof"` }
type QueryMatcher ¶
type QueryMatcher struct { // Types that are assignable to Match: // *QueryMatcher_FieldMatcher_ Match isQueryMatcher_Match `protobuf_oneof:"match"` // contains filtered or unexported fields }
func (*QueryMatcher) Descriptor
deprecated
func (*QueryMatcher) Descriptor() ([]byte, []int)
Deprecated: Use QueryMatcher.ProtoReflect.Descriptor instead.
func (*QueryMatcher) GetFieldMatcher ¶
func (x *QueryMatcher) GetFieldMatcher() *QueryMatcher_FieldMatcher
func (*QueryMatcher) GetMatch ¶
func (m *QueryMatcher) GetMatch() isQueryMatcher_Match
func (*QueryMatcher) Hash ¶
func (m *QueryMatcher) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*QueryMatcher) ProtoMessage ¶
func (*QueryMatcher) ProtoMessage()
func (*QueryMatcher) ProtoReflect ¶
func (x *QueryMatcher) ProtoReflect() protoreflect.Message
func (*QueryMatcher) Reset ¶
func (x *QueryMatcher) Reset()
func (*QueryMatcher) String ¶
func (x *QueryMatcher) String() string
type QueryMatcher_FieldMatcher ¶
type QueryMatcher_FieldMatcher struct { // Object type. For example, Query. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Field with in the object. Field string `protobuf:"bytes,2,opt,name=field,proto3" json:"field,omitempty"` // contains filtered or unexported fields }
func (*QueryMatcher_FieldMatcher) Clone ¶
func (m *QueryMatcher_FieldMatcher) Clone() proto.Message
Clone function
func (*QueryMatcher_FieldMatcher) Descriptor
deprecated
func (*QueryMatcher_FieldMatcher) Descriptor() ([]byte, []int)
Deprecated: Use QueryMatcher_FieldMatcher.ProtoReflect.Descriptor instead.
func (*QueryMatcher_FieldMatcher) Equal ¶
func (m *QueryMatcher_FieldMatcher) Equal(that interface{}) bool
Equal function
func (*QueryMatcher_FieldMatcher) GetField ¶
func (x *QueryMatcher_FieldMatcher) GetField() string
func (*QueryMatcher_FieldMatcher) GetType ¶
func (x *QueryMatcher_FieldMatcher) GetType() string
func (*QueryMatcher_FieldMatcher) Hash ¶
func (m *QueryMatcher_FieldMatcher) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*QueryMatcher_FieldMatcher) ProtoMessage ¶
func (*QueryMatcher_FieldMatcher) ProtoMessage()
func (*QueryMatcher_FieldMatcher) ProtoReflect ¶
func (x *QueryMatcher_FieldMatcher) ProtoReflect() protoreflect.Message
func (*QueryMatcher_FieldMatcher) Reset ¶
func (x *QueryMatcher_FieldMatcher) Reset()
func (*QueryMatcher_FieldMatcher) String ¶
func (x *QueryMatcher_FieldMatcher) String() string
type QueryMatcher_FieldMatcher_ ¶
type QueryMatcher_FieldMatcher_ struct {
FieldMatcher *QueryMatcher_FieldMatcher `protobuf:"bytes,1,opt,name=field_matcher,json=fieldMatcher,proto3,oneof"`
}
type RESTResolver ¶
type RESTResolver struct { UpstreamRef *core.ResourceRef `protobuf:"bytes,1,opt,name=upstream_ref,json=upstreamRef,proto3" json:"upstream_ref,omitempty"` // configuration used to compose the outgoing request to a REST API RequestTransform *RequestTemplate `protobuf:"bytes,2,opt,name=request_transform,json=requestTransform,proto3" json:"request_transform,omitempty"` PreExecutionTransform *ResponseTemplate `` /* 126-byte string literal not displayed */ SpanName string `protobuf:"bytes,4,opt,name=span_name,json=spanName,proto3" json:"span_name,omitempty"` // contains filtered or unexported fields }
control-plane API
func (*RESTResolver) Descriptor
deprecated
func (*RESTResolver) Descriptor() ([]byte, []int)
Deprecated: Use RESTResolver.ProtoReflect.Descriptor instead.
func (*RESTResolver) GetPreExecutionTransform ¶
func (x *RESTResolver) GetPreExecutionTransform() *ResponseTemplate
func (*RESTResolver) GetRequestTransform ¶
func (x *RESTResolver) GetRequestTransform() *RequestTemplate
func (*RESTResolver) GetSpanName ¶
func (x *RESTResolver) GetSpanName() string
func (*RESTResolver) GetUpstreamRef ¶
func (x *RESTResolver) GetUpstreamRef() *core.ResourceRef
func (*RESTResolver) Hash ¶
func (m *RESTResolver) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*RESTResolver) ProtoMessage ¶
func (*RESTResolver) ProtoMessage()
func (*RESTResolver) ProtoReflect ¶
func (x *RESTResolver) ProtoReflect() protoreflect.Message
func (*RESTResolver) Reset ¶
func (x *RESTResolver) Reset()
func (*RESTResolver) String ¶
func (x *RESTResolver) String() string
type RequestTemplate ¶
type RequestTemplate struct { // Use this attribute to set request headers to your REST service. It consists of a // map of strings to value providers. The string key determines the name of the // resulting header, the value provided will be the value. // // at least need ":method" and ":path" Headers map[string]*ValueProvider `` /* 155-byte string literal not displayed */ // Use this attribute to set query parameters to your REST service. It consists of a // map of strings to value providers. The string key determines the name of the // query param, the provided value will be the value. This value is appended to any // value set to the :path header in `headers`. // // Interpolation is done in envoy rather than the control plane to prevent escaped // character issues. Additionally, we may be providing values not known until // the request is being executed (e.g., graphql parent info). QueryParams map[string]*ValueProvider `` /* 182-byte string literal not displayed */ // Used to construct the outgoing body to the upstream from the // graphql value providers. OutgoingBody *JsonValue `protobuf:"bytes,3,opt,name=outgoing_body,json=outgoingBody,proto3" json:"outgoing_body,omitempty"` // contains filtered or unexported fields }
Defines a configuration for generating outgoing requests for a resolver.
func (*RequestTemplate) Descriptor
deprecated
func (*RequestTemplate) Descriptor() ([]byte, []int)
Deprecated: Use RequestTemplate.ProtoReflect.Descriptor instead.
func (*RequestTemplate) Equal ¶
func (m *RequestTemplate) Equal(that interface{}) bool
Equal function
func (*RequestTemplate) GetHeaders ¶
func (x *RequestTemplate) GetHeaders() map[string]*ValueProvider
func (*RequestTemplate) GetOutgoingBody ¶
func (x *RequestTemplate) GetOutgoingBody() *JsonValue
func (*RequestTemplate) GetQueryParams ¶
func (x *RequestTemplate) GetQueryParams() map[string]*ValueProvider
func (*RequestTemplate) Hash ¶
func (m *RequestTemplate) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*RequestTemplate) ProtoMessage ¶
func (*RequestTemplate) ProtoMessage()
func (*RequestTemplate) ProtoReflect ¶
func (x *RequestTemplate) ProtoReflect() protoreflect.Message
func (*RequestTemplate) Reset ¶
func (x *RequestTemplate) Reset()
func (*RequestTemplate) String ¶
func (x *RequestTemplate) String() string
type Resolution ¶
type Resolution struct { // Match an object type and field Matcher *QueryMatcher `protobuf:"bytes,1,opt,name=matcher,proto3" json:"matcher,omitempty"` // The resolver to use. // // Types that are assignable to Resolver: // *Resolution_RestResolver // *Resolution_GrpcResolver Resolver isResolution_Resolver `protobuf_oneof:"resolver"` // contains filtered or unexported fields }
This is the resolver map for the schema. For each Type.Field, we can define a resolver. if a field does not have resolver, the default resolver will be used. the default resolver takes the field with the same name from the parent, and uses that value to resolve the field. if a field with the same name does not exist in the parent, null will be used.
func (*Resolution) Descriptor
deprecated
func (*Resolution) Descriptor() ([]byte, []int)
Deprecated: Use Resolution.ProtoReflect.Descriptor instead.
func (*Resolution) GetGrpcResolver ¶
func (x *Resolution) GetGrpcResolver() *GrpcResolver
func (*Resolution) GetMatcher ¶
func (x *Resolution) GetMatcher() *QueryMatcher
func (*Resolution) GetResolver ¶
func (m *Resolution) GetResolver() isResolution_Resolver
func (*Resolution) GetRestResolver ¶
func (x *Resolution) GetRestResolver() *RESTResolver
func (*Resolution) Hash ¶
func (m *Resolution) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*Resolution) ProtoMessage ¶
func (*Resolution) ProtoMessage()
func (*Resolution) ProtoReflect ¶
func (x *Resolution) ProtoReflect() protoreflect.Message
func (*Resolution) Reset ¶
func (x *Resolution) Reset()
func (*Resolution) String ¶
func (x *Resolution) String() string
type Resolution_GrpcResolver ¶
type Resolution_GrpcResolver struct {
GrpcResolver *GrpcResolver `protobuf:"bytes,4,opt,name=grpc_resolver,json=grpcResolver,proto3,oneof"`
}
type Resolution_RestResolver ¶
type Resolution_RestResolver struct {
RestResolver *RESTResolver `protobuf:"bytes,3,opt,name=rest_resolver,json=restResolver,proto3,oneof"`
}
type ResponseTemplate ¶
type ResponseTemplate struct { // In cases where the data to populate the graphql type is not in the // root object of the result, use result root to specify the path // of the response we should use as the root. // If {"a": {"b": [1,2,3]}} is the response from the api, setting resultroot as `a.b` // will pass on [1,2,3] to the execution engine rather than the whole api response ResultRoot []*PathSegment `protobuf:"bytes,1,rep,name=result_root,json=resultRoot,proto3" json:"result_root,omitempty"` // //Example: //“` //type Query { //getSimple: Simple //} // //type Simple { //name String //address String //}“` // //if we do `getsimple` and the response we get back from the upstream is //“` //{"data": { //"people": //{ //"name": "John Doe", //"details": { //"address": "123 Turnip Rd" //} //} //} //} //“` //the following response transform would let the graphql execution engine correctly //marshal the upstream resposne into the expected graphql response: //` //responseTransform: //result_root: //segments: //- key: data //- key: people //setters: //address: //segments: //- key: details //- key: address //`yaml Setters map[string]*Path `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
Defines a response transformation template. modify JSON response from upstream before it is processed by execution engine.
func (*ResponseTemplate) Descriptor
deprecated
func (*ResponseTemplate) Descriptor() ([]byte, []int)
Deprecated: Use ResponseTemplate.ProtoReflect.Descriptor instead.
func (*ResponseTemplate) Equal ¶
func (m *ResponseTemplate) Equal(that interface{}) bool
Equal function
func (*ResponseTemplate) GetResultRoot ¶
func (x *ResponseTemplate) GetResultRoot() []*PathSegment
func (*ResponseTemplate) GetSetters ¶
func (x *ResponseTemplate) GetSetters() map[string]*Path
func (*ResponseTemplate) Hash ¶
func (m *ResponseTemplate) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*ResponseTemplate) ProtoMessage ¶
func (*ResponseTemplate) ProtoMessage()
func (*ResponseTemplate) ProtoReflect ¶
func (x *ResponseTemplate) ProtoReflect() protoreflect.Message
func (*ResponseTemplate) Reset ¶
func (x *ResponseTemplate) Reset()
func (*ResponseTemplate) String ¶
func (x *ResponseTemplate) String() string
type TransitionGraphQLSchemaFunc ¶
type TransitionGraphQLSchemaFunc func(original, desired *GraphQLSchema) (bool, error)
Option to copy anything from the original to the desired before writing. Return value of false means don't update
type ValueProvider ¶
type ValueProvider struct { // Map of provider name to provider definition. // The name will be used to insert the provider value in the provider_template. Providers map[string]*ValueProvider_Provider `` /* 159-byte string literal not displayed */ // //If non-empty, Inserts named providers into a template string. //For example, if the provider_template is '/api/{apiVersionProvider}/pet/{petIdProvider}' //and we have to named providers defined in `providers`, apiVersionProvider and petIdProvider, with extracted values 'v2' and '123' respectively, //the final resulting value will be '/api/v2/pet/123' //Use {PROVIDER_NAME} as the interpolation notation (even repeated) regardless of the type of the //provided value. //If an undefined PROVIDER_NAME is used in the provider_template, this will nack during configuration. //If this is empty, only the value of the first provider will be used as the resulting value. ProviderTemplate string `protobuf:"bytes,4,opt,name=provider_template,json=providerTemplate,proto3" json:"provider_template,omitempty"` // contains filtered or unexported fields }
In the future we may add support for regex and subgroups
func (*ValueProvider) Descriptor
deprecated
func (*ValueProvider) Descriptor() ([]byte, []int)
Deprecated: Use ValueProvider.ProtoReflect.Descriptor instead.
func (*ValueProvider) GetProviderTemplate ¶
func (x *ValueProvider) GetProviderTemplate() string
func (*ValueProvider) GetProviders ¶
func (x *ValueProvider) GetProviders() map[string]*ValueProvider_Provider
func (*ValueProvider) Hash ¶
func (m *ValueProvider) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*ValueProvider) ProtoMessage ¶
func (*ValueProvider) ProtoMessage()
func (*ValueProvider) ProtoReflect ¶
func (x *ValueProvider) ProtoReflect() protoreflect.Message
func (*ValueProvider) Reset ¶
func (x *ValueProvider) Reset()
func (*ValueProvider) String ¶
func (x *ValueProvider) String() string
type ValueProvider_GraphQLArgExtraction ¶
type ValueProvider_GraphQLArgExtraction struct { // The argument name to fetch. The argument value fetched // will have a type from the schema that we validate in envoy. // If the name is invalid, returns the zero-value primitive or null. ArgName string `protobuf:"bytes,1,opt,name=arg_name,json=argName,proto3" json:"arg_name,omitempty"` // Optional: fetches the value in the argument selected at this key. // If the key is invalid, returns the zero-value primitive or null. Path []*PathSegment `protobuf:"bytes,2,rep,name=path,proto3" json:"path,omitempty"` // If this is set to true, then a schema error will be returned to user when the graphql arg is not found. // Defaults to false, so schema error will not be returned to user when the graphql arg is not found. Required bool `protobuf:"varint,3,opt,name=required,proto3" json:"required,omitempty"` // contains filtered or unexported fields }
func (*ValueProvider_GraphQLArgExtraction) Clone ¶
func (m *ValueProvider_GraphQLArgExtraction) Clone() proto.Message
Clone function
func (*ValueProvider_GraphQLArgExtraction) Descriptor
deprecated
func (*ValueProvider_GraphQLArgExtraction) Descriptor() ([]byte, []int)
Deprecated: Use ValueProvider_GraphQLArgExtraction.ProtoReflect.Descriptor instead.
func (*ValueProvider_GraphQLArgExtraction) Equal ¶
func (m *ValueProvider_GraphQLArgExtraction) Equal(that interface{}) bool
Equal function
func (*ValueProvider_GraphQLArgExtraction) GetArgName ¶
func (x *ValueProvider_GraphQLArgExtraction) GetArgName() string
func (*ValueProvider_GraphQLArgExtraction) GetPath ¶
func (x *ValueProvider_GraphQLArgExtraction) GetPath() []*PathSegment
func (*ValueProvider_GraphQLArgExtraction) GetRequired ¶
func (x *ValueProvider_GraphQLArgExtraction) GetRequired() bool
func (*ValueProvider_GraphQLArgExtraction) Hash ¶
func (m *ValueProvider_GraphQLArgExtraction) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*ValueProvider_GraphQLArgExtraction) ProtoMessage ¶
func (*ValueProvider_GraphQLArgExtraction) ProtoMessage()
func (*ValueProvider_GraphQLArgExtraction) ProtoReflect ¶
func (x *ValueProvider_GraphQLArgExtraction) ProtoReflect() protoreflect.Message
func (*ValueProvider_GraphQLArgExtraction) Reset ¶
func (x *ValueProvider_GraphQLArgExtraction) Reset()
func (*ValueProvider_GraphQLArgExtraction) String ¶
func (x *ValueProvider_GraphQLArgExtraction) String() string
type ValueProvider_GraphQLParentExtraction ¶
type ValueProvider_GraphQLParentExtraction struct { // Fetches the value in the graphql parent at this key. The value will // always be accepted since the parent object is not strongly-typed. // If the key is invalid, returns null. Path []*PathSegment `protobuf:"bytes,1,rep,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
Does not do type coercion, but instead if the type does not match the expected primitive type we throw an error. In the future we may add support for type coercion.
func (*ValueProvider_GraphQLParentExtraction) Clone ¶
func (m *ValueProvider_GraphQLParentExtraction) Clone() proto.Message
Clone function
func (*ValueProvider_GraphQLParentExtraction) Descriptor
deprecated
func (*ValueProvider_GraphQLParentExtraction) Descriptor() ([]byte, []int)
Deprecated: Use ValueProvider_GraphQLParentExtraction.ProtoReflect.Descriptor instead.
func (*ValueProvider_GraphQLParentExtraction) Equal ¶
func (m *ValueProvider_GraphQLParentExtraction) Equal(that interface{}) bool
Equal function
func (*ValueProvider_GraphQLParentExtraction) GetPath ¶
func (x *ValueProvider_GraphQLParentExtraction) GetPath() []*PathSegment
func (*ValueProvider_GraphQLParentExtraction) Hash ¶
func (m *ValueProvider_GraphQLParentExtraction) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*ValueProvider_GraphQLParentExtraction) ProtoMessage ¶
func (*ValueProvider_GraphQLParentExtraction) ProtoMessage()
func (*ValueProvider_GraphQLParentExtraction) ProtoReflect ¶
func (x *ValueProvider_GraphQLParentExtraction) ProtoReflect() protoreflect.Message
func (*ValueProvider_GraphQLParentExtraction) Reset ¶
func (x *ValueProvider_GraphQLParentExtraction) Reset()
func (*ValueProvider_GraphQLParentExtraction) String ¶
func (x *ValueProvider_GraphQLParentExtraction) String() string
type ValueProvider_Provider ¶
type ValueProvider_Provider struct { // Types that are assignable to Provider: // *ValueProvider_Provider_GraphqlArg // *ValueProvider_Provider_TypedProvider // *ValueProvider_Provider_GraphqlParent Provider isValueProvider_Provider_Provider `protobuf_oneof:"provider"` // contains filtered or unexported fields }
func (*ValueProvider_Provider) Clone ¶
func (m *ValueProvider_Provider) Clone() proto.Message
Clone function
func (*ValueProvider_Provider) Descriptor
deprecated
func (*ValueProvider_Provider) Descriptor() ([]byte, []int)
Deprecated: Use ValueProvider_Provider.ProtoReflect.Descriptor instead.
func (*ValueProvider_Provider) Equal ¶
func (m *ValueProvider_Provider) Equal(that interface{}) bool
Equal function
func (*ValueProvider_Provider) GetGraphqlArg ¶
func (x *ValueProvider_Provider) GetGraphqlArg() *ValueProvider_GraphQLArgExtraction
func (*ValueProvider_Provider) GetGraphqlParent ¶
func (x *ValueProvider_Provider) GetGraphqlParent() *ValueProvider_GraphQLParentExtraction
func (*ValueProvider_Provider) GetProvider ¶
func (m *ValueProvider_Provider) GetProvider() isValueProvider_Provider_Provider
func (*ValueProvider_Provider) GetTypedProvider ¶
func (x *ValueProvider_Provider) GetTypedProvider() *ValueProvider_TypedValueProvider
func (*ValueProvider_Provider) Hash ¶
func (m *ValueProvider_Provider) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*ValueProvider_Provider) ProtoMessage ¶
func (*ValueProvider_Provider) ProtoMessage()
func (*ValueProvider_Provider) ProtoReflect ¶
func (x *ValueProvider_Provider) ProtoReflect() protoreflect.Message
func (*ValueProvider_Provider) Reset ¶
func (x *ValueProvider_Provider) Reset()
func (*ValueProvider_Provider) String ¶
func (x *ValueProvider_Provider) String() string
type ValueProvider_Provider_GraphqlArg ¶
type ValueProvider_Provider_GraphqlArg struct { // type inferred from schema, no need to provide it. GraphqlArg *ValueProvider_GraphQLArgExtraction `protobuf:"bytes,1,opt,name=graphql_arg,json=graphqlArg,proto3,oneof"` }
type ValueProvider_Provider_GraphqlParent ¶
type ValueProvider_Provider_GraphqlParent struct { // Fetch value from the graphql_parent of the current field. GraphqlParent *ValueProvider_GraphQLParentExtraction `protobuf:"bytes,3,opt,name=graphql_parent,json=graphqlParent,proto3,oneof"` }
type ValueProvider_Provider_TypedProvider ¶
type ValueProvider_Provider_TypedProvider struct {
TypedProvider *ValueProvider_TypedValueProvider `protobuf:"bytes,2,opt,name=typed_provider,json=typedProvider,proto3,oneof"`
}
type ValueProvider_TypedValueProvider ¶
type ValueProvider_TypedValueProvider struct { // Type that the value will be coerced into. // For example if the extracted value is "9", and type is INT, // this value will be cast to an int type. Type ValueProvider_TypedValueProvider_Type `` /* 126-byte string literal not displayed */ // Types that are assignable to ValProvider: // *ValueProvider_TypedValueProvider_Header // *ValueProvider_TypedValueProvider_Value ValProvider isValueProvider_TypedValueProvider_ValProvider `protobuf_oneof:"val_provider"` // contains filtered or unexported fields }
func (*ValueProvider_TypedValueProvider) Clone ¶
func (m *ValueProvider_TypedValueProvider) Clone() proto.Message
Clone function
func (*ValueProvider_TypedValueProvider) Descriptor
deprecated
func (*ValueProvider_TypedValueProvider) Descriptor() ([]byte, []int)
Deprecated: Use ValueProvider_TypedValueProvider.ProtoReflect.Descriptor instead.
func (*ValueProvider_TypedValueProvider) Equal ¶
func (m *ValueProvider_TypedValueProvider) Equal(that interface{}) bool
Equal function
func (*ValueProvider_TypedValueProvider) GetHeader ¶
func (x *ValueProvider_TypedValueProvider) GetHeader() string
func (*ValueProvider_TypedValueProvider) GetType ¶
func (x *ValueProvider_TypedValueProvider) GetType() ValueProvider_TypedValueProvider_Type
func (*ValueProvider_TypedValueProvider) GetValProvider ¶
func (m *ValueProvider_TypedValueProvider) GetValProvider() isValueProvider_TypedValueProvider_ValProvider
func (*ValueProvider_TypedValueProvider) GetValue ¶
func (x *ValueProvider_TypedValueProvider) GetValue() string
func (*ValueProvider_TypedValueProvider) Hash ¶
func (m *ValueProvider_TypedValueProvider) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*ValueProvider_TypedValueProvider) ProtoMessage ¶
func (*ValueProvider_TypedValueProvider) ProtoMessage()
func (*ValueProvider_TypedValueProvider) ProtoReflect ¶
func (x *ValueProvider_TypedValueProvider) ProtoReflect() protoreflect.Message
func (*ValueProvider_TypedValueProvider) Reset ¶
func (x *ValueProvider_TypedValueProvider) Reset()
func (*ValueProvider_TypedValueProvider) String ¶
func (x *ValueProvider_TypedValueProvider) String() string
type ValueProvider_TypedValueProvider_Header ¶
type ValueProvider_TypedValueProvider_Header struct { // Fetches the request/response header's value. If not found, uses empty string Header string `protobuf:"bytes,2,opt,name=header,proto3,oneof"` }
type ValueProvider_TypedValueProvider_Type ¶
type ValueProvider_TypedValueProvider_Type int32
Type that the value will be coerced into. For example if the extracted value is "9", and type is INT, this value will be cast to an int type.
const ( ValueProvider_TypedValueProvider_STRING ValueProvider_TypedValueProvider_Type = 0 ValueProvider_TypedValueProvider_INT ValueProvider_TypedValueProvider_Type = 1 ValueProvider_TypedValueProvider_FLOAT ValueProvider_TypedValueProvider_Type = 2 ValueProvider_TypedValueProvider_BOOLEAN ValueProvider_TypedValueProvider_Type = 3 )
func (ValueProvider_TypedValueProvider_Type) Descriptor ¶
func (ValueProvider_TypedValueProvider_Type) Descriptor() protoreflect.EnumDescriptor
func (ValueProvider_TypedValueProvider_Type) EnumDescriptor
deprecated
func (ValueProvider_TypedValueProvider_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use ValueProvider_TypedValueProvider_Type.Descriptor instead.
func (ValueProvider_TypedValueProvider_Type) Number ¶
func (x ValueProvider_TypedValueProvider_Type) Number() protoreflect.EnumNumber
func (ValueProvider_TypedValueProvider_Type) String ¶
func (x ValueProvider_TypedValueProvider_Type) String() string
func (ValueProvider_TypedValueProvider_Type) Type ¶
func (ValueProvider_TypedValueProvider_Type) Type() protoreflect.EnumType
type ValueProvider_TypedValueProvider_Value ¶
type ValueProvider_TypedValueProvider_Value struct { // inline value, use as provided rather than extracting from another source Value string `protobuf:"bytes,3,opt,name=value,proto3,oneof"` }
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
kube
|
|
apis/enterprise.gloo.solo.io/v1alpha1
Package v1alpha1 is the v1alpha1 version of the API.
|
Package v1alpha1 is the v1alpha1 version of the API. |
apis/graphql.gloo.solo.io/v1alpha1
Package v1alpha1 is the v1alpha1 version of the API.
|
Package v1alpha1 is the v1alpha1 version of the API. |