Documentation ¶
Index ¶
- func Encode(in File) ([]byte, error)
- type File
- type FileType
- type GRPC
- type GRPCHeader
- type HTTPAPIKeyAuth
- type HTTPAuthentication
- type HTTPBasicAuth
- type HTTPBearerAuth
- type HTTPHeader
- type HTTPRequest
- type Output
- type Outputs
- type TRACEIDRequest
- type Test
- type TestSpec
- type TestSpecs
- type TestSuite
- type TestTrigger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileType ¶
type FileType string
const ( FileTypeTest FileType = "Test" FileTypeTestSuite FileType = "TestSuite" FileTypeEnvironment FileType = "Environment" FileTypeDataStore FileType = "DataStore" FileTypeConfig FileType = "Config" FileTypeDemo FileType = "Demo" FileTypePollingProfile FileType = "PollingProfile" FileTypeAnalyzer FileType = "Analyzer" )
type GRPC ¶
type GRPC struct { ProtobufFile string `yaml:"protobufFile"` Address string `yaml:"address"` Method string `yaml:"method"` Metadata []GRPCHeader `yaml:"metadata,omitempty"` Auth HTTPAuthentication `yaml:"authentication,omitempty"` Request string `yaml:"request,omitempty"` }
type GRPCHeader ¶
func (GRPCHeader) Validate ¶
func (h GRPCHeader) Validate() error
type HTTPAPIKeyAuth ¶
type HTTPAPIKeyAuth struct { Key string `yaml:"key"` Value string `yaml:"value"` In string `yaml:"in"` }
func (HTTPAPIKeyAuth) Validate ¶
func (aka HTTPAPIKeyAuth) Validate() error
type HTTPAuthentication ¶
type HTTPAuthentication struct { Type string `yaml:"type,omitempty"` Basic *HTTPBasicAuth `yaml:"basic,omitempty"` APIKey *HTTPAPIKeyAuth `yaml:"apiKey,omitempty"` Bearer *HTTPBearerAuth `yaml:"bearer,omitempty"` }
func (HTTPAuthentication) Validate ¶
func (a HTTPAuthentication) Validate() error
type HTTPBasicAuth ¶
func (HTTPBasicAuth) Validate ¶
func (ba HTTPBasicAuth) Validate() error
type HTTPBearerAuth ¶
type HTTPBearerAuth struct {
Token string `yaml:"token" dc:"bearer"`
}
func (HTTPBearerAuth) Validate ¶
func (ba HTTPBearerAuth) Validate() error
type HTTPHeader ¶
func (HTTPHeader) Validate ¶
func (h HTTPHeader) Validate() error
type HTTPRequest ¶
type HTTPRequest struct { URL string `yaml:"url"` Method string `yaml:"method"` Headers []HTTPHeader `yaml:"headers,omitempty" dc:"headers"` Authentication *HTTPAuthentication `yaml:"authentication,omitempty" dc:"auth"` Body string `yaml:"body,omitempty"` SSLVerification bool `yaml:"sslVerification,omitempty"` }
func (HTTPRequest) Validate ¶
func (r HTTPRequest) Validate() error
type TRACEIDRequest ¶
type TRACEIDRequest struct {
ID string `yaml:"id"`
}
func (TRACEIDRequest) Validate ¶
func (t TRACEIDRequest) Validate() error
type Test ¶
type Test struct { ID string `mapstructure:"id"` Name string `mapstructure:"name"` Description string `mapstructure:"description" yaml:",omitempty"` Trigger TestTrigger `mapstructure:"trigger"` Specs TestSpecs `mapstructure:"specs" yaml:",omitempty"` Outputs Outputs `mapstructure:"outputs,omitempty" yaml:",omitempty"` }
type TestSuite ¶
type TestTrigger ¶
type TestTrigger struct { Type string `mapstructure:"type"` HTTPRequest HTTPRequest `mapstructure:"httpRequest" yaml:"httpRequest,omitempty" dc:"http"` GRPC GRPC `mapstructure:"grpc" yaml:"grpc,omitempty"` TRACEID TRACEIDRequest `mapstructure:"traceid" yaml:"traceid,omitempty"` }
func (TestTrigger) Validate ¶
func (t TestTrigger) Validate() error
Click to show internal directories.
Click to hide internal directories.