Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultWorkingDir = "tmp" TargetRepo = "repo" TargetSrc = "src" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
WorkingDir string `yaml:"working_dir"`
GithubConfigs []GithubConfig `yaml:"github_configs"`
}
func ParseFromFile ¶
type ConftestConfig ¶
type GithubConfig ¶
type GithubConfig struct {
ApiEndpoint string `yaml:"api_endpoint,omitempty"`
UploadEndpoint string `yaml:"upload_endpoint,omitempty"`
RepoConfigs []RepoConfig `yaml:"repo_configs"`
// contains filtered or unexported fields
}
func (GithubConfig) Domain ¶
func (c GithubConfig) Domain() string
func (GithubConfig) EnvvarName ¶
func (c GithubConfig) EnvvarName() string
type Regexp ¶
func (*Regexp) UnmarshalYAML ¶
type RepoConfig ¶
type RepoConfig struct {
Owner string `yaml:"owner"`
Regex *Regexp `yaml:"regex,omitempty"`
ConftestConfigs []ConftestConfig `yaml:"conftest_configs"`
}
func (*RepoConfig) UnmarshalYAML ¶
func (c *RepoConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
Click to show internal directories.
Click to hide internal directories.