v2

package
v1.16.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var (
	CacheControl_CacheControlScope_name = map[int32]string{
		0: "UNSET",
		1: "PUBLIC",
		2: "PRIVATE",
	}
	CacheControl_CacheControlScope_value = map[string]int32{
		"UNSET":   0,
		"PUBLIC":  1,
		"PRIVATE": 2,
	}
)

Enum value maps for CacheControl_CacheControlScope.

View Source
var File_github_com_solo_io_gloo_projects_gloo_api_external_envoy_extensions_graphql_graphql_proto protoreflect.FileDescriptor
View Source
var File_github_com_solo_io_gloo_projects_gloo_api_external_envoy_extensions_graphql_stitching_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AbstractTypeResolver

type AbstractTypeResolver struct {
	// contains filtered or unexported fields
}

NOT IMPLEMENTED Resolve an abstract type (union or interface) to a real type. When implemented, this message will be a field in the Resolution message.

func (*AbstractTypeResolver) Descriptor deprecated

func (*AbstractTypeResolver) Descriptor() ([]byte, []int)

Deprecated: Use AbstractTypeResolver.ProtoReflect.Descriptor instead.

func (*AbstractTypeResolver) ProtoMessage

func (*AbstractTypeResolver) ProtoMessage()

func (*AbstractTypeResolver) ProtoReflect

func (x *AbstractTypeResolver) ProtoReflect() protoreflect.Message

func (*AbstractTypeResolver) Reset

func (x *AbstractTypeResolver) Reset()

func (*AbstractTypeResolver) String

func (x *AbstractTypeResolver) String() string

type ArgPath

type ArgPath struct {

	// Setter Path
	SetterPath []string `protobuf:"bytes,1,rep,name=setter_path,json=setterPath,proto3" json:"setter_path,omitempty"`
	// Extraction path
	ExtractionPath []string `protobuf:"bytes,2,rep,name=extraction_path,json=extractionPath,proto3" json:"extraction_path,omitempty"`
	// contains filtered or unexported fields
}

func (*ArgPath) Descriptor deprecated

func (*ArgPath) Descriptor() ([]byte, []int)

Deprecated: Use ArgPath.ProtoReflect.Descriptor instead.

func (*ArgPath) GetExtractionPath

func (x *ArgPath) GetExtractionPath() []string

func (*ArgPath) GetSetterPath

func (x *ArgPath) GetSetterPath() []string

func (*ArgPath) ProtoMessage

func (*ArgPath) ProtoMessage()

func (*ArgPath) ProtoReflect

func (x *ArgPath) ProtoReflect() protoreflect.Message

func (*ArgPath) Reset

func (x *ArgPath) Reset()

func (*ArgPath) String

func (x *ArgPath) String() string

type CacheControl

type CacheControl struct {

	// number of seconds to cache result for. the max_age used for a single graphql request is the minimum
	// of all fields requested.
	//
	// default max_age rules work as follows:
	// - root fields (i.e. Query, Mutation, Subscription) default to 0s
	// - non-root, non-scalar fields (i.e. object, interface, or union; or a list of those types) default to 0s
	// - all other fields inherit the max_age from their parent.
	MaxAge *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"`
	// provide controls to which users can access cached content
	Scope CacheControl_CacheControlScope `` /* 136-byte string literal not displayed */
	// whether or not to inherit the caching configuration of any parent fields
	InheritMaxAge bool `protobuf:"varint,3,opt,name=inherit_max_age,json=inheritMaxAge,proto3" json:"inherit_max_age,omitempty"`
	// contains filtered or unexported fields
}

Resolvers for scalar, non-root fields rarely fetch data and instead usually populate data via the parent argument. Consequently, these fields inherit their default maxAge from their parent to reduce schema clutter.

TODO: Talk with product -- apollo does not do this, but we could factor in upstream Cache-Control header response into our inheritance model.

func (*CacheControl) Descriptor deprecated

func (*CacheControl) Descriptor() ([]byte, []int)

Deprecated: Use CacheControl.ProtoReflect.Descriptor instead.

func (*CacheControl) GetInheritMaxAge

func (x *CacheControl) GetInheritMaxAge() bool

func (*CacheControl) GetMaxAge

func (x *CacheControl) GetMaxAge() *wrappers.UInt32Value

func (*CacheControl) GetScope

func (*CacheControl) ProtoMessage

func (*CacheControl) ProtoMessage()

func (*CacheControl) ProtoReflect

func (x *CacheControl) ProtoReflect() protoreflect.Message

func (*CacheControl) Reset

func (x *CacheControl) Reset()

func (*CacheControl) String

func (x *CacheControl) String() string

type CacheControl_CacheControlScope

type CacheControl_CacheControlScope int32
const (
	CacheControl_UNSET CacheControl_CacheControlScope = 0
	// Responses for requests with Authorization header fields must not be stored in a shared cache.
	// But the public directive will cause such responses to be stored in a shared cache.
	//
	// In general, when pages are under Basic Auth or Digest Auth, the browser sends requests with
	// the Authorization header. That means the response is access-controlled for restricted users
	// (who have accounts), and it's fundamentally not shared-cacheable, even if it has max-age.
	//
	// You can use the public directive to unlock that restriction.
	CacheControl_PUBLIC CacheControl_CacheControlScope = 1
	// You should add the private directive for user-personalized content — in particular, responses
	// received after login, and sessions managed via cookies.
	//
	// If you forget to add private to a response with personalized content, then that response can be
	// stored in a shared cache and end up being reused for multiple users, which can cause personal
	// information to leak.
	CacheControl_PRIVATE CacheControl_CacheControlScope = 2
)

func (CacheControl_CacheControlScope) Descriptor

func (CacheControl_CacheControlScope) Enum

func (CacheControl_CacheControlScope) EnumDescriptor deprecated

func (CacheControl_CacheControlScope) EnumDescriptor() ([]byte, []int)

Deprecated: Use CacheControl_CacheControlScope.Descriptor instead.

func (CacheControl_CacheControlScope) Number

func (CacheControl_CacheControlScope) String

func (CacheControl_CacheControlScope) Type

type ExecutableSchema

type ExecutableSchema struct {

	// Schema to use in string format.
	SchemaDefinition *v3.DataSource `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
	Extensions map[string]*any1.Any `` /* 161-byte string literal not displayed */
	// Logs request / response sensitive information
	// By default, this is false so no request or response sensitive information is logged.
	LogRequestResponseInfo bool `` /* 132-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) GetExecutor

func (x *ExecutableSchema) GetExecutor() *Executor

func (*ExecutableSchema) GetExtensions

func (x *ExecutableSchema) GetExtensions() map[string]*any1.Any

func (*ExecutableSchema) GetLogRequestResponseInfo

func (x *ExecutableSchema) GetLogRequestResponseInfo() bool

func (*ExecutableSchema) GetSchemaDefinition

func (x *ExecutableSchema) GetSchemaDefinition() *v3.DataSource

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_Remote_
	Executor isExecutor_Executor `protobuf_oneof:"executor"`
	// contains filtered or unexported fields
}

func (*Executor) Descriptor deprecated

func (*Executor) Descriptor() ([]byte, []int)

Deprecated: Use Executor.ProtoReflect.Descriptor instead.

func (*Executor) GetExecutor

func (m *Executor) GetExecutor() isExecutor_Executor

func (*Executor) GetLocal

func (x *Executor) GetLocal() *Executor_Local

func (*Executor) GetRemote

func (x *Executor) GetRemote() *Executor_Remote

func (*Executor) ProtoMessage

func (*Executor) ProtoMessage()

func (*Executor) ProtoReflect

func (x *Executor) ProtoReflect() protoreflect.Message

func (*Executor) Reset

func (x *Executor) Reset()

func (*Executor) String

func (x *Executor) String() string

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"`
	// The max amount of nesting a query can be executed against this schema.
	// e.g. the following query has these depths:
	// query {         # Depth: 0
	//
	//	  me {          # Depth: 1
	//	    friends {   # Depth: 2
	//	       friends  # Depth: 3
	//	    }
	//	  }
	//	}
	//
	// If the max_depth is set to 2, then the query at depth 3 will receive an error as a response.
	// The max_depth value of 0 (set by default) will allow an unbounded query depth.
	MaxDepth uint32 `protobuf:"varint,3,opt,name=max_depth,json=maxDepth,proto3" json:"max_depth,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) GetMaxDepth

func (x *Executor_Local) GetMaxDepth() uint32

func (*Executor_Local) GetResolutions

func (x *Executor_Local) GetResolutions() []*Resolution

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 Executor_Remote

type Executor_Remote struct {

	// Server URI of the remote graphql cluster.
	ServerUri *v3.HttpUri                          `protobuf:"bytes,1,opt,name=server_uri,json=serverUri,proto3" json:"server_uri,omitempty"`
	Request   *Executor_Remote_RemoteSchemaRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"`
	SpanName  string                               `protobuf:"bytes,3,opt,name=span_name,json=spanName,proto3" json:"span_name,omitempty"`
	// contains filtered or unexported fields
}

Execute schema by querying a graphql upstream.

func (*Executor_Remote) Descriptor deprecated

func (*Executor_Remote) Descriptor() ([]byte, []int)

Deprecated: Use Executor_Remote.ProtoReflect.Descriptor instead.

func (*Executor_Remote) GetRequest

func (*Executor_Remote) GetServerUri

func (x *Executor_Remote) GetServerUri() *v3.HttpUri

func (*Executor_Remote) GetSpanName

func (x *Executor_Remote) GetSpanName() string

func (*Executor_Remote) ProtoMessage

func (*Executor_Remote) ProtoMessage()

func (*Executor_Remote) ProtoReflect

func (x *Executor_Remote) ProtoReflect() protoreflect.Message

func (*Executor_Remote) Reset

func (x *Executor_Remote) Reset()

func (*Executor_Remote) String

func (x *Executor_Remote) String() string

type Executor_Remote_

type Executor_Remote_ struct {
	Remote *Executor_Remote `protobuf:"bytes,2,opt,name=remote,proto3,oneof"`
}

type Executor_Remote_Extraction

type Executor_Remote_Extraction struct {

	// Types that are assignable to ExtractionType:
	//
	//	*Executor_Remote_Extraction_Value
	//	*Executor_Remote_Extraction_Header
	//	*Executor_Remote_Extraction_DynamicMetadata
	ExtractionType isExecutor_Remote_Extraction_ExtractionType `protobuf_oneof:"extraction_type"`
	// contains filtered or unexported fields
}

func (*Executor_Remote_Extraction) Descriptor deprecated

func (*Executor_Remote_Extraction) Descriptor() ([]byte, []int)

Deprecated: Use Executor_Remote_Extraction.ProtoReflect.Descriptor instead.

func (*Executor_Remote_Extraction) GetDynamicMetadata

func (*Executor_Remote_Extraction) GetExtractionType

func (m *Executor_Remote_Extraction) GetExtractionType() isExecutor_Remote_Extraction_ExtractionType

func (*Executor_Remote_Extraction) GetHeader

func (x *Executor_Remote_Extraction) GetHeader() string

func (*Executor_Remote_Extraction) GetValue

func (x *Executor_Remote_Extraction) GetValue() string

func (*Executor_Remote_Extraction) ProtoMessage

func (*Executor_Remote_Extraction) ProtoMessage()

func (*Executor_Remote_Extraction) ProtoReflect

func (*Executor_Remote_Extraction) Reset

func (x *Executor_Remote_Extraction) Reset()

func (*Executor_Remote_Extraction) String

func (x *Executor_Remote_Extraction) String() string

type Executor_Remote_Extraction_DynamicMetadata

type Executor_Remote_Extraction_DynamicMetadata struct {
	// Set the extraction type to use a dynamic metadata value.
	DynamicMetadata *Executor_Remote_Extraction_DynamicMetadataExtraction `protobuf:"bytes,3,opt,name=dynamic_metadata,json=dynamicMetadata,proto3,oneof"`
}

type Executor_Remote_Extraction_DynamicMetadataExtraction

type Executor_Remote_Extraction_DynamicMetadataExtraction struct {

	// The namespace that the dynamic metadata is stored in.
	MetadataNamespace string `protobuf:"bytes,1,opt,name=metadata_namespace,json=metadataNamespace,proto3" json:"metadata_namespace,omitempty"`
	// The key in the namespace that the dynamic metadata is stored under.
	Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*Executor_Remote_Extraction_DynamicMetadataExtraction) Descriptor deprecated

Deprecated: Use Executor_Remote_Extraction_DynamicMetadataExtraction.ProtoReflect.Descriptor instead.

func (*Executor_Remote_Extraction_DynamicMetadataExtraction) GetKey

func (*Executor_Remote_Extraction_DynamicMetadataExtraction) GetMetadataNamespace

func (*Executor_Remote_Extraction_DynamicMetadataExtraction) ProtoMessage

func (*Executor_Remote_Extraction_DynamicMetadataExtraction) ProtoReflect

func (*Executor_Remote_Extraction_DynamicMetadataExtraction) Reset

func (*Executor_Remote_Extraction_DynamicMetadataExtraction) String

type Executor_Remote_Extraction_Header

type Executor_Remote_Extraction_Header struct {
	// Set the extraction type to use a header value.
	// Specify the name of the header to extract the value from on the original request.
	Header string `protobuf:"bytes,2,opt,name=header,proto3,oneof"`
}

type Executor_Remote_Extraction_Value

type Executor_Remote_Extraction_Value struct {
	// Set the extraction type to use a static value.
	Value string `protobuf:"bytes,1,opt,name=value,proto3,oneof"`
}

type Executor_Remote_RemoteSchemaRequest

type Executor_Remote_RemoteSchemaRequest struct {

	// Map of headers to header value which will be included in the request to the remote graphql server.
	Headers map[string]*Executor_Remote_Extraction `` /* 155-byte string literal not displayed */
	// Query params to set on the request to the remote graphql server.
	QueryParams map[string]*Executor_Remote_Extraction `` /* 182-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Executor_Remote_RemoteSchemaRequest) Descriptor deprecated

func (*Executor_Remote_RemoteSchemaRequest) Descriptor() ([]byte, []int)

Deprecated: Use Executor_Remote_RemoteSchemaRequest.ProtoReflect.Descriptor instead.

func (*Executor_Remote_RemoteSchemaRequest) GetHeaders

func (*Executor_Remote_RemoteSchemaRequest) GetQueryParams

func (*Executor_Remote_RemoteSchemaRequest) ProtoMessage

func (*Executor_Remote_RemoteSchemaRequest) ProtoMessage()

func (*Executor_Remote_RemoteSchemaRequest) ProtoReflect

func (*Executor_Remote_RemoteSchemaRequest) Reset

func (*Executor_Remote_RemoteSchemaRequest) String

type FieldNode

type FieldNode struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*FieldNode) Descriptor deprecated

func (*FieldNode) Descriptor() ([]byte, []int)

Deprecated: Use FieldNode.ProtoReflect.Descriptor instead.

func (*FieldNode) GetName

func (x *FieldNode) GetName() string

func (*FieldNode) ProtoMessage

func (*FieldNode) ProtoMessage()

func (*FieldNode) ProtoReflect

func (x *FieldNode) ProtoReflect() protoreflect.Message

func (*FieldNode) Reset

func (x *FieldNode) Reset()

func (*FieldNode) String

func (x *FieldNode) String() string

type FieldNodeMap

type FieldNodeMap struct {
	Nodes map[string]*FieldNodes `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*FieldNodeMap) Descriptor deprecated

func (*FieldNodeMap) Descriptor() ([]byte, []int)

Deprecated: Use FieldNodeMap.ProtoReflect.Descriptor instead.

func (*FieldNodeMap) GetNodes

func (x *FieldNodeMap) GetNodes() map[string]*FieldNodes

func (*FieldNodeMap) ProtoMessage

func (*FieldNodeMap) ProtoMessage()

func (*FieldNodeMap) ProtoReflect

func (x *FieldNodeMap) ProtoReflect() protoreflect.Message

func (*FieldNodeMap) Reset

func (x *FieldNodeMap) Reset()

func (*FieldNodeMap) String

func (x *FieldNodeMap) String() string

type FieldNodes

type FieldNodes struct {
	FieldNodes []*FieldNode `protobuf:"bytes,1,rep,name=field_nodes,json=fieldNodes,proto3" json:"field_nodes,omitempty"`
	// contains filtered or unexported fields
}

func (*FieldNodes) Descriptor deprecated

func (*FieldNodes) Descriptor() ([]byte, []int)

Deprecated: Use FieldNodes.ProtoReflect.Descriptor instead.

func (*FieldNodes) GetFieldNodes

func (x *FieldNodes) GetFieldNodes() []*FieldNode

func (*FieldNodes) ProtoMessage

func (*FieldNodes) ProtoMessage()

func (*FieldNodes) ProtoReflect

func (x *FieldNodes) ProtoReflect() protoreflect.Message

func (*FieldNodes) Reset

func (x *FieldNodes) Reset()

func (*FieldNodes) String

func (x *FieldNodes) String() string

type GraphQLConfig

type GraphQLConfig struct {
	// contains filtered or unexported fields
}

Filter Listener config. Empty as the filter must be configured on the route level.

func (*GraphQLConfig) Descriptor deprecated

func (*GraphQLConfig) Descriptor() ([]byte, []int)

Deprecated: Use GraphQLConfig.ProtoReflect.Descriptor instead.

func (*GraphQLConfig) ProtoMessage

func (*GraphQLConfig) ProtoMessage()

func (*GraphQLConfig) ProtoReflect

func (x *GraphQLConfig) ProtoReflect() protoreflect.Message

func (*GraphQLConfig) Reset

func (x *GraphQLConfig) Reset()

func (*GraphQLConfig) String

func (x *GraphQLConfig) String() string

type GraphQLRouteConfig

type GraphQLRouteConfig struct {
	ExecutableSchema *ExecutableSchema `protobuf:"bytes,4,opt,name=executable_schema,json=executableSchema,proto3" json:"executable_schema,omitempty"`
	// The stats prefix which will be used for this route config.
	StatPrefix string `protobuf:"bytes,5,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"`
	// Configuration settings for persisted query cache
	PersistedQueryCacheConfig *PersistedQueryCacheConfig `` /* 140-byte string literal not displayed */
	// Safelist: only allow queries to be executed that match these sha256 hashes.
	// The hash can be computed from the query string or provided (i.e. persisted queries).
	AllowedQueryHashes []string `protobuf:"bytes,7,rep,name=allowed_query_hashes,json=allowedQueryHashes,proto3" json:"allowed_query_hashes,omitempty"`
	// contains filtered or unexported fields
}

Filter Route config. 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.

func (*GraphQLRouteConfig) Descriptor deprecated

func (*GraphQLRouteConfig) Descriptor() ([]byte, []int)

Deprecated: Use GraphQLRouteConfig.ProtoReflect.Descriptor instead.

func (*GraphQLRouteConfig) GetAllowedQueryHashes

func (x *GraphQLRouteConfig) GetAllowedQueryHashes() []string

func (*GraphQLRouteConfig) GetExecutableSchema

func (x *GraphQLRouteConfig) GetExecutableSchema() *ExecutableSchema

func (*GraphQLRouteConfig) GetPersistedQueryCacheConfig

func (x *GraphQLRouteConfig) GetPersistedQueryCacheConfig() *PersistedQueryCacheConfig

func (*GraphQLRouteConfig) GetStatPrefix

func (x *GraphQLRouteConfig) GetStatPrefix() string

func (*GraphQLRouteConfig) ProtoMessage

func (*GraphQLRouteConfig) ProtoMessage()

func (*GraphQLRouteConfig) ProtoReflect

func (x *GraphQLRouteConfig) ProtoReflect() protoreflect.Message

func (*GraphQLRouteConfig) Reset

func (x *GraphQLRouteConfig) Reset()

func (*GraphQLRouteConfig) String

func (x *GraphQLRouteConfig) String() string

type GrpcDescriptorRegistry

type GrpcDescriptorRegistry struct {
	ProtoDescriptors *v3.DataSource `protobuf:"bytes,1,opt,name=proto_descriptors,json=protoDescriptors,proto3" json:"proto_descriptors,omitempty"`
	// contains filtered or unexported fields
}

Defines a configuration for serializing and deserializing requests for a gRPC resolver. Is a Schema Extension

func (*GrpcDescriptorRegistry) Descriptor deprecated

func (*GrpcDescriptorRegistry) Descriptor() ([]byte, []int)

Deprecated: Use GrpcDescriptorRegistry.ProtoReflect.Descriptor instead.

func (*GrpcDescriptorRegistry) GetProtoDescriptors

func (x *GrpcDescriptorRegistry) GetProtoDescriptors() *v3.DataSource

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) Descriptor deprecated

func (*GrpcRequestTemplate) Descriptor() ([]byte, []int)

Deprecated: Use GrpcRequestTemplate.ProtoReflect.Descriptor instead.

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) 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 {
	ServerUri *v3.HttpUri `protobuf:"bytes,1,opt,name=server_uri,json=serverUri,proto3" json:"server_uri,omitempty"`
	// configuration used to compose the outgoing request to a gRPC endpoint
	RequestTransform *GrpcRequestTemplate `protobuf:"bytes,2,opt,name=request_transform,json=requestTransform,proto3" json:"request_transform,omitempty"`
	// pre-execution engine transformations
	//
	// Request flow: GraphQL request -> request_transform (instantiate gRPC request) ->
	// gRPC API resp -> pre_execution_transform -> execution engine ->
	// complete GraphQL field response
	//
	// ResponseTemplate pre_execution_transform = 3;
	SpanName string `protobuf:"bytes,4,opt,name=span_name,json=spanName,proto3" json:"span_name,omitempty"`
	// contains filtered or unexported fields
}

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) GetServerUri

func (x *GrpcResolver) GetServerUri() *v3.HttpUri

func (*GrpcResolver) GetSpanName

func (x *GrpcResolver) GetSpanName() string

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 {

	// PARTIALLY IMPLEMENTED
	// if empty, the value will be parsed as json and replace the entire
	// previously-parsed json value --> this part is only needed for gRPC
	// and thus not implemented yet
	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) 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) Descriptor() ([]byte, []int)

Deprecated: Use JsonNode.ProtoReflect.Descriptor instead.

func (*JsonNode) GetKeyValues

func (x *JsonNode) GetKeyValues() []*JsonKeyValue

func (*JsonNode) ProtoMessage

func (*JsonNode) ProtoMessage()

func (*JsonNode) ProtoReflect

func (x *JsonNode) ProtoReflect() protoreflect.Message

func (*JsonNode) Reset

func (x *JsonNode) Reset()

func (*JsonNode) String

func (x *JsonNode) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use JsonValue.ProtoReflect.Descriptor instead.

func (*JsonValue) GetJsonVal

func (m *JsonValue) GetJsonVal() isJsonValue_JsonVal

func (*JsonValue) GetList

func (x *JsonValue) GetList() *JsonValueList

func (*JsonValue) GetNode

func (x *JsonValue) GetNode() *JsonNode

func (*JsonValue) GetValueProvider

func (x *JsonValue) GetValueProvider() *ValueProvider

func (*JsonValue) ProtoMessage

func (*JsonValue) ProtoMessage()

func (*JsonValue) ProtoReflect

func (x *JsonValue) ProtoReflect() protoreflect.Message

func (*JsonValue) Reset

func (x *JsonValue) Reset()

func (*JsonValue) String

func (x *JsonValue) String() string

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) 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 MergedTypeConfig

type MergedTypeConfig struct {
	TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"`
	// map of subschema name to selection set string
	// e.g. name_subschema: '{ id }'
	SelectionSets map[string]string `` /* 188-byte string literal not displayed */
	// field name -> scema name
	UniqueFieldsToSubschemaName     map[string]string   `` /* 236-byte string literal not displayed */
	NonUniqueFieldsToSubschemaNames map[string]*Schemas `` /* 250-byte string literal not displayed */
	// schema -> subschemas
	DeclarativeTargetSubschemas map[string]*Schemas      `` /* 232-byte string literal not displayed */
	SubschemaNameToResolverInfo map[string]*ResolverInfo `` /* 236-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*MergedTypeConfig) Descriptor deprecated

func (*MergedTypeConfig) Descriptor() ([]byte, []int)

Deprecated: Use MergedTypeConfig.ProtoReflect.Descriptor instead.

func (*MergedTypeConfig) GetDeclarativeTargetSubschemas

func (x *MergedTypeConfig) GetDeclarativeTargetSubschemas() map[string]*Schemas

func (*MergedTypeConfig) GetNonUniqueFieldsToSubschemaNames

func (x *MergedTypeConfig) GetNonUniqueFieldsToSubschemaNames() map[string]*Schemas

func (*MergedTypeConfig) GetSelectionSets

func (x *MergedTypeConfig) GetSelectionSets() map[string]string

func (*MergedTypeConfig) GetSubschemaNameToResolverInfo

func (x *MergedTypeConfig) GetSubschemaNameToResolverInfo() map[string]*ResolverInfo

func (*MergedTypeConfig) GetTypeName

func (x *MergedTypeConfig) GetTypeName() string

func (*MergedTypeConfig) GetUniqueFieldsToSubschemaName

func (x *MergedTypeConfig) GetUniqueFieldsToSubschemaName() map[string]string

func (*MergedTypeConfig) ProtoMessage

func (*MergedTypeConfig) ProtoMessage()

func (*MergedTypeConfig) ProtoReflect

func (x *MergedTypeConfig) ProtoReflect() protoreflect.Message

func (*MergedTypeConfig) Reset

func (x *MergedTypeConfig) Reset()

func (*MergedTypeConfig) String

func (x *MergedTypeConfig) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Path.ProtoReflect.Descriptor instead.

func (*Path) GetSegments

func (x *Path) GetSegments() []*PathSegment

func (*Path) ProtoMessage

func (*Path) ProtoMessage()

func (*Path) ProtoReflect

func (x *Path) ProtoReflect() protoreflect.Message

func (*Path) Reset

func (x *Path) Reset()

func (*Path) String

func (x *Path) String() string

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) 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 {
	// Extracts all elements from a map or a list
	All bool `protobuf:"varint,3,opt,name=all,proto3,oneof"`
}

type PathSegment_Index

type PathSegment_Index struct {
	// Extract element at list
	Index uint32 `protobuf:"varint,2,opt,name=index,proto3,oneof"`
}

type PathSegment_Key

type PathSegment_Key struct {
	// This will extract a key from a Map value.
	Key string `protobuf:"bytes,1,opt,name=key,proto3,oneof"`
}

type PersistedQueryCacheConfig

type PersistedQueryCacheConfig struct {

	// The unit is number of queries to store, default to 1000.
	CacheSize uint32 `protobuf:"varint,1,opt,name=cache_size,json=cacheSize,proto3" json:"cache_size,omitempty"`
	// contains filtered or unexported fields
}

This message specifies Persisted Query Cache configuration.

func (*PersistedQueryCacheConfig) Descriptor deprecated

func (*PersistedQueryCacheConfig) Descriptor() ([]byte, []int)

Deprecated: Use PersistedQueryCacheConfig.ProtoReflect.Descriptor instead.

func (*PersistedQueryCacheConfig) GetCacheSize

func (x *PersistedQueryCacheConfig) GetCacheSize() uint32

func (*PersistedQueryCacheConfig) ProtoMessage

func (*PersistedQueryCacheConfig) ProtoMessage()

func (*PersistedQueryCacheConfig) ProtoReflect

func (*PersistedQueryCacheConfig) Reset

func (x *PersistedQueryCacheConfig) Reset()

func (*PersistedQueryCacheConfig) String

func (x *PersistedQueryCacheConfig) String() string

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) 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 within the object.
	Field string `protobuf:"bytes,2,opt,name=field,proto3" json:"field,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryMatcher_FieldMatcher) Descriptor deprecated

func (*QueryMatcher_FieldMatcher) Descriptor() ([]byte, []int)

Deprecated: Use QueryMatcher_FieldMatcher.ProtoReflect.Descriptor instead.

func (*QueryMatcher_FieldMatcher) GetField

func (x *QueryMatcher_FieldMatcher) GetField() string

func (*QueryMatcher_FieldMatcher) GetType

func (x *QueryMatcher_FieldMatcher) GetType() string

func (*QueryMatcher_FieldMatcher) ProtoMessage

func (*QueryMatcher_FieldMatcher) ProtoMessage()

func (*QueryMatcher_FieldMatcher) ProtoReflect

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 {
	ServerUri *v3.HttpUri `protobuf:"bytes,1,opt,name=server_uri,json=serverUri,proto3" json:"server_uri,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"`
	// pre-execution engine transformations
	//
	// Request flow: GraphQL request -> request_transform (instantiate REST request) ->
	// REST API resp -> pre_execution_transform -> execution engine ->
	// complete GraphQL field response
	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
}

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) GetServerUri

func (x *RESTResolver) GetServerUri() *v3.HttpUri

func (*RESTResolver) GetSpanName

func (x *RESTResolver) GetSpanName() string

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 */
	// implementation specific, gRPC will want gRPC message and struct to instantiate
	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) 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) 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.
	Resolver *v3.TypedExtensionConfig `protobuf:"bytes,2,opt,name=resolver,proto3" json:"resolver,omitempty"`
	// The stats prefix which will be used for this resolver.
	StatPrefix string `protobuf:"bytes,3,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"`
	// caching configuration, defaults to no caching
	CacheControl *CacheControl `protobuf:"bytes,4,opt,name=cache_control,json=cacheControl,proto3" json:"cache_control,omitempty"`
	// 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) GetCacheControl

func (x *Resolution) GetCacheControl() *CacheControl

func (*Resolution) GetMatcher

func (x *Resolution) GetMatcher() *QueryMatcher

func (*Resolution) GetResolver

func (x *Resolution) GetResolver() *v3.TypedExtensionConfig

func (*Resolution) GetStatPrefix

func (x *Resolution) GetStatPrefix() string

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 ResolverConfig

type ResolverConfig struct {
	SelectionSet string `protobuf:"bytes,1,opt,name=selection_set,json=selectionSet,proto3" json:"selection_set,omitempty"`
	FieldName    string `protobuf:"bytes,2,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"`
	// contains filtered or unexported fields
}

func (*ResolverConfig) Descriptor deprecated

func (*ResolverConfig) Descriptor() ([]byte, []int)

Deprecated: Use ResolverConfig.ProtoReflect.Descriptor instead.

func (*ResolverConfig) GetFieldName

func (x *ResolverConfig) GetFieldName() string

func (*ResolverConfig) GetSelectionSet

func (x *ResolverConfig) GetSelectionSet() string

func (*ResolverConfig) ProtoMessage

func (*ResolverConfig) ProtoMessage()

func (*ResolverConfig) ProtoReflect

func (x *ResolverConfig) ProtoReflect() protoreflect.Message

func (*ResolverConfig) Reset

func (x *ResolverConfig) Reset()

func (*ResolverConfig) String

func (x *ResolverConfig) String() string

type ResolverInfo

type ResolverInfo struct {
	FieldName string     `protobuf:"bytes,1,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"`
	Args      []*ArgPath `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

func (*ResolverInfo) Descriptor deprecated

func (*ResolverInfo) Descriptor() ([]byte, []int)

Deprecated: Use ResolverInfo.ProtoReflect.Descriptor instead.

func (*ResolverInfo) GetArgs

func (x *ResolverInfo) GetArgs() []*ArgPath

func (*ResolverInfo) GetFieldName

func (x *ResolverInfo) GetFieldName() string

func (*ResolverInfo) ProtoMessage

func (*ResolverInfo) ProtoMessage()

func (*ResolverInfo) ProtoReflect

func (x *ResolverInfo) ProtoReflect() protoreflect.Message

func (*ResolverInfo) Reset

func (x *ResolverInfo) Reset()

func (*ResolverInfo) String

func (x *ResolverInfo) String() string

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]*TemplatedPath `` /* 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) GetResultRoot

func (x *ResponseTemplate) GetResultRoot() []*PathSegment

func (*ResponseTemplate) GetSetters

func (x *ResponseTemplate) GetSetters() map[string]*TemplatedPath

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 Schemas

type Schemas struct {
	Schemas []string `protobuf:"bytes,1,rep,name=schemas,proto3" json:"schemas,omitempty"`
	// contains filtered or unexported fields
}

func (*Schemas) Descriptor deprecated

func (*Schemas) Descriptor() ([]byte, []int)

Deprecated: Use Schemas.ProtoReflect.Descriptor instead.

func (*Schemas) GetSchemas

func (x *Schemas) GetSchemas() []string

func (*Schemas) ProtoMessage

func (*Schemas) ProtoMessage()

func (*Schemas) ProtoReflect

func (x *Schemas) ProtoReflect() protoreflect.Message

func (*Schemas) Reset

func (x *Schemas) Reset()

func (*Schemas) String

func (x *Schemas) String() string

type StaticResolver

type StaticResolver struct {

	// Types that are assignable to Response:
	//
	//	*StaticResolver_SyncResponse
	//	*StaticResolver_AsyncResponse_
	//	*StaticResolver_ErrorResponse
	Response isStaticResolver_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

Only meant for integration testing

func (*StaticResolver) Descriptor deprecated

func (*StaticResolver) Descriptor() ([]byte, []int)

Deprecated: Use StaticResolver.ProtoReflect.Descriptor instead.

func (*StaticResolver) GetAsyncResponse

func (x *StaticResolver) GetAsyncResponse() *StaticResolver_AsyncResponse

func (*StaticResolver) GetErrorResponse

func (x *StaticResolver) GetErrorResponse() string

func (*StaticResolver) GetResponse

func (m *StaticResolver) GetResponse() isStaticResolver_Response

func (*StaticResolver) GetSyncResponse

func (x *StaticResolver) GetSyncResponse() string

func (*StaticResolver) ProtoMessage

func (*StaticResolver) ProtoMessage()

func (*StaticResolver) ProtoReflect

func (x *StaticResolver) ProtoReflect() protoreflect.Message

func (*StaticResolver) Reset

func (x *StaticResolver) Reset()

func (*StaticResolver) String

func (x *StaticResolver) String() string

type StaticResolver_AsyncResponse

type StaticResolver_AsyncResponse struct {
	Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	DelayMs  uint32 `protobuf:"varint,2,opt,name=delay_ms,json=delayMs,proto3" json:"delay_ms,omitempty"`
	// contains filtered or unexported fields
}

func (*StaticResolver_AsyncResponse) Descriptor deprecated

func (*StaticResolver_AsyncResponse) Descriptor() ([]byte, []int)

Deprecated: Use StaticResolver_AsyncResponse.ProtoReflect.Descriptor instead.

func (*StaticResolver_AsyncResponse) GetDelayMs

func (x *StaticResolver_AsyncResponse) GetDelayMs() uint32

func (*StaticResolver_AsyncResponse) GetResponse

func (x *StaticResolver_AsyncResponse) GetResponse() string

func (*StaticResolver_AsyncResponse) ProtoMessage

func (*StaticResolver_AsyncResponse) ProtoMessage()

func (*StaticResolver_AsyncResponse) ProtoReflect

func (*StaticResolver_AsyncResponse) Reset

func (x *StaticResolver_AsyncResponse) Reset()

func (*StaticResolver_AsyncResponse) String

type StaticResolver_AsyncResponse_

type StaticResolver_AsyncResponse_ struct {
	// Responds asynchronously after delay_ms
	AsyncResponse *StaticResolver_AsyncResponse `protobuf:"bytes,2,opt,name=async_response,json=asyncResponse,proto3,oneof"`
}

type StaticResolver_ErrorResponse

type StaticResolver_ErrorResponse struct {
	ErrorResponse string `protobuf:"bytes,3,opt,name=error_response,json=errorResponse,proto3,oneof"`
}

type StaticResolver_SyncResponse

type StaticResolver_SyncResponse struct {
	// Responds synchronously (on the same dispatch loop as the resolve call)
	SyncResponse string `protobuf:"bytes,1,opt,name=sync_response,json=syncResponse,proto3,oneof"`
}

type StitchingInfo

type StitchingInfo struct {
	FieldNodesByType               map[string]*FieldNodes                    `` /* 201-byte string literal not displayed */
	FieldNodesByField              map[string]*FieldNodeMap                  `` /* 204-byte string literal not displayed */
	MergedTypes                    map[string]*MergedTypeConfig              `` /* 182-byte string literal not displayed */
	SubschemaNameToSubschemaConfig map[string]*StitchingInfo_SubschemaConfig `` /* 245-byte string literal not displayed */
	// contains filtered or unexported fields
}

Data plane stitching info extension message

func (*StitchingInfo) Descriptor deprecated

func (*StitchingInfo) Descriptor() ([]byte, []int)

Deprecated: Use StitchingInfo.ProtoReflect.Descriptor instead.

func (*StitchingInfo) GetFieldNodesByField

func (x *StitchingInfo) GetFieldNodesByField() map[string]*FieldNodeMap

func (*StitchingInfo) GetFieldNodesByType

func (x *StitchingInfo) GetFieldNodesByType() map[string]*FieldNodes

func (*StitchingInfo) GetMergedTypes

func (x *StitchingInfo) GetMergedTypes() map[string]*MergedTypeConfig

func (*StitchingInfo) GetSubschemaNameToSubschemaConfig

func (x *StitchingInfo) GetSubschemaNameToSubschemaConfig() map[string]*StitchingInfo_SubschemaConfig

func (*StitchingInfo) ProtoMessage

func (*StitchingInfo) ProtoMessage()

func (*StitchingInfo) ProtoReflect

func (x *StitchingInfo) ProtoReflect() protoreflect.Message

func (*StitchingInfo) Reset

func (x *StitchingInfo) Reset()

func (*StitchingInfo) String

func (x *StitchingInfo) String() string

type StitchingInfo_SubschemaConfig

type StitchingInfo_SubschemaConfig struct {
	ExecutableSchema *ExecutableSchema `protobuf:"bytes,1,opt,name=executable_schema,json=executableSchema,proto3" json:"executable_schema,omitempty"`
	// contains filtered or unexported fields
}

func (*StitchingInfo_SubschemaConfig) Descriptor deprecated

func (*StitchingInfo_SubschemaConfig) Descriptor() ([]byte, []int)

Deprecated: Use StitchingInfo_SubschemaConfig.ProtoReflect.Descriptor instead.

func (*StitchingInfo_SubschemaConfig) GetExecutableSchema

func (x *StitchingInfo_SubschemaConfig) GetExecutableSchema() *ExecutableSchema

func (*StitchingInfo_SubschemaConfig) ProtoMessage

func (*StitchingInfo_SubschemaConfig) ProtoMessage()

func (*StitchingInfo_SubschemaConfig) ProtoReflect

func (*StitchingInfo_SubschemaConfig) Reset

func (x *StitchingInfo_SubschemaConfig) Reset()

func (*StitchingInfo_SubschemaConfig) String

type StitchingResolver

type StitchingResolver struct {

	// Each query field comes from a specific subschema,
	// this is the name of the subschema that the query field comes from.
	SubschemaName string `protobuf:"bytes,1,opt,name=subschema_name,json=subschemaName,proto3" json:"subschema_name,omitempty"`
	// contains filtered or unexported fields
}

Config for the stitching resolver

func (*StitchingResolver) Descriptor deprecated

func (*StitchingResolver) Descriptor() ([]byte, []int)

Deprecated: Use StitchingResolver.ProtoReflect.Descriptor instead.

func (*StitchingResolver) GetSubschemaName

func (x *StitchingResolver) GetSubschemaName() string

func (*StitchingResolver) ProtoMessage

func (*StitchingResolver) ProtoMessage()

func (*StitchingResolver) ProtoReflect

func (x *StitchingResolver) ProtoReflect() protoreflect.Message

func (*StitchingResolver) Reset

func (x *StitchingResolver) Reset()

func (*StitchingResolver) String

func (x *StitchingResolver) String() string

type TemplatedPath

type TemplatedPath struct {

	// If non-empty, Inserts named paths into a template string.
	// For example, if the template is '/api/{apiVersionPath}/pet/{petIdPath}'
	// and we have two named paths defined in `named_paths`, apiVersionPath and petIdPath, with extracted values 'v2' and '123' respectively,
	// the final resulting value will be '/api/v2/pet/123'
	// Use {PATH_NAME} as the interpolation notation (even repeated) regardless of the type of the
	// provided value.
	// If an undefined PATH_NAME is used in the template, this will nack during configuration.
	// If this is empty, only the value of the first provider will be used as the resulting value.
	PathTemplate string           `protobuf:"bytes,1,opt,name=path_template,json=pathTemplate,proto3" json:"path_template,omitempty"`
	NamedPaths   map[string]*Path `` /* 179-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TemplatedPath) Descriptor deprecated

func (*TemplatedPath) Descriptor() ([]byte, []int)

Deprecated: Use TemplatedPath.ProtoReflect.Descriptor instead.

func (*TemplatedPath) GetNamedPaths

func (x *TemplatedPath) GetNamedPaths() map[string]*Path

func (*TemplatedPath) GetPathTemplate

func (x *TemplatedPath) GetPathTemplate() string

func (*TemplatedPath) ProtoMessage

func (*TemplatedPath) ProtoMessage()

func (*TemplatedPath) ProtoReflect

func (x *TemplatedPath) ProtoReflect() protoreflect.Message

func (*TemplatedPath) Reset

func (x *TemplatedPath) Reset()

func (*TemplatedPath) String

func (x *TemplatedPath) String() string

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 two 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) 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"`
	// contains filtered or unexported fields
}

func (*ValueProvider_GraphQLArgExtraction) Descriptor deprecated

func (*ValueProvider_GraphQLArgExtraction) Descriptor() ([]byte, []int)

Deprecated: Use ValueProvider_GraphQLArgExtraction.ProtoReflect.Descriptor instead.

func (*ValueProvider_GraphQLArgExtraction) GetArgName

func (*ValueProvider_GraphQLArgExtraction) GetPath

func (*ValueProvider_GraphQLArgExtraction) ProtoMessage

func (*ValueProvider_GraphQLArgExtraction) ProtoMessage()

func (*ValueProvider_GraphQLArgExtraction) ProtoReflect

func (*ValueProvider_GraphQLArgExtraction) Reset

func (*ValueProvider_GraphQLArgExtraction) 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) Descriptor deprecated

func (*ValueProvider_GraphQLParentExtraction) Descriptor() ([]byte, []int)

Deprecated: Use ValueProvider_GraphQLParentExtraction.ProtoReflect.Descriptor instead.

func (*ValueProvider_GraphQLParentExtraction) GetPath

func (*ValueProvider_GraphQLParentExtraction) ProtoMessage

func (*ValueProvider_GraphQLParentExtraction) ProtoMessage()

func (*ValueProvider_GraphQLParentExtraction) ProtoReflect

func (*ValueProvider_GraphQLParentExtraction) Reset

func (*ValueProvider_GraphQLParentExtraction) 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) Descriptor deprecated

func (*ValueProvider_Provider) Descriptor() ([]byte, []int)

Deprecated: Use ValueProvider_Provider.ProtoReflect.Descriptor instead.

func (*ValueProvider_Provider) GetGraphqlArg

func (*ValueProvider_Provider) GetGraphqlParent

func (*ValueProvider_Provider) GetProvider

func (m *ValueProvider_Provider) GetProvider() isValueProvider_Provider_Provider

func (*ValueProvider_Provider) GetTypedProvider

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 `` /* 141-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) Descriptor deprecated

func (*ValueProvider_TypedValueProvider) Descriptor() ([]byte, []int)

Deprecated: Use ValueProvider_TypedValueProvider.ProtoReflect.Descriptor instead.

func (*ValueProvider_TypedValueProvider) GetHeader

func (*ValueProvider_TypedValueProvider) GetType

func (*ValueProvider_TypedValueProvider) GetValProvider

func (m *ValueProvider_TypedValueProvider) GetValProvider() isValueProvider_TypedValueProvider_ValProvider

func (*ValueProvider_TypedValueProvider) GetValue

func (*ValueProvider_TypedValueProvider) ProtoMessage

func (*ValueProvider_TypedValueProvider) ProtoMessage()

func (*ValueProvider_TypedValueProvider) ProtoReflect

func (*ValueProvider_TypedValueProvider) Reset

func (*ValueProvider_TypedValueProvider) 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

if empty, defaults to string. similar to typeUrl in other envoy config

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) Enum

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 (ValueProvider_TypedValueProvider_Type) String

func (ValueProvider_TypedValueProvider_Type) Type

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL