Documentation
¶
Index ¶
Constants ¶
View Source
const (
Name = "git"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
URL string `json:"url"`
FilePath string `json:"file_path"` // if path points to a file, then only that file is loaded, otherwise scans for any json/yaml/xml files recursively, from root if path is empty
Commit string `json:"commit,omitempty"` // if empty then Branch is used
Branch string `json:"branch,omitempty"` // if empty then Ref is used
Ref string `json:"reference,omitempty"` // if empty then `refs/heads/main`, if `main` failed, then `refs/heads/master`
// Basic auth
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
// PAT auth
Token string `json:"token,omitempty"`
// SSH mode
PrivateKey string `json:"private_key,omitempty"` // key in PEM format or a file path
Passphrase string `json:"passphrase,omitempty"`
Interval string `json:"polling_interval,omitempty"` // default 5m, min 10s
Path string `json:"path"`
RegoTransformRule string `json:"rego_transform"`
// contains filtered or unexported fields
}
Config represents the configuration of the git data plugin
Click to show internal directories.
Click to hide internal directories.