config

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalPlatform      = "local"
	KubernetesPlatform = "kubernetes"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Version bool

	ListenPort      int
	ListenHttpsPort int
	ListenHost      string
	SSLCertFile     string
	SSLKeyFile      string
	SSLClientCAFile string
	Runtime         string
	EnablePprof     bool
	PprofPort       int
	Platform        string
	ServerName      string
	// contains filtered or unexported fields
}

Config defines the configuration for Chaosd.

func (*Config) Address

func (c *Config) Address() string

Get the grpc address

func (*Config) HttpsServerAddress added in v1.1.1

func (c *Config) HttpsServerAddress() string

Get the https server address

func (*Config) Parse

func (c *Config) Parse(arguments []string) error

Parse parses flag definitions from the argument list.

func (*Config) Validate

func (c *Config) Validate() error

Validate is used to validate if some configurations are right.

type Platform

type Platform string

Jump to

Keyboard shortcuts

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