config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	APIPort        int    `yaml:"api_port"`
	OutputDir      string `yaml:"output_dir"`
	EnableSwagger  bool   `yaml:"enable_swagger"`
	APIPrefix      string `yaml:"api_prefix"`
	ValidationType string `yaml:"validation_type"`

	CloudProvider string

	// Aliyun specific
	AliyunRegion          string
	AliyunAccessKeyID     string
	AliyunAccessKeySecret string

	// AWS specific
	AWSRegion          string
	AWSAccessKeyID     string
	AWSSecretAccessKey string

	// Common cluster configuration
	ClusterName        string
	KubernetesVersion  string
	WorkerInstanceType string
	NodeCount          int
}

func LoadConfig

func LoadConfig(filename string) (*Config, error)

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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