conf

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgoConfig

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

func (*ArgoConfig) ArgoConfLoad

func (cfg *ArgoConfig) ArgoConfLoad() error

type Config

func LoadConfig

func LoadConfig() (*Config, error)

func (*Config) Load

func (cfg *Config) Load() error

type ConfigInstance

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

type GitConfig

type GitConfig 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"`
}

func (*GitConfig) GitConfLoad

func (cfg *GitConfig) GitConfLoad() 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 WorkflowConfig

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

func (*WorkflowConfig) WorkflowsSpecLoad

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

Jump to

Keyboard shortcuts

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