{"modulePath":"github.com/newstack-cloud/bluelink/libs/plugin-framework","version":"v0.17.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package transformerserverv1\n\n## Constants\n\n```go\nconst (\n\tTransformer_GetTransformName_FullMethodName                     = \"/transformerserverv1.Transformer/GetTransformName\"\n\tTransformer_GetConfigDefinition_FullMethodName                  = \"/transformerserverv1.Transformer/GetConfigDefinition\"\n\tTransformer_Transform_FullMethodName                            = \"/transformerserverv1.Transformer/Transform\"\n\tTransformer_ListAbstractResourceTypes_FullMethodName            = \"/transformerserverv1.Transformer/ListAbstractResourceTypes\"\n\tTransformer_ListAbstractLinkTypes_FullMethodName                = \"/transformerserverv1.Transformer/ListAbstractLinkTypes\"\n\tTransformer_ValidateLinks_FullMethodName                        = \"/transformerserverv1.Transformer/ValidateLinks\"\n\tTransformer_CustomValidateAbstractResource_FullMethodName       = \"/transformerserverv1.Transformer/CustomValidateAbstractResource\"\n\tTransformer_GetAbstractResourceSpecDefinition_FullMethodName    = \"/transformerserverv1.Transformer/GetAbstractResourceSpecDefinition\"\n\tTransformer_CanAbstractResourceLinkTo_FullMethodName            = \"/transformerserverv1.Transformer/CanAbstractResourceLinkTo\"\n\tTransformer_IsAbstractResourceCommonTerminal_FullMethodName     = \"/transformerserverv1.Transformer/IsAbstractResourceCommonTerminal\"\n\tTransformer_GetAbstractResourceType_FullMethodName              = \"/transformerserverv1.Transformer/GetAbstractResourceType\"\n\tTransformer_GetAbstractResourceTypeDescription_FullMethodName   = \"/transformerserverv1.Transformer/GetAbstractResourceTypeDescription\"\n\tTransformer_GetAbstractResourceExamples_FullMethodName          = \"/transformerserverv1.Transformer/GetAbstractResourceExamples\"\n\tTransformer_GetAbstractLinkType_FullMethodName                  = \"/transformerserverv1.Transformer/GetAbstractLinkType\"\n\tTransformer_GetAbstractLinkTypeDescription_FullMethodName       = \"/transformerserverv1.Transformer/GetAbstractLinkTypeDescription\"\n\tTransformer_GetAbstractLinkAnnotationDefinitions_FullMethodName = \"/transformerserverv1.Transformer/GetAbstractLinkAnnotationDefinitions\"\n\tTransformer_GetAbstractLinkCardinality_FullMethodName           = \"/transformerserverv1.Transformer/GetAbstractLinkCardinality\"\n)\n```\n\n```go\nconst (\n\t// The protocol version that is used during the handshake to ensure the plugin\n\t// is compatible with the host service.\n\tProtocolVersion = \"1.0\"\n)\n```\n\n## Variables\n\n```go\nvar File_plugin_framework_transformerserverv1_transformer_proto protoreflect.FileDescriptor\n```\n\n```go\nvar Transformer_ServiceDesc = grpc.ServiceDesc{\n\tServiceName: \"transformerserverv1.Transformer\",\n\tHandlerType: (*TransformerServer)(nil),\n\tMethods: []grpc.MethodDesc{\n\t\t{\n\t\t\tMethodName: \"GetTransformName\",\n\t\t\tHandler:    _Transformer_GetTransformName_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"GetConfigDefinition\",\n\t\t\tHandler:    _Transformer_GetConfigDefinition_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"Transform\",\n\t\t\tHandler:    _Transformer_Transform_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"ListAbstractResourceTypes\",\n\t\t\tHandler:    _Transformer_ListAbstractResourceTypes_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"ListAbstractLinkTypes\",\n\t\t\tHandler:    _Transformer_ListAbstractLinkTypes_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"ValidateLinks\",\n\t\t\tHandler:    _Transformer_ValidateLinks_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"CustomValidateAbstractResource\",\n\t\t\tHandler:    _Transformer_CustomValidateAbstractResource_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"GetAbstractResourceSpecDefinition\",\n\t\t\tHandler:    _Transformer_GetAbstractResourceSpecDefinition_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"CanAbstractResourceLinkTo\",\n\t\t\tHandler:    _Transformer_CanAbstractResourceLinkTo_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"IsAbstractResourceCommonTerminal\",\n\t\t\tHandler:    _Transformer_IsAbstractResourceCommonTerminal_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"GetAbstractResourceType\",\n\t\t\tHandler:    _Transformer_GetAbstractResourceType_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"GetAbstractResourceTypeDescription\",\n\t\t\tHandler:    _Transformer_GetAbstractResourceTypeDescription_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"GetAbstractResourceExamples\",\n\t\t\tHandler:    _Transformer_GetAbstractResourceExamples_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"GetAbstractLinkType\",\n\t\t\tHandler:    _Transformer_GetAbstractLinkType_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"GetAbstractLinkTypeDescription\",\n\t\t\tHandler:    _Transformer_GetAbstractLinkTypeDescription_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"GetAbstractLinkAnnotationDefinitions\",\n\t\t\tHandler:    _Transformer_GetAbstractLinkAnnotationDefinitions_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"GetAbstractLinkCardinality\",\n\t\t\tHandler:    _Transformer_GetAbstractLinkCardinality_Handler,\n\t\t},\n\t},\n\tStreams:  []grpc.StreamDesc{},\n\tMetadata: \"plugin-framework/transformerserverv1/transformer.proto\",\n}\n```\nTransformer\\_ServiceDesc is the grpc.ServiceDesc for Transformer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)\n\n## Functions\n\n```go\nfunc NewServer(\n\tpluginID string,\n\tpluginMetadata *pluginservicev1.PluginMetadata,\n\ttransformer TransformerServer,\n\tpluginServiceClient pluginservicev1.ServiceClient,\n\thostInfoContainer pluginutils.HostInfoContainer,\n\topts ...pluginbase.ServerOption[TransformerServer],\n) *pluginbase.Server[TransformerServer]\n```\nNewServer creates a new plugin server for a transformer plugin, taking care of registration and running the server.\n\n```go\nfunc RegisterTransformerServer(s grpc.ServiceRegistrar, srv TransformerServer)\n```\n\n```go\nfunc WrapTransformerClient(client TransformerClient, hostID string) transform.SpecTransformer\n```\nWrapTransformerClient wraps a transformer plugin v1 TransformerClient in a blueprint framework SpecTransformer to allow the deploy engine to interact with the transformer in a way that is compatible with the blueprint framework and is agnostic to the underlying communication protocol.\n\n```go\nfunc WrapTransformerWithDerivedCanLinkTo(\n\tt transform.SpecTransformer,\n) transform.SpecTransformer\n```\nWrapTransformerWithDerivedCanLinkTo wraps a transformer to automatically derive ResourceCanLinkTo from abstract link types defined for a given transformer. This eliminates the need for plugin developers to manually maintain ResourceCanLinkTo lists.\n\n## Types\n\n```go\ntype AbstractLinkType struct {\n\tLinkType string `protobuf:\"bytes,1,opt,name=link_type,json=linkType\" json:\"link_type,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nAbstractLinkType holds the type of an abstract link in a blueprint spec.\n\n```go\nfunc (*AbstractLinkType) Descriptor() ([]byte, []int)\n```\nDeprecated: Use AbstractLinkType.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *AbstractLinkType) GetLinkType() string\n```\n\n```go\nfunc (*AbstractLinkType) ProtoMessage()\n```\n\n```go\nfunc (x *AbstractLinkType) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *AbstractLinkType) Reset()\n```\n\n```go\nfunc (x *AbstractLinkType) String() string\n```\n\n```go\ntype AbstractLinkTypes struct {\n\tLinkTypes []string `protobuf:\"bytes,1,rep,name=link_types,json=linkTypes\" json:\"link_types,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nAbstractLinkTypes holds a list of link types that are implemented by the transformer.\n\n```go\nfunc (*AbstractLinkTypes) Descriptor() ([]byte, []int)\n```\nDeprecated: Use AbstractLinkTypes.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *AbstractLinkTypes) GetLinkTypes() []string\n```\n\n```go\nfunc (*AbstractLinkTypes) ProtoMessage()\n```\n\n```go\nfunc (x *AbstractLinkTypes) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *AbstractLinkTypes) Reset()\n```\n\n```go\nfunc (x *AbstractLinkTypes) String() string\n```\n\n```go\ntype AbstractLinkTypesResponse struct {\n\n\t// Types that are valid to be assigned to Response:\n\t//\n\t//\t*AbstractLinkTypesResponse_LinkTypes\n\t//\t*AbstractLinkTypesResponse_ErrorResponse\n\tResponse isAbstractLinkTypesResponse_Response `protobuf_oneof:\"response\"`\n\t// contains filtered or unexported fields\n}\n```\nAbstractLinkTypesResponse contains the response for requesting a list of all the abstract link types that are implemented by the transformer.\n\n```go\nfunc (*AbstractLinkTypesResponse) Descriptor() ([]byte, []int)\n```\nDeprecated: Use AbstractLinkTypesResponse.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *AbstractLinkTypesResponse) GetErrorResponse() *sharedtypesv1.ErrorResponse\n```\n\n```go\nfunc (x *AbstractLinkTypesResponse) GetLinkTypes() *AbstractLinkTypes\n```\n\n```go\nfunc (x *AbstractLinkTypesResponse) GetResponse() isAbstractLinkTypesResponse_Response\n```\n\n```go\nfunc (*AbstractLinkTypesResponse) ProtoMessage()\n```\n\n```go\nfunc (x *AbstractLinkTypesResponse) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *AbstractLinkTypesResponse) Reset()\n```\n\n```go\nfunc (x *AbstractLinkTypesResponse) String() string\n```\n\n```go\ntype AbstractLinkTypesResponse_ErrorResponse struct {\n\tErrorResponse *sharedtypesv1.ErrorResponse `protobuf:\"bytes,2,opt,name=error_response,json=errorResponse,oneof\"`\n}\n```\n\n```go\ntype AbstractLinkTypesResponse_LinkTypes struct {\n\tLinkTypes *AbstractLinkTypes `protobuf:\"bytes,1,opt,name=link_types,json=linkTypes,oneof\"`\n}\n```\n\n```go\ntype AbstractResourceRequest struct {\n\n\t// The type of resource to carry out an action on or retrieve\n\t// some information about.\n\tAbstractResourceType *sharedtypesv1.ResourceType `protobuf:\"bytes,1,opt,name=abstract_resource_type,json=abstractResourceType\" json:\"abstract_resource_type,omitempty\"`\n\t// The ID of the host making the request\n\t// to the transformer.\n\tHostId string `protobuf:\"bytes,2,opt,name=host_id,json=hostId\" json:\"host_id,omitempty\"`\n\t// Runtime configuration for the current environment\n\t// specific to the current transformer.\n\tContext *TransformerContext `protobuf:\"bytes,3,opt,name=context\" json:\"context,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nAbstractResourceRequest is the request input for general abstract resource type requests that only require a resource type and the current context.\n\n```go\nfunc (*AbstractResourceRequest) Descriptor() ([]byte, []int)\n```\nDeprecated: Use AbstractResourceRequest.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *AbstractResourceRequest) GetAbstractResourceType() *sharedtypesv1.ResourceType\n```\n\n```go\nfunc (x *AbstractResourceRequest) GetContext() *TransformerContext\n```\n\n```go\nfunc (x *AbstractResourceRequest) GetHostId() string\n```\n\n```go\nfunc (*AbstractResourceRequest) ProtoMessage()\n```\n\n```go\nfunc (x *AbstractResourceRequest) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *AbstractResourceRequest) Reset()\n```\n\n```go\nfunc (x *AbstractResourceRequest) String() string\n```\n\n```go\ntype AbstractResourceSpecDefinitionResponse struct {\n\n\t// Types that are valid to be assigned to Response:\n\t//\n\t//\t*AbstractResourceSpecDefinitionResponse_SpecDefinition\n\t//\t*AbstractResourceSpecDefinitionResponse_ErrorResponse\n\tResponse isAbstractResourceSpecDefinitionResponse_Response `protobuf_oneof:\"response\"`\n\t// contains filtered or unexported fields\n}\n```\nAbstractResourceSpecDefinitionResponse is the response containing the spec definition for a given abstract resource type.\n\n```go\nfunc (*AbstractResourceSpecDefinitionResponse) Descriptor() ([]byte, []int)\n```\nDeprecated: Use AbstractResourceSpecDefinitionResponse.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *AbstractResourceSpecDefinitionResponse) GetErrorResponse() *sharedtypesv1.ErrorResponse\n```\n\n```go\nfunc (x *AbstractResourceSpecDefinitionResponse) GetResponse() isAbstractResourceSpecDefinitionResponse_Response\n```\n\n```go\nfunc (x *AbstractResourceSpecDefinitionResponse) GetSpecDefinition() *sharedtypesv1.ResourceSpecDefinition\n```\n\n```go\nfunc (*AbstractResourceSpecDefinitionResponse) ProtoMessage()\n```\n\n```go\nfunc (x *AbstractResourceSpecDefinitionResponse) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *AbstractResourceSpecDefinitionResponse) Reset()\n```\n\n```go\nfunc (x *AbstractResourceSpecDefinitionResponse) String() string\n```\n\n```go\ntype AbstractResourceSpecDefinitionResponse_ErrorResponse struct {\n\tErrorResponse *sharedtypesv1.ErrorResponse `protobuf:\"bytes,2,opt,name=error_response,json=errorResponse,oneof\"`\n}\n```\n\n```go\ntype AbstractResourceSpecDefinitionResponse_SpecDefinition struct {\n\tSpecDefinition *sharedtypesv1.ResourceSpecDefinition `protobuf:\"bytes,1,opt,name=spec_definition,json=specDefinition,oneof\"`\n}\n```\n\n```go\ntype AbstractResourceTypes struct {\n\tResourceTypes []*sharedtypesv1.ResourceType `protobuf:\"bytes,1,rep,name=resource_types,json=resourceTypes\" json:\"resource_types,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nAbstractResourceTypes holds a list of resource types that are implemented by the transformer.\n\n```go\nfunc (*AbstractResourceTypes) Descriptor() ([]byte, []int)\n```\nDeprecated: Use AbstractResourceTypes.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *AbstractResourceTypes) GetResourceTypes() []*sharedtypesv1.ResourceType\n```\n\n```go\nfunc (*AbstractResourceTypes) ProtoMessage()\n```\n\n```go\nfunc (x *AbstractResourceTypes) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *AbstractResourceTypes) Reset()\n```\n\n```go\nfunc (x *AbstractResourceTypes) String() string\n```\n\n```go\ntype AbstractResourceTypesResponse struct {\n\n\t// Types that are valid to be assigned to Response:\n\t//\n\t//\t*AbstractResourceTypesResponse_AbstractResourceTypes\n\t//\t*AbstractResourceTypesResponse_ErrorResponse\n\tResponse isAbstractResourceTypesResponse_Response `protobuf_oneof:\"response\"`\n\t// contains filtered or unexported fields\n}\n```\nAbstractResourceTypesResponse contains the response for requesting a list of all the abstract resource types that are implemented by the transformer.\n\n```go\nfunc (*AbstractResourceTypesResponse) Descriptor() ([]byte, []int)\n```\nDeprecated: Use AbstractResourceTypesResponse.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *AbstractResourceTypesResponse) GetAbstractResourceTypes() *AbstractResourceTypes\n```\n\n```go\nfunc (x *AbstractResourceTypesResponse) GetErrorResponse() *sharedtypesv1.ErrorResponse\n```\n\n```go\nfunc (x *AbstractResourceTypesResponse) GetResponse() isAbstractResourceTypesResponse_Response\n```\n\n```go\nfunc (*AbstractResourceTypesResponse) ProtoMessage()\n```\n\n```go\nfunc (x *AbstractResourceTypesResponse) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *AbstractResourceTypesResponse) Reset()\n```\n\n```go\nfunc (x *AbstractResourceTypesResponse) String() string\n```\n\n```go\ntype AbstractResourceTypesResponse_AbstractResourceTypes struct {\n\tAbstractResourceTypes *AbstractResourceTypes `protobuf:\"bytes,1,opt,name=abstract_resource_types,json=abstractResourceTypes,oneof\"`\n}\n```\n\n```go\ntype AbstractResourceTypesResponse_ErrorResponse struct {\n\tErrorResponse *sharedtypesv1.ErrorResponse `protobuf:\"bytes,2,opt,name=error_response,json=errorResponse,oneof\"`\n}\n```\n\n```go\ntype BlueprintTransformRequest struct {\n\n\t// The blueprint that should be transformed.\n\tInputBlueprint *schemapb.Blueprint `protobuf:\"bytes,1,opt,name=input_blueprint,json=inputBlueprint\" json:\"input_blueprint,omitempty\"`\n\t// The resolved link graph for the blueprint.\n\tLinkGraph *DeclaredLinkGraph `protobuf:\"bytes,2,opt,name=link_graph,json=linkGraph\" json:\"link_graph,omitempty\"`\n\t// The ID of the host making the request\n\t// to the transformer.\n\tHostId string `protobuf:\"bytes,3,opt,name=host_id,json=hostId\" json:\"host_id,omitempty\"`\n\t// Runtime configuration for the current environment\n\t// specific to the current transformer.\n\tContext *TransformerContext `protobuf:\"bytes,4,opt,name=context\" json:\"context,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nBlueprintTransformRequest is the request for transforming a blueprint.\n\n```go\nfunc (*BlueprintTransformRequest) Descriptor() ([]byte, []int)\n```\nDeprecated: Use BlueprintTransformRequest.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *BlueprintTransformRequest) GetContext() *TransformerContext\n```\n\n```go\nfunc (x *BlueprintTransformRequest) GetHostId() string\n```\n\n```go\nfunc (x *BlueprintTransformRequest) GetInputBlueprint() *schemapb.Blueprint\n```\n\n```go\nfunc (x *BlueprintTransformRequest) GetLinkGraph() *DeclaredLinkGraph\n```\n\n```go\nfunc (*BlueprintTransformRequest) ProtoMessage()\n```\n\n```go\nfunc (x *BlueprintTransformRequest) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *BlueprintTransformRequest) Reset()\n```\n\n```go\nfunc (x *BlueprintTransformRequest) String() string\n```\n\n```go\ntype BlueprintTransformResponse struct {\n\n\t// Types that are valid to be assigned to Response:\n\t//\n\t//\t*BlueprintTransformResponse_Result\n\t//\t*BlueprintTransformResponse_ErrorResponse\n\tResponse isBlueprintTransformResponse_Response `protobuf_oneof:\"response\"`\n\t// contains filtered or unexported fields\n}\n```\nBlueprintTransformResponse is the response for transforming a blueprint.\n\n```go\nfunc (*BlueprintTransformResponse) Descriptor() ([]byte, []int)\n```\nDeprecated: Use BlueprintTransformResponse.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *BlueprintTransformResponse) GetErrorResponse() *sharedtypesv1.ErrorResponse\n```\n\n```go\nfunc (x *BlueprintTransformResponse) GetResponse() isBlueprintTransformResponse_Response\n```\n\n```go\nfunc (x *BlueprintTransformResponse) GetResult() *BlueprintTransformResult\n```\n\n```go\nfunc (*BlueprintTransformResponse) ProtoMessage()\n```\n\n```go\nfunc (x *BlueprintTransformResponse) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *BlueprintTransformResponse) Reset()\n```\n\n```go\nfunc (x *BlueprintTransformResponse) String() string\n```\n\n```go\ntype BlueprintTransformResponse_ErrorResponse struct {\n\t// An error response if the transformation failed.\n\tErrorResponse *sharedtypesv1.ErrorResponse `protobuf:\"bytes,2,opt,name=error_response,json=errorResponse,oneof\"`\n}\n```\n\n```go\ntype BlueprintTransformResponse_Result struct {\n\t// The transformed blueprint result including diagnostics\n\t// if any were produced during transformation.\n\tResult *BlueprintTransformResult `protobuf:\"bytes,1,opt,name=result,oneof\"`\n}\n```\n\n```go\ntype BlueprintTransformResult struct {\n\n\t// The transformed blueprint after transformation.\n\tTransformedBlueprint *schemapb.Blueprint `protobuf:\"bytes,1,opt,name=transformed_blueprint,json=transformedBlueprint\" json:\"transformed_blueprint,omitempty\"`\n\t// Diagnostics that were produced during transformation,\n\t// this can include warnings and informational messages.\n\tDiagnostics []*sharedtypesv1.Diagnostic `protobuf:\"bytes,2,rep,name=diagnostics\" json:\"diagnostics,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nBlueprintTransformResult holds the result of a blueprint transformation including the transformed blueprint and any diagnostics that were produced during transformation.\n\n```go\nfunc (*BlueprintTransformResult) Descriptor() ([]byte, []int)\n```\nDeprecated: Use BlueprintTransformResult.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *BlueprintTransformResult) GetDiagnostics() []*sharedtypesv1.Diagnostic\n```\n\n```go\nfunc (x *BlueprintTransformResult) GetTransformedBlueprint() *schemapb.Blueprint\n```\n\n```go\nfunc (*BlueprintTransformResult) ProtoMessage()\n```\n\n```go\nfunc (x *BlueprintTransformResult) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *BlueprintTransformResult) Reset()\n```\n\n```go\nfunc (x *BlueprintTransformResult) String() string\n```\n\n```go\ntype CanAbstractResourceLinkToResponse struct {\n\n\t// Types that are valid to be assigned to Response:\n\t//\n\t//\t*CanAbstractResourceLinkToResponse_ResourceTypes\n\t//\t*CanAbstractResourceLinkToResponse_ErrorResponse\n\tResponse isCanAbstractResourceLinkToResponse_Response `protobuf_oneof:\"response\"`\n\t// contains filtered or unexported fields\n}\n```\nCanAbstractResourceLinkToResponse is the response for a request to get all the resource types that a given abstract resource type can link to.\n\n```go\nfunc (*CanAbstractResourceLinkToResponse) Descriptor() ([]byte, []int)\n```\nDeprecated: Use CanAbstractResourceLinkToResponse.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *CanAbstractResourceLinkToResponse) GetErrorResponse() *sharedtypesv1.ErrorResponse\n```\n\n```go\nfunc (x *CanAbstractResourceLinkToResponse) GetResourceTypes() *sharedtypesv1.CanLinkTo\n```\n\n```go\nfunc (x *CanAbstractResourceLinkToResponse) GetResponse() isCanAbstractResourceLinkToResponse_Response\n```\n\n```go\nfunc (*CanAbstractResourceLinkToResponse) ProtoMessage()\n```\n\n```go\nfunc (x *CanAbstractResourceLinkToResponse) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *CanAbstractResourceLinkToResponse) Reset()\n```\n\n```go\nfunc (x *CanAbstractResourceLinkToResponse) String() string\n```\n\n```go\ntype CanAbstractResourceLinkToResponse_ErrorResponse struct {\n\tErrorResponse *sharedtypesv1.ErrorResponse `protobuf:\"bytes,2,opt,name=error_response,json=errorResponse,oneof\"`\n}\n```\n\n```go\ntype CanAbstractResourceLinkToResponse_ResourceTypes struct {\n\tResourceTypes *sharedtypesv1.CanLinkTo `protobuf:\"bytes,1,opt,name=resource_types,json=resourceTypes,oneof\"`\n}\n```\n\n```go\ntype CustomValidateAbstractResourceCompleteResponse struct {\n\tDiagnostics []*sharedtypesv1.Diagnostic `protobuf:\"bytes,1,rep,name=diagnostics\" json:\"diagnostics,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nCustomValidateAbstractResourceCompleteResponse is the response returned by the transformer plugin when custom resource validation has been completed.\n\n```go\nfunc (*CustomValidateAbstractResourceCompleteResponse) Descriptor() ([]byte, []int)\n```\nDeprecated: Use CustomValidateAbstractResourceCompleteResponse.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *CustomValidateAbstractResourceCompleteResponse) GetDiagnostics() []*sharedtypesv1.Diagnostic\n```\n\n```go\nfunc (*CustomValidateAbstractResourceCompleteResponse) ProtoMessage()\n```\n\n```go\nfunc (x *CustomValidateAbstractResourceCompleteResponse) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *CustomValidateAbstractResourceCompleteResponse) Reset()\n```\n\n```go\nfunc (x *CustomValidateAbstractResourceCompleteResponse) String() string\n```\n\n```go\ntype CustomValidateAbstractResourceRequest struct {\n\n\t// The type of resource being validate.\n\tAbstractResourceType *sharedtypesv1.ResourceType `protobuf:\"bytes,1,opt,name=abstract_resource_type,json=abstractResourceType\" json:\"abstract_resource_type,omitempty\"`\n\t// The ID of the host making the request\n\t// to the transformer.\n\tHostId string `protobuf:\"bytes,2,opt,name=host_id,json=hostId\" json:\"host_id,omitempty\"`\n\t// The resource schema as parsed within a blueprint.\n\tSchemaResource *schemapb.Resource `protobuf:\"bytes,3,opt,name=schema_resource,json=schemaResource\" json:\"schema_resource,omitempty\"`\n\t// Runtime configuration for the current environment\n\t// specific to the current transformer.\n\tContext *TransformerContext `protobuf:\"bytes,4,opt,name=context\" json:\"context,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nCustomValidateAbstractResourceRequest is the request for custom abstract resource validation.\n\n```go\nfunc (*CustomValidateAbstractResourceRequest) Descriptor() ([]byte, []int)\n```\nDeprecated: Use CustomValidateAbstractResourceRequest.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *CustomValidateAbstractResourceRequest) GetAbstractResourceType() *sharedtypesv1.ResourceType\n```\n\n```go\nfunc (x *CustomValidateAbstractResourceRequest) GetContext() *TransformerContext\n```\n\n```go\nfunc (x *CustomValidateAbstractResourceRequest) GetHostId() string\n```\n\n```go\nfunc (x *CustomValidateAbstractResourceRequest) GetSchemaResource() *schemapb.Resource\n```\n\n```go\nfunc (*CustomValidateAbstractResourceRequest) ProtoMessage()\n```\n\n```go\nfunc (x *CustomValidateAbstractResourceRequest) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *CustomValidateAbstractResourceRequest) Reset()\n```\n\n```go\nfunc (x *CustomValidateAbstractResourceRequest) String() string\n```\n\n```go\ntype CustomValidateAbstractResourceResponse struct {\n\n\t// Types that are valid to be assigned to Response:\n\t//\n\t//\t*CustomValidateAbstractResourceResponse_CompleteResponse\n\t//\t*CustomValidateAbstractResourceResponse_ErrorResponse\n\tResponse isCustomValidateAbstractResourceResponse_Response `protobuf_oneof:\"response\"`\n\t// contains filtered or unexported fields\n}\n```\nCustomValidateAbstractResourceResponse is the response for custom abstract resource validation, can be a validation complete response or an error response.\n\n```go\nfunc (*CustomValidateAbstractResourceResponse) Descriptor() ([]byte, []int)\n```\nDeprecated: Use CustomValidateAbstractResourceResponse.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *CustomValidateAbstractResourceResponse) GetCompleteResponse() *CustomValidateAbstractResourceCompleteResponse\n```\n\n```go\nfunc (x *CustomValidateAbstractResourceResponse) GetErrorResponse() *sharedtypesv1.ErrorResponse\n```\n\n```go\nfunc (x *CustomValidateAbstractResourceResponse) GetResponse() isCustomValidateAbstractResourceResponse_Response\n```\n\n```go\nfunc (*CustomValidateAbstractResourceResponse) ProtoMessage()\n```\n\n```go\nfunc (x *CustomValidateAbstractResourceResponse) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *CustomValidateAbstractResourceResponse) Reset()\n```\n\n```go\nfunc (x *CustomValidateAbstractResourceResponse) String() string\n```\n\n```go\ntype CustomValidateAbstractResourceResponse_CompleteResponse struct {\n\tCompleteResponse *CustomValidateAbstractResourceCompleteResponse `protobuf:\"bytes,1,opt,name=complete_response,json=completeResponse,oneof\"`\n}\n```\n\n```go\ntype CustomValidateAbstractResourceResponse_ErrorResponse struct {\n\tErrorResponse *sharedtypesv1.ErrorResponse `protobuf:\"bytes,2,opt,name=error_response,json=errorResponse,oneof\"`\n}\n```\n\n```go\ntype DeclaredLinkGraph struct {\n\n\t// All edges in the graph.\n\tEdges []*ResolvedLink `protobuf:\"bytes,1,rep,name=edges\" json:\"edges,omitempty\"`\n\t// Resources in the graph, resource names are keys\n\t// and the entry value contains the resource class.\n\t// The resource name key is used to form a DeclaredLinkGraph resource\n\t// entry on the client side from looking up the resource name in the parsed\n\t// blueprint.\n\tResources map[string]*DeclaredLinkGraphEntry `protobuf:\"bytes,2,rep,name=resources\" json:\"resources,omitempty\" protobuf_key:\"bytes,1,opt,name=key\" protobuf_val:\"bytes,2,opt,name=value\"`\n\t// Edges keyed by source resource name.\n\tEdgesFrom map[string]*ResolvedLinkList `protobuf:\"bytes,3,rep,name=edges_from,json=edgesFrom\" json:\"edges_from,omitempty\" protobuf_key:\"bytes,1,opt,name=key\" protobuf_val:\"bytes,2,opt,name=value\"`\n\t// Edges keyed by target resource name.\n\tEdgesTo map[string]*ResolvedLinkList `protobuf:\"bytes,4,rep,name=edges_to,json=edgesTo\" json:\"edges_to,omitempty\" protobuf_key:\"bytes,1,opt,name=key\" protobuf_val:\"bytes,2,opt,name=value\"`\n\t// contains filtered or unexported fields\n}\n```\nDeclaredLinkGraph represents a serialised view of the declared link graph that can be sent to a transformer plugin for link validation.\n\n```go\nfunc (*DeclaredLinkGraph) Descriptor() ([]byte, []int)\n```\nDeprecated: Use DeclaredLinkGraph.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *DeclaredLinkGraph) GetEdges() []*ResolvedLink\n```\n\n```go\nfunc (x *DeclaredLinkGraph) GetEdgesFrom() map[string]*ResolvedLinkList\n```\n\n```go\nfunc (x *DeclaredLinkGraph) GetEdgesTo() map[string]*ResolvedLinkList\n```\n\n```go\nfunc (x *DeclaredLinkGraph) GetResources() map[string]*DeclaredLinkGraphEntry\n```\n\n```go\nfunc (*DeclaredLinkGraph) ProtoMessage()\n```\n\n```go\nfunc (x *DeclaredLinkGraph) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *DeclaredLinkGraph) Reset()\n```\n\n```go\nfunc (x *DeclaredLinkGraph) String() string\n```\n\n```go\ntype DeclaredLinkGraphEntry struct {\n\n\t// The classification of the resource (\"concrete\" or \"abstract\").\n\tResourceClass string `protobuf:\"bytes,1,opt,name=resource_class,json=resourceClass\" json:\"resource_class,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nDeclaredLinkGraphEntry represents a resource entry in the declared link graph. This contains the resource class\n\n```go\nfunc (*DeclaredLinkGraphEntry) Descriptor() ([]byte, []int)\n```\nDeprecated: Use DeclaredLinkGraphEntry.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *DeclaredLinkGraphEntry) GetResourceClass() string\n```\n\n```go\nfunc (*DeclaredLinkGraphEntry) ProtoMessage()\n```\n\n```go\nfunc (x *DeclaredLinkGraphEntry) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *DeclaredLinkGraphEntry) Reset()\n```\n\n```go\nfunc (x *DeclaredLinkGraphEntry) String() string\n```\n\n```go\ntype GetAbstractLinkTypeRequest struct {\n\n\t// The type of link to get the abstract link type for.\n\tLinkType string `protobuf:\"bytes,1,opt,name=link_type,json=linkType\" json:\"link_type,omitempty\"`\n\t// The ID of the host making the request\n\t// to the transformer.\n\tHostId string `protobuf:\"bytes,2,opt,name=host_id,json=hostId\" json:\"host_id,omitempty\"`\n\t// Runtime configuration for the current environment\n\t// specific to the current transformer.\n\tContext *TransformerContext `protobuf:\"bytes,3,opt,name=context\" json:\"context,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nGetAbstractLinkTypeResponse is the response for requesting the type of an abstract link in a blueprint spec.\n\n```go\nfunc (*GetAbstractLinkTypeRequest) Descriptor() ([]byte, []int)\n```\nDeprecated: Use GetAbstractLinkTypeRequest.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *GetAbstractLinkTypeRequest) GetContext() *TransformerContext\n```\n\n```go\nfunc (x *GetAbstractLinkTypeRequest) GetHostId() string\n```\n\n```go\nfunc (x *GetAbstractLinkTypeRequest) GetLinkType() string\n```\n\n```go\nfunc (*GetAbstractLinkTypeRequest) ProtoMessage()\n```\n\n```go\nfunc (x *GetAbstractLinkTypeRequest) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *GetAbstractLinkTypeRequest) Reset()\n```\n\n```go\nfunc (x *GetAbstractLinkTypeRequest) String() string\n```\n\n```go\ntype GetAbstractLinkTypeResponse struct {\n\n\t// Types that are valid to be assigned to Response:\n\t//\n\t//\t*GetAbstractLinkTypeResponse_LinkType\n\t//\t*GetAbstractLinkTypeResponse_ErrorResponse\n\tResponse isGetAbstractLinkTypeResponse_Response `protobuf_oneof:\"response\"`\n\t// contains filtered or unexported fields\n}\n```\nGetAbstractLinkTypeResponse is the response for requesting the type of an abstract link in a blueprint spec.\n\n```go\nfunc (*GetAbstractLinkTypeResponse) Descriptor() ([]byte, []int)\n```\nDeprecated: Use GetAbstractLinkTypeResponse.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *GetAbstractLinkTypeResponse) GetErrorResponse() *sharedtypesv1.ErrorResponse\n```\n\n```go\nfunc (x *GetAbstractLinkTypeResponse) GetLinkType() *AbstractLinkType\n```\n\n```go\nfunc (x *GetAbstractLinkTypeResponse) GetResponse() isGetAbstractLinkTypeResponse_Response\n```\n\n```go\nfunc (*GetAbstractLinkTypeResponse) ProtoMessage()\n```\n\n```go\nfunc (x *GetAbstractLinkTypeResponse) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *GetAbstractLinkTypeResponse) Reset()\n```\n\n```go\nfunc (x *GetAbstractLinkTypeResponse) String() string\n```\n\n```go\ntype GetAbstractLinkTypeResponse_ErrorResponse struct {\n\tErrorResponse *sharedtypesv1.ErrorResponse `protobuf:\"bytes,2,opt,name=error_response,json=errorResponse,oneof\"`\n}\n```\n\n```go\ntype GetAbstractLinkTypeResponse_LinkType struct {\n\tLinkType *AbstractLinkType `protobuf:\"bytes,1,opt,name=link_type,json=linkType,oneof\"`\n}\n```\n\n```go\ntype IsAbstractResourceCommonTerminalResponse struct {\n\n\t// Types that are valid to be assigned to Response:\n\t//\n\t//\t*IsAbstractResourceCommonTerminalResponse_Data\n\t//\t*IsAbstractResourceCommonTerminalResponse_ErrorResponse\n\tResponse isIsAbstractResourceCommonTerminalResponse_Response `protobuf_oneof:\"response\"`\n\t// contains filtered or unexported fields\n}\n```\nIsAbstractResourceCommonTerminalResponse is the response for a request to check if a given abstract resource type is expected to have a common use-case as a terminal resource.\n\n```go\nfunc (*IsAbstractResourceCommonTerminalResponse) Descriptor() ([]byte, []int)\n```\nDeprecated: Use IsAbstractResourceCommonTerminalResponse.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *IsAbstractResourceCommonTerminalResponse) GetData() *sharedtypesv1.ResourceCommonTerminalInfo\n```\n\n```go\nfunc (x *IsAbstractResourceCommonTerminalResponse) GetErrorResponse() *sharedtypesv1.ErrorResponse\n```\n\n```go\nfunc (x *IsAbstractResourceCommonTerminalResponse) GetResponse() isIsAbstractResourceCommonTerminalResponse_Response\n```\n\n```go\nfunc (*IsAbstractResourceCommonTerminalResponse) ProtoMessage()\n```\n\n```go\nfunc (x *IsAbstractResourceCommonTerminalResponse) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *IsAbstractResourceCommonTerminalResponse) Reset()\n```\n\n```go\nfunc (x *IsAbstractResourceCommonTerminalResponse) String() string\n```\n\n```go\ntype IsAbstractResourceCommonTerminalResponse_Data struct {\n\tData *sharedtypesv1.ResourceCommonTerminalInfo `protobuf:\"bytes,1,opt,name=data,oneof\"`\n}\n```\n\n```go\ntype IsAbstractResourceCommonTerminalResponse_ErrorResponse struct {\n\tErrorResponse *sharedtypesv1.ErrorResponse `protobuf:\"bytes,2,opt,name=error_response,json=errorResponse,oneof\"`\n}\n```\n\n```go\ntype ResolvedLink struct {\n\n\t// The source resource name.\n\tSource string `protobuf:\"bytes,1,opt,name=source\" json:\"source,omitempty\"`\n\t// The target resource name.\n\tTarget string `protobuf:\"bytes,2,opt,name=target\" json:\"target,omitempty\"`\n\t// The source resource type.\n\tSourceType string `protobuf:\"bytes,3,opt,name=source_type,json=sourceType\" json:\"source_type,omitempty\"`\n\t// The target resource type.\n\tTargetType string `protobuf:\"bytes,4,opt,name=target_type,json=targetType\" json:\"target_type,omitempty\"`\n\t// The label keys that matched.\n\t// In the form \"label::\u003ckey\u003e:\u003cvalue\u003e\" as per the selector keys\n\t// generated by GroupResourcesBySelector.\n\tSelectorKeys []string `protobuf:\"bytes,5,rep,name=selector_keys,json=selectorKeys\" json:\"selector_keys,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nResolvedLink represents a link edge between two resources in the declared link graph.\n\n```go\nfunc (*ResolvedLink) Descriptor() ([]byte, []int)\n```\nDeprecated: Use ResolvedLink.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *ResolvedLink) GetSelectorKeys() []string\n```\n\n```go\nfunc (x *ResolvedLink) GetSource() string\n```\n\n```go\nfunc (x *ResolvedLink) GetSourceType() string\n```\n\n```go\nfunc (x *ResolvedLink) GetTarget() string\n```\n\n```go\nfunc (x *ResolvedLink) GetTargetType() string\n```\n\n```go\nfunc (*ResolvedLink) ProtoMessage()\n```\n\n```go\nfunc (x *ResolvedLink) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *ResolvedLink) Reset()\n```\n\n```go\nfunc (x *ResolvedLink) String() string\n```\n\n```go\ntype ResolvedLinkList struct {\n\tEdges []*ResolvedLink `protobuf:\"bytes,1,rep,name=edges\" json:\"edges,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nResolvedLinkList represents a list of resolved links, used for representing the edges in the declared link graph that are keyed by source and target resource names for efficient lookup.\n\n```go\nfunc (*ResolvedLinkList) Descriptor() ([]byte, []int)\n```\nDeprecated: Use ResolvedLinkList.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *ResolvedLinkList) GetEdges() []*ResolvedLink\n```\n\n```go\nfunc (*ResolvedLinkList) ProtoMessage()\n```\n\n```go\nfunc (x *ResolvedLinkList) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *ResolvedLinkList) Reset()\n```\n\n```go\nfunc (x *ResolvedLinkList) String() string\n```\n\n```go\ntype TransformNameInfo struct {\n\tTransformName string `protobuf:\"bytes,1,opt,name=transform_name,json=transformName\" json:\"transform_name,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nTransformNameInfo holds the name that is used in a blueprint to identify the transformer plugin.\n\n```go\nfunc (*TransformNameInfo) Descriptor() ([]byte, []int)\n```\nDeprecated: Use TransformNameInfo.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *TransformNameInfo) GetTransformName() string\n```\n\n```go\nfunc (*TransformNameInfo) ProtoMessage()\n```\n\n```go\nfunc (x *TransformNameInfo) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *TransformNameInfo) Reset()\n```\n\n```go\nfunc (x *TransformNameInfo) String() string\n```\n\n```go\ntype TransformNameResponse struct {\n\n\t// Types that are valid to be assigned to Response:\n\t//\n\t//\t*TransformNameResponse_NameInfo\n\t//\t*TransformNameResponse_ErrorResponse\n\tResponse isTransformNameResponse_Response `protobuf_oneof:\"response\"`\n\t// contains filtered or unexported fields\n}\n```\nTransformNameResponse is the response for requesting the transform name that is the string that is used in a blueprint to identify the transformer plugin.\n\n```go\nfunc (*TransformNameResponse) Descriptor() ([]byte, []int)\n```\nDeprecated: Use TransformNameResponse.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *TransformNameResponse) GetErrorResponse() *sharedtypesv1.ErrorResponse\n```\n\n```go\nfunc (x *TransformNameResponse) GetNameInfo() *TransformNameInfo\n```\n\n```go\nfunc (x *TransformNameResponse) GetResponse() isTransformNameResponse_Response\n```\n\n```go\nfunc (*TransformNameResponse) ProtoMessage()\n```\n\n```go\nfunc (x *TransformNameResponse) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *TransformNameResponse) Reset()\n```\n\n```go\nfunc (x *TransformNameResponse) String() string\n```\n\n```go\ntype TransformNameResponse_ErrorResponse struct {\n\tErrorResponse *sharedtypesv1.ErrorResponse `protobuf:\"bytes,2,opt,name=error_response,json=errorResponse,oneof\"`\n}\n```\n\n```go\ntype TransformNameResponse_NameInfo struct {\n\tNameInfo *TransformNameInfo `protobuf:\"bytes,1,opt,name=name_info,json=nameInfo,oneof\"`\n}\n```\n\n```go\ntype TransformerClient interface {\n\t// GetTransformName returns the transform name of the transformer\n\t// that should be used in the `transform` section of a blueprint\n\t// to use this transformer plugin.\n\tGetTransformName(ctx context.Context, in *TransformerRequest, opts ...grpc.CallOption) (*TransformNameResponse, error)\n\t// ConfigDefinition retrieves a detailed definition of the configuration\n\t// that is required for the transformer.\n\tGetConfigDefinition(ctx context.Context, in *TransformerRequest, opts ...grpc.CallOption) (*sharedtypesv1.ConfigDefinitionResponse, error)\n\t// Transform a blueprint by expanding abstract resources into their\n\t// final form along with any other transformations that are required.\n\tTransform(ctx context.Context, in *BlueprintTransformRequest, opts ...grpc.CallOption) (*BlueprintTransformResponse, error)\n\t// ListAbstractResourceTypes returns a list of abstract resource types\n\t// that are supported by the transformer.\n\tListAbstractResourceTypes(ctx context.Context, in *TransformerRequest, opts ...grpc.CallOption) (*AbstractResourceTypesResponse, error)\n\t// ListAbstractLinkTypes returns a list of abstract link types\n\t// that are supported by the transformer.\n\tListAbstractLinkTypes(ctx context.Context, in *TransformerRequest, opts ...grpc.CallOption) (*AbstractLinkTypesResponse, error)\n\t// ValidateLinks validates links between abstract resources in a blueprint\n\t// prior to transformation. This is important for catching and surfacing issues\n\t// to users before transformation instead of having to wait to deal with more\n\t// obscure errors that pertain to concrete resources after transformation.\n\tValidateLinks(ctx context.Context, in *ValidateLinksRequest, opts ...grpc.CallOption) (*ValidateLinksResponse, error)\n\t// CustomValidateAbstractResource deals with carrying out custom validation for\n\t// an abstract resource that goes beyond the built-in resource spec validation.\n\tCustomValidateAbstractResource(ctx context.Context, in *CustomValidateAbstractResourceRequest, opts ...grpc.CallOption) (*CustomValidateAbstractResourceResponse, error)\n\t// GetAbstractResourceSpecDefinition retrieves the spec definition for an abstract resource,\n\t// this is used as the first line of validation for a resource in a blueprint\n\t// and is also useful for validating references to a resource instance\n\t// in a blueprint and for providing definitions for docs and tooling.\n\t// The spec defines both the schema for the resource spec fields that can be defined\n\t// by users in a blueprint and computed fields that are derived from the deployed\n\t// resource in the external provider (e.g. Lambda ARN in AWS).\n\tGetAbstractResourceSpecDefinition(ctx context.Context, in *AbstractResourceRequest, opts ...grpc.CallOption) (*AbstractResourceSpecDefinitionResponse, error)\n\t// CanAbstractResourceLinkTo produces a list of all the resource types\n\t// that the given abstract resource type can link to.\n\tCanAbstractResourceLinkTo(ctx context.Context, in *AbstractResourceRequest, opts ...grpc.CallOption) (*CanAbstractResourceLinkToResponse, error)\n\t// IsAbstractResourceCommonTerminal specifies whether the given abstract resource type is expected\n\t// to have a common use-case as a terminal resource that does not link out to other resources.\n\t// This is useful for providing warnings to users about their blueprints\n\t// without overloading them with warnings for all resources that don't have any outbound\n\t// links that could have.\n\tIsAbstractResourceCommonTerminal(ctx context.Context, in *AbstractResourceRequest, opts ...grpc.CallOption) (*IsAbstractResourceCommonTerminalResponse, error)\n\t// GetAbstractResourceType retrieves the type of an abstract resource in a blueprint spec\n\t// that can be used for documentation and tooling.\n\t// This allows callers to get a human-readable label for the already known\n\t// resource type.\n\tGetAbstractResourceType(ctx context.Context, in *AbstractResourceRequest, opts ...grpc.CallOption) (*sharedtypesv1.ResourceTypeResponse, error)\n\t// GetAbstractResourceTypeDescription retrieves the description for an abstract resource type\n\t// in a blueprint spec that can be used for documentation and tooling.\n\t// Markdown and plain text formats are supported.\n\tGetAbstractResourceTypeDescription(ctx context.Context, in *AbstractResourceRequest, opts ...grpc.CallOption) (*sharedtypesv1.TypeDescriptionResponse, error)\n\t// GetAbstractResourceExamples deals with retrieving a list of examples\n\t// for an abstract resource type in a blueprint spec that can be used\n\t// for documentation and tooling.\n\t// Markdown and plain text formats are supported.\n\tGetAbstractResourceExamples(ctx context.Context, in *AbstractResourceRequest, opts ...grpc.CallOption) (*sharedtypesv1.ExamplesResponse, error)\n\t// GetAbstractLinkType retrieves the type of an abstract link in a blueprint spec\n\t// that can be used for documentation and tooling.\n\tGetAbstractLinkType(ctx context.Context, in *GetAbstractLinkTypeRequest, opts ...grpc.CallOption) (*GetAbstractLinkTypeResponse, error)\n\t// GetAbstractLinkTypeDescription retrieves the description for an abstract link type\n\t// in a blueprint spec that can be used for documentation and tooling.\n\t// Markdown and plain text formats are supported.\n\tGetAbstractLinkTypeDescription(ctx context.Context, in *GetAbstractLinkTypeRequest, opts ...grpc.CallOption) (*sharedtypesv1.TypeDescriptionResponse, error)\n\t// GetAbstractLinkAnnotationDefinitions retrieves the annotation definitions for an abstract link type in a blueprint spec\n\t// that can be used for documentation and tooling.\n\tGetAbstractLinkAnnotationDefinitions(ctx context.Context, in *GetAbstractLinkTypeRequest, opts ...grpc.CallOption) (*sharedtypesv1.LinkAnnotationDefinitionsResponse, error)\n\t// GetAbstractLinkCardinality retrieves the cardinality for an abstract link type in a blueprint spec\n\t// that can be used for documentation and tooling.\n\tGetAbstractLinkCardinality(ctx context.Context, in *GetAbstractLinkTypeRequest, opts ...grpc.CallOption) (*sharedtypesv1.LinkCardinalityResponse, error)\n}\n```\nTransformerClient is the client API for Transformer service.\n\nFor semantics around ctx use and closing/ending streaming RPCs, please refer to [https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream](https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream).\n\nInterface exported by a tranformer plugin server.\n\n```go\nfunc NewTransformerClient(cc grpc.ClientConnInterface) TransformerClient\n```\n\n```go\ntype TransformerContext struct {\n\n\t// Configuration parameters specifically for the transformer.\n\tTransformerConfigVariables map[string]*schemapb.ScalarValue `protobuf:\"bytes,1,rep,name=transformer_config_variables,json=transformerConfigVariables\" json:\"transformer_config_variables,omitempty\" protobuf_key:\"bytes,1,opt,name=key\" protobuf_val:\"bytes,2,opt,name=value\"`\n\t// Context-wide variables for the current deploy engine run.\n\tContextVariables map[string]*schemapb.ScalarValue `protobuf:\"bytes,2,rep,name=context_variables,json=contextVariables\" json:\"context_variables,omitempty\" protobuf_key:\"bytes,1,opt,name=key\" protobuf_val:\"bytes,2,opt,name=value\"`\n\t// contains filtered or unexported fields\n}\n```\nTransformerContext holds the environment configuration for the current transformer.\n\n```go\nfunc (*TransformerContext) Descriptor() ([]byte, []int)\n```\nDeprecated: Use TransformerContext.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *TransformerContext) GetContextVariables() map[string]*schemapb.ScalarValue\n```\n\n```go\nfunc (x *TransformerContext) GetTransformerConfigVariables() map[string]*schemapb.ScalarValue\n```\n\n```go\nfunc (*TransformerContext) ProtoMessage()\n```\n\n```go\nfunc (x *TransformerContext) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *TransformerContext) Reset()\n```\n\n```go\nfunc (x *TransformerContext) String() string\n```\n\n```go\ntype TransformerRequest struct {\n\n\t// The ID of the host making the request\n\t// to the transformer.\n\tHostId string `protobuf:\"bytes,1,opt,name=host_id,json=hostId\" json:\"host_id,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nTransformerRequest is the request input for general transformer requests that only require a host ID.\n\n```go\nfunc (*TransformerRequest) Descriptor() ([]byte, []int)\n```\nDeprecated: Use TransformerRequest.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *TransformerRequest) GetHostId() string\n```\n\n```go\nfunc (*TransformerRequest) ProtoMessage()\n```\n\n```go\nfunc (x *TransformerRequest) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *TransformerRequest) Reset()\n```\n\n```go\nfunc (x *TransformerRequest) String() string\n```\n\n```go\ntype TransformerServer interface {\n\t// GetTransformName returns the transform name of the transformer\n\t// that should be used in the `transform` section of a blueprint\n\t// to use this transformer plugin.\n\tGetTransformName(context.Context, *TransformerRequest) (*TransformNameResponse, error)\n\t// ConfigDefinition retrieves a detailed definition of the configuration\n\t// that is required for the transformer.\n\tGetConfigDefinition(context.Context, *TransformerRequest) (*sharedtypesv1.ConfigDefinitionResponse, error)\n\t// Transform a blueprint by expanding abstract resources into their\n\t// final form along with any other transformations that are required.\n\tTransform(context.Context, *BlueprintTransformRequest) (*BlueprintTransformResponse, error)\n\t// ListAbstractResourceTypes returns a list of abstract resource types\n\t// that are supported by the transformer.\n\tListAbstractResourceTypes(context.Context, *TransformerRequest) (*AbstractResourceTypesResponse, error)\n\t// ListAbstractLinkTypes returns a list of abstract link types\n\t// that are supported by the transformer.\n\tListAbstractLinkTypes(context.Context, *TransformerRequest) (*AbstractLinkTypesResponse, error)\n\t// ValidateLinks validates links between abstract resources in a blueprint\n\t// prior to transformation. This is important for catching and surfacing issues\n\t// to users before transformation instead of having to wait to deal with more\n\t// obscure errors that pertain to concrete resources after transformation.\n\tValidateLinks(context.Context, *ValidateLinksRequest) (*ValidateLinksResponse, error)\n\t// CustomValidateAbstractResource deals with carrying out custom validation for\n\t// an abstract resource that goes beyond the built-in resource spec validation.\n\tCustomValidateAbstractResource(context.Context, *CustomValidateAbstractResourceRequest) (*CustomValidateAbstractResourceResponse, error)\n\t// GetAbstractResourceSpecDefinition retrieves the spec definition for an abstract resource,\n\t// this is used as the first line of validation for a resource in a blueprint\n\t// and is also useful for validating references to a resource instance\n\t// in a blueprint and for providing definitions for docs and tooling.\n\t// The spec defines both the schema for the resource spec fields that can be defined\n\t// by users in a blueprint and computed fields that are derived from the deployed\n\t// resource in the external provider (e.g. Lambda ARN in AWS).\n\tGetAbstractResourceSpecDefinition(context.Context, *AbstractResourceRequest) (*AbstractResourceSpecDefinitionResponse, error)\n\t// CanAbstractResourceLinkTo produces a list of all the resource types\n\t// that the given abstract resource type can link to.\n\tCanAbstractResourceLinkTo(context.Context, *AbstractResourceRequest) (*CanAbstractResourceLinkToResponse, error)\n\t// IsAbstractResourceCommonTerminal specifies whether the given abstract resource type is expected\n\t// to have a common use-case as a terminal resource that does not link out to other resources.\n\t// This is useful for providing warnings to users about their blueprints\n\t// without overloading them with warnings for all resources that don't have any outbound\n\t// links that could have.\n\tIsAbstractResourceCommonTerminal(context.Context, *AbstractResourceRequest) (*IsAbstractResourceCommonTerminalResponse, error)\n\t// GetAbstractResourceType retrieves the type of an abstract resource in a blueprint spec\n\t// that can be used for documentation and tooling.\n\t// This allows callers to get a human-readable label for the already known\n\t// resource type.\n\tGetAbstractResourceType(context.Context, *AbstractResourceRequest) (*sharedtypesv1.ResourceTypeResponse, error)\n\t// GetAbstractResourceTypeDescription retrieves the description for an abstract resource type\n\t// in a blueprint spec that can be used for documentation and tooling.\n\t// Markdown and plain text formats are supported.\n\tGetAbstractResourceTypeDescription(context.Context, *AbstractResourceRequest) (*sharedtypesv1.TypeDescriptionResponse, error)\n\t// GetAbstractResourceExamples deals with retrieving a list of examples\n\t// for an abstract resource type in a blueprint spec that can be used\n\t// for documentation and tooling.\n\t// Markdown and plain text formats are supported.\n\tGetAbstractResourceExamples(context.Context, *AbstractResourceRequest) (*sharedtypesv1.ExamplesResponse, error)\n\t// GetAbstractLinkType retrieves the type of an abstract link in a blueprint spec\n\t// that can be used for documentation and tooling.\n\tGetAbstractLinkType(context.Context, *GetAbstractLinkTypeRequest) (*GetAbstractLinkTypeResponse, error)\n\t// GetAbstractLinkTypeDescription retrieves the description for an abstract link type\n\t// in a blueprint spec that can be used for documentation and tooling.\n\t// Markdown and plain text formats are supported.\n\tGetAbstractLinkTypeDescription(context.Context, *GetAbstractLinkTypeRequest) (*sharedtypesv1.TypeDescriptionResponse, error)\n\t// GetAbstractLinkAnnotationDefinitions retrieves the annotation definitions for an abstract link type in a blueprint spec\n\t// that can be used for documentation and tooling.\n\tGetAbstractLinkAnnotationDefinitions(context.Context, *GetAbstractLinkTypeRequest) (*sharedtypesv1.LinkAnnotationDefinitionsResponse, error)\n\t// GetAbstractLinkCardinality retrieves the cardinality for an abstract link type in a blueprint spec\n\t// that can be used for documentation and tooling.\n\tGetAbstractLinkCardinality(context.Context, *GetAbstractLinkTypeRequest) (*sharedtypesv1.LinkCardinalityResponse, error)\n\t// contains filtered or unexported methods\n}\n```\nTransformerServer is the server API for Transformer service. All implementations must embed UnimplementedTransformerServer for forward compatibility.\n\nInterface exported by a tranformer plugin server.\n\n```go\ntype UnimplementedTransformerServer struct{}\n```\nUnimplementedTransformerServer must be embedded to have forward compatible implementations.\n\nNOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.\n\n```go\nfunc (UnimplementedTransformerServer) CanAbstractResourceLinkTo(context.Context, *AbstractResourceRequest) (*CanAbstractResourceLinkToResponse, error)\n```\n\n```go\nfunc (UnimplementedTransformerServer) CustomValidateAbstractResource(context.Context, *CustomValidateAbstractResourceRequest) (*CustomValidateAbstractResourceResponse, error)\n```\n\n```go\nfunc (UnimplementedTransformerServer) GetAbstractLinkAnnotationDefinitions(context.Context, *GetAbstractLinkTypeRequest) (*sharedtypesv1.LinkAnnotationDefinitionsResponse, error)\n```\n\n```go\nfunc (UnimplementedTransformerServer) GetAbstractLinkCardinality(context.Context, *GetAbstractLinkTypeRequest) (*sharedtypesv1.LinkCardinalityResponse, error)\n```\n\n```go\nfunc (UnimplementedTransformerServer) GetAbstractLinkType(context.Context, *GetAbstractLinkTypeRequest) (*GetAbstractLinkTypeResponse, error)\n```\n\n```go\nfunc (UnimplementedTransformerServer) GetAbstractLinkTypeDescription(context.Context, *GetAbstractLinkTypeRequest) (*sharedtypesv1.TypeDescriptionResponse, error)\n```\n\n```go\nfunc (UnimplementedTransformerServer) GetAbstractResourceExamples(context.Context, *AbstractResourceRequest) (*sharedtypesv1.ExamplesResponse, error)\n```\n\n```go\nfunc (UnimplementedTransformerServer) GetAbstractResourceSpecDefinition(context.Context, *AbstractResourceRequest) (*AbstractResourceSpecDefinitionResponse, error)\n```\n\n```go\nfunc (UnimplementedTransformerServer) GetAbstractResourceType(context.Context, *AbstractResourceRequest) (*sharedtypesv1.ResourceTypeResponse, error)\n```\n\n```go\nfunc (UnimplementedTransformerServer) GetAbstractResourceTypeDescription(context.Context, *AbstractResourceRequest) (*sharedtypesv1.TypeDescriptionResponse, error)\n```\n\n```go\nfunc (UnimplementedTransformerServer) GetConfigDefinition(context.Context, *TransformerRequest) (*sharedtypesv1.ConfigDefinitionResponse, error)\n```\n\n```go\nfunc (UnimplementedTransformerServer) GetTransformName(context.Context, *TransformerRequest) (*TransformNameResponse, error)\n```\n\n```go\nfunc (UnimplementedTransformerServer) IsAbstractResourceCommonTerminal(context.Context, *AbstractResourceRequest) (*IsAbstractResourceCommonTerminalResponse, error)\n```\n\n```go\nfunc (UnimplementedTransformerServer) ListAbstractLinkTypes(context.Context, *TransformerRequest) (*AbstractLinkTypesResponse, error)\n```\n\n```go\nfunc (UnimplementedTransformerServer) ListAbstractResourceTypes(context.Context, *TransformerRequest) (*AbstractResourceTypesResponse, error)\n```\n\n```go\nfunc (UnimplementedTransformerServer) Transform(context.Context, *BlueprintTransformRequest) (*BlueprintTransformResponse, error)\n```\n\n```go\nfunc (UnimplementedTransformerServer) ValidateLinks(context.Context, *ValidateLinksRequest) (*ValidateLinksResponse, error)\n```\n\n```go\ntype UnsafeTransformerServer interface {\n\t// contains filtered or unexported methods\n}\n```\nUnsafeTransformerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TransformerServer will result in compilation errors.\n\n```go\ntype ValidateLinksCompleteResponse struct {\n\tDiagnostics []*sharedtypesv1.Diagnostic `protobuf:\"bytes,1,rep,name=diagnostics\" json:\"diagnostics,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nValidateLinksCompleteResponse is returned when link validation completes.\n\n```go\nfunc (*ValidateLinksCompleteResponse) Descriptor() ([]byte, []int)\n```\nDeprecated: Use ValidateLinksCompleteResponse.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *ValidateLinksCompleteResponse) GetDiagnostics() []*sharedtypesv1.Diagnostic\n```\n\n```go\nfunc (*ValidateLinksCompleteResponse) ProtoMessage()\n```\n\n```go\nfunc (x *ValidateLinksCompleteResponse) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *ValidateLinksCompleteResponse) Reset()\n```\n\n```go\nfunc (x *ValidateLinksCompleteResponse) String() string\n```\n\n```go\ntype ValidateLinksRequest struct {\n\n\t// The blueprint being validated.\n\tBlueprint *schemapb.Blueprint `protobuf:\"bytes,1,opt,name=blueprint\" json:\"blueprint,omitempty\"`\n\t// The declared link graph for the blueprint.\n\tLinkGraph *DeclaredLinkGraph `protobuf:\"bytes,2,opt,name=link_graph,json=linkGraph\" json:\"link_graph,omitempty\"`\n\t// The ID of the host making the request to the transformer.\n\tHostId string `protobuf:\"bytes,3,opt,name=host_id,json=hostId\" json:\"host_id,omitempty\"`\n\t// Runtime configuration for the current environment\n\t// specific to the current transformer.\n\tContext *TransformerContext `protobuf:\"bytes,4,opt,name=context\" json:\"context,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nValidateLinksRequest is the request for validating links between abstract resources in a blueprint prior to transformation.\n\n```go\nfunc (*ValidateLinksRequest) Descriptor() ([]byte, []int)\n```\nDeprecated: Use ValidateLinksRequest.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *ValidateLinksRequest) GetBlueprint() *schemapb.Blueprint\n```\n\n```go\nfunc (x *ValidateLinksRequest) GetContext() *TransformerContext\n```\n\n```go\nfunc (x *ValidateLinksRequest) GetHostId() string\n```\n\n```go\nfunc (x *ValidateLinksRequest) GetLinkGraph() *DeclaredLinkGraph\n```\n\n```go\nfunc (*ValidateLinksRequest) ProtoMessage()\n```\n\n```go\nfunc (x *ValidateLinksRequest) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *ValidateLinksRequest) Reset()\n```\n\n```go\nfunc (x *ValidateLinksRequest) String() string\n```\n\n```go\ntype ValidateLinksResponse struct {\n\n\t// Types that are valid to be assigned to Response:\n\t//\n\t//\t*ValidateLinksResponse_CompleteResponse\n\t//\t*ValidateLinksResponse_ErrorResponse\n\tResponse isValidateLinksResponse_Response `protobuf_oneof:\"response\"`\n\t// contains filtered or unexported fields\n}\n```\nValidateLinksResponse is the response for link validation.\n\n```go\nfunc (*ValidateLinksResponse) Descriptor() ([]byte, []int)\n```\nDeprecated: Use ValidateLinksResponse.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *ValidateLinksResponse) GetCompleteResponse() *ValidateLinksCompleteResponse\n```\n\n```go\nfunc (x *ValidateLinksResponse) GetErrorResponse() *sharedtypesv1.ErrorResponse\n```\n\n```go\nfunc (x *ValidateLinksResponse) GetResponse() isValidateLinksResponse_Response\n```\n\n```go\nfunc (*ValidateLinksResponse) ProtoMessage()\n```\n\n```go\nfunc (x *ValidateLinksResponse) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *ValidateLinksResponse) Reset()\n```\n\n```go\nfunc (x *ValidateLinksResponse) String() string\n```\n\n```go\ntype ValidateLinksResponse_CompleteResponse struct {\n\tCompleteResponse *ValidateLinksCompleteResponse `protobuf:\"bytes,1,opt,name=complete_response,json=completeResponse,oneof\"`\n}\n```\n\n```go\ntype ValidateLinksResponse_ErrorResponse struct {\n\tErrorResponse *sharedtypesv1.ErrorResponse `protobuf:\"bytes,2,opt,name=error_response,json=errorResponse,oneof\"`\n}\n```\n\n","path":"github.com/newstack-cloud/bluelink/libs/plugin-framework/transformerserverv1","name":"transformerserverv1","synopsis":"","isRedistributable":true}
