Documentation
¶
Index ¶
- Constants
- Variables
- func Clone[T any](org *T) (*T, error)
- func CompareAPIKey(a, b *APIKeyAuth) bool
- func CompareAuth(a, b Auth) bool
- func CompareBasicAuth(a, b *BasicAuth) bool
- func CompareBody(a, b Body) bool
- func CompareEnvValue(a, b KeyValue) bool
- func CompareFormData(a, b FormData) bool
- func CompareFormField(a, b FormField) bool
- func CompareGRPCMethods(a, b []GRPCMethod) bool
- func CompareGRPCRequestSpecs(a, b *GRPCRequestSpec) bool
- func CompareGRPCServices(a, b []GRPCService) bool
- func CompareGRPCSettings(a, b GRPCSettings) bool
- func CompareHTTPRequestSpecs(a, b *HTTPRequestSpec) bool
- func CompareHTTPRequests(a, b *HTTPRequest) bool
- func CompareHTTPResponses(a, b HTTPResponse) bool
- func CompareKeyValues(a, b []KeyValue) bool
- func CompareKubernetesTunnel(a, b *KubernetesTunnel) bool
- func ComparePostRequest(a, b PostRequest) bool
- func ComparePostRequestSet(a, b PostRequestSet) bool
- func ComparePreRequest(a, b PreRequest) bool
- func CompareProtoFileSpecs(a, b ProtoFileSpec) bool
- func CompareProtoFiles(a, b *ProtoFile) bool
- func CompareRequests(a, b *Request) bool
- func CompareSShTunnel(a, b *SShTunnel) bool
- func CompareServerInfo(a, b ServerInfo) bool
- func CompareTokenAuth(a, b *TokenAuth) bool
- func CompareTriggerRequest(a, b *TriggerRequest) bool
- func CompareVariable(a, b Variable) bool
- func CompareVariables(a, b []Variable) bool
- func EncodeQueryParams(params []KeyValue) string
- func FindKeyValue(values []KeyValue, key string) string
- func IsHTTPResponseEmpty(r HTTPResponse) bool
- func KeyValuesToText(values []KeyValue) string
- func LegacyConfigDir() (string, error)
- type APIKeyAuth
- type ActiveWorkspace
- type AppState
- type AppStateSpec
- type Auth
- type BasicAuth
- type Body
- type ColSpec
- type Collection
- func (c *Collection) AddRequest(req *Request)
- func (c *Collection) Clone() *Collection
- func (c *Collection) FindRequestByID(id string) *Request
- func (c *Collection) GetKind() string
- func (c *Collection) GetName() string
- func (c *Collection) ID() string
- func (c *Collection) MarshalYaml() ([]byte, error)
- func (c *Collection) RemoveRequest(req *Request)
- func (c *Collection) SetName(name string)
- type Config
- type ConfigSpec
- type DataConfig
- type EditorConfig
- type EnvSpec
- type Environment
- func (e *Environment) ApplyToGRPCRequest(req *GRPCRequestSpec)
- func (e *Environment) ApplyToHTTPRequest(req *HTTPRequestSpec)
- func (e *Environment) Clone() *Environment
- func (e *Environment) GetKeyValues() map[string]interface{}
- func (e *Environment) GetKind() string
- func (e *Environment) GetName() string
- func (e *Environment) ID() string
- func (e *Environment) MarshalYaml() ([]byte, error)
- func (e *Environment) SetKey(key string, value string)
- func (e *Environment) SetName(name string)
- type FormData
- type FormField
- type GRPCMethod
- type GRPCRequestSpec
- type GRPCResponseDetail
- type GRPCService
- type GRPCSettings
- type GeneralConfig
- type GlobalConfig
- type GlobalConfigSpec
- type HTTPRequest
- type HTTPRequestSpec
- type HTTPResponse
- type HTTPResponseDetail
- type KeyValue
- type KubernetesTunnel
- type LastUsedEnvironment
- type Log
- type MetaData
- type PostRequest
- type PostRequestSet
- type PreRequest
- type PrefSpec
- type Preferences
- type ProtoFile
- type ProtoFileSpec
- type Request
- func (r *Request) Clone() *Request
- func (r *Request) GetKind() string
- func (r *Request) GetName() string
- func (r *Request) ID() string
- func (r *Request) MarshalYaml() ([]byte, error)
- func (r *Request) SetDefaultValues()
- func (r *Request) SetDefaultValuesForGRPC()
- func (r *Request) SetDefaultValuesForHTTP()
- func (r *Request) SetName(name string)
- type RequestMeta
- type RequestSpec
- type ResponseDetail
- type SShTunnel
- type ScriptingConfig
- type SelectedEnvironment
- type ServerInfo
- type TokenAuth
- type TriggerRequest
- type Variable
- type VariableFrom
- type Workspace
Constants ¶
View Source
const ( ApiVersion = "v1" KindConfig = "Config" KindWorkspace = "Workspace" KindProtoFile = "ProtoFile" KindEnv = "Environment" KindRequest = "Request" KindPreferences = "Preferences" KindCollection = "Collection" )
View Source
const ( IndentationSpaces = "spaces" IndentationTabs = "tabs" )
View Source
const ( RequestTypeHTTP = "http" RequestTypeGRPC = "grpc" RequestMethodGET = "GET" RequestMethodPOST = "POST" RequestMethodPUT = "PUT" RequestMethodDELETE = "DELETE" RequestMethodPATCH = "PATCH" RequestMethodHEAD = "HEAD" RequestMethodOPTIONS = "OPTIONS" RequestMethodCONNECT = "CONNECT" RequestMethodTRACE = "TRACE" RequestBodyTypeNone = "none" RequestBodyTypeJSON = "json" RequestBodyTypeXML = "xml" RequestBodyTypeText = "text" RequestBodyTypeFormData = "formData" RequestBodyTypeBinary = "binary" RequestBodyTypeUrlencoded = "urlencoded" PrePostTypeNone = "none" PrePostTypeTriggerRequest = "triggerRequest" PrePostTypeSetEnv = "setEnv" PrePostTypePython = "python" PrePostTypeShell = "ssh" PrePostTypeSSHTunnel = "sshTunnel" PrePostTypeK8sTunnel = "k8sTunnel" )
View Source
const ( AuthTypeNone = "none" AuthTypeBasic = "basic" AuthTypeToken = "token" AuthTypeAPIKey = "apiKey" )
View Source
const ( PostRequestSetFromResponseHeader = "responseHeader" PostRequestSetFromResponseBody = "responseBody" PostRequestSetFromResponseCookie = "responseCookie" PostRequestSetFromResponseMetaData = "responseMetaData" PostRequestSetFromResponseTrailers = "responseTrailers" )
View Source
const ( FormFieldTypeText = "text" FormFieldTypeFile = "file" )
View Source
const DefaultWorkspaceName = "Default Workspace"
Variables ¶
View Source
var RequestMethods = []string{ RequestMethodGET, RequestMethodPOST, RequestMethodPUT, RequestMethodDELETE, RequestMethodPATCH, RequestMethodHEAD, RequestMethodOPTIONS, RequestMethodCONNECT, RequestMethodTRACE, }
Functions ¶
func CompareAPIKey ¶
func CompareAPIKey(a, b *APIKeyAuth) bool
func CompareAuth ¶
func CompareBasicAuth ¶
func CompareBody ¶
func CompareEnvValue ¶
func CompareFormData ¶
func CompareFormField ¶
func CompareGRPCMethods ¶
func CompareGRPCMethods(a, b []GRPCMethod) bool
func CompareGRPCRequestSpecs ¶
func CompareGRPCRequestSpecs(a, b *GRPCRequestSpec) bool
func CompareGRPCServices ¶
func CompareGRPCServices(a, b []GRPCService) bool
func CompareGRPCSettings ¶ added in v0.4.1
func CompareGRPCSettings(a, b GRPCSettings) bool
func CompareHTTPRequestSpecs ¶
func CompareHTTPRequestSpecs(a, b *HTTPRequestSpec) bool
func CompareHTTPRequests ¶
func CompareHTTPRequests(a, b *HTTPRequest) bool
func CompareHTTPResponses ¶
func CompareHTTPResponses(a, b HTTPResponse) bool
func CompareKeyValues ¶
CompareKeyValues compares two slices of KeyValue and returns true if they are equal
func CompareKubernetesTunnel ¶
func CompareKubernetesTunnel(a, b *KubernetesTunnel) bool
func ComparePostRequest ¶
func ComparePostRequest(a, b PostRequest) bool
func ComparePostRequestSet ¶
func ComparePostRequestSet(a, b PostRequestSet) bool
func ComparePreRequest ¶
func ComparePreRequest(a, b PreRequest) bool
func CompareProtoFileSpecs ¶
func CompareProtoFileSpecs(a, b ProtoFileSpec) bool
func CompareProtoFiles ¶
func CompareRequests ¶
func CompareSShTunnel ¶
func CompareServerInfo ¶
func CompareServerInfo(a, b ServerInfo) bool
func CompareTokenAuth ¶
func CompareTriggerRequest ¶ added in v0.2.7
func CompareTriggerRequest(a, b *TriggerRequest) bool
func CompareVariable ¶ added in v0.3.4
func CompareVariables ¶ added in v0.3.4
func EncodeQueryParams ¶
func FindKeyValue ¶ added in v0.3.4
func IsHTTPResponseEmpty ¶
func IsHTTPResponseEmpty(r HTTPResponse) bool
func KeyValuesToText ¶
func LegacyConfigDir ¶ added in v0.4.1
Types ¶
type APIKeyAuth ¶
func (*APIKeyAuth) Clone ¶
func (a *APIKeyAuth) Clone() *APIKeyAuth
type ActiveWorkspace ¶
type AppState ¶ added in v0.4.1
type AppState struct {
ApiVersion string `yaml:"apiVersion"`
Kind string `yaml:"kind"`
MetaData MetaData `yaml:"metadata"`
Spec AppStateSpec `yaml:"spec"`
}
func GetDefaultAppState ¶ added in v0.4.1
func GetDefaultAppState() *AppState
GetDefaultAppState returns a default app state
type AppStateSpec ¶ added in v0.4.1
type AppStateSpec struct {
ActiveWorkspace *ActiveWorkspace `yaml:"activeWorkspace"`
SelectedEnvironment *SelectedEnvironment `yaml:"selectedEnvironment"`
DarkMode bool `yaml:"darkMode"`
}
type Auth ¶
type Auth struct {
Type string `yaml:"type"`
BasicAuth *BasicAuth `yaml:"basicAuth,omitempty"`
TokenAuth *TokenAuth `yaml:"tokenAuth,omitempty"`
APIKeyAuth *APIKeyAuth `yaml:"apiKey,omitempty"`
}
type Body ¶
type Collection ¶
type Collection struct {
ApiVersion string `yaml:"apiVersion"`
Kind string `yaml:"kind"`
MetaData MetaData `yaml:"metadata"`
Spec ColSpec `yaml:"spec"`
}
func NewCollection ¶
func NewCollection(name string) *Collection
func (*Collection) AddRequest ¶
func (c *Collection) AddRequest(req *Request)
func (*Collection) Clone ¶
func (c *Collection) Clone() *Collection
func (*Collection) FindRequestByID ¶
func (c *Collection) FindRequestByID(id string) *Request
func (*Collection) GetKind ¶ added in v0.4.1
func (c *Collection) GetKind() string
func (*Collection) GetName ¶ added in v0.4.1
func (c *Collection) GetName() string
func (*Collection) ID ¶ added in v0.4.1
func (c *Collection) ID() string
func (*Collection) MarshalYaml ¶ added in v0.4.1
func (c *Collection) MarshalYaml() ([]byte, error)
func (*Collection) RemoveRequest ¶
func (c *Collection) RemoveRequest(req *Request)
func (*Collection) SetName ¶ added in v0.4.1
func (c *Collection) SetName(name string)
type Config ¶
type Config struct {
ApiVersion string `yaml:"apiVersion"`
Kind string `yaml:"kind"`
MetaData MetaData `yaml:"metadata"`
Spec ConfigSpec `yaml:"spec"`
}
type ConfigSpec ¶
type ConfigSpec struct {
ActiveWorkspace *ActiveWorkspace `yaml:"activeWorkspace"`
SelectedEnvironment *SelectedEnvironment `yaml:"selectedEnvironment"`
}
ConfigSpec holds the configuration for the application. its deprecated and its data will be moved to GlobalConfig on the first run
type DataConfig ¶ added in v0.4.1
type DataConfig struct {
WorkspacePath string `yaml:"workspacePath"`
}
func (DataConfig) Changed ¶ added in v0.4.1
func (d DataConfig) Changed(other DataConfig) bool
type EditorConfig ¶ added in v0.4.1
type EditorConfig struct {
FontFamily string `yaml:"fontFamily"`
FontSize int `yaml:"FontSize"`
Indentation string `yaml:"indentation"` // spaces or tabs
TabWidth int `yaml:"tabWidth"`
AutoCloseBrackets bool `yaml:"autoCloseBrackets"`
AutoCloseQuotes bool `yaml:"autoCloseQuotes"`
ShowLineNumbers bool `yaml:"showLineNumbers"`
WrapLines bool `yaml:"wrapLines"`
}
func (EditorConfig) Changed ¶ added in v0.4.1
func (e EditorConfig) Changed(other EditorConfig) bool
type Environment ¶
type Environment struct {
ApiVersion string `yaml:"apiVersion"`
Kind string `yaml:"kind"`
MetaData MetaData `yaml:"metadata"`
Spec EnvSpec `yaml:"spec"`
}
func NewEnvironment ¶
func NewEnvironment(name string) *Environment
func (*Environment) ApplyToGRPCRequest ¶
func (e *Environment) ApplyToGRPCRequest(req *GRPCRequestSpec)
func (*Environment) ApplyToHTTPRequest ¶ added in v0.3.2
func (e *Environment) ApplyToHTTPRequest(req *HTTPRequestSpec)
func (*Environment) Clone ¶
func (e *Environment) Clone() *Environment
func (*Environment) GetKeyValues ¶ added in v0.4.1
func (e *Environment) GetKeyValues() map[string]interface{}
func (*Environment) GetKind ¶ added in v0.4.1
func (e *Environment) GetKind() string
func (*Environment) GetName ¶ added in v0.4.1
func (e *Environment) GetName() string
func (*Environment) ID ¶ added in v0.4.1
func (e *Environment) ID() string
func (*Environment) MarshalYaml ¶ added in v0.4.1
func (e *Environment) MarshalYaml() ([]byte, error)
func (*Environment) SetKey ¶
func (e *Environment) SetKey(key string, value string)
func (*Environment) SetName ¶ added in v0.4.1
func (e *Environment) SetName(name string)
type GRPCMethod ¶
type GRPCRequestSpec ¶
type GRPCRequestSpec struct {
LasSelectedMethod string `yaml:"lastSelectedMethod"`
Metadata []KeyValue `yaml:"metadata"`
Auth Auth `yaml:"auth"`
ServerInfo ServerInfo `yaml:"serverInfo"`
Settings GRPCSettings `yaml:"settings"`
Body string `yaml:"body"`
Services []GRPCService `yaml:"services"`
Variables []Variable `yaml:"variables"`
PreRequest PreRequest `yaml:"preRequest"`
PostRequest PostRequest `yaml:"postRequest"`
}
func (*GRPCRequestSpec) Clone ¶
func (r *GRPCRequestSpec) Clone() *GRPCRequestSpec
func (*GRPCRequestSpec) GetPostRequest ¶ added in v0.2.7
func (r *GRPCRequestSpec) GetPostRequest() PostRequest
func (*GRPCRequestSpec) GetPreRequest ¶ added in v0.2.7
func (r *GRPCRequestSpec) GetPreRequest() PreRequest
func (*GRPCRequestSpec) HasMethod ¶
func (r *GRPCRequestSpec) HasMethod(method string) bool
type GRPCResponseDetail ¶
type GRPCService ¶
type GRPCService struct {
Name string `yaml:"name"`
Methods []GRPCMethod
}
type GRPCSettings ¶ added in v0.4.1
type GeneralConfig ¶ added in v0.4.1
type GeneralConfig struct {
HTTPVersion string `yaml:"httpVersion"`
RequestTimeoutSec int `yaml:"timeoutSec"`
ResponseSizeMb int `yaml:"responseSizeMb"`
SendNoCacheHeader bool `yaml:"sendNoCacheHeader"`
UseHorizontalSplit bool `yaml:"useVerticalSplit"`
SendChaparAgentHeader bool `yaml:"sendChaparAgentHeader"`
}
func (GeneralConfig) Changed ¶ added in v0.4.1
func (g GeneralConfig) Changed(other GeneralConfig) bool
type GlobalConfig ¶ added in v0.4.1
type GlobalConfig struct {
ApiVersion string `yaml:"apiVersion"`
Kind string `yaml:"kind"`
MetaData MetaData `yaml:"metadata"`
Spec GlobalConfigSpec `yaml:"spec"`
}
GlobalConfig hold the global configuration for the application. it will eventually replace the Config struct
func GetDefaultGlobalConfig ¶ added in v0.4.1
func GetDefaultGlobalConfig() *GlobalConfig
GetDefaultGlobalConfig returns a default global config
func GlobalConfigFromValues ¶ added in v0.4.1
func GlobalConfigFromValues(initial GlobalConfig, values map[string]any) GlobalConfig
func (*GlobalConfig) Changed ¶ added in v0.4.1
func (g *GlobalConfig) Changed(other *GlobalConfig) bool
func (*GlobalConfig) ValuesMap ¶ added in v0.4.1
func (g *GlobalConfig) ValuesMap() map[string]any
type GlobalConfigSpec ¶ added in v0.4.1
type GlobalConfigSpec struct {
General GeneralConfig `yaml:"general"`
Editor EditorConfig `yaml:"editor"`
Scripting ScriptingConfig `yaml:"scripting"`
Data DataConfig `yaml:"data"`
}
type HTTPRequest ¶
type HTTPRequest struct {
Headers []KeyValue `yaml:"headers"`
PathParams []KeyValue `yaml:"pathParams"`
QueryParams []KeyValue `yaml:"queryParams"`
Body Body `yaml:"body"`
Auth Auth `yaml:"auth"`
Variables []Variable `yaml:"variables"`
PreRequest PreRequest `yaml:"preRequest"`
PostRequest PostRequest `yaml:"postRequest"`
}
func (*HTTPRequest) Clone ¶
func (r *HTTPRequest) Clone() *HTTPRequest
type HTTPRequestSpec ¶
type HTTPRequestSpec struct {
Method string `yaml:"method"`
URL string `yaml:"url"`
LastUsedEnvironment LastUsedEnvironment `yaml:"lastUsedEnvironment"`
Request *HTTPRequest `yaml:"request"`
Responses []HTTPResponse `yaml:"responses"`
}
func (*HTTPRequestSpec) Clone ¶
func (h *HTTPRequestSpec) Clone() *HTTPRequestSpec
func (*HTTPRequestSpec) GetPostRequest ¶ added in v0.2.7
func (h *HTTPRequestSpec) GetPostRequest() PostRequest
func (*HTTPRequestSpec) GetPreRequest ¶ added in v0.2.7
func (h *HTTPRequestSpec) GetPreRequest() PreRequest
func (*HTTPRequestSpec) RenderParams ¶ added in v0.3.2
func (h *HTTPRequestSpec) RenderParams()
type HTTPResponse ¶
type HTTPResponseDetail ¶
type KeyValue ¶
type KeyValue struct {
ID string `yaml:"id"`
Key string `yaml:"key"`
Value string `yaml:"value"`
Enable bool `yaml:"enable"`
}
func MetadataToKeyValue ¶
func ParsePathParams ¶
func ParseQueryParams ¶
func TextToKeyValue ¶ added in v0.2.8
type KubernetesTunnel ¶
type LastUsedEnvironment ¶
type PostRequest ¶
type PostRequest struct {
Type string `yaml:"type"`
Script string `yaml:"script"`
PostRequestSet PostRequestSet `yaml:"set"`
}
type PostRequestSet ¶
type PreRequest ¶
type PreRequest struct {
Type string `yaml:"type"`
Script string `yaml:"script"`
SShTunnel *SShTunnel `yaml:"sshTunnel,omitempty"`
KubernetesTunnel *KubernetesTunnel `yaml:"kubernetesTunnel,omitempty"`
TriggerRequest *TriggerRequest `yaml:"triggerRequest,omitempty"`
}
type PrefSpec ¶
type PrefSpec struct {
DarkMode bool `yaml:"darkMode"`
SelectedEnvironment SelectedEnvironment `yaml:"selectedEnvironment"`
}
type Preferences ¶
type Preferences struct {
ApiVersion string `yaml:"apiVersion"`
Kind string `yaml:"kind"`
MetaData MetaData `yaml:"metadata"`
Spec PrefSpec `yaml:"spec"`
}
Preferences struct is deprecated and will be removed in the future. Its deprecated and its data will be moved to AppState on the first run
func (*Preferences) GetKind ¶ added in v0.4.1
func (c *Preferences) GetKind() string
func (*Preferences) GetName ¶ added in v0.4.1
func (c *Preferences) GetName() string
func (*Preferences) ID ¶ added in v0.4.1
func (c *Preferences) ID() string
func (*Preferences) MarshalYaml ¶ added in v0.4.1
func (c *Preferences) MarshalYaml() ([]byte, error)
func (*Preferences) SetName ¶ added in v0.4.1
func (c *Preferences) SetName(name string)
type ProtoFile ¶
type ProtoFile struct {
ApiVersion string `yaml:"apiVersion"`
Kind string `yaml:"kind"`
MetaData MetaData `yaml:"metadata"`
Spec ProtoFileSpec `yaml:"spec"`
}
func NewProtoFile ¶
func (*ProtoFile) MarshalYaml ¶ added in v0.4.1
type ProtoFileSpec ¶
type Request ¶
type Request struct {
ApiVersion string `yaml:"apiVersion"`
Kind string `yaml:"kind"`
MetaData RequestMeta `yaml:"metadata"`
Spec RequestSpec `yaml:"spec"`
CollectionName string `yaml:"-"`
CollectionID string `yaml:"-"`
}
func NewGRPCRequest ¶
func NewHTTPRequest ¶
func (*Request) MarshalYaml ¶ added in v0.4.1
func (*Request) SetDefaultValues ¶
func (r *Request) SetDefaultValues()
func (*Request) SetDefaultValuesForGRPC ¶
func (r *Request) SetDefaultValuesForGRPC()
func (*Request) SetDefaultValuesForHTTP ¶
func (r *Request) SetDefaultValuesForHTTP()
type RequestMeta ¶
type RequestSpec ¶
type RequestSpec struct {
GRPC *GRPCRequestSpec `yaml:"grpc,omitempty"`
HTTP *HTTPRequestSpec `yaml:"http,omitempty"`
}
func (*RequestSpec) Clone ¶
func (r *RequestSpec) Clone() *RequestSpec
func (*RequestSpec) GetGRPC ¶ added in v0.2.7
func (r *RequestSpec) GetGRPC() *GRPCRequestSpec
func (*RequestSpec) GetHTTP ¶ added in v0.2.7
func (r *RequestSpec) GetHTTP() *HTTPRequestSpec
type ResponseDetail ¶ added in v0.3.4
type ResponseDetail struct {
HTTP *HTTPResponseDetail
GRPC *GRPCResponseDetail
}
type SShTunnel ¶
type SShTunnel struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
User string `yaml:"user"`
Password string `yaml:"password"`
KeyPath string `yaml:"keyPath"`
// The port to be used in the local machine
LocalPort int `yaml:"localPort"`
TargetPort int `yaml:"targetPort"`
Flags []string `yaml:"flags"`
}
type ScriptingConfig ¶ added in v0.4.1
type ScriptingConfig struct {
Enabled bool `yaml:"enabled"`
Language string `yaml:"language"` // python or javascript
UseDocker bool `yaml:"useDocker"`
// DockerImage is the docker image to use for the scripting engine
DockerImage string `yaml:"dockerImage"`
ExecutablePath string `yaml:"executablePath"`
ServerScriptPath string `yaml:"serverScriptPath"`
Port int `yaml:"port"`
}
func (ScriptingConfig) Changed ¶ added in v0.4.1
func (s ScriptingConfig) Changed(other ScriptingConfig) bool
type SelectedEnvironment ¶
type ServerInfo ¶
type TriggerRequest ¶ added in v0.2.7
type Variable ¶ added in v0.3.4
type Variable struct {
ID string `yaml:"id"` // Unique identifier
TargetEnvVariable string `yaml:"TargetEnvVariable"` // The environment variable to set
From VariableFrom `yaml:"from"` // Source: "body", "header", "cookie"
SourceKey string `yaml:"sourceKey"` // For "header" or "cookie", specify the key name
OnStatusCode int `yaml:"onStatusCode"` // Trigger on a specific status code
JsonPath string `yaml:"jsonPath"` // JSONPath for extracting value (for "body")
Enable bool `yaml:"enable"` // Enable or disable the variable
}
type VariableFrom ¶ added in v0.3.4
type VariableFrom string
const ( VariableFromBody VariableFrom = "body" VariableFromHeader VariableFrom = "header" VariableFromCookies VariableFrom = "cookies" VariableFromMetaData VariableFrom = "metadata" VariableFromTrailers VariableFrom = "trailers" )
func (VariableFrom) String ¶ added in v0.3.4
func (v VariableFrom) String() string
type Workspace ¶
type Workspace struct {
ApiVersion string `yaml:"apiVersion"`
Kind string `yaml:"kind"`
MetaData MetaData `yaml:"metadata"`
}
func NewDefaultWorkspace ¶
func NewDefaultWorkspace() *Workspace
func NewWorkspace ¶
func (*Workspace) MarshalYaml ¶ added in v0.4.1
Click to show internal directories.
Click to hide internal directories.