Documentation ¶
Index ¶
- type APIKeyAuthenticator
- type APIKeyPosition
- type BasicAuthenticator
- type BearerAuthenticator
- type ConnectionResult
- type ConnectionTestStep
- type GRPCHeader
- type GRPCRequest
- type GRPCResponse
- type HTTPAuthenticator
- type HTTPHeader
- type HTTPMethod
- type HTTPRequest
- type HTTPResponse
- type List
- type LogLevel
- type OutputInfo
- type PeriodicPollingConfig
- type PollingInfo
- type PollingType
- type Protocol
- type Repository
- type Status
- type TestRunEvent
- type TestRunEventRepository
- type TestRunEventStage
- type TestRunEventType
- type TriggerType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKeyAuthenticator ¶
type APIKeyAuthenticator struct { Key string `expr_enabled:"true"` Value string `expr_enabled:"true"` In APIKeyPosition `expr_enabled:"true"` }
func (APIKeyAuthenticator) AuthenticateGRPC ¶
func (a APIKeyAuthenticator) AuthenticateGRPC()
func (APIKeyAuthenticator) AuthenticateHTTP ¶
func (a APIKeyAuthenticator) AuthenticateHTTP(req *http.Request)
type APIKeyPosition ¶
type APIKeyPosition string
const ( APIKeyPositionHeader APIKeyPosition = "header" APIKeyPositionQuery APIKeyPosition = "query" )
type BasicAuthenticator ¶
type BasicAuthenticator struct { Username string `expr_enabled:"true"` Password string `expr_enabled:"true"` }
func (BasicAuthenticator) AuthenticateGRPC ¶
func (a BasicAuthenticator) AuthenticateGRPC()
func (BasicAuthenticator) AuthenticateHTTP ¶
func (a BasicAuthenticator) AuthenticateHTTP(req *http.Request)
type BearerAuthenticator ¶
type BearerAuthenticator struct {
Bearer string `expr_enabled:"true"`
}
func (BearerAuthenticator) AuthenticateGRPC ¶
func (a BearerAuthenticator) AuthenticateGRPC()
func (BearerAuthenticator) AuthenticateHTTP ¶
func (a BearerAuthenticator) AuthenticateHTTP(req *http.Request)
type ConnectionResult ¶
type ConnectionResult struct { PortCheck ConnectionTestStep Connectivity ConnectionTestStep Authentication ConnectionTestStep FetchTraces ConnectionTestStep }
func (ConnectionResult) HasSucceed ¶
func (c ConnectionResult) HasSucceed() bool
type ConnectionTestStep ¶
func (*ConnectionTestStep) HasSucceed ¶
func (r *ConnectionTestStep) HasSucceed() bool
func (*ConnectionTestStep) IsSet ¶
func (r *ConnectionTestStep) IsSet() bool
func (*ConnectionTestStep) UnmarshalJSON ¶
func (s *ConnectionTestStep) UnmarshalJSON(bytes []byte) error
type GRPCHeader ¶
type GRPCRequest ¶
type GRPCRequest struct { ProtobufFile string `expr_enabled:"true"` Address string `expr_enabled:"true"` Service string `expr_enabled:"true"` Method string `expr_enabled:"true"` Request string `expr_enabled:"true"` Metadata []GRPCHeader Auth *HTTPAuthenticator }
func (GRPCRequest) Authenticate ¶
func (a GRPCRequest) Authenticate()
func (GRPCRequest) Headers ¶
func (a GRPCRequest) Headers() []string
func (GRPCRequest) MD ¶
func (a GRPCRequest) MD() *metadata.MD
type GRPCResponse ¶
type GRPCResponse struct { Status string StatusCode int Metadata []GRPCHeader Body string }
type HTTPAuthenticator ¶
type HTTPAuthenticator struct { Type string `expr_enabled:"true"` APIKey APIKeyAuthenticator Basic BasicAuthenticator Bearer BearerAuthenticator }
func (HTTPAuthenticator) AuthenticateGRPC ¶
func (a HTTPAuthenticator) AuthenticateGRPC()
func (HTTPAuthenticator) AuthenticateHTTP ¶
func (a HTTPAuthenticator) AuthenticateHTTP(req *http.Request)
func (HTTPAuthenticator) Map ¶
func (a HTTPAuthenticator) Map(mapFn func(current string) (string, error)) (HTTPAuthenticator, error)
type HTTPHeader ¶
type HTTPMethod ¶
type HTTPMethod string
var ( HTTPMethodGET HTTPMethod = "GET" HTTPMethodPUT HTTPMethod = "PUT" HTTPMethodPOST HTTPMethod = "POST" HTTPMethodPATCH HTTPMethod = "PATCH" HTTPMethodDELETE HTTPMethod = "DELETE" HTTPMethodCOPY HTTPMethod = "COPY" HTTPMethodHEAD HTTPMethod = "HEAD" HTTPMethodOPTIONS HTTPMethod = "OPTIONS" HTTPMethodLINK HTTPMethod = "LINK" HTTPMethodUNLINK HTTPMethod = "UNLINK" HTTPMethodPURGE HTTPMethod = "PURGE" HTTPMethodLOCK HTTPMethod = "LOCK" HTTPMethodUNLOCK HTTPMethod = "UNLOCK" HTTPMethodPROPFIND HTTPMethod = "PROPFIND" HTTPMethodVIEW HTTPMethod = "VIEW" )
type HTTPRequest ¶
type HTTPRequest struct { Method HTTPMethod `expr_enabled:"true" json:"method,omitempty"` URL string `expr_enabled:"true" json:"url"` Body string `expr_enabled:"true" json:"body,omitempty"` Headers []HTTPHeader `json:"headers,omitempty"` Auth *HTTPAuthenticator `json:"auth,omitempty"` SSLVerification bool `json:"sslVerification,omitempty"` }
func (HTTPRequest) Authenticate ¶
func (a HTTPRequest) Authenticate(req *http.Request)
type HTTPResponse ¶
type HTTPResponse struct { Status string StatusCode int Headers []HTTPHeader Body string }
type OutputInfo ¶
type PeriodicPollingConfig ¶
type PollingInfo ¶
type PollingInfo struct { Type PollingType IsComplete bool Periodic *PeriodicPollingConfig }
type Repository ¶
type TestRunEvent ¶
type TestRunEvent struct { ID int64 Type string Stage TestRunEventStage Title string Description string CreatedAt time.Time TestID id.ID RunID int DataStoreConnection ConnectionResult Polling PollingInfo Outputs []OutputInfo }
func (TestRunEvent) ResourceID ¶
func (e TestRunEvent) ResourceID() string
type TestRunEventRepository ¶
type TestRunEventStage ¶
type TestRunEventStage string
var ( StageTrigger TestRunEventStage = "trigger" StageTrace TestRunEventStage = "trace" StageTest TestRunEventStage = "test" )
type TestRunEventType ¶
type TestRunEventType string
type TriggerType ¶
type TriggerType string
const TriggerTypeGRPC TriggerType = "grpc"
const TriggerTypeHTTP TriggerType = "http"
Source Files ¶
Click to show internal directories.
Click to hide internal directories.