config

package
v1.2.41 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 AddonConfig

type AddonConfig struct {
	Name    string `yaml:"name,omitempty"`
	Version string `yaml:"version,omitempty"`
}

type AdminSecretsConfig

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

func (c AdminSecretsConfig) String() (string, error)

type AdminSecretsFlags

type AdminSecretsFlags struct {
	DefaultAdminPassword string
}

type AdminSecretsService

type AdminSecretsService struct {
	FileName string
	Secrets  AdminSecretsConfig
	Flags    AdminSecretsFlags
}

func (*AdminSecretsService) AddAdminSecretsValues

func (s *AdminSecretsService) AddAdminSecretsValues(cmd *cobra.Command)

func (*AdminSecretsService) NewAdminSecretsConfig

func (s *AdminSecretsService) NewAdminSecretsConfig() error

type ChartMuseum

type ChartMuseum struct {
	ChartMuseumSecret ChartMuseumSecret `yaml:"secret"`
}

type ChartMuseumSecret

type ChartMuseumSecret struct {
	User     string `yaml:"BASIC_AUTH_USER"`
	Password string `yaml:"BASIC_AUTH_PASS"`
}

type ChatConfig

type ChatConfig struct {
	Kind             string `yaml:"kind,omitempty"`
	URL              string `yaml:"url,omitempty"`
	DeveloperChannel string `yaml:"developerChannel,omitempty"`
	UserChannel      string `yaml:"userChannel,omitempty"`
}

type ExposeController

type ExposeController struct {
	Config      ExposeControllerConfig `yaml:"config,omitempty"`
	Annotations map[string]string      `yaml:"Annotations,omitempty"`
}

type ExposeControllerConfig

type ExposeControllerConfig struct {
	Domain  string `yaml:"domain,omitempty"`
	Exposer string `yaml:"exposer"`
	HTTP    string `yaml:"http"`
	TLSAcme string `yaml:"tlsacme"`
}

type Grafana

type Grafana struct {
	GrafanaSecret GrafanaSecret `yaml:"server"`
}

type GrafanaSecret

type GrafanaSecret struct {
	User     string `yaml:"adminUser"`
	Password string `yaml:"adminPassword"`
}

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 Image

type Image struct {
	Repository string `yaml:"repository,omitempty"`
	Tag        string `yaml:"tag,omitempty"`
}

type IngressBasicAuth

type IngressBasicAuth struct {
	JXBasicAuth string `yaml:"JXBasicAuth"`
}

type IssueTrackerConfig

type IssueTrackerConfig struct {
	Kind    string `yaml:"kind,omitempty"`
	URL     string `yaml:"url,omitempty"`
	Project string `yaml:"project,omitempty"`
}

type Jenkins

type Jenkins struct {
	JenkinsSecret JenkinsAdminSecret `yaml:"Master"`
}

type JenkinsAdminSecret

type JenkinsAdminSecret struct {
	Password string `yaml:"AdminPassword"`
}

type JenkinsGiteaServersValuesConfig

type JenkinsGiteaServersValuesConfig struct {
	Name       string `yaml:"Name,omitempty"`
	Url        string `yaml:"Url,omitempty"`
	Credential string `yaml:"Credential,omitempty"`
}

type JenkinsGithubServersValuesConfig

type JenkinsGithubServersValuesConfig struct {
	Name string `yaml:"Name,omitempty"`
	Url  string `yaml:"Url,omitempty"`
}

type JenkinsServersValuesConfig

type JenkinsServersValuesConfig struct {
	Gitea []JenkinsGiteaServersValuesConfig  `yaml:"Gitea,omitempty"`
	GHE   []JenkinsGithubServersValuesConfig `yaml:"GHE,omitempty"`
}

func (*JenkinsServersValuesConfig) GetOrCreateFirstGitea

func (c *JenkinsServersValuesConfig) GetOrCreateFirstGitea() *JenkinsGiteaServersValuesConfig

GetOrCreateFirstGitea returns the first gitea server creating one if required

type JenkinsValuesConfig

type JenkinsValuesConfig struct {
	Servers JenkinsServersValuesConfig `yaml:"Servers,omitempty"`
}

type Nexus

type Nexus struct {
	DefaultAdminPassword string `yaml:"defaultAdminPassword,omitempty"`
}

type PipelineSecrets

type PipelineSecrets struct {
	MavenSettingsXML string `yaml:"MavenSettingsXML,omitempty"`
}

type Preview

type Preview struct {
	Image *Image `yaml:"image,omitempty"`
}

type PreviewEnvironmentConfig

type PreviewEnvironmentConfig struct {
	Disabled         bool `yaml:"disabled,omitempty"`
	MaximumInstances int  `yaml:"maximumInstances,omitempty"`
}

type PreviewValuesConfig

type PreviewValuesConfig struct {
	ExposeController *ExposeController `yaml:"expose,omitempty"`
	Preview          *Preview          `yaml:"preview,omitempty"`
}

func (PreviewValuesConfig) String

func (c PreviewValuesConfig) String() (string, error)

type ProjectConfig

type ProjectConfig struct {
	PreviewEnvironments *PreviewEnvironmentConfig `yaml:"previewEnvironments,omitempty"`
	IssueTracker        *IssueTrackerConfig       `yaml:"issueTracker,omitempty"`
	Chat                *ChatConfig               `yaml:"chat,omitempty"`
	Wiki                *WikiConfig               `yaml:"wiki,omitempty"`
	Addons              []*AddonConfig            `yaml:"addons,omitempty"`
}

func LoadProjectConfig

func LoadProjectConfig(projectDir string) (*ProjectConfig, string, error)

LoadProjectConfig loads the project configuration if there is a project configuration file

func (*ProjectConfig) IsEmpty

func (c *ProjectConfig) IsEmpty() bool

IsEmpty returns true if this configuration is empty

func (*ProjectConfig) SaveConfig

func (c *ProjectConfig) SaveConfig(fileName string) error

SaveConfig saves the configuration file to the given project directory

type WikiConfig

type WikiConfig struct {
	Kind  string `yaml:"kind,omitempty"`
	URL   string `yaml:"url,omitempty"`
	Space string `yaml:"space,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL