config

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	HoursInDay            = 24
	KeyValueLength        = 2
	LabelLastScaleDate    = "kubernetes-manager/lastScaleDate"
	LabelGitBranch        = "kubernetes-manager/git-branch"
	LabelGitProjectID     = "kubernetes-manager/git-project-id"
	LabelGitProjectOrigin = "kubernetes-manager/git-project-origin"
	LabelRegistryTag      = "kubernetes-manager/registry-tag"
)

Variables

This section is empty.

Functions

func GetVersion

func GetVersion() string

func Load

func Load() error

func String

func String() string

Types

type Type

type Type struct {
	ConfigPath                 *string `yaml:"configPath"`
	LogLevel                   *string `yaml:"logLevel"`
	KubeConfigServer           *string `yaml:"kubeConfigServer"`
	KubeConfigPath             *string `yaml:"kubeConfigPath"`
	Mode                       *string `yaml:"mode"`
	Port                       *int    `yaml:"port"`
	FrontDist                  *string `yaml:"frontDist"`
	RemoveBranchDaysInactive   *int    `yaml:"removeBranchDaysInactive"`
	GitlabToken                *string `yaml:"gitlabToken"`
	GitlabURL                  *string `yaml:"gitlabUrl"`
	IngressFilter              *string `yaml:"ingressFilter"`
	IngressNoFiltration        *bool   `yaml:"ingressNoFiltration"`
	IngressHostDefaultProtocol *string `yaml:"ingressHostDefaultProtocol"`
	RemoveBranchLastScaleDate  *int    `yaml:"removeBranchLastScaleDate"`
	RegistryDirectory          *string `yaml:"registryDirectory"`
	RegistryURL                *string `yaml:"registryUrl"`
	RegistryUser               *string `yaml:"registryUser"`
	RegistryPassword           *string `yaml:"registryPassword"`
	ReleasePatern              *string `yaml:"releasePatern"`
	ReleaseNotDeleteDays       *int    `yaml:"releaseNotDeleteDays"`
	MakeAPICallServer          *string `yaml:"makeApiCallServer"`
	SystemNamespaces           *string `yaml:"systemNamespaces"`
	SystemGitTags              *string `yaml:"systemGitTags"`
}

func Get

func Get() *Type

Jump to

Keyboard shortcuts

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