converter

package
v0.0.0-...-36d6306 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromAPIHttpBodyKind

func FromAPIHttpBodyKind(kind httpv1.HttpBodyKind) mhttp.HttpBodyKind

FromAPIHttpBodyKind converts API HttpBodyKind to model HttpBodyKind

func FromAPIHttpMethod

func FromAPIHttpMethod(method httpv1.HttpMethod) string

FromAPIHttpMethod converts API HttpMethod to string

func ToAPICredential

func ToAPICredential(cred mcredential.Credential) *credentialv1.Credential

ToAPICredential converts model Credential to API Credential

func ToAPICredentialAnthropic

func ToAPICredentialAnthropic(cred mcredential.CredentialAnthropic) *credentialv1.CredentialAnthropic

ToAPICredentialAnthropic converts model CredentialAnthropic to API CredentialAnthropic

func ToAPICredentialGemini

func ToAPICredentialGemini(cred mcredential.CredentialGemini) *credentialv1.CredentialGemini

ToAPICredentialGemini converts model CredentialGemini to API CredentialGemini

func ToAPICredentialKind

func ToAPICredentialKind(kind mcredential.CredentialKind) credentialv1.CredentialKind

ToAPICredentialKind converts model CredentialKind to API CredentialKind

func ToAPICredentialOpenAI

func ToAPICredentialOpenAI(cred mcredential.CredentialOpenAI) *credentialv1.CredentialOpenAi

ToAPICredentialOpenAI converts model CredentialOpenAI to API CredentialOpenAi

func ToAPIEnvironment

func ToAPIEnvironment(env menv.Env) *environmentv1.Environment

ToAPIEnvironment converts model Environment to API Environment

func ToAPIEnvironmentVariable

func ToAPIEnvironmentVariable(v menv.Variable) *environmentv1.EnvironmentVariable

ToAPIEnvironmentVariable converts model EnvironmentVariable to API EnvironmentVariable

func ToAPIErrorHandling

func ToAPIErrorHandling(eh mflow.ErrorHandling) flowv1.ErrorHandling

ToAPIErrorHandling converts model ErrorHandling to API ErrorHandling

func ToAPIFile

func ToAPIFile(file mfile.File) *filev1.File

ToAPIFile converts a model File to an API File

func ToAPIFileKind

func ToAPIFileKind(kind mfile.ContentType) filev1.FileKind

ToAPIFileKind converts a model ContentType to an API FileKind

func ToAPIGraphQLAssert

func ToAPIGraphQLAssert(assert mgraphql.GraphQLAssert) *graphqlv1.GraphQLAssert

ToAPIGraphQLAssert converts model GraphQLAssert to API GraphQLAssert

func ToAPIHttp

func ToAPIHttp(http mhttp.HTTP) *httpv1.Http

ToAPIHttp converts model HTTP to API HTTP

func ToAPIHttpAssert

func ToAPIHttpAssert(assert mhttp.HTTPAssert) *httpv1.HttpAssert

ToAPIHttpAssert converts model HttpAssert to API HttpAssert

func ToAPIHttpBodyFormData

func ToAPIHttpBodyFormData(form mhttp.HTTPBodyForm) *httpv1.HttpBodyFormData

ToAPIHttpBodyFormData converts model HttpBodyForm to API HttpBodyFormData

func ToAPIHttpBodyFormDataFromMHttp

func ToAPIHttpBodyFormDataFromMHttp(form mhttp.HTTPBodyForm) *httpv1.HttpBodyFormData

ToAPIHttpBodyFormDataFromMHttp converts mhttp.HTTPBodyForm to API HttpBodyFormData

func ToAPIHttpBodyKind

func ToAPIHttpBodyKind(kind mhttp.HttpBodyKind) httpv1.HttpBodyKind

ToAPIHttpBodyKind converts model HttpBodyKind to API HttpBodyKind

func ToAPIHttpBodyRaw

func ToAPIHttpBodyRaw(httpID []byte, data string) *httpv1.HttpBodyRaw

ToAPIHttpBodyRaw converts raw body data to API HttpBodyRaw

func ToAPIHttpBodyRawFromMHttp

func ToAPIHttpBodyRawFromMHttp(raw mhttp.HTTPBodyRaw) *httpv1.HttpBodyRaw

ToAPIHttpBodyRawFromMHttp converts mhttp.HTTPBodyRaw to API HttpBodyRaw

func ToAPIHttpBodyUrlEncoded

func ToAPIHttpBodyUrlEncoded(urlEncoded mhttp.HTTPBodyUrlencoded) *httpv1.HttpBodyUrlEncoded

ToAPIHttpBodyUrlEncoded converts model HttpBodyUrlEncoded to API HttpBodyUrlEncoded

func ToAPIHttpBodyUrlEncodedFromMHttp

func ToAPIHttpBodyUrlEncodedFromMHttp(encoded mhttp.HTTPBodyUrlencoded) *httpv1.HttpBodyUrlEncoded

ToAPIHttpBodyUrlEncodedFromMHttp converts mhttp.HTTPBodyUrlencoded to API HttpBodyUrlEncoded

func ToAPIHttpHeader

func ToAPIHttpHeader(header mhttp.HTTPHeader) *httpv1.HttpHeader

ToAPIHttpHeader converts model HTTPHeader to API HttpHeader

func ToAPIHttpMethod

func ToAPIHttpMethod(method string) httpv1.HttpMethod

ToAPIHttpMethod converts string method to API HttpMethod

func ToAPIHttpResponse

func ToAPIHttpResponse(response mhttp.HTTPResponse) *httpv1.HttpResponse

ToAPIHttpResponse converts DB HttpResponse to API HttpResponse

func ToAPIHttpResponseAssert

func ToAPIHttpResponseAssert(assert mhttp.HTTPResponseAssert) *httpv1.HttpResponseAssert

ToAPIHttpResponseAssert converts DB HttpResponseAssert to API HttpResponseAssert

func ToAPIHttpResponseHeader

func ToAPIHttpResponseHeader(header mhttp.HTTPResponseHeader) *httpv1.HttpResponseHeader

ToAPIHttpResponseHeader converts DB HttpResponseHeader to API HttpResponseHeader

func ToAPIHttpSearchParam

func ToAPIHttpSearchParam(param mhttp.HTTPSearchParam) *httpv1.HttpSearchParam

ToAPIHttpSearchParam converts model HttpSearchParam to API HttpSearchParam

func ToAPIHttpSearchParamFromMHttp

func ToAPIHttpSearchParamFromMHttp(param mhttp.HTTPSearchParam) *httpv1.HttpSearchParam

ToAPIHttpSearchParamFromMHttp converts mhttp.HTTPSearchParam to API HttpSearchParam

func ToAPIHttpVersion

func ToAPIHttpVersion(version mhttp.HttpVersion) *httpv1.HttpVersion

ToAPIHttpVersion converts model HttpVersion to API HttpVersion

func ToAPINodeKind

func ToAPINodeKind(kind mflow.NodeKind) flowv1.NodeKind

ToAPINodeKind converts model NodeKind to API NodeKind

func ToModelCredentialKind

func ToModelCredentialKind(kind credentialv1.CredentialKind) mcredential.CredentialKind

ToModelCredentialKind converts API CredentialKind to model CredentialKind

Types

This section is empty.

Jump to

Keyboard shortcuts

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