Documentation ¶
Overview ¶
Package yaml provides utility functions for working with YAML files.
Index ¶
- func CompareHeaders(h1 http.Header, h2 http.Header, res *[]models.HeaderResult, ...) bool
- func Contains(elems []string, v string) bool
- func CreateYamlFile(ctx context.Context, Logger *zap.Logger, path string, fileName string) (bool, error)
- func DeleteDir(_ context.Context, logger *zap.Logger, path string) error
- func DeleteFile(_ context.Context, logger *zap.Logger, path, name string) error
- func FindLastIndex(path string, _ *zap.Logger) (int, error)
- func NewSessionIndex(path string, Logger *zap.Logger) (string, error)
- func ReadDir(path string, fileMode fs.FileMode) (*os.File, error)
- func ReadFile(ctx context.Context, logger *zap.Logger, path, name string) ([]byte, error)
- func ReadSessionIndices(_ context.Context, path string, Logger *zap.Logger) ([]string, error)
- func ValidatePath(path string) (string, error)
- func WriteFile(ctx context.Context, logger *zap.Logger, path, fileName string, docData []byte, ...) error
- type NetworkTrafficDoc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareHeaders ¶
func CreateYamlFile ¶
func FindLastIndex ¶
FindLastIndex returns the index for the new yaml file by reading the yaml file names in the given path directory
func ReadSessionIndices ¶
func ValidatePath ¶
Types ¶
type NetworkTrafficDoc ¶
type NetworkTrafficDoc struct { Version models.Version `json:"version" yaml:"version"` Kind models.Kind `json:"kind" yaml:"kind"` Name string `json:"name" yaml:"name"` Spec yamlLib.Node `json:"spec" yaml:"spec"` Curl string `json:"curl" yaml:"curl,omitempty"` ConnectionID string `json:"connectionId" yaml:"connectionId,omitempty"` }
NetworkTrafficDoc stores the request-response data of a network call (ingress or egress)
Directories ¶
Path | Synopsis |
---|---|
configdb
|
|
testset
Package testset provides functionality for working with keploy testset level configs like templates, post/pre script.
|
Package testset provides functionality for working with keploy testset level configs like templates, post/pre script. |
user
Package user provides functionality for working with keploy user configs like installation id.
|
Package user provides functionality for working with keploy user configs like installation id. |
Package mockdb provides a mock database implementation.
|
Package mockdb provides a mock database implementation. |
Package reportdb provides functionality for managing test reports in a database.
|
Package reportdb provides functionality for managing test reports in a database. |
Package testdb provides functionality for working with test databases.
|
Package testdb provides functionality for working with test databases. |
Click to show internal directories.
Click to hide internal directories.