Documentation ¶
Index ¶
- Variables
- func RegisterPactPluginServer(s grpc.ServiceRegistrar, srv PactPluginServer)
- type Body
- func (*Body) Descriptor() ([]byte, []int)deprecated
- func (x *Body) GetContent() *wrapperspb.BytesValue
- func (x *Body) GetContentType() string
- func (x *Body) GetContentTypeHint() Body_ContentTypeHint
- func (*Body) ProtoMessage()
- func (x *Body) ProtoReflect() protoreflect.Message
- func (x *Body) Reset()
- func (x *Body) String() string
- type Body_ContentTypeHint
- func (Body_ContentTypeHint) Descriptor() protoreflect.EnumDescriptor
- func (x Body_ContentTypeHint) Enum() *Body_ContentTypeHint
- func (Body_ContentTypeHint) EnumDescriptor() ([]byte, []int)deprecated
- func (x Body_ContentTypeHint) Number() protoreflect.EnumNumber
- func (x Body_ContentTypeHint) String() string
- func (Body_ContentTypeHint) Type() protoreflect.EnumType
- type Catalogue
- type CatalogueEntry
- func (*CatalogueEntry) Descriptor() ([]byte, []int)deprecated
- func (x *CatalogueEntry) GetKey() string
- func (x *CatalogueEntry) GetType() CatalogueEntry_EntryType
- func (x *CatalogueEntry) GetValues() map[string]string
- func (*CatalogueEntry) ProtoMessage()
- func (x *CatalogueEntry) ProtoReflect() protoreflect.Message
- func (x *CatalogueEntry) Reset()
- func (x *CatalogueEntry) String() string
- type CatalogueEntry_EntryType
- func (CatalogueEntry_EntryType) Descriptor() protoreflect.EnumDescriptor
- func (x CatalogueEntry_EntryType) Enum() *CatalogueEntry_EntryType
- func (CatalogueEntry_EntryType) EnumDescriptor() ([]byte, []int)deprecated
- func (x CatalogueEntry_EntryType) Number() protoreflect.EnumNumber
- func (x CatalogueEntry_EntryType) String() string
- func (CatalogueEntry_EntryType) Type() protoreflect.EnumType
- type CompareContentsRequest
- func (*CompareContentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CompareContentsRequest) GetActual() *Body
- func (x *CompareContentsRequest) GetAllowUnexpectedKeys() bool
- func (x *CompareContentsRequest) GetExpected() *Body
- func (x *CompareContentsRequest) GetPluginConfiguration() *PluginConfiguration
- func (x *CompareContentsRequest) GetRules() map[string]*MatchingRules
- func (*CompareContentsRequest) ProtoMessage()
- func (x *CompareContentsRequest) ProtoReflect() protoreflect.Message
- func (x *CompareContentsRequest) Reset()
- func (x *CompareContentsRequest) String() string
- type CompareContentsResponse
- func (*CompareContentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CompareContentsResponse) GetError() string
- func (x *CompareContentsResponse) GetResults() map[string]*ContentMismatches
- func (x *CompareContentsResponse) GetTypeMismatch() *ContentTypeMismatch
- func (*CompareContentsResponse) ProtoMessage()
- func (x *CompareContentsResponse) ProtoReflect() protoreflect.Message
- func (x *CompareContentsResponse) Reset()
- func (x *CompareContentsResponse) String() string
- type ConfigureInteractionRequest
- func (*ConfigureInteractionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigureInteractionRequest) GetContentType() string
- func (x *ConfigureInteractionRequest) GetContentsConfig() *structpb.Struct
- func (*ConfigureInteractionRequest) ProtoMessage()
- func (x *ConfigureInteractionRequest) ProtoReflect() protoreflect.Message
- func (x *ConfigureInteractionRequest) Reset()
- func (x *ConfigureInteractionRequest) String() string
- type ConfigureInteractionResponse
- func (*ConfigureInteractionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigureInteractionResponse) GetError() string
- func (x *ConfigureInteractionResponse) GetInteraction() []*InteractionResponse
- func (x *ConfigureInteractionResponse) GetPluginConfiguration() *PluginConfiguration
- func (*ConfigureInteractionResponse) ProtoMessage()
- func (x *ConfigureInteractionResponse) ProtoReflect() protoreflect.Message
- func (x *ConfigureInteractionResponse) Reset()
- func (x *ConfigureInteractionResponse) String() string
- type ContentMismatch
- func (*ContentMismatch) Descriptor() ([]byte, []int)deprecated
- func (x *ContentMismatch) GetActual() *wrapperspb.BytesValue
- func (x *ContentMismatch) GetDiff() string
- func (x *ContentMismatch) GetExpected() *wrapperspb.BytesValue
- func (x *ContentMismatch) GetMismatch() string
- func (x *ContentMismatch) GetPath() string
- func (*ContentMismatch) ProtoMessage()
- func (x *ContentMismatch) ProtoReflect() protoreflect.Message
- func (x *ContentMismatch) Reset()
- func (x *ContentMismatch) String() string
- type ContentMismatches
- func (*ContentMismatches) Descriptor() ([]byte, []int)deprecated
- func (x *ContentMismatches) GetMismatches() []*ContentMismatch
- func (*ContentMismatches) ProtoMessage()
- func (x *ContentMismatches) ProtoReflect() protoreflect.Message
- func (x *ContentMismatches) Reset()
- func (x *ContentMismatches) String() string
- type ContentTypeMismatch
- func (*ContentTypeMismatch) Descriptor() ([]byte, []int)deprecated
- func (x *ContentTypeMismatch) GetActual() string
- func (x *ContentTypeMismatch) GetExpected() string
- func (*ContentTypeMismatch) ProtoMessage()
- func (x *ContentTypeMismatch) ProtoReflect() protoreflect.Message
- func (x *ContentTypeMismatch) Reset()
- func (x *ContentTypeMismatch) String() string
- type GenerateContentRequest
- func (*GenerateContentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateContentRequest) GetContents() *Body
- func (x *GenerateContentRequest) GetGenerators() map[string]*Generator
- func (x *GenerateContentRequest) GetPluginConfiguration() *PluginConfiguration
- func (*GenerateContentRequest) ProtoMessage()
- func (x *GenerateContentRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateContentRequest) Reset()
- func (x *GenerateContentRequest) String() string
- type GenerateContentResponse
- func (*GenerateContentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateContentResponse) GetContents() *Body
- func (*GenerateContentResponse) ProtoMessage()
- func (x *GenerateContentResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateContentResponse) Reset()
- func (x *GenerateContentResponse) String() string
- type Generator
- type InitPluginRequest
- func (*InitPluginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InitPluginRequest) GetImplementation() string
- func (x *InitPluginRequest) GetVersion() string
- func (*InitPluginRequest) ProtoMessage()
- func (x *InitPluginRequest) ProtoReflect() protoreflect.Message
- func (x *InitPluginRequest) Reset()
- func (x *InitPluginRequest) String() string
- type InitPluginResponse
- func (*InitPluginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InitPluginResponse) GetCatalogue() []*CatalogueEntry
- func (*InitPluginResponse) ProtoMessage()
- func (x *InitPluginResponse) ProtoReflect() protoreflect.Message
- func (x *InitPluginResponse) Reset()
- func (x *InitPluginResponse) String() string
- type InteractionData
- func (*InteractionData) Descriptor() ([]byte, []int)deprecated
- func (x *InteractionData) GetBody() *Body
- func (x *InteractionData) GetMetadata() map[string]*MetadataValue
- func (*InteractionData) ProtoMessage()
- func (x *InteractionData) ProtoReflect() protoreflect.Message
- func (x *InteractionData) Reset()
- func (x *InteractionData) String() string
- type InteractionResponse
- func (*InteractionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InteractionResponse) GetContents() *Body
- func (x *InteractionResponse) GetGenerators() map[string]*Generator
- func (x *InteractionResponse) GetInteractionMarkup() string
- func (x *InteractionResponse) GetInteractionMarkupType() InteractionResponse_MarkupType
- func (x *InteractionResponse) GetMessageMetadata() *structpb.Struct
- func (x *InteractionResponse) GetPartName() string
- func (x *InteractionResponse) GetPluginConfiguration() *PluginConfiguration
- func (x *InteractionResponse) GetRules() map[string]*MatchingRules
- func (*InteractionResponse) ProtoMessage()
- func (x *InteractionResponse) ProtoReflect() protoreflect.Message
- func (x *InteractionResponse) Reset()
- func (x *InteractionResponse) String() string
- type InteractionResponse_MarkupType
- func (InteractionResponse_MarkupType) Descriptor() protoreflect.EnumDescriptor
- func (x InteractionResponse_MarkupType) Enum() *InteractionResponse_MarkupType
- func (InteractionResponse_MarkupType) EnumDescriptor() ([]byte, []int)deprecated
- func (x InteractionResponse_MarkupType) Number() protoreflect.EnumNumber
- func (x InteractionResponse_MarkupType) String() string
- func (InteractionResponse_MarkupType) Type() protoreflect.EnumType
- type MatchingRule
- func (*MatchingRule) Descriptor() ([]byte, []int)deprecated
- func (x *MatchingRule) GetType() string
- func (x *MatchingRule) GetValues() *structpb.Struct
- func (*MatchingRule) ProtoMessage()
- func (x *MatchingRule) ProtoReflect() protoreflect.Message
- func (x *MatchingRule) Reset()
- func (x *MatchingRule) String() string
- type MatchingRules
- type MetadataValue
- func (*MetadataValue) Descriptor() ([]byte, []int)deprecated
- func (x *MetadataValue) GetBinaryValue() []byte
- func (x *MetadataValue) GetNonBinaryValue() *structpb.Value
- func (m *MetadataValue) GetValue() isMetadataValue_Value
- func (*MetadataValue) ProtoMessage()
- func (x *MetadataValue) ProtoReflect() protoreflect.Message
- func (x *MetadataValue) Reset()
- func (x *MetadataValue) String() string
- type MetadataValue_BinaryValue
- type MetadataValue_NonBinaryValue
- type MockServerDetails
- func (*MockServerDetails) Descriptor() ([]byte, []int)deprecated
- func (x *MockServerDetails) GetAddress() string
- func (x *MockServerDetails) GetKey() string
- func (x *MockServerDetails) GetPort() uint32
- func (*MockServerDetails) ProtoMessage()
- func (x *MockServerDetails) ProtoReflect() protoreflect.Message
- func (x *MockServerDetails) Reset()
- func (x *MockServerDetails) String() string
- type MockServerRequest
- type MockServerResult
- func (*MockServerResult) Descriptor() ([]byte, []int)deprecated
- func (x *MockServerResult) GetError() string
- func (x *MockServerResult) GetMismatches() []*ContentMismatch
- func (x *MockServerResult) GetPath() string
- func (*MockServerResult) ProtoMessage()
- func (x *MockServerResult) ProtoReflect() protoreflect.Message
- func (x *MockServerResult) Reset()
- func (x *MockServerResult) String() string
- type MockServerResults
- func (*MockServerResults) Descriptor() ([]byte, []int)deprecated
- func (x *MockServerResults) GetOk() bool
- func (x *MockServerResults) GetResults() []*MockServerResult
- func (*MockServerResults) ProtoMessage()
- func (x *MockServerResults) ProtoReflect() protoreflect.Message
- func (x *MockServerResults) Reset()
- func (x *MockServerResults) String() string
- type PactPluginClient
- type PactPluginServer
- type PluginConfiguration
- func (*PluginConfiguration) Descriptor() ([]byte, []int)deprecated
- func (x *PluginConfiguration) GetInteractionConfiguration() *structpb.Struct
- func (x *PluginConfiguration) GetPactConfiguration() *structpb.Struct
- func (*PluginConfiguration) ProtoMessage()
- func (x *PluginConfiguration) ProtoReflect() protoreflect.Message
- func (x *PluginConfiguration) Reset()
- func (x *PluginConfiguration) String() string
- type ShutdownMockServerRequest
- func (*ShutdownMockServerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ShutdownMockServerRequest) GetServerKey() string
- func (*ShutdownMockServerRequest) ProtoMessage()
- func (x *ShutdownMockServerRequest) ProtoReflect() protoreflect.Message
- func (x *ShutdownMockServerRequest) Reset()
- func (x *ShutdownMockServerRequest) String() string
- type ShutdownMockServerResponse
- func (*ShutdownMockServerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ShutdownMockServerResponse) GetOk() bool
- func (x *ShutdownMockServerResponse) GetResults() []*MockServerResult
- func (*ShutdownMockServerResponse) ProtoMessage()
- func (x *ShutdownMockServerResponse) ProtoReflect() protoreflect.Message
- func (x *ShutdownMockServerResponse) Reset()
- func (x *ShutdownMockServerResponse) String() string
- type StartMockServerRequest
- func (*StartMockServerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StartMockServerRequest) GetHostInterface() string
- func (x *StartMockServerRequest) GetPact() string
- func (x *StartMockServerRequest) GetPort() uint32
- func (x *StartMockServerRequest) GetTls() bool
- func (*StartMockServerRequest) ProtoMessage()
- func (x *StartMockServerRequest) ProtoReflect() protoreflect.Message
- func (x *StartMockServerRequest) Reset()
- func (x *StartMockServerRequest) String() string
- type StartMockServerResponse
- func (*StartMockServerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StartMockServerResponse) GetDetails() *MockServerDetails
- func (x *StartMockServerResponse) GetError() string
- func (m *StartMockServerResponse) GetResponse() isStartMockServerResponse_Response
- func (*StartMockServerResponse) ProtoMessage()
- func (x *StartMockServerResponse) ProtoReflect() protoreflect.Message
- func (x *StartMockServerResponse) Reset()
- func (x *StartMockServerResponse) String() string
- type StartMockServerResponse_Details
- type StartMockServerResponse_Error
- type UnimplementedPactPluginServer
- func (UnimplementedPactPluginServer) CompareContents(context.Context, *CompareContentsRequest) (*CompareContentsResponse, error)
- func (UnimplementedPactPluginServer) ConfigureInteraction(context.Context, *ConfigureInteractionRequest) (*ConfigureInteractionResponse, error)
- func (UnimplementedPactPluginServer) GenerateContent(context.Context, *GenerateContentRequest) (*GenerateContentResponse, error)
- func (UnimplementedPactPluginServer) GetMockServerResults(context.Context, *MockServerRequest) (*MockServerResults, error)
- func (UnimplementedPactPluginServer) InitPlugin(context.Context, *InitPluginRequest) (*InitPluginResponse, error)
- func (UnimplementedPactPluginServer) PrepareInteractionForVerification(context.Context, *VerificationPreparationRequest) (*VerificationPreparationResponse, error)
- func (UnimplementedPactPluginServer) ShutdownMockServer(context.Context, *ShutdownMockServerRequest) (*ShutdownMockServerResponse, error)
- func (UnimplementedPactPluginServer) StartMockServer(context.Context, *StartMockServerRequest) (*StartMockServerResponse, error)
- func (UnimplementedPactPluginServer) UpdateCatalogue(context.Context, *Catalogue) (*emptypb.Empty, error)
- func (UnimplementedPactPluginServer) VerifyInteraction(context.Context, *VerifyInteractionRequest) (*VerifyInteractionResponse, error)
- type UnsafePactPluginServer
- type VerificationPreparationRequest
- func (*VerificationPreparationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerificationPreparationRequest) GetConfig() *structpb.Struct
- func (x *VerificationPreparationRequest) GetInteractionKey() string
- func (x *VerificationPreparationRequest) GetPact() string
- func (*VerificationPreparationRequest) ProtoMessage()
- func (x *VerificationPreparationRequest) ProtoReflect() protoreflect.Message
- func (x *VerificationPreparationRequest) Reset()
- func (x *VerificationPreparationRequest) String() string
- type VerificationPreparationResponse
- func (*VerificationPreparationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VerificationPreparationResponse) GetError() string
- func (x *VerificationPreparationResponse) GetInteractionData() *InteractionData
- func (m *VerificationPreparationResponse) GetResponse() isVerificationPreparationResponse_Response
- func (*VerificationPreparationResponse) ProtoMessage()
- func (x *VerificationPreparationResponse) ProtoReflect() protoreflect.Message
- func (x *VerificationPreparationResponse) Reset()
- func (x *VerificationPreparationResponse) String() string
- type VerificationPreparationResponse_Error
- type VerificationPreparationResponse_InteractionData
- type VerificationResult
- func (*VerificationResult) Descriptor() ([]byte, []int)deprecated
- func (x *VerificationResult) GetMismatches() []*VerificationResultItem
- func (x *VerificationResult) GetOutput() []string
- func (x *VerificationResult) GetResponseData() *InteractionData
- func (x *VerificationResult) GetSuccess() bool
- func (*VerificationResult) ProtoMessage()
- func (x *VerificationResult) ProtoReflect() protoreflect.Message
- func (x *VerificationResult) Reset()
- func (x *VerificationResult) String() string
- type VerificationResultItem
- func (*VerificationResultItem) Descriptor() ([]byte, []int)deprecated
- func (x *VerificationResultItem) GetError() string
- func (x *VerificationResultItem) GetMismatch() *ContentMismatch
- func (m *VerificationResultItem) GetResult() isVerificationResultItem_Result
- func (*VerificationResultItem) ProtoMessage()
- func (x *VerificationResultItem) ProtoReflect() protoreflect.Message
- func (x *VerificationResultItem) Reset()
- func (x *VerificationResultItem) String() string
- type VerificationResultItem_Error
- type VerificationResultItem_Mismatch
- type VerifyInteractionRequest
- func (*VerifyInteractionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyInteractionRequest) GetConfig() *structpb.Struct
- func (x *VerifyInteractionRequest) GetInteractionData() *InteractionData
- func (x *VerifyInteractionRequest) GetInteractionKey() string
- func (x *VerifyInteractionRequest) GetPact() string
- func (*VerifyInteractionRequest) ProtoMessage()
- func (x *VerifyInteractionRequest) ProtoReflect() protoreflect.Message
- func (x *VerifyInteractionRequest) Reset()
- func (x *VerifyInteractionRequest) String() string
- type VerifyInteractionResponse
- func (*VerifyInteractionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyInteractionResponse) GetError() string
- func (m *VerifyInteractionResponse) GetResponse() isVerifyInteractionResponse_Response
- func (x *VerifyInteractionResponse) GetResult() *VerificationResult
- func (*VerifyInteractionResponse) ProtoMessage()
- func (x *VerifyInteractionResponse) ProtoReflect() protoreflect.Message
- func (x *VerifyInteractionResponse) Reset()
- func (x *VerifyInteractionResponse) String() string
- type VerifyInteractionResponse_Error
- type VerifyInteractionResponse_Result
Constants ¶
This section is empty.
Variables ¶
var ( CatalogueEntry_EntryType_name = map[int32]string{ 0: "CONTENT_MATCHER", 1: "CONTENT_GENERATOR", 2: "TRANSPORT", 3: "MATCHER", 4: "INTERACTION", } CatalogueEntry_EntryType_value = map[string]int32{ "CONTENT_MATCHER": 0, "CONTENT_GENERATOR": 1, "TRANSPORT": 2, "MATCHER": 3, "INTERACTION": 4, } )
Enum value maps for CatalogueEntry_EntryType.
var ( Body_ContentTypeHint_name = map[int32]string{ 0: "DEFAULT", 1: "TEXT", 2: "BINARY", } Body_ContentTypeHint_value = map[string]int32{ "DEFAULT": 0, "TEXT": 1, "BINARY": 2, } )
Enum value maps for Body_ContentTypeHint.
var ( InteractionResponse_MarkupType_name = map[int32]string{ 0: "COMMON_MARK", 1: "HTML", } InteractionResponse_MarkupType_value = map[string]int32{ "COMMON_MARK": 0, "HTML": 1, } )
Enum value maps for InteractionResponse_MarkupType.
var File_io_pact_plugin_pact_plugin_proto protoreflect.FileDescriptor
var PactPlugin_ServiceDesc = grpc.ServiceDesc{ ServiceName: "io.pact.plugin.PactPlugin", HandlerType: (*PactPluginServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "InitPlugin", Handler: _PactPlugin_InitPlugin_Handler, }, { MethodName: "UpdateCatalogue", Handler: _PactPlugin_UpdateCatalogue_Handler, }, { MethodName: "CompareContents", Handler: _PactPlugin_CompareContents_Handler, }, { MethodName: "ConfigureInteraction", Handler: _PactPlugin_ConfigureInteraction_Handler, }, { MethodName: "GenerateContent", Handler: _PactPlugin_GenerateContent_Handler, }, { MethodName: "StartMockServer", Handler: _PactPlugin_StartMockServer_Handler, }, { MethodName: "ShutdownMockServer", Handler: _PactPlugin_ShutdownMockServer_Handler, }, { MethodName: "GetMockServerResults", Handler: _PactPlugin_GetMockServerResults_Handler, }, { MethodName: "PrepareInteractionForVerification", Handler: _PactPlugin_PrepareInteractionForVerification_Handler, }, { MethodName: "VerifyInteraction", Handler: _PactPlugin_VerifyInteraction_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "io_pact_plugin/pact_plugin.proto", }
PactPlugin_ServiceDesc is the grpc.ServiceDesc for PactPlugin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPactPluginServer ¶
func RegisterPactPluginServer(s grpc.ServiceRegistrar, srv PactPluginServer)
Types ¶
type Body ¶
type Body struct { // The content type of the body in MIME format (i.e. application/json) ContentType string `protobuf:"bytes,1,opt,name=contentType,proto3" json:"contentType,omitempty"` // Bytes of the actual content Content *wrapperspb.BytesValue `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // Content type override to apply (if required). If omitted, the default rules of the Pact implementation // will be used ContentTypeHint Body_ContentTypeHint `protobuf:"varint,3,opt,name=contentTypeHint,proto3,enum=io.pact.plugin.Body_ContentTypeHint" json:"contentTypeHint,omitempty"` // contains filtered or unexported fields }
Message representing a request, response or message body
func (*Body) Descriptor
deprecated
func (*Body) GetContent ¶
func (x *Body) GetContent() *wrapperspb.BytesValue
func (*Body) GetContentType ¶
func (*Body) GetContentTypeHint ¶
func (x *Body) GetContentTypeHint() Body_ContentTypeHint
func (*Body) ProtoMessage ¶
func (*Body) ProtoMessage()
func (*Body) ProtoReflect ¶
func (x *Body) ProtoReflect() protoreflect.Message
type Body_ContentTypeHint ¶
type Body_ContentTypeHint int32
Enum of content type override. This is a hint on how the content type should be treated.
const ( // Determine the form of the content using the default rules of the Pact implementation Body_DEFAULT Body_ContentTypeHint = 0 // Contents must always be treated as a text form Body_TEXT Body_ContentTypeHint = 1 // Contents must always be treated as a binary form Body_BINARY Body_ContentTypeHint = 2 )
func (Body_ContentTypeHint) Descriptor ¶
func (Body_ContentTypeHint) Descriptor() protoreflect.EnumDescriptor
func (Body_ContentTypeHint) Enum ¶
func (x Body_ContentTypeHint) Enum() *Body_ContentTypeHint
func (Body_ContentTypeHint) EnumDescriptor
deprecated
func (Body_ContentTypeHint) EnumDescriptor() ([]byte, []int)
Deprecated: Use Body_ContentTypeHint.Descriptor instead.
func (Body_ContentTypeHint) Number ¶
func (x Body_ContentTypeHint) Number() protoreflect.EnumNumber
func (Body_ContentTypeHint) String ¶
func (x Body_ContentTypeHint) String() string
func (Body_ContentTypeHint) Type ¶
func (Body_ContentTypeHint) Type() protoreflect.EnumType
type Catalogue ¶
type Catalogue struct { // List of entries from the core catalogue Catalogue []*CatalogueEntry `protobuf:"bytes,1,rep,name=catalogue,proto3" json:"catalogue,omitempty"` // contains filtered or unexported fields }
Catalogue of Core Pact + Plugin features
func (*Catalogue) Descriptor
deprecated
func (*Catalogue) GetCatalogue ¶
func (x *Catalogue) GetCatalogue() []*CatalogueEntry
func (*Catalogue) ProtoMessage ¶
func (*Catalogue) ProtoMessage()
func (*Catalogue) ProtoReflect ¶
func (x *Catalogue) ProtoReflect() protoreflect.Message
type CatalogueEntry ¶
type CatalogueEntry struct { // Entry type Type CatalogueEntry_EntryType `protobuf:"varint,1,opt,name=type,proto3,enum=io.pact.plugin.CatalogueEntry_EntryType" json:"type,omitempty"` // Entry key Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // Associated data required for the entry. For CONTENT_MATCHER and CONTENT_GENERATOR types, a "content-types" // value (separated by semi-colons) is required for all the content types the plugin supports. Values map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
Entry to be added to the core catalogue. Each entry describes one of the features the plugin provides. Entries will be stored in the catalogue under the key "plugin/$name/$type/$key".
func (*CatalogueEntry) Descriptor
deprecated
func (*CatalogueEntry) Descriptor() ([]byte, []int)
Deprecated: Use CatalogueEntry.ProtoReflect.Descriptor instead.
func (*CatalogueEntry) GetKey ¶
func (x *CatalogueEntry) GetKey() string
func (*CatalogueEntry) GetType ¶
func (x *CatalogueEntry) GetType() CatalogueEntry_EntryType
func (*CatalogueEntry) GetValues ¶
func (x *CatalogueEntry) GetValues() map[string]string
func (*CatalogueEntry) ProtoMessage ¶
func (*CatalogueEntry) ProtoMessage()
func (*CatalogueEntry) ProtoReflect ¶
func (x *CatalogueEntry) ProtoReflect() protoreflect.Message
func (*CatalogueEntry) Reset ¶
func (x *CatalogueEntry) Reset()
func (*CatalogueEntry) String ¶
func (x *CatalogueEntry) String() string
type CatalogueEntry_EntryType ¶
type CatalogueEntry_EntryType int32
const ( // Matcher for contents of messages, requests or response bodies CatalogueEntry_CONTENT_MATCHER CatalogueEntry_EntryType = 0 // Generator for contents of messages, requests or response bodies CatalogueEntry_CONTENT_GENERATOR CatalogueEntry_EntryType = 1 // Transport for a network protocol CatalogueEntry_TRANSPORT CatalogueEntry_EntryType = 2 // Matching rule for content field/values CatalogueEntry_MATCHER CatalogueEntry_EntryType = 3 // Type of interaction CatalogueEntry_INTERACTION CatalogueEntry_EntryType = 4 )
func (CatalogueEntry_EntryType) Descriptor ¶
func (CatalogueEntry_EntryType) Descriptor() protoreflect.EnumDescriptor
func (CatalogueEntry_EntryType) Enum ¶
func (x CatalogueEntry_EntryType) Enum() *CatalogueEntry_EntryType
func (CatalogueEntry_EntryType) EnumDescriptor
deprecated
func (CatalogueEntry_EntryType) EnumDescriptor() ([]byte, []int)
Deprecated: Use CatalogueEntry_EntryType.Descriptor instead.
func (CatalogueEntry_EntryType) Number ¶
func (x CatalogueEntry_EntryType) Number() protoreflect.EnumNumber
func (CatalogueEntry_EntryType) String ¶
func (x CatalogueEntry_EntryType) String() string
func (CatalogueEntry_EntryType) Type ¶
func (CatalogueEntry_EntryType) Type() protoreflect.EnumType
type CompareContentsRequest ¶
type CompareContentsRequest struct { // Expected body from the Pact interaction Expected *Body `protobuf:"bytes,1,opt,name=expected,proto3" json:"expected,omitempty"` // Actual received body Actual *Body `protobuf:"bytes,2,opt,name=actual,proto3" json:"actual,omitempty"` // If unexpected keys or attributes should be allowed. Setting this to false results in additional keys or fields // will cause a mismatch AllowUnexpectedKeys bool `protobuf:"varint,3,opt,name=allow_unexpected_keys,json=allowUnexpectedKeys,proto3" json:"allow_unexpected_keys,omitempty"` // Map of expressions to matching rules. The expressions follow the documented Pact matching rule expressions Rules map[string]*MatchingRules `` /* 151-byte string literal not displayed */ // Additional data added to the Pact/Interaction by the plugin PluginConfiguration *PluginConfiguration `protobuf:"bytes,5,opt,name=pluginConfiguration,proto3" json:"pluginConfiguration,omitempty"` // contains filtered or unexported fields }
Request to preform a comparison on an actual body given the expected one
func (*CompareContentsRequest) Descriptor
deprecated
func (*CompareContentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use CompareContentsRequest.ProtoReflect.Descriptor instead.
func (*CompareContentsRequest) GetActual ¶
func (x *CompareContentsRequest) GetActual() *Body
func (*CompareContentsRequest) GetAllowUnexpectedKeys ¶
func (x *CompareContentsRequest) GetAllowUnexpectedKeys() bool
func (*CompareContentsRequest) GetExpected ¶
func (x *CompareContentsRequest) GetExpected() *Body
func (*CompareContentsRequest) GetPluginConfiguration ¶
func (x *CompareContentsRequest) GetPluginConfiguration() *PluginConfiguration
func (*CompareContentsRequest) GetRules ¶
func (x *CompareContentsRequest) GetRules() map[string]*MatchingRules
func (*CompareContentsRequest) ProtoMessage ¶
func (*CompareContentsRequest) ProtoMessage()
func (*CompareContentsRequest) ProtoReflect ¶
func (x *CompareContentsRequest) ProtoReflect() protoreflect.Message
func (*CompareContentsRequest) Reset ¶
func (x *CompareContentsRequest) Reset()
func (*CompareContentsRequest) String ¶
func (x *CompareContentsRequest) String() string
type CompareContentsResponse ¶
type CompareContentsResponse struct { // Error message if an error occurred. If this field is set, the remaining fields will be ignored and the // verification marked as failed Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // There was a mismatch with the types of content. If this is set, the results may not be set. TypeMismatch *ContentTypeMismatch `protobuf:"bytes,2,opt,name=typeMismatch,proto3" json:"typeMismatch,omitempty"` // Results of the match, keyed by matching rule expression Results map[string]*ContentMismatches `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
Response to the CompareContentsRequest with the results of the comparison
func (*CompareContentsResponse) Descriptor
deprecated
func (*CompareContentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use CompareContentsResponse.ProtoReflect.Descriptor instead.
func (*CompareContentsResponse) GetError ¶
func (x *CompareContentsResponse) GetError() string
func (*CompareContentsResponse) GetResults ¶
func (x *CompareContentsResponse) GetResults() map[string]*ContentMismatches
func (*CompareContentsResponse) GetTypeMismatch ¶
func (x *CompareContentsResponse) GetTypeMismatch() *ContentTypeMismatch
func (*CompareContentsResponse) ProtoMessage ¶
func (*CompareContentsResponse) ProtoMessage()
func (*CompareContentsResponse) ProtoReflect ¶
func (x *CompareContentsResponse) ProtoReflect() protoreflect.Message
func (*CompareContentsResponse) Reset ¶
func (x *CompareContentsResponse) Reset()
func (*CompareContentsResponse) String ¶
func (x *CompareContentsResponse) String() string
type ConfigureInteractionRequest ¶
type ConfigureInteractionRequest struct { // Content type of the interaction (MIME format) ContentType string `protobuf:"bytes,1,opt,name=contentType,proto3" json:"contentType,omitempty"` // This is data specified by the user in the consumer test ContentsConfig *structpb.Struct `protobuf:"bytes,2,opt,name=contentsConfig,proto3" json:"contentsConfig,omitempty"` // contains filtered or unexported fields }
Request to configure/setup an interaction so that it can be verified later
func (*ConfigureInteractionRequest) Descriptor
deprecated
func (*ConfigureInteractionRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConfigureInteractionRequest.ProtoReflect.Descriptor instead.
func (*ConfigureInteractionRequest) GetContentType ¶
func (x *ConfigureInteractionRequest) GetContentType() string
func (*ConfigureInteractionRequest) GetContentsConfig ¶
func (x *ConfigureInteractionRequest) GetContentsConfig() *structpb.Struct
func (*ConfigureInteractionRequest) ProtoMessage ¶
func (*ConfigureInteractionRequest) ProtoMessage()
func (*ConfigureInteractionRequest) ProtoReflect ¶
func (x *ConfigureInteractionRequest) ProtoReflect() protoreflect.Message
func (*ConfigureInteractionRequest) Reset ¶
func (x *ConfigureInteractionRequest) Reset()
func (*ConfigureInteractionRequest) String ¶
func (x *ConfigureInteractionRequest) String() string
type ConfigureInteractionResponse ¶
type ConfigureInteractionResponse struct { // If an error occurred. In this case, the other fields will be ignored/not set Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // The actual response if no error occurred. Interaction []*InteractionResponse `protobuf:"bytes,2,rep,name=interaction,proto3" json:"interaction,omitempty"` // Plugin specific data to be persisted in the pact file PluginConfiguration *PluginConfiguration `protobuf:"bytes,3,opt,name=pluginConfiguration,proto3" json:"pluginConfiguration,omitempty"` // contains filtered or unexported fields }
Response to the configure/setup an interaction request
func (*ConfigureInteractionResponse) Descriptor
deprecated
func (*ConfigureInteractionResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConfigureInteractionResponse.ProtoReflect.Descriptor instead.
func (*ConfigureInteractionResponse) GetError ¶
func (x *ConfigureInteractionResponse) GetError() string
func (*ConfigureInteractionResponse) GetInteraction ¶
func (x *ConfigureInteractionResponse) GetInteraction() []*InteractionResponse
func (*ConfigureInteractionResponse) GetPluginConfiguration ¶
func (x *ConfigureInteractionResponse) GetPluginConfiguration() *PluginConfiguration
func (*ConfigureInteractionResponse) ProtoMessage ¶
func (*ConfigureInteractionResponse) ProtoMessage()
func (*ConfigureInteractionResponse) ProtoReflect ¶
func (x *ConfigureInteractionResponse) ProtoReflect() protoreflect.Message
func (*ConfigureInteractionResponse) Reset ¶
func (x *ConfigureInteractionResponse) Reset()
func (*ConfigureInteractionResponse) String ¶
func (x *ConfigureInteractionResponse) String() string
type ContentMismatch ¶
type ContentMismatch struct { // Expected data bytes Expected *wrapperspb.BytesValue `protobuf:"bytes,1,opt,name=expected,proto3" json:"expected,omitempty"` // Actual data bytes Actual *wrapperspb.BytesValue `protobuf:"bytes,2,opt,name=actual,proto3" json:"actual,omitempty"` // Description of the mismatch Mismatch string `protobuf:"bytes,3,opt,name=mismatch,proto3" json:"mismatch,omitempty"` // Path to the item that was matched. This is the value as per the documented Pact matching rule expressions. Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` // Optional diff of the contents Diff string `protobuf:"bytes,5,opt,name=diff,proto3" json:"diff,omitempty"` // contains filtered or unexported fields }
A mismatch for an particular item of content
func (*ContentMismatch) Descriptor
deprecated
func (*ContentMismatch) Descriptor() ([]byte, []int)
Deprecated: Use ContentMismatch.ProtoReflect.Descriptor instead.
func (*ContentMismatch) GetActual ¶
func (x *ContentMismatch) GetActual() *wrapperspb.BytesValue
func (*ContentMismatch) GetDiff ¶
func (x *ContentMismatch) GetDiff() string
func (*ContentMismatch) GetExpected ¶
func (x *ContentMismatch) GetExpected() *wrapperspb.BytesValue
func (*ContentMismatch) GetMismatch ¶
func (x *ContentMismatch) GetMismatch() string
func (*ContentMismatch) GetPath ¶
func (x *ContentMismatch) GetPath() string
func (*ContentMismatch) ProtoMessage ¶
func (*ContentMismatch) ProtoMessage()
func (*ContentMismatch) ProtoReflect ¶
func (x *ContentMismatch) ProtoReflect() protoreflect.Message
func (*ContentMismatch) Reset ¶
func (x *ContentMismatch) Reset()
func (*ContentMismatch) String ¶
func (x *ContentMismatch) String() string
type ContentMismatches ¶
type ContentMismatches struct { Mismatches []*ContentMismatch `protobuf:"bytes,1,rep,name=mismatches,proto3" json:"mismatches,omitempty"` // contains filtered or unexported fields }
List of content mismatches
func (*ContentMismatches) Descriptor
deprecated
func (*ContentMismatches) Descriptor() ([]byte, []int)
Deprecated: Use ContentMismatches.ProtoReflect.Descriptor instead.
func (*ContentMismatches) GetMismatches ¶
func (x *ContentMismatches) GetMismatches() []*ContentMismatch
func (*ContentMismatches) ProtoMessage ¶
func (*ContentMismatches) ProtoMessage()
func (*ContentMismatches) ProtoReflect ¶
func (x *ContentMismatches) ProtoReflect() protoreflect.Message
func (*ContentMismatches) Reset ¶
func (x *ContentMismatches) Reset()
func (*ContentMismatches) String ¶
func (x *ContentMismatches) String() string
type ContentTypeMismatch ¶
type ContentTypeMismatch struct { // Expected content type (MIME format) Expected string `protobuf:"bytes,1,opt,name=expected,proto3" json:"expected,omitempty"` // Actual content type received (MIME format) Actual string `protobuf:"bytes,2,opt,name=actual,proto3" json:"actual,omitempty"` // contains filtered or unexported fields }
Indicates that there was a mismatch with the content type
func (*ContentTypeMismatch) Descriptor
deprecated
func (*ContentTypeMismatch) Descriptor() ([]byte, []int)
Deprecated: Use ContentTypeMismatch.ProtoReflect.Descriptor instead.
func (*ContentTypeMismatch) GetActual ¶
func (x *ContentTypeMismatch) GetActual() string
func (*ContentTypeMismatch) GetExpected ¶
func (x *ContentTypeMismatch) GetExpected() string
func (*ContentTypeMismatch) ProtoMessage ¶
func (*ContentTypeMismatch) ProtoMessage()
func (*ContentTypeMismatch) ProtoReflect ¶
func (x *ContentTypeMismatch) ProtoReflect() protoreflect.Message
func (*ContentTypeMismatch) Reset ¶
func (x *ContentTypeMismatch) Reset()
func (*ContentTypeMismatch) String ¶
func (x *ContentTypeMismatch) String() string
type GenerateContentRequest ¶
type GenerateContentRequest struct { // Original contents Contents *Body `protobuf:"bytes,1,opt,name=contents,proto3" json:"contents,omitempty"` // Generators to apply Generators map[string]*Generator `` /* 161-byte string literal not displayed */ // Additional data added to the Pact/Interaction by the plugin PluginConfiguration *PluginConfiguration `protobuf:"bytes,3,opt,name=pluginConfiguration,proto3" json:"pluginConfiguration,omitempty"` // contains filtered or unexported fields }
Request to generate the contents using any defined generators
func (*GenerateContentRequest) Descriptor
deprecated
func (*GenerateContentRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateContentRequest.ProtoReflect.Descriptor instead.
func (*GenerateContentRequest) GetContents ¶
func (x *GenerateContentRequest) GetContents() *Body
func (*GenerateContentRequest) GetGenerators ¶
func (x *GenerateContentRequest) GetGenerators() map[string]*Generator
func (*GenerateContentRequest) GetPluginConfiguration ¶
func (x *GenerateContentRequest) GetPluginConfiguration() *PluginConfiguration
func (*GenerateContentRequest) ProtoMessage ¶
func (*GenerateContentRequest) ProtoMessage()
func (*GenerateContentRequest) ProtoReflect ¶
func (x *GenerateContentRequest) ProtoReflect() protoreflect.Message
func (*GenerateContentRequest) Reset ¶
func (x *GenerateContentRequest) Reset()
func (*GenerateContentRequest) String ¶
func (x *GenerateContentRequest) String() string
type GenerateContentResponse ¶
type GenerateContentResponse struct { Contents *Body `protobuf:"bytes,1,opt,name=contents,proto3" json:"contents,omitempty"` // contains filtered or unexported fields }
Generated body/message response
func (*GenerateContentResponse) Descriptor
deprecated
func (*GenerateContentResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateContentResponse.ProtoReflect.Descriptor instead.
func (*GenerateContentResponse) GetContents ¶
func (x *GenerateContentResponse) GetContents() *Body
func (*GenerateContentResponse) ProtoMessage ¶
func (*GenerateContentResponse) ProtoMessage()
func (*GenerateContentResponse) ProtoReflect ¶
func (x *GenerateContentResponse) ProtoReflect() protoreflect.Message
func (*GenerateContentResponse) Reset ¶
func (x *GenerateContentResponse) Reset()
func (*GenerateContentResponse) String ¶
func (x *GenerateContentResponse) String() string
type Generator ¶
type Generator struct { // Type of generator Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Associated data for the generator Values *structpb.Struct `protobuf:"bytes,2,opt,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
Example generator
func (*Generator) Descriptor
deprecated
func (*Generator) ProtoMessage ¶
func (*Generator) ProtoMessage()
func (*Generator) ProtoReflect ¶
func (x *Generator) ProtoReflect() protoreflect.Message
type InitPluginRequest ¶
type InitPluginRequest struct { // Implementation calling the plugin Implementation string `protobuf:"bytes,1,opt,name=implementation,proto3" json:"implementation,omitempty"` // Version of the implementation Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
Request to verify the plugin has loaded OK
func (*InitPluginRequest) Descriptor
deprecated
func (*InitPluginRequest) Descriptor() ([]byte, []int)
Deprecated: Use InitPluginRequest.ProtoReflect.Descriptor instead.
func (*InitPluginRequest) GetImplementation ¶
func (x *InitPluginRequest) GetImplementation() string
func (*InitPluginRequest) GetVersion ¶
func (x *InitPluginRequest) GetVersion() string
func (*InitPluginRequest) ProtoMessage ¶
func (*InitPluginRequest) ProtoMessage()
func (*InitPluginRequest) ProtoReflect ¶
func (x *InitPluginRequest) ProtoReflect() protoreflect.Message
func (*InitPluginRequest) Reset ¶
func (x *InitPluginRequest) Reset()
func (*InitPluginRequest) String ¶
func (x *InitPluginRequest) String() string
type InitPluginResponse ¶
type InitPluginResponse struct { // List of entries the plugin supports Catalogue []*CatalogueEntry `protobuf:"bytes,1,rep,name=catalogue,proto3" json:"catalogue,omitempty"` // contains filtered or unexported fields }
Response to init plugin, providing the catalogue entries the plugin provides
func (*InitPluginResponse) Descriptor
deprecated
func (*InitPluginResponse) Descriptor() ([]byte, []int)
Deprecated: Use InitPluginResponse.ProtoReflect.Descriptor instead.
func (*InitPluginResponse) GetCatalogue ¶
func (x *InitPluginResponse) GetCatalogue() []*CatalogueEntry
func (*InitPluginResponse) ProtoMessage ¶
func (*InitPluginResponse) ProtoMessage()
func (*InitPluginResponse) ProtoReflect ¶
func (x *InitPluginResponse) ProtoReflect() protoreflect.Message
func (*InitPluginResponse) Reset ¶
func (x *InitPluginResponse) Reset()
func (*InitPluginResponse) String ¶
func (x *InitPluginResponse) String() string
type InteractionData ¶
type InteractionData struct { // Request/Response body as bytes Body *Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // Metadata associated with the request/response Metadata map[string]*MetadataValue `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
Interaction request data to be sent or received for verification
func (*InteractionData) Descriptor
deprecated
func (*InteractionData) Descriptor() ([]byte, []int)
Deprecated: Use InteractionData.ProtoReflect.Descriptor instead.
func (*InteractionData) GetBody ¶
func (x *InteractionData) GetBody() *Body
func (*InteractionData) GetMetadata ¶
func (x *InteractionData) GetMetadata() map[string]*MetadataValue
func (*InteractionData) ProtoMessage ¶
func (*InteractionData) ProtoMessage()
func (*InteractionData) ProtoReflect ¶
func (x *InteractionData) ProtoReflect() protoreflect.Message
func (*InteractionData) Reset ¶
func (x *InteractionData) Reset()
func (*InteractionData) String ¶
func (x *InteractionData) String() string
type InteractionResponse ¶
type InteractionResponse struct { // Contents for the interaction Contents *Body `protobuf:"bytes,1,opt,name=contents,proto3" json:"contents,omitempty"` // All matching rules to apply Rules map[string]*MatchingRules `` /* 151-byte string literal not displayed */ // Generators to apply Generators map[string]*Generator `` /* 161-byte string literal not displayed */ // For message interactions, any metadata to be applied MessageMetadata *structpb.Struct `protobuf:"bytes,4,opt,name=messageMetadata,proto3" json:"messageMetadata,omitempty"` // Plugin specific data to be persisted in the pact file PluginConfiguration *PluginConfiguration `protobuf:"bytes,5,opt,name=pluginConfiguration,proto3" json:"pluginConfiguration,omitempty"` // Markdown/HTML formatted text representation of the interaction InteractionMarkup string `protobuf:"bytes,6,opt,name=interactionMarkup,proto3" json:"interactionMarkup,omitempty"` InteractionMarkupType InteractionResponse_MarkupType `` /* 147-byte string literal not displayed */ // Description of what part this interaction belongs to (in the case of there being more than one, for instance, // request/response messages) PartName string `protobuf:"bytes,8,opt,name=partName,proto3" json:"partName,omitempty"` // contains filtered or unexported fields }
Response to the configure/setup an interaction request
func (*InteractionResponse) Descriptor
deprecated
func (*InteractionResponse) Descriptor() ([]byte, []int)
Deprecated: Use InteractionResponse.ProtoReflect.Descriptor instead.
func (*InteractionResponse) GetContents ¶
func (x *InteractionResponse) GetContents() *Body
func (*InteractionResponse) GetGenerators ¶
func (x *InteractionResponse) GetGenerators() map[string]*Generator
func (*InteractionResponse) GetInteractionMarkup ¶
func (x *InteractionResponse) GetInteractionMarkup() string
func (*InteractionResponse) GetInteractionMarkupType ¶
func (x *InteractionResponse) GetInteractionMarkupType() InteractionResponse_MarkupType
func (*InteractionResponse) GetMessageMetadata ¶
func (x *InteractionResponse) GetMessageMetadata() *structpb.Struct
func (*InteractionResponse) GetPartName ¶
func (x *InteractionResponse) GetPartName() string
func (*InteractionResponse) GetPluginConfiguration ¶
func (x *InteractionResponse) GetPluginConfiguration() *PluginConfiguration
func (*InteractionResponse) GetRules ¶
func (x *InteractionResponse) GetRules() map[string]*MatchingRules
func (*InteractionResponse) ProtoMessage ¶
func (*InteractionResponse) ProtoMessage()
func (*InteractionResponse) ProtoReflect ¶
func (x *InteractionResponse) ProtoReflect() protoreflect.Message
func (*InteractionResponse) Reset ¶
func (x *InteractionResponse) Reset()
func (*InteractionResponse) String ¶
func (x *InteractionResponse) String() string
type InteractionResponse_MarkupType ¶
type InteractionResponse_MarkupType int32
Type of markup used
const ( // CommonMark format InteractionResponse_COMMON_MARK InteractionResponse_MarkupType = 0 // HTML format InteractionResponse_HTML InteractionResponse_MarkupType = 1 )
func (InteractionResponse_MarkupType) Descriptor ¶
func (InteractionResponse_MarkupType) Descriptor() protoreflect.EnumDescriptor
func (InteractionResponse_MarkupType) Enum ¶
func (x InteractionResponse_MarkupType) Enum() *InteractionResponse_MarkupType
func (InteractionResponse_MarkupType) EnumDescriptor
deprecated
func (InteractionResponse_MarkupType) EnumDescriptor() ([]byte, []int)
Deprecated: Use InteractionResponse_MarkupType.Descriptor instead.
func (InteractionResponse_MarkupType) Number ¶
func (x InteractionResponse_MarkupType) Number() protoreflect.EnumNumber
func (InteractionResponse_MarkupType) String ¶
func (x InteractionResponse_MarkupType) String() string
func (InteractionResponse_MarkupType) Type ¶
func (InteractionResponse_MarkupType) Type() protoreflect.EnumType
type MatchingRule ¶
type MatchingRule struct { // Type of the matching rule Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Associated data for the matching rule Values *structpb.Struct `protobuf:"bytes,2,opt,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
Represents a matching rule
func (*MatchingRule) Descriptor
deprecated
func (*MatchingRule) Descriptor() ([]byte, []int)
Deprecated: Use MatchingRule.ProtoReflect.Descriptor instead.
func (*MatchingRule) GetType ¶
func (x *MatchingRule) GetType() string
func (*MatchingRule) GetValues ¶
func (x *MatchingRule) GetValues() *structpb.Struct
func (*MatchingRule) ProtoMessage ¶
func (*MatchingRule) ProtoMessage()
func (*MatchingRule) ProtoReflect ¶
func (x *MatchingRule) ProtoReflect() protoreflect.Message
func (*MatchingRule) Reset ¶
func (x *MatchingRule) Reset()
func (*MatchingRule) String ¶
func (x *MatchingRule) String() string
type MatchingRules ¶
type MatchingRules struct { Rule []*MatchingRule `protobuf:"bytes,1,rep,name=rule,proto3" json:"rule,omitempty"` // contains filtered or unexported fields }
List of matching rules
func (*MatchingRules) Descriptor
deprecated
func (*MatchingRules) Descriptor() ([]byte, []int)
Deprecated: Use MatchingRules.ProtoReflect.Descriptor instead.
func (*MatchingRules) GetRule ¶
func (x *MatchingRules) GetRule() []*MatchingRule
func (*MatchingRules) ProtoMessage ¶
func (*MatchingRules) ProtoMessage()
func (*MatchingRules) ProtoReflect ¶
func (x *MatchingRules) ProtoReflect() protoreflect.Message
func (*MatchingRules) Reset ¶
func (x *MatchingRules) Reset()
func (*MatchingRules) String ¶
func (x *MatchingRules) String() string
type MetadataValue ¶
type MetadataValue struct { // Types that are assignable to Value: // *MetadataValue_NonBinaryValue // *MetadataValue_BinaryValue Value isMetadataValue_Value `protobuf_oneof:"value"` // contains filtered or unexported fields }
Request metadata value. Will either be a JSON-like value, or binary data
func (*MetadataValue) Descriptor
deprecated
func (*MetadataValue) Descriptor() ([]byte, []int)
Deprecated: Use MetadataValue.ProtoReflect.Descriptor instead.
func (*MetadataValue) GetBinaryValue ¶
func (x *MetadataValue) GetBinaryValue() []byte
func (*MetadataValue) GetNonBinaryValue ¶
func (x *MetadataValue) GetNonBinaryValue() *structpb.Value
func (*MetadataValue) GetValue ¶
func (m *MetadataValue) GetValue() isMetadataValue_Value
func (*MetadataValue) ProtoMessage ¶
func (*MetadataValue) ProtoMessage()
func (*MetadataValue) ProtoReflect ¶
func (x *MetadataValue) ProtoReflect() protoreflect.Message
func (*MetadataValue) Reset ¶
func (x *MetadataValue) Reset()
func (*MetadataValue) String ¶
func (x *MetadataValue) String() string
type MetadataValue_BinaryValue ¶
type MetadataValue_BinaryValue struct {
BinaryValue []byte `protobuf:"bytes,2,opt,name=binaryValue,proto3,oneof"`
}
type MockServerDetails ¶
type MockServerDetails struct { // Mock server unique ID Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Port the mock server is running on Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // IP address the mock server is bound to. Probably an IP6 address, but may be IP4 Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
Details on a running mock server
func (*MockServerDetails) Descriptor
deprecated
func (*MockServerDetails) Descriptor() ([]byte, []int)
Deprecated: Use MockServerDetails.ProtoReflect.Descriptor instead.
func (*MockServerDetails) GetAddress ¶
func (x *MockServerDetails) GetAddress() string
func (*MockServerDetails) GetKey ¶
func (x *MockServerDetails) GetKey() string
func (*MockServerDetails) GetPort ¶
func (x *MockServerDetails) GetPort() uint32
func (*MockServerDetails) ProtoMessage ¶
func (*MockServerDetails) ProtoMessage()
func (*MockServerDetails) ProtoReflect ¶
func (x *MockServerDetails) ProtoReflect() protoreflect.Message
func (*MockServerDetails) Reset ¶
func (x *MockServerDetails) Reset()
func (*MockServerDetails) String ¶
func (x *MockServerDetails) String() string
type MockServerRequest ¶
type MockServerRequest struct { // The server ID to shutdown ServerKey string `protobuf:"bytes,1,opt,name=serverKey,proto3" json:"serverKey,omitempty"` // contains filtered or unexported fields }
Request for a running mock server by ID
func (*MockServerRequest) Descriptor
deprecated
func (*MockServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use MockServerRequest.ProtoReflect.Descriptor instead.
func (*MockServerRequest) GetServerKey ¶
func (x *MockServerRequest) GetServerKey() string
func (*MockServerRequest) ProtoMessage ¶
func (*MockServerRequest) ProtoMessage()
func (*MockServerRequest) ProtoReflect ¶
func (x *MockServerRequest) ProtoReflect() protoreflect.Message
func (*MockServerRequest) Reset ¶
func (x *MockServerRequest) Reset()
func (*MockServerRequest) String ¶
func (x *MockServerRequest) String() string
type MockServerResult ¶
type MockServerResult struct { // service + method that was requested Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // If an error occurred trying to handle the request Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // Any mismatches that occurred Mismatches []*ContentMismatch `protobuf:"bytes,3,rep,name=mismatches,proto3" json:"mismatches,omitempty"` // contains filtered or unexported fields }
Result of a request that the mock server received
func (*MockServerResult) Descriptor
deprecated
func (*MockServerResult) Descriptor() ([]byte, []int)
Deprecated: Use MockServerResult.ProtoReflect.Descriptor instead.
func (*MockServerResult) GetError ¶
func (x *MockServerResult) GetError() string
func (*MockServerResult) GetMismatches ¶
func (x *MockServerResult) GetMismatches() []*ContentMismatch
func (*MockServerResult) GetPath ¶
func (x *MockServerResult) GetPath() string
func (*MockServerResult) ProtoMessage ¶
func (*MockServerResult) ProtoMessage()
func (*MockServerResult) ProtoReflect ¶
func (x *MockServerResult) ProtoReflect() protoreflect.Message
func (*MockServerResult) Reset ¶
func (x *MockServerResult) Reset()
func (*MockServerResult) String ¶
func (x *MockServerResult) String() string
type MockServerResults ¶
type MockServerResults struct { // If the mock status is all ok Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // The results of the test run, will contain an entry for each request received by the mock server Results []*MockServerResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
Matching results of the mock server.
func (*MockServerResults) Descriptor
deprecated
func (*MockServerResults) Descriptor() ([]byte, []int)
Deprecated: Use MockServerResults.ProtoReflect.Descriptor instead.
func (*MockServerResults) GetOk ¶
func (x *MockServerResults) GetOk() bool
func (*MockServerResults) GetResults ¶
func (x *MockServerResults) GetResults() []*MockServerResult
func (*MockServerResults) ProtoMessage ¶
func (*MockServerResults) ProtoMessage()
func (*MockServerResults) ProtoReflect ¶
func (x *MockServerResults) ProtoReflect() protoreflect.Message
func (*MockServerResults) Reset ¶
func (x *MockServerResults) Reset()
func (*MockServerResults) String ¶
func (x *MockServerResults) String() string
type PactPluginClient ¶
type PactPluginClient interface { // Check that the plugin loaded OK. Returns the catalogue entries describing what the plugin provides InitPlugin(ctx context.Context, in *InitPluginRequest, opts ...grpc.CallOption) (*InitPluginResponse, error) // Updated catalogue. This will be sent when the core catalogue has been updated (probably by a plugin loading). UpdateCatalogue(ctx context.Context, in *Catalogue, opts ...grpc.CallOption) (*emptypb.Empty, error) // Request to perform a comparison of some contents (matching request) CompareContents(ctx context.Context, in *CompareContentsRequest, opts ...grpc.CallOption) (*CompareContentsResponse, error) // Request to configure/setup the interaction for later verification. Data returned will be persisted in the pact file. ConfigureInteraction(ctx context.Context, in *ConfigureInteractionRequest, opts ...grpc.CallOption) (*ConfigureInteractionResponse, error) // Request to generate the content using any defined generators GenerateContent(ctx context.Context, in *GenerateContentRequest, opts ...grpc.CallOption) (*GenerateContentResponse, error) // Start a mock server StartMockServer(ctx context.Context, in *StartMockServerRequest, opts ...grpc.CallOption) (*StartMockServerResponse, error) // Shutdown a running mock server // TODO: Replace the message types with MockServerRequest and MockServerResults in the next major version ShutdownMockServer(ctx context.Context, in *ShutdownMockServerRequest, opts ...grpc.CallOption) (*ShutdownMockServerResponse, error) // Get the matching results from a running mock server GetMockServerResults(ctx context.Context, in *MockServerRequest, opts ...grpc.CallOption) (*MockServerResults, error) // Prepare an interaction for verification. This should return any data required to construct any request // so that it can be amended before the verification is run PrepareInteractionForVerification(ctx context.Context, in *VerificationPreparationRequest, opts ...grpc.CallOption) (*VerificationPreparationResponse, error) // Execute the verification for the interaction. VerifyInteraction(ctx context.Context, in *VerifyInteractionRequest, opts ...grpc.CallOption) (*VerifyInteractionResponse, error) }
PactPluginClient is the client API for PactPlugin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPactPluginClient ¶
func NewPactPluginClient(cc grpc.ClientConnInterface) PactPluginClient
type PactPluginServer ¶
type PactPluginServer interface { // Check that the plugin loaded OK. Returns the catalogue entries describing what the plugin provides InitPlugin(context.Context, *InitPluginRequest) (*InitPluginResponse, error) // Updated catalogue. This will be sent when the core catalogue has been updated (probably by a plugin loading). UpdateCatalogue(context.Context, *Catalogue) (*emptypb.Empty, error) // Request to perform a comparison of some contents (matching request) CompareContents(context.Context, *CompareContentsRequest) (*CompareContentsResponse, error) // Request to configure/setup the interaction for later verification. Data returned will be persisted in the pact file. ConfigureInteraction(context.Context, *ConfigureInteractionRequest) (*ConfigureInteractionResponse, error) // Request to generate the content using any defined generators GenerateContent(context.Context, *GenerateContentRequest) (*GenerateContentResponse, error) // Start a mock server StartMockServer(context.Context, *StartMockServerRequest) (*StartMockServerResponse, error) // Shutdown a running mock server // TODO: Replace the message types with MockServerRequest and MockServerResults in the next major version ShutdownMockServer(context.Context, *ShutdownMockServerRequest) (*ShutdownMockServerResponse, error) // Get the matching results from a running mock server GetMockServerResults(context.Context, *MockServerRequest) (*MockServerResults, error) // Prepare an interaction for verification. This should return any data required to construct any request // so that it can be amended before the verification is run PrepareInteractionForVerification(context.Context, *VerificationPreparationRequest) (*VerificationPreparationResponse, error) // Execute the verification for the interaction. VerifyInteraction(context.Context, *VerifyInteractionRequest) (*VerifyInteractionResponse, error) // contains filtered or unexported methods }
PactPluginServer is the server API for PactPlugin service. All implementations must embed UnimplementedPactPluginServer for forward compatibility
type PluginConfiguration ¶
type PluginConfiguration struct { // Data to be persisted against the interaction InteractionConfiguration *structpb.Struct `protobuf:"bytes,1,opt,name=interactionConfiguration,proto3" json:"interactionConfiguration,omitempty"` // Data to be persisted in the Pact file metadata (Global data) PactConfiguration *structpb.Struct `protobuf:"bytes,2,opt,name=pactConfiguration,proto3" json:"pactConfiguration,omitempty"` // contains filtered or unexported fields }
Plugin configuration added to the pact file by the ConfigureInteraction step
func (*PluginConfiguration) Descriptor
deprecated
func (*PluginConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use PluginConfiguration.ProtoReflect.Descriptor instead.
func (*PluginConfiguration) GetInteractionConfiguration ¶
func (x *PluginConfiguration) GetInteractionConfiguration() *structpb.Struct
func (*PluginConfiguration) GetPactConfiguration ¶
func (x *PluginConfiguration) GetPactConfiguration() *structpb.Struct
func (*PluginConfiguration) ProtoMessage ¶
func (*PluginConfiguration) ProtoMessage()
func (*PluginConfiguration) ProtoReflect ¶
func (x *PluginConfiguration) ProtoReflect() protoreflect.Message
func (*PluginConfiguration) Reset ¶
func (x *PluginConfiguration) Reset()
func (*PluginConfiguration) String ¶
func (x *PluginConfiguration) String() string
type ShutdownMockServerRequest ¶
type ShutdownMockServerRequest struct { // The server ID to shutdown ServerKey string `protobuf:"bytes,1,opt,name=serverKey,proto3" json:"serverKey,omitempty"` // contains filtered or unexported fields }
Request to shut down a running mock server TODO: replace this with MockServerRequest in the next major version
func (*ShutdownMockServerRequest) Descriptor
deprecated
func (*ShutdownMockServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use ShutdownMockServerRequest.ProtoReflect.Descriptor instead.
func (*ShutdownMockServerRequest) GetServerKey ¶
func (x *ShutdownMockServerRequest) GetServerKey() string
func (*ShutdownMockServerRequest) ProtoMessage ¶
func (*ShutdownMockServerRequest) ProtoMessage()
func (*ShutdownMockServerRequest) ProtoReflect ¶
func (x *ShutdownMockServerRequest) ProtoReflect() protoreflect.Message
func (*ShutdownMockServerRequest) Reset ¶
func (x *ShutdownMockServerRequest) Reset()
func (*ShutdownMockServerRequest) String ¶
func (x *ShutdownMockServerRequest) String() string
type ShutdownMockServerResponse ¶
type ShutdownMockServerResponse struct { // If the mock status is all ok Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // The results of the test run, will contain an entry for each request received by the mock server Results []*MockServerResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
Response to the shut down mock server request TODO: replace this with MockServerResults in the next major version
func (*ShutdownMockServerResponse) Descriptor
deprecated
func (*ShutdownMockServerResponse) Descriptor() ([]byte, []int)
Deprecated: Use ShutdownMockServerResponse.ProtoReflect.Descriptor instead.
func (*ShutdownMockServerResponse) GetOk ¶
func (x *ShutdownMockServerResponse) GetOk() bool
func (*ShutdownMockServerResponse) GetResults ¶
func (x *ShutdownMockServerResponse) GetResults() []*MockServerResult
func (*ShutdownMockServerResponse) ProtoMessage ¶
func (*ShutdownMockServerResponse) ProtoMessage()
func (*ShutdownMockServerResponse) ProtoReflect ¶
func (x *ShutdownMockServerResponse) ProtoReflect() protoreflect.Message
func (*ShutdownMockServerResponse) Reset ¶
func (x *ShutdownMockServerResponse) Reset()
func (*ShutdownMockServerResponse) String ¶
func (x *ShutdownMockServerResponse) String() string
type StartMockServerRequest ¶
type StartMockServerRequest struct { // Interface to bind to. Will default to the loopback adapter HostInterface string `protobuf:"bytes,1,opt,name=hostInterface,proto3" json:"hostInterface,omitempty"` // Port to bind to. Default (or a value of 0) get the OS to open a random port Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // If TLS should be used (if supported by the mock server) Tls bool `protobuf:"varint,3,opt,name=tls,proto3" json:"tls,omitempty"` // Pact as JSON to use for the mock server behaviour Pact string `protobuf:"bytes,4,opt,name=pact,proto3" json:"pact,omitempty"` // contains filtered or unexported fields }
Request to start a mock server
func (*StartMockServerRequest) Descriptor
deprecated
func (*StartMockServerRequest) Descriptor() ([]byte, []int)
Deprecated: Use StartMockServerRequest.ProtoReflect.Descriptor instead.
func (*StartMockServerRequest) GetHostInterface ¶
func (x *StartMockServerRequest) GetHostInterface() string
func (*StartMockServerRequest) GetPact ¶
func (x *StartMockServerRequest) GetPact() string
func (*StartMockServerRequest) GetPort ¶
func (x *StartMockServerRequest) GetPort() uint32
func (*StartMockServerRequest) GetTls ¶
func (x *StartMockServerRequest) GetTls() bool
func (*StartMockServerRequest) ProtoMessage ¶
func (*StartMockServerRequest) ProtoMessage()
func (*StartMockServerRequest) ProtoReflect ¶
func (x *StartMockServerRequest) ProtoReflect() protoreflect.Message
func (*StartMockServerRequest) Reset ¶
func (x *StartMockServerRequest) Reset()
func (*StartMockServerRequest) String ¶
func (x *StartMockServerRequest) String() string
type StartMockServerResponse ¶
type StartMockServerResponse struct { // Types that are assignable to Response: // *StartMockServerResponse_Error // *StartMockServerResponse_Details Response isStartMockServerResponse_Response `protobuf_oneof:"response"` // contains filtered or unexported fields }
Response to the start mock server request
func (*StartMockServerResponse) Descriptor
deprecated
func (*StartMockServerResponse) Descriptor() ([]byte, []int)
Deprecated: Use StartMockServerResponse.ProtoReflect.Descriptor instead.
func (*StartMockServerResponse) GetDetails ¶
func (x *StartMockServerResponse) GetDetails() *MockServerDetails
func (*StartMockServerResponse) GetError ¶
func (x *StartMockServerResponse) GetError() string
func (*StartMockServerResponse) GetResponse ¶
func (m *StartMockServerResponse) GetResponse() isStartMockServerResponse_Response
func (*StartMockServerResponse) ProtoMessage ¶
func (*StartMockServerResponse) ProtoMessage()
func (*StartMockServerResponse) ProtoReflect ¶
func (x *StartMockServerResponse) ProtoReflect() protoreflect.Message
func (*StartMockServerResponse) Reset ¶
func (x *StartMockServerResponse) Reset()
func (*StartMockServerResponse) String ¶
func (x *StartMockServerResponse) String() string
type StartMockServerResponse_Details ¶
type StartMockServerResponse_Details struct { // Mock server details Details *MockServerDetails `protobuf:"bytes,2,opt,name=details,proto3,oneof"` }
type StartMockServerResponse_Error ¶
type StartMockServerResponse_Error struct { // If an error occurred Error string `protobuf:"bytes,1,opt,name=error,proto3,oneof"` }
type UnimplementedPactPluginServer ¶
type UnimplementedPactPluginServer struct { }
UnimplementedPactPluginServer must be embedded to have forward compatible implementations.
func (UnimplementedPactPluginServer) CompareContents ¶
func (UnimplementedPactPluginServer) CompareContents(context.Context, *CompareContentsRequest) (*CompareContentsResponse, error)
func (UnimplementedPactPluginServer) ConfigureInteraction ¶
func (UnimplementedPactPluginServer) ConfigureInteraction(context.Context, *ConfigureInteractionRequest) (*ConfigureInteractionResponse, error)
func (UnimplementedPactPluginServer) GenerateContent ¶
func (UnimplementedPactPluginServer) GenerateContent(context.Context, *GenerateContentRequest) (*GenerateContentResponse, error)
func (UnimplementedPactPluginServer) GetMockServerResults ¶
func (UnimplementedPactPluginServer) GetMockServerResults(context.Context, *MockServerRequest) (*MockServerResults, error)
func (UnimplementedPactPluginServer) InitPlugin ¶
func (UnimplementedPactPluginServer) InitPlugin(context.Context, *InitPluginRequest) (*InitPluginResponse, error)
func (UnimplementedPactPluginServer) PrepareInteractionForVerification ¶
func (UnimplementedPactPluginServer) PrepareInteractionForVerification(context.Context, *VerificationPreparationRequest) (*VerificationPreparationResponse, error)
func (UnimplementedPactPluginServer) ShutdownMockServer ¶
func (UnimplementedPactPluginServer) ShutdownMockServer(context.Context, *ShutdownMockServerRequest) (*ShutdownMockServerResponse, error)
func (UnimplementedPactPluginServer) StartMockServer ¶
func (UnimplementedPactPluginServer) StartMockServer(context.Context, *StartMockServerRequest) (*StartMockServerResponse, error)
func (UnimplementedPactPluginServer) UpdateCatalogue ¶
func (UnimplementedPactPluginServer) VerifyInteraction ¶
func (UnimplementedPactPluginServer) VerifyInteraction(context.Context, *VerifyInteractionRequest) (*VerifyInteractionResponse, error)
type UnsafePactPluginServer ¶
type UnsafePactPluginServer interface {
// contains filtered or unexported methods
}
UnsafePactPluginServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PactPluginServer will result in compilation errors.
type VerificationPreparationRequest ¶
type VerificationPreparationRequest struct { // Pact as JSON to use for the verification Pact string `protobuf:"bytes,1,opt,name=pact,proto3" json:"pact,omitempty"` // Interaction key for the interaction from the Pact that is being verified InteractionKey string `protobuf:"bytes,2,opt,name=interactionKey,proto3" json:"interactionKey,omitempty"` // Any data supplied by the user to verify the interaction Config *structpb.Struct `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
Request to prepare an interaction for verification
func (*VerificationPreparationRequest) Descriptor
deprecated
func (*VerificationPreparationRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerificationPreparationRequest.ProtoReflect.Descriptor instead.
func (*VerificationPreparationRequest) GetConfig ¶
func (x *VerificationPreparationRequest) GetConfig() *structpb.Struct
func (*VerificationPreparationRequest) GetInteractionKey ¶
func (x *VerificationPreparationRequest) GetInteractionKey() string
func (*VerificationPreparationRequest) GetPact ¶
func (x *VerificationPreparationRequest) GetPact() string
func (*VerificationPreparationRequest) ProtoMessage ¶
func (*VerificationPreparationRequest) ProtoMessage()
func (*VerificationPreparationRequest) ProtoReflect ¶
func (x *VerificationPreparationRequest) ProtoReflect() protoreflect.Message
func (*VerificationPreparationRequest) Reset ¶
func (x *VerificationPreparationRequest) Reset()
func (*VerificationPreparationRequest) String ¶
func (x *VerificationPreparationRequest) String() string
type VerificationPreparationResponse ¶
type VerificationPreparationResponse struct { // Types that are assignable to Response: // *VerificationPreparationResponse_Error // *VerificationPreparationResponse_InteractionData Response isVerificationPreparationResponse_Response `protobuf_oneof:"response"` // contains filtered or unexported fields }
Response for the prepare an interaction for verification request
func (*VerificationPreparationResponse) Descriptor
deprecated
func (*VerificationPreparationResponse) Descriptor() ([]byte, []int)
Deprecated: Use VerificationPreparationResponse.ProtoReflect.Descriptor instead.
func (*VerificationPreparationResponse) GetError ¶
func (x *VerificationPreparationResponse) GetError() string
func (*VerificationPreparationResponse) GetInteractionData ¶
func (x *VerificationPreparationResponse) GetInteractionData() *InteractionData
func (*VerificationPreparationResponse) GetResponse ¶
func (m *VerificationPreparationResponse) GetResponse() isVerificationPreparationResponse_Response
func (*VerificationPreparationResponse) ProtoMessage ¶
func (*VerificationPreparationResponse) ProtoMessage()
func (*VerificationPreparationResponse) ProtoReflect ¶
func (x *VerificationPreparationResponse) ProtoReflect() protoreflect.Message
func (*VerificationPreparationResponse) Reset ¶
func (x *VerificationPreparationResponse) Reset()
func (*VerificationPreparationResponse) String ¶
func (x *VerificationPreparationResponse) String() string
type VerificationPreparationResponse_Error ¶
type VerificationPreparationResponse_Error struct { // If an error occurred Error string `protobuf:"bytes,1,opt,name=error,proto3,oneof"` }
type VerificationPreparationResponse_InteractionData ¶
type VerificationPreparationResponse_InteractionData struct { // Interaction data required to construct any request InteractionData *InteractionData `protobuf:"bytes,2,opt,name=interactionData,proto3,oneof"` }
type VerificationResult ¶
type VerificationResult struct { // Was the verification successful? Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // Interaction data retrieved from the provider (optional) ResponseData *InteractionData `protobuf:"bytes,2,opt,name=responseData,proto3" json:"responseData,omitempty"` // Any mismatches that occurred Mismatches []*VerificationResultItem `protobuf:"bytes,3,rep,name=mismatches,proto3" json:"mismatches,omitempty"` // Output for the verification to display to the user Output []string `protobuf:"bytes,4,rep,name=output,proto3" json:"output,omitempty"` // contains filtered or unexported fields }
Result of running the verification
func (*VerificationResult) Descriptor
deprecated
func (*VerificationResult) Descriptor() ([]byte, []int)
Deprecated: Use VerificationResult.ProtoReflect.Descriptor instead.
func (*VerificationResult) GetMismatches ¶
func (x *VerificationResult) GetMismatches() []*VerificationResultItem
func (*VerificationResult) GetOutput ¶
func (x *VerificationResult) GetOutput() []string
func (*VerificationResult) GetResponseData ¶
func (x *VerificationResult) GetResponseData() *InteractionData
func (*VerificationResult) GetSuccess ¶
func (x *VerificationResult) GetSuccess() bool
func (*VerificationResult) ProtoMessage ¶
func (*VerificationResult) ProtoMessage()
func (*VerificationResult) ProtoReflect ¶
func (x *VerificationResult) ProtoReflect() protoreflect.Message
func (*VerificationResult) Reset ¶
func (x *VerificationResult) Reset()
func (*VerificationResult) String ¶
func (x *VerificationResult) String() string
type VerificationResultItem ¶
type VerificationResultItem struct { // Types that are assignable to Result: // *VerificationResultItem_Error // *VerificationResultItem_Mismatch Result isVerificationResultItem_Result `protobuf_oneof:"result"` // contains filtered or unexported fields }
func (*VerificationResultItem) Descriptor
deprecated
func (*VerificationResultItem) Descriptor() ([]byte, []int)
Deprecated: Use VerificationResultItem.ProtoReflect.Descriptor instead.
func (*VerificationResultItem) GetError ¶
func (x *VerificationResultItem) GetError() string
func (*VerificationResultItem) GetMismatch ¶
func (x *VerificationResultItem) GetMismatch() *ContentMismatch
func (*VerificationResultItem) GetResult ¶
func (m *VerificationResultItem) GetResult() isVerificationResultItem_Result
func (*VerificationResultItem) ProtoMessage ¶
func (*VerificationResultItem) ProtoMessage()
func (*VerificationResultItem) ProtoReflect ¶
func (x *VerificationResultItem) ProtoReflect() protoreflect.Message
func (*VerificationResultItem) Reset ¶
func (x *VerificationResultItem) Reset()
func (*VerificationResultItem) String ¶
func (x *VerificationResultItem) String() string
type VerificationResultItem_Error ¶
type VerificationResultItem_Error struct {
Error string `protobuf:"bytes,1,opt,name=error,proto3,oneof"`
}
type VerificationResultItem_Mismatch ¶
type VerificationResultItem_Mismatch struct {
Mismatch *ContentMismatch `protobuf:"bytes,2,opt,name=mismatch,proto3,oneof"`
}
type VerifyInteractionRequest ¶
type VerifyInteractionRequest struct { // Interaction data required to construct the request InteractionData *InteractionData `protobuf:"bytes,1,opt,name=interactionData,proto3" json:"interactionData,omitempty"` // Any data supplied by the user to verify the interaction Config *structpb.Struct `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` // Pact as JSON to use for the verification Pact string `protobuf:"bytes,3,opt,name=pact,proto3" json:"pact,omitempty"` // Interaction key for the interaction from the Pact that is being verified InteractionKey string `protobuf:"bytes,4,opt,name=interactionKey,proto3" json:"interactionKey,omitempty"` // contains filtered or unexported fields }
Request data to verify an interaction
func (*VerifyInteractionRequest) Descriptor
deprecated
func (*VerifyInteractionRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifyInteractionRequest.ProtoReflect.Descriptor instead.
func (*VerifyInteractionRequest) GetConfig ¶
func (x *VerifyInteractionRequest) GetConfig() *structpb.Struct
func (*VerifyInteractionRequest) GetInteractionData ¶
func (x *VerifyInteractionRequest) GetInteractionData() *InteractionData
func (*VerifyInteractionRequest) GetInteractionKey ¶
func (x *VerifyInteractionRequest) GetInteractionKey() string
func (*VerifyInteractionRequest) GetPact ¶
func (x *VerifyInteractionRequest) GetPact() string
func (*VerifyInteractionRequest) ProtoMessage ¶
func (*VerifyInteractionRequest) ProtoMessage()
func (*VerifyInteractionRequest) ProtoReflect ¶
func (x *VerifyInteractionRequest) ProtoReflect() protoreflect.Message
func (*VerifyInteractionRequest) Reset ¶
func (x *VerifyInteractionRequest) Reset()
func (*VerifyInteractionRequest) String ¶
func (x *VerifyInteractionRequest) String() string
type VerifyInteractionResponse ¶
type VerifyInteractionResponse struct { // Types that are assignable to Response: // *VerifyInteractionResponse_Error // *VerifyInteractionResponse_Result Response isVerifyInteractionResponse_Response `protobuf_oneof:"response"` // contains filtered or unexported fields }
Result of running the verification
func (*VerifyInteractionResponse) Descriptor
deprecated
func (*VerifyInteractionResponse) Descriptor() ([]byte, []int)
Deprecated: Use VerifyInteractionResponse.ProtoReflect.Descriptor instead.
func (*VerifyInteractionResponse) GetError ¶
func (x *VerifyInteractionResponse) GetError() string
func (*VerifyInteractionResponse) GetResponse ¶
func (m *VerifyInteractionResponse) GetResponse() isVerifyInteractionResponse_Response
func (*VerifyInteractionResponse) GetResult ¶
func (x *VerifyInteractionResponse) GetResult() *VerificationResult
func (*VerifyInteractionResponse) ProtoMessage ¶
func (*VerifyInteractionResponse) ProtoMessage()
func (*VerifyInteractionResponse) ProtoReflect ¶
func (x *VerifyInteractionResponse) ProtoReflect() protoreflect.Message
func (*VerifyInteractionResponse) Reset ¶
func (x *VerifyInteractionResponse) Reset()
func (*VerifyInteractionResponse) String ¶
func (x *VerifyInteractionResponse) String() string
type VerifyInteractionResponse_Error ¶
type VerifyInteractionResponse_Error struct { // If an error occurred trying to run the verification Error string `protobuf:"bytes,1,opt,name=error,proto3,oneof"` }
type VerifyInteractionResponse_Result ¶
type VerifyInteractionResponse_Result struct {
Result *VerificationResult `protobuf:"bytes,2,opt,name=result,proto3,oneof"`
}