config

package
v0.0.0-...-e3522e2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TEST_ENV               = "test"
	PRODUCTION_ENV         = "production"
	RESOURCE_IDENTITY      = "resource-identity"
	RESOURCE_IDENTITY_TYPE = "oam.alibaba.dev/v1.ResourceIdentity"
	ROS_GROUP              = "ros.aliyun.com"
	ROS_FINALIZER          = "ros.aliyun.com/ros-finalizer"
	BASE_USER_AGENT        = "ros-oam"
)

Variables

View Source
var (
	RosCtrlConf = RosControllerConfig{}
)

Functions

func InitRosCtrlConf

func InitRosCtrlConf(
	env string,
	endpoint string,
	regionId string,
	accessKeyId string,
	accessKeySecret string,
	credentialSecretName string,
	leaderElectionNamespace string,
	namespace string,
	updateApp bool,
	serviceUserAgent string,
	dryRun bool,
	workAsRosCrd bool)

Types

type RosControllerConfig

type RosControllerConfig struct {
	// HA
	LeaderElection          bool
	LeaderLockName          string
	LeaderElectionNamespace string

	Namespace string

	// Env
	Env          string
	UserAgent    string
	WorkAsRosCrd bool

	// Log
	LoggerDebug bool
	LogToFile   bool
	LogFilePath string

	// API
	Endpoint string
	RegionId string

	// AK
	AccessKeyId          string
	AccessKeySecret      string
	CredentialSecretName string

	// Lifecycle
	UpdateApp          bool
	StackCheckInterval int

	// dryRun
	DryRun bool
}

Jump to

Keyboard shortcuts

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