Documentation ¶
Index ¶
Constants ¶
View Source
const ( AzureDevOpsProviderType = "azuredevops" GitHubProviderType = "github" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureDevOps ¶
type AzureDevOps struct {
Pat string `json:"pat"`
}
type Configuration ¶
type Configuration struct {
Organizations []*Organization `json:"organizations" validate:"required,dive"`
}
func LoadConfiguration ¶
func LoadConfiguration(fs afero.Fs, path string) (*Configuration, error)
LoadConfiguration parses and validates the configuration file at a given path.
type Organization ¶
type Organization struct { Provider ProviderType `json:"provider" validate:"required,oneof='azuredevops' 'github'"` AzureDevOps AzureDevOps `json:"azuredevops"` GitHub GitHub `json:"github"` Host string `json:"host,omitempty" validate:"required,hostname"` Scheme string `json:"scheme,omitempty" validate:"required"` Name string `json:"name" validate:"required"` Repositories []*Repository `json:"repositories" validate:"required,dive"` }
func (*Organization) GetSecretName ¶
func (o *Organization) GetSecretName(r *Repository) string
type ProviderType ¶
type ProviderType string
Click to show internal directories.
Click to hide internal directories.