Documentation ¶
Index ¶
- Constants
- type Detector
- func (d Detector) GetSecretVariables(data string) (map[string]testkube.Variable, error)
- func (d Detector) GetType() string
- func (d Detector) Is(options apiClient.UpsertTestOptions) (name string, ok bool)
- func (d Detector) IsEnvName(filename string) (string, string, bool)
- func (d Detector) IsSecretEnvName(filename string) (string, string, bool)
- func (d Detector) IsTestName(filename string) (string, bool)
- func (d Detector) IsWithPath(path string, options apiClient.UpsertTestOptions) (name string, ok bool)
- type EnvFile
- type Value
Constants ¶
View Source
const (
// PostmanCollectionType is type of Postman collection
PostmanCollectionType = "postman/collection"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector struct { }
Detector is detector adapter for Postman collection saved as JSON content
func (Detector) GetSecretVariables ¶
GetSecretVariables retuns secret variables
func (Detector) Is ¶
func (d Detector) Is(options apiClient.UpsertTestOptions) (name string, ok bool)
Is detects based on upsert test options what kind of test it is
func (Detector) IsSecretEnvName ¶
IsSecretEnvName detecs if filename has a conventional secret env name
func (Detector) IsTestName ¶
IsTestName detecs if filename has a conventional test name
func (Detector) IsWithPath ¶
func (d Detector) IsWithPath(path string, options apiClient.UpsertTestOptions) (name string, ok bool)
IsWithPath detects based on upsert test options what kind of test it is
type EnvFile ¶
type EnvFile struct { ID string `json:"id"` Name string `json:"name"` Values []Value `json:"values"` PostmanVariableScope string `json:"_postman_variable_scope"` PostmanExportedAt time.Time `json:"_postman_exported_at"` PostmanExportedUsing string `json:"_postman_exported_using"` }
EnvFile contains env file structure
Click to show internal directories.
Click to hide internal directories.