conf

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigInstance

type ConfigInstance struct {
	Spec   v1alpha1.WorkflowSpec `yaml:"spec"`
	OnExit []v1alpha1.DAGTask    `yaml:"onExit"`
}

type GitProviderConfig added in v1.1.1

type GitProviderConfig struct {
	Provider           string `envconfig:"GIT_PROVIDER" required:"true"`
	Token              string `envconfig:"GIT_TOKEN" required:"true"`
	OrgName            string `envconfig:"GIT_ORG_NAME" required:"true"`
	OrgLevelWebhook    bool   `envconfig:"GIT_ORG_LEVEL_WEBHOOK" default:"false" required:"false"`
	RepoList           string `envconfig:"GIT_WEBHOOK_REPO_LIST" required:"false"`
	WebhookURL         string `envconfig:"GIT_WEBHOOK_URL" required:"false"`
	WebhookSecret      string `envconfig:"GIT_WEBHOOK_SECRET" required:"false"`
	WebhookAutoCleanup bool   `envconfig:"GIT_WEBHOOK_AUTO_CLEANUP" default:"false" required:"false"`
}

func (*GitProviderConfig) GitConfLoad added in v1.1.1

func (cfg *GitProviderConfig) GitConfLoad() error

type GlobalConfig added in v1.1.1

func LoadConfig

func LoadConfig() (*GlobalConfig, error)

func (*GlobalConfig) Load added in v1.1.1

func (cfg *GlobalConfig) Load() error

type RookoutConfig

type RookoutConfig struct {
	Token        string `envconfig:"ROOKOUT_TOKEN" default:""`
	Labels       string `envconfig:"ROOKOUT_LABELS" default:"service:piper"`
	RemoteOrigin string `envconfig:"ROOKOUT_REMOTE_ORIGIN" default:"https://github.com/Rookout/piper.git"`
}

func (*RookoutConfig) RookoutConfLoad

func (cfg *RookoutConfig) RookoutConfLoad() error

type WorkflowServerConfig added in v1.1.1

type WorkflowServerConfig struct {
	ArgoToken   string `envconfig:"ARGO_WORKFLOWS_TOKEN" required:"false"`
	ArgoAddress string `envconfig:"ARGO_WORKFLOWS_ADDRESS" required:"false"`
	CreateCRD   bool   `envconfig:"ARGO_WORKFLOWS_CREATE_CRD" default:"true"`
	Namespace   string `envconfig:"ARGO_WORKFLOWS_NAMESPACE" default:"default"`
	KubeConfig  string `envconfig:"KUBE_CONFIG" default:""`
}

func (*WorkflowServerConfig) ArgoConfLoad added in v1.1.1

func (cfg *WorkflowServerConfig) ArgoConfLoad() error

type WorkflowsConfig added in v1.1.1

type WorkflowsConfig struct {
	Configs map[string]*ConfigInstance
}

func (*WorkflowsConfig) WorkflowsSpecLoad added in v1.1.1

func (wfc *WorkflowsConfig) WorkflowsSpecLoad(configPath string) error

Jump to

Keyboard shortcuts

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