Documentation
¶
Index ¶
- func FromPBConfigDefinitionResponse(resp *sharedtypesv1.ConfigDefinitionResponse, ...) (*core.ConfigDefinition, error)
- func FromPBDeployResourceCompleteResponse(response *sharedtypesv1.DeployResourceCompleteResponse) (*provider.ResourceDeployOutput, error)
- func FromPBDeployResourceRequest(req *sharedtypesv1.DeployResourceRequest) (*provider.ResourceDeployInput, error)
- func FromPBDestroyResourceRequest(req *sharedtypesv1.DestroyResourceRequest) (*provider.ResourceDestroyInput, error)
- func FromPBExamplesForResource(req *sharedtypesv1.Examples) *provider.ResourceGetExamplesOutput
- func FromPBFunctionCallRequest(req *sharedtypesv1.FunctionCallRequest, ...) (*provider.FunctionCallInput, error)
- func FromPBFunctionCallResult(res *sharedtypesv1.FunctionCallResult) (*provider.FunctionCallOutput, error)
- func FromPBFunctionDefinition(pbFuncDef *sharedtypesv1.FunctionDefinition) (*function.Definition, error)
- func FromPBFunctionDefinitionRequest(req *sharedtypesv1.FunctionDefinitionRequest) (*provider.FunctionGetDefinitionInput, error)
- func FromPBFunctionDefinitionResponse(response *sharedtypesv1.FunctionDefinition, action errorsv1.PluginAction) (*provider.FunctionGetDefinitionOutput, error)
- func FromPBLinkChanges(pbLinkChanges *sharedtypesv1.LinkChanges) (provider.LinkChanges, error)
- func FromPBMappingNodeMap(pbMap map[string]*schemapb.MappingNode) (map[string]*core.MappingNode, error)
- func FromPBMappingNodeSlice(pbSlice []*schemapb.MappingNode) ([]*core.MappingNode, error)
- func FromPBProvenanceState(pbProvenance *sharedtypesv1.ProvenanceState) *state.ProvenanceState
- func FromPBProviderContext(pbProviderCtx *sharedtypesv1.ProviderContext) (provider.Context, error)
- func FromPBResourceChanges(changes *sharedtypesv1.Changes) (*provider.Changes, error)
- func FromPBResourceHasStabilisedRequest(req *sharedtypesv1.ResourceHasStabilisedRequest) (*provider.ResourceHasStabilisedInput, error)
- func FromPBResourceInfo(resourceInfo *sharedtypesv1.ResourceInfo) (provider.ResourceInfo, error)
- func FromPBResourceMetadataState(pbResourceMetadataState *sharedtypesv1.ResourceMetadataState) (*state.ResourceMetadataState, error)
- func FromPBResourceSpecDefinition(pbSpecDef *sharedtypesv1.ResourceSpecDefinition) (*provider.ResourceSpecDefinition, error)
- func FromPBResourceState(pbResourceState *sharedtypesv1.ResourceState) (*state.ResourceState, error)
- func FromPBScalarMap(m map[string]*schemapb.ScalarValue) (map[string]*core.ScalarValue, error)
- func FromPBScalarSlice(s []*schemapb.ScalarValue) ([]*core.ScalarValue, error)
- func FromPBScalarType(scalarType sharedtypesv1.ScalarType) core.ScalarType
- func FromPBSystemMetadataState(pbSystemMetadata *sharedtypesv1.SystemMetadataState) *state.SystemMetadataState
- func FromPBTaggingConfig(pbTaggingConfig *sharedtypesv1.TaggingConfig) *provider.TaggingConfig
- func FromPBTaggingSupport(pbTaggingSupport sharedtypesv1.TaggingSupport) provider.TaggingSupport
- func FromPBTypeDescriptionForResource(req *sharedtypesv1.TypeDescription) *provider.ResourceGetTypeDescriptionOutput
- func ResourceTypeToString(resourceType *sharedtypesv1.ResourceType) string
- func StringToResourceType(resourceTypeStr string) *sharedtypesv1.ResourceType
- func ToPBChanges(changes *provider.Changes) (*sharedtypesv1.Changes, error)
- func ToPBConfigDefinitionErrorResponse(err error) *sharedtypesv1.ConfigDefinitionResponse
- func ToPBConfigDefinitionResponse(configDefinition *core.ConfigDefinition) (*sharedtypesv1.ConfigDefinitionResponse, error)
- func ToPBDeployResourceErrorResponse(err error) *sharedtypesv1.DeployResourceResponse
- func ToPBDeployResourceRequest(resourceType string, input *provider.ResourceDeployInput) (*sharedtypesv1.DeployResourceRequest, error)
- func ToPBDeployResourceResponse(output *provider.ResourceDeployOutput) (*sharedtypesv1.DeployResourceResponse, error)
- func ToPBDestroyResourceErrorResponse(err error) *sharedtypesv1.DestroyResourceResponse
- func ToPBDestroyResourceRequest(resourceType string, input *provider.ResourceDestroyInput) (*sharedtypesv1.DestroyResourceRequest, error)
- func ToPBExamplesErrorResponse(err error) *sharedtypesv1.ExamplesResponse
- func ToPBFunctionCallErrorResponse(err error) *sharedtypesv1.FunctionCallResponse
- func ToPBFunctionCallRequest(ctx context.Context, functionName string, input *provider.FunctionCallInput, ...) (*sharedtypesv1.FunctionCallRequest, error)
- func ToPBFunctionCallResponse(output *provider.FunctionCallOutput) (*sharedtypesv1.FunctionCallResponse, error)
- func ToPBFunctionDefinitionErrorResponse(err error) *sharedtypesv1.FunctionDefinitionResponse
- func ToPBFunctionDefinitionRequest(functionName string, input *provider.FunctionGetDefinitionInput, hostID string) (*sharedtypesv1.FunctionDefinitionRequest, error)
- func ToPBFunctionDefinitionResponse(definition *function.Definition) (*sharedtypesv1.FunctionDefinitionResponse, error)
- func ToPBLinkChanges(linkChanges provider.LinkChanges) (*sharedtypesv1.LinkChanges, error)
- func ToPBMappingNodeMap(mappingNodeMap map[string]*core.MappingNode) (map[string]*schemapb.MappingNode, error)
- func ToPBMappingNodeSlice(mappingNodeSlice []*core.MappingNode) ([]*schemapb.MappingNode, error)
- func ToPBProvenanceState(provenance *state.ProvenanceState) *sharedtypesv1.ProvenanceState
- func ToPBProviderContext(providerCtx provider.Context) (*sharedtypesv1.ProviderContext, error)
- func ToPBResourceDefinitionsSchema(schema *provider.ResourceDefinitionsSchema) (*sharedtypesv1.ResourceDefinitionsSchema, error)
- func ToPBResourceHasStabilisedErrorResponse(err error) *sharedtypesv1.ResourceHasStabilisedResponse
- func ToPBResourceHasStabilisedResponse(output *provider.ResourceHasStabilisedOutput) *sharedtypesv1.ResourceHasStabilisedResponse
- func ToPBResourceInfo(resourceInfo *provider.ResourceInfo) (*sharedtypesv1.ResourceInfo, error)
- func ToPBResourceMetadataState(metadataState *state.ResourceMetadataState) (*sharedtypesv1.ResourceMetadataState, error)
- func ToPBResourceState(resourceState *state.ResourceState) (*sharedtypesv1.ResourceState, error)
- func ToPBResourceTypeErrorResponse(err error) *sharedtypesv1.ResourceTypeResponse
- func ToPBResourceTypeResponse(typeInfo *provider.ResourceGetTypeOutput) *sharedtypesv1.ResourceTypeResponse
- func ToPBResourceTypes(resourceTypes []string) []*sharedtypesv1.ResourceType
- func ToPBScalarMap(m map[string]*core.ScalarValue) (map[string]*schemapb.ScalarValue, error)
- func ToPBScalarSlice(slice []*core.ScalarValue) ([]*schemapb.ScalarValue, error)
- func ToPBScalarType(scalarType core.ScalarType) sharedtypesv1.ScalarType
- func ToPBSystemMetadataState(systemMetadata *state.SystemMetadataState) *sharedtypesv1.SystemMetadataState
- func ToPBTaggingConfig(taggingConfig *provider.TaggingConfig) *sharedtypesv1.TaggingConfig
- func ToPBTaggingSupport(taggingSupport provider.TaggingSupport) sharedtypesv1.TaggingSupport
- func ToPBTypeDescriptionErrorResponse(err error) *sharedtypesv1.TypeDescriptionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromPBConfigDefinitionResponse ¶
func FromPBConfigDefinitionResponse( resp *sharedtypesv1.ConfigDefinitionResponse, pluginAction errorsv1.PluginAction, ) (*core.ConfigDefinition, error)
FromPBConfigDefinitionResponse converts a ConfigDefinitionResponse from a protobuf message to a core type compatible with the blueprint framework.
func FromPBDeployResourceCompleteResponse ¶
func FromPBDeployResourceCompleteResponse( response *sharedtypesv1.DeployResourceCompleteResponse, ) (*provider.ResourceDeployOutput, error)
FromPBDeployResourceCompleteResponse converts a DeployResourceCompleteResponse from a protobuf message to a type comptabile with the blueprint framework.
func FromPBDeployResourceRequest ¶
func FromPBDeployResourceRequest( req *sharedtypesv1.DeployResourceRequest, ) (*provider.ResourceDeployInput, error)
FromPBDeployResourceRequest converts a DeployResourceRequest from a protobuf message to a core type compatible with the blueprint framework.
func FromPBDestroyResourceRequest ¶
func FromPBDestroyResourceRequest( req *sharedtypesv1.DestroyResourceRequest, ) (*provider.ResourceDestroyInput, error)
FromPBDestroyResourceRequest converts a DestroyResourceRequest from a protobuf message to a core type compatible with the blueprint framework.
func FromPBExamplesForResource ¶
func FromPBExamplesForResource( req *sharedtypesv1.Examples, ) *provider.ResourceGetExamplesOutput
FromPBExamplesForResource converts examples from a protobuf message to a core type compatible with the blueprint framework specifically for resources.
func FromPBFunctionCallRequest ¶
func FromPBFunctionCallRequest( req *sharedtypesv1.FunctionCallRequest, functionRegistry provider.FunctionRegistry, ) (*provider.FunctionCallInput, error)
FromPBFunctionCallRequest converts a FunctionCallRequest from a protobuf message to a core type compatible with the blueprint framework.
func FromPBFunctionCallResult ¶
func FromPBFunctionCallResult( res *sharedtypesv1.FunctionCallResult, ) (*provider.FunctionCallOutput, error)
FromPBFunctionCallResult converts a FunctionCallResult from a protobuf message to a core type compatible with the blueprint framework.
func FromPBFunctionDefinition ¶
func FromPBFunctionDefinition( pbFuncDef *sharedtypesv1.FunctionDefinition, ) (*function.Definition, error)
FromPBFunctionDefinition converts a FunctionDefinition from a protobuf message to a core type compatible with the blueprint framework.
func FromPBFunctionDefinitionRequest ¶
func FromPBFunctionDefinitionRequest( req *sharedtypesv1.FunctionDefinitionRequest, ) (*provider.FunctionGetDefinitionInput, error)
FromPBFunctionDefinitionRequest converts a FunctionDefinitionRequest from a protobuf message to a core type compatible with the blueprint framework.
func FromPBFunctionDefinitionResponse ¶
func FromPBFunctionDefinitionResponse( response *sharedtypesv1.FunctionDefinition, action errorsv1.PluginAction, ) (*provider.FunctionGetDefinitionOutput, error)
FromPBFunctionDefinitionResponse converts a FunctionDefinitionResponse from a protobuf message to a core type compatible with the blueprint framework.
func FromPBLinkChanges ¶
func FromPBLinkChanges( pbLinkChanges *sharedtypesv1.LinkChanges, ) (provider.LinkChanges, error)
FromPBLinkChanges converts a LinkChanges from a protobuf message to a core type compatible with the blueprint framework.
func FromPBMappingNodeMap ¶
func FromPBMappingNodeMap( pbMap map[string]*schemapb.MappingNode, ) (map[string]*core.MappingNode, error)
FromPBMappingNodeMap converts a map of protobuf MappingNodes to a map of core MappingNodes compatible with the blueprint framework.
func FromPBMappingNodeSlice ¶
func FromPBMappingNodeSlice( pbSlice []*schemapb.MappingNode, ) ([]*core.MappingNode, error)
FromPBMappingNodeSlice converts a slice of protobuf MappingNodes to a slice of core MappingNodes compatible with the blueprint framework.
func FromPBProvenanceState ¶ added in v0.2.0
func FromPBProvenanceState(pbProvenance *sharedtypesv1.ProvenanceState) *state.ProvenanceState
FromPBProvenanceState converts a ProvenanceState from a protobuf message to a core type compatible with the blueprint framework.
func FromPBProviderContext ¶
func FromPBProviderContext(pbProviderCtx *sharedtypesv1.ProviderContext) (provider.Context, error)
FromPBProviderContext converts a ProviderContext from a protobuf message to a core type compatible with the blueprint framework.
func FromPBResourceChanges ¶
func FromPBResourceChanges(changes *sharedtypesv1.Changes) (*provider.Changes, error)
FromPBResourceChanges converts a Changes from a protobuf message to a core type compatible with the blueprint framework.
func FromPBResourceHasStabilisedRequest ¶
func FromPBResourceHasStabilisedRequest( req *sharedtypesv1.ResourceHasStabilisedRequest, ) (*provider.ResourceHasStabilisedInput, error)
FromPBResourceHasStabilisedRequest converts a ResourceHasStabilisedRequest from a protobuf message to a core type compatible with the blueprint framework.
func FromPBResourceInfo ¶
func FromPBResourceInfo( resourceInfo *sharedtypesv1.ResourceInfo, ) (provider.ResourceInfo, error)
FromPBResourceInfo converts a ResourceInfo from a protobuf message to a core type compatible with the blueprint framework.
func FromPBResourceMetadataState ¶
func FromPBResourceMetadataState( pbResourceMetadataState *sharedtypesv1.ResourceMetadataState, ) (*state.ResourceMetadataState, error)
FromPBResourceMetadataState converts a ResourceMetadataState from a protobuf message to a core type compatible with the blueprint framework.
func FromPBResourceSpecDefinition ¶
func FromPBResourceSpecDefinition( pbSpecDef *sharedtypesv1.ResourceSpecDefinition, ) (*provider.ResourceSpecDefinition, error)
FromPBResourceSpecDefinition converts a ResourceSpecDefinition from a protobuf message to a core type compatible with the blueprint framework.
func FromPBResourceState ¶
func FromPBResourceState( pbResourceState *sharedtypesv1.ResourceState, ) (*state.ResourceState, error)
func FromPBScalarMap ¶
func FromPBScalarMap(m map[string]*schemapb.ScalarValue) (map[string]*core.ScalarValue, error)
FromPBScalarMap converts a map of protobuf ScalarValues to a map of core ScalarValues compatible with the blueprint framework.
func FromPBScalarSlice ¶
func FromPBScalarSlice(s []*schemapb.ScalarValue) ([]*core.ScalarValue, error)
FromPBScalarSlice converts a slice of protobuf ScalarValues to a slice of core ScalarValues compatible with the blueprint framework.
func FromPBScalarType ¶
func FromPBScalarType( scalarType sharedtypesv1.ScalarType, ) core.ScalarType
FromPBScalarType converts a ScalarType from a protobuf message to a core type compatible with the blueprint framework.
func FromPBSystemMetadataState ¶ added in v0.2.0
func FromPBSystemMetadataState( pbSystemMetadata *sharedtypesv1.SystemMetadataState, ) *state.SystemMetadataState
FromPBSystemMetadataState converts a SystemMetadataState from a protobuf message to a core type compatible with the blueprint framework.
func FromPBTaggingConfig ¶ added in v0.2.0
func FromPBTaggingConfig(pbTaggingConfig *sharedtypesv1.TaggingConfig) *provider.TaggingConfig
FromPBTaggingConfig converts a TaggingConfig from a protobuf message to a core type compatible with the blueprint framework.
func FromPBTaggingSupport ¶ added in v0.2.0
func FromPBTaggingSupport(pbTaggingSupport sharedtypesv1.TaggingSupport) provider.TaggingSupport
FromPBTaggingSupport converts a TaggingSupport from a protobuf enum to a core type compatible with the blueprint framework.
func FromPBTypeDescriptionForResource ¶
func FromPBTypeDescriptionForResource( req *sharedtypesv1.TypeDescription, ) *provider.ResourceGetTypeDescriptionOutput
FromPBTypeDescriptionForResource converts a TypeDescription from a protobuf message to a core type compatible with the blueprint framework specifically for resources.
func ResourceTypeToString ¶
func ResourceTypeToString(resourceType *sharedtypesv1.ResourceType) string
ResourceTypeToString converts a ResourceType to a string.
func StringToResourceType ¶
func StringToResourceType(resourceTypeStr string) *sharedtypesv1.ResourceType
StringToResourceType converts a string to a ResourceType protobuf message that can be sent over gRPC.
func ToPBChanges ¶
func ToPBChanges( changes *provider.Changes, ) (*sharedtypesv1.Changes, error)
ToPBChanges converts a blueprint framework resource change set to a Changes protobuf message that can be sent over gRPC.
func ToPBConfigDefinitionErrorResponse ¶
func ToPBConfigDefinitionErrorResponse( err error, ) *sharedtypesv1.ConfigDefinitionResponse
ToPBConfigDefinitionErrorResponse converts an error from a config definition to a ConfigDefinitionResponse protobuf message that can be sent over gRPC.
func ToPBConfigDefinitionResponse ¶
func ToPBConfigDefinitionResponse( configDefinition *core.ConfigDefinition, ) (*sharedtypesv1.ConfigDefinitionResponse, error)
ToPBConfigDefinitionResponse converts a core.ConfigDefinition to a ConfigDefinitionResponse protobuf message that can be sent over gRPC.
func ToPBDeployResourceErrorResponse ¶
func ToPBDeployResourceErrorResponse( err error, ) *sharedtypesv1.DeployResourceResponse
ToPBDeployResourceErrorResponse converts an error from a resource deployment to a DeployResourceResponse protobuf message that can be sent over gRPC.
func ToPBDeployResourceRequest ¶
func ToPBDeployResourceRequest( resourceType string, input *provider.ResourceDeployInput, ) (*sharedtypesv1.DeployResourceRequest, error)
ToPBDeployResourceRequest converts a blueprint framework ResourceDeployServiceInput to a DeployResourceRequest protobuf message that can be sent over gRPC.
func ToPBDeployResourceResponse ¶
func ToPBDeployResourceResponse( output *provider.ResourceDeployOutput, ) (*sharedtypesv1.DeployResourceResponse, error)
ToPBDeployResourceResponse converts the output from a resource deployment to a DeployResourceResponse protobuf message that can be sent over gRPC.
func ToPBDestroyResourceErrorResponse ¶
func ToPBDestroyResourceErrorResponse( err error, ) *sharedtypesv1.DestroyResourceResponse
ToPBDestroyResourceErrorResponse converts an error from destroying a resource to a DestroyResourceResponse protobuf message that can be sent over gRPC.
func ToPBDestroyResourceRequest ¶
func ToPBDestroyResourceRequest( resourceType string, input *provider.ResourceDestroyInput, ) (*sharedtypesv1.DestroyResourceRequest, error)
ToPBDestroyResourceRequest converts a blueprint framework ResourceDestroyInput to a DestroyResourceRequest protobuf message that can be sent over gRPC.
func ToPBExamplesErrorResponse ¶
func ToPBExamplesErrorResponse( err error, ) *sharedtypesv1.ExamplesResponse
ToPBExamplesErrorResponse converts an error from trying to retrieve examples to an ExamplesResponse protobuf message that can be sent over gRPC.
func ToPBFunctionCallErrorResponse ¶
func ToPBFunctionCallErrorResponse( err error, ) *sharedtypesv1.FunctionCallResponse
ToPBFunctionCallErrorResponse converts an error from a function call to a FunctionCallResponse protobuf message that can be sent over gRPC.
func ToPBFunctionCallRequest ¶
func ToPBFunctionCallRequest( ctx context.Context, functionName string, input *provider.FunctionCallInput, hostID string, ) (*sharedtypesv1.FunctionCallRequest, error)
ToPBFunctionCallRequest converts a blueprint framework FunctionCallInput to a FunctionCallRequest protobuf message that can be sent over gRPC.
func ToPBFunctionCallResponse ¶
func ToPBFunctionCallResponse(output *provider.FunctionCallOutput) (*sharedtypesv1.FunctionCallResponse, error)
ToPBFunctionCallResponse converts the output from a function call to a FunctionCallResponse protobuf message that can be sent over gRPC.
func ToPBFunctionDefinitionErrorResponse ¶
func ToPBFunctionDefinitionErrorResponse( err error, ) *sharedtypesv1.FunctionDefinitionResponse
ToPBFunctionDefinitionErrorResponse converts an error from a function definition to a FunctionDefinitionResponse protobuf message that can be sent over gRPC.
func ToPBFunctionDefinitionRequest ¶
func ToPBFunctionDefinitionRequest( functionName string, input *provider.FunctionGetDefinitionInput, hostID string, ) (*sharedtypesv1.FunctionDefinitionRequest, error)
ToPBFunctionDefinitionRequest converts a blueprint framework FunctionGetDefinitionInput to a FunctionDefinitionRequest protobuf message that can be sent over gRPC.
func ToPBFunctionDefinitionResponse ¶
func ToPBFunctionDefinitionResponse( definition *function.Definition, ) (*sharedtypesv1.FunctionDefinitionResponse, error)
ToPBFunctionDefinitionResponse converts a function definition to a FunctionDefinitionResponse protobuf message that can be sent over gRPC.
func ToPBLinkChanges ¶
func ToPBLinkChanges( linkChanges provider.LinkChanges, ) (*sharedtypesv1.LinkChanges, error)
ToPBLinkChanges converts a blueprint framework LinkChanges to a LinkChanges protobuf message that can be sent over gRPC.
func ToPBMappingNodeMap ¶
func ToPBMappingNodeMap( mappingNodeMap map[string]*core.MappingNode, ) (map[string]*schemapb.MappingNode, error)
ToPBMappingNodeMap converts a map of core MappingNodes to a map of protobuf MappingNodes.
func ToPBMappingNodeSlice ¶
func ToPBMappingNodeSlice( mappingNodeSlice []*core.MappingNode, ) ([]*schemapb.MappingNode, error)
ToPBMappingNodeSlice converts a slice of core MappingNodes to a slice of protobuf MappingNodes.
func ToPBProvenanceState ¶ added in v0.2.0
func ToPBProvenanceState(provenance *state.ProvenanceState) *sharedtypesv1.ProvenanceState
ToPBProvenanceState converts a state.ProvenanceState to a ProvenanceState protobuf message that can be sent over gRPC.
func ToPBProviderContext ¶
func ToPBProviderContext(providerCtx provider.Context) (*sharedtypesv1.ProviderContext, error)
ToPBProviderContext converts a provider.Context to a ProviderContext protobuf message that can be sent over gRPC.
func ToPBResourceDefinitionsSchema ¶
func ToPBResourceDefinitionsSchema( schema *provider.ResourceDefinitionsSchema, ) (*sharedtypesv1.ResourceDefinitionsSchema, error)
ToPBResourceDefinitionsSchema converts a provider.ResourceDefinitionsSchema to a sharedtypesv1.ResourceDefinitionsSchema that can be sent in a gRPC call to a plugin.
func ToPBResourceHasStabilisedErrorResponse ¶
func ToPBResourceHasStabilisedErrorResponse( err error, ) *sharedtypesv1.ResourceHasStabilisedResponse
ToPBResourceHasStabilisedErrorResponse converts an error from a resource stabilisation check to a ResourceHasStabilisedResponse protobuf message that can be sent over gRPC.
func ToPBResourceHasStabilisedResponse ¶
func ToPBResourceHasStabilisedResponse( output *provider.ResourceHasStabilisedOutput, ) *sharedtypesv1.ResourceHasStabilisedResponse
ToPBResourceHasStabilisedResponse converts the output from a resource stabilisation check to a ResourceHasStabilisedResponse protobuf message that can be sent over gRPC.
func ToPBResourceInfo ¶
func ToPBResourceInfo( resourceInfo *provider.ResourceInfo, ) (*sharedtypesv1.ResourceInfo, error)
ToPBResourceInfo converts a blueprint framework ResourceInfo to a ResourceInfo protobuf message that can be sent over gRPC.
func ToPBResourceMetadataState ¶
func ToPBResourceMetadataState( metadataState *state.ResourceMetadataState, ) (*sharedtypesv1.ResourceMetadataState, error)
ToPBResourceMetadataState converts a blueprint framework ResourceMetadataState to a ResourceMetadataState protobuf message that can be sent over gRPC.
func ToPBResourceState ¶
func ToPBResourceState( resourceState *state.ResourceState, ) (*sharedtypesv1.ResourceState, error)
ToPBResourceState converts a blueprint framework ResourceState to a ResourceState protobuf message that can be sent over gRPC.
func ToPBResourceTypeErrorResponse ¶
func ToPBResourceTypeErrorResponse( err error, ) *sharedtypesv1.ResourceTypeResponse
ToPBResourceTypeErrorResponse converts an error to a sharedtypesv1.ResourceTypeResponse with an error response.
func ToPBResourceTypeResponse ¶
func ToPBResourceTypeResponse( typeInfo *provider.ResourceGetTypeOutput, ) *sharedtypesv1.ResourceTypeResponse
ToPBResourceTypeResponse converts a provider.ResourceType to a sharedtypesv1.ResourceTypeResponse that can be sent in a gRPC call to a plugin.
func ToPBResourceTypes ¶
func ToPBResourceTypes(resourceTypes []string) []*sharedtypesv1.ResourceType
ToPBResourceTypes converts a list of resource type strings to a list of sharedtypesv1.ResourceType that can be sent in a gRPC call to a plugin.
func ToPBScalarMap ¶
func ToPBScalarMap(m map[string]*core.ScalarValue) (map[string]*schemapb.ScalarValue, error)
ToPBScalarMap converts a map of core ScalarValues to a map of protobuf ScalarValues that can be sent over gRPC.
func ToPBScalarSlice ¶
func ToPBScalarSlice(slice []*core.ScalarValue) ([]*schemapb.ScalarValue, error)
ToPBScalarSlice converts a slice of core ScalarValues to a slice of protobuf ScalarValues that can be sent over gRPC.
func ToPBScalarType ¶
func ToPBScalarType( scalarType core.ScalarType, ) sharedtypesv1.ScalarType
ToPBScalarType converts a blueprint framework ScalarType to a ScalarType protobuf message that can be sent over gRPC.
func ToPBSystemMetadataState ¶ added in v0.2.0
func ToPBSystemMetadataState( systemMetadata *state.SystemMetadataState, ) *sharedtypesv1.SystemMetadataState
ToPBSystemMetadataState converts a state.SystemMetadataState to a SystemMetadataState protobuf message that can be sent over gRPC.
func ToPBTaggingConfig ¶ added in v0.2.0
func ToPBTaggingConfig(taggingConfig *provider.TaggingConfig) *sharedtypesv1.TaggingConfig
ToPBTaggingConfig converts a provider.TaggingConfig to a TaggingConfig protobuf message that can be sent over gRPC.
func ToPBTaggingSupport ¶ added in v0.2.0
func ToPBTaggingSupport(taggingSupport provider.TaggingSupport) sharedtypesv1.TaggingSupport
ToPBTaggingSupport converts a provider.TaggingSupport to a TaggingSupport protobuf enum.
func ToPBTypeDescriptionErrorResponse ¶
func ToPBTypeDescriptionErrorResponse( err error, ) *sharedtypesv1.TypeDescriptionResponse
ToPBTypeDescriptionErrorResponse converts an error from trying to retrieve an entity type description to a TypeDescriptionResponse protobuf message that can be sent over gRPC.
Types ¶
This section is empty.