Documentation ¶
Index ¶
- Constants
- type AdminSecretsConfig
- type AdminSecretsFlags
- type AdminSecretsService
- type ChartMuseum
- type ChartMuseumSecret
- type ChatConfig
- type ExposeController
- type ExposeControllerConfig
- type Grafana
- type GrafanaSecret
- type HelmValuesConfig
- type HelmValuesConfigService
- type Image
- type IngressBasicAuth
- type IssueTrackerConfig
- type Jenkins
- type JenkinsAdminSecret
- type JenkinsGiteaServersValuesConfig
- type JenkinsGithubServersValuesConfig
- type JenkinsServersValuesConfig
- type JenkinsValuesConfig
- type Nexus
- type PipelineSecrets
- type Preview
- type PreviewEnvironmentConfig
- type PreviewValuesConfig
- type ProjectConfig
- type WikiConfig
Constants ¶
View Source
const (
// ProjectConfigFileName is the name of the project configuration file
ProjectConfigFileName = "jenkins-x.yml"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminSecretsConfig ¶ added in v1.0.96
type AdminSecretsConfig struct { IngressBasicAuth string `yaml:"JXBasicAuth,omitempty"` ChartMuseum *ChartMuseum `yaml:"chartmuseum,omitempty"` Grafana *Grafana `yaml:"grafana,omitempty"` Jenkins *Jenkins `yaml:"jenkins,omitempty"` Nexus *Nexus `yaml:"nexus,omitempty"` PipelineSecrets *PipelineSecrets `yaml:"PipelineSecrets,omitempty"` }
func (AdminSecretsConfig) String ¶ added in v1.0.96
func (c AdminSecretsConfig) String() (string, error)
type AdminSecretsFlags ¶ added in v1.0.96
type AdminSecretsFlags struct {
DefaultAdminPassword string
}
type AdminSecretsService ¶ added in v1.0.96
type AdminSecretsService struct { FileName string Secrets AdminSecretsConfig Flags AdminSecretsFlags }
func (*AdminSecretsService) AddAdminSecretsValues ¶ added in v1.0.96
func (s *AdminSecretsService) AddAdminSecretsValues(cmd *cobra.Command)
func (*AdminSecretsService) NewAdminSecretsConfig ¶ added in v1.0.96
func (s *AdminSecretsService) NewAdminSecretsConfig() error
type ChartMuseum ¶ added in v1.0.96
type ChartMuseum struct {
ChartMuseumSecret ChartMuseumSecret `yaml:"secret"`
}
type ChartMuseumSecret ¶ added in v1.0.96
type ChatConfig ¶ added in v1.1.23
type ExposeController ¶
type ExposeController struct { Config ExposeControllerConfig `yaml:"config,omitempty"` Annotations map[string]string `yaml:"Annotations,omitempty"` }
type ExposeControllerConfig ¶ added in v1.0.85
type Grafana ¶ added in v1.0.96
type Grafana struct {
GrafanaSecret GrafanaSecret `yaml:"server"`
}
type GrafanaSecret ¶ added in v1.0.96
type HelmValuesConfig ¶
type HelmValuesConfig struct { ExposeController *ExposeController `yaml:"expose,omitempty"` Jenkins JenkinsValuesConfig `yaml:"jenkins,omitempty"` }
func (*HelmValuesConfig) AddExposeControllerValues ¶
func (c *HelmValuesConfig) AddExposeControllerValues(cmd *cobra.Command, ignoreDomain bool)
func (HelmValuesConfig) String ¶
func (c HelmValuesConfig) String() (string, error)
type HelmValuesConfigService ¶
type HelmValuesConfigService struct { FileName string Config HelmValuesConfig }
type IngressBasicAuth ¶ added in v1.0.96
type IngressBasicAuth struct {
JXBasicAuth string `yaml:"JXBasicAuth"`
}
type IssueTrackerConfig ¶ added in v1.1.23
type Jenkins ¶ added in v1.0.96
type Jenkins struct {
JenkinsSecret JenkinsAdminSecret `yaml:"Master"`
}
type JenkinsAdminSecret ¶ added in v1.0.96
type JenkinsAdminSecret struct {
Password string `yaml:"AdminPassword"`
}
type JenkinsGiteaServersValuesConfig ¶ added in v1.1.35
type JenkinsGithubServersValuesConfig ¶ added in v1.1.44
type JenkinsServersValuesConfig ¶ added in v1.1.35
type JenkinsServersValuesConfig struct { Gitea []JenkinsGiteaServersValuesConfig `yaml:"Gitea,omitempty"` GHE []JenkinsGithubServersValuesConfig `yaml:"GHE,omitempty"` }
func (*JenkinsServersValuesConfig) GetOrCreateFirstGitea ¶ added in v1.1.35
func (c *JenkinsServersValuesConfig) GetOrCreateFirstGitea() *JenkinsGiteaServersValuesConfig
GetOrCreateFirstGitea returns the first gitea server creating one if required
type JenkinsValuesConfig ¶ added in v1.1.35
type JenkinsValuesConfig struct {
Servers JenkinsServersValuesConfig `yaml:"Servers,omitempty"`
}
type Nexus ¶ added in v1.0.105
type Nexus struct {
DefaultAdminPassword string `yaml:"defaultAdminPassword,omitempty"`
}
type PipelineSecrets ¶ added in v1.0.105
type PipelineSecrets struct {
MavenSettingsXML string `yaml:"MavenSettingsXML,omitempty"`
}
type PreviewEnvironmentConfig ¶ added in v1.1.23
type PreviewValuesConfig ¶ added in v1.0.135
type PreviewValuesConfig struct { ExposeController *ExposeController `yaml:"expose,omitempty"` Preview *Preview `yaml:"preview,omitempty"` }
func (PreviewValuesConfig) String ¶ added in v1.0.135
func (c PreviewValuesConfig) String() (string, error)
type ProjectConfig ¶ added in v1.1.23
type ProjectConfig struct { PreviewEnvironments *PreviewEnvironmentConfig `yaml:"previewEnvironments,omitempty"` IssueTracker *IssueTrackerConfig `yaml:"issueTracker,omitempty"` Chat *ChatConfig `yaml:"chat,omitempty"` Wiki *WikiConfig `yaml:"wiki,omitempty"` }
func LoadProjectConfig ¶ added in v1.1.23
func LoadProjectConfig(projectDir string) (*ProjectConfig, string, error)
LoadProjectConfig loads the project configuration if there is a project configuration file
func (*ProjectConfig) IsEmpty ¶ added in v1.1.23
func (c *ProjectConfig) IsEmpty() bool
IsEmpty returns true if this configuration is empty
func (*ProjectConfig) SaveConfig ¶ added in v1.1.23
func (c *ProjectConfig) SaveConfig(fileName string) error
SaveConfig saves the configuration file to the given project directory
type WikiConfig ¶ added in v1.1.23
Click to show internal directories.
Click to hide internal directories.