settings

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

View Source
const (
	ApplicationNameKey                    = "application-name"
	SecretAutoCreateKey                   = "secret-auto-create"
	HubURLKey                             = "hub-url"
	HubCatalogNameKey                     = "hub-catalog-name"
	MaxKeepRunUpperLimitKey               = "max-keep-run-upper-limit"
	DefaultMaxKeepRunsKey                 = "default-max-keep-runs"
	RemoteTasksKey                        = "remote-tasks"
	BitbucketCloudCheckSourceIPKey        = "bitbucket-cloud-check-source-ip"
	BitbucketCloudAdditionalSourceIPKey   = "bitbucket-cloud-additional-source-ip"
	TektonDashboardURLKey                 = "tekton-dashboard-url"
	AutoConfigureNewGitHubRepoKey         = "auto-configure-new-github-repo"
	AutoConfigureRepoNamespaceTemplateKey = "auto-configure-repo-namespace-template"

	PACApplicationNameDefaultValue = "Pipelines as Code CI"
	HubURLDefaultValue             = "https://api.hub.tekton.dev/v1"

	AutoConfigureNewGitHubRepoDefaultValue = "false"
)

Variables

This section is empty.

Functions

func ConfigToSettings

func ConfigToSettings(logger *zap.SugaredLogger, setting *Settings, config map[string]string) error

func SetDefaults

func SetDefaults(config map[string]string)

func StringToBool

func StringToBool(s string) bool

func Validate

func Validate(config map[string]string) error

Types

type Settings

type Settings struct {
	ApplicationName                    string
	SecretAutoCreation                 bool
	HubURL                             string
	HubCatalogName                     string
	RemoteTasks                        bool
	MaxKeepRunsUpperLimit              int
	DefaultMaxKeepRuns                 int
	BitbucketCloudCheckSourceIP        bool
	BitbucketCloudAdditionalSourceIP   string
	TektonDashboardURL                 string
	AutoConfigureNewGitHubRepo         bool
	AutoConfigureRepoNamespaceTemplate string
}

Jump to

Keyboard shortcuts

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