configStructs

package
v0.0.0-...-e52ba1f Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PreTapCheckName     = "pre-tap"
	PreInstallCheckName = "pre-install"
	ImagePullCheckName  = "image-pull"
)
View Source
const (
	GuiPortTapName               = "gui-port"
	NamespacesTapName            = "namespaces"
	AllNamespacesTapName         = "all-namespaces"
	EnableRedactionTapName       = "redact"
	HumanMaxEntriesDBSizeTapName = "max-entries-db-size"
	InsertionFilterName          = "insertion-filter"
	DryRunTapName                = "dry-run"
	ServiceMeshName              = "service-mesh"
	TlsName                      = "tls"
	ProfilerName                 = "profiler"
	MaxLiveStreamsName           = "max-live-streams"
)
View Source
const (
	GuiPortViewName = "gui-port"
	UrlViewName     = "url"
)
View Source
const (
	DebugInfoVersionName = "debug"
)
View Source
const (
	FileLogsName = "file"
)
View Source
const (
	OutInstallName = "out"
)
View Source
const (
	RegenerateConfigName = "regenerate"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckConfig

type CheckConfig struct {
	PreTap     bool `yaml:"pre-tap"`
	PreInstall bool `yaml:"pre-install"`
	ImagePull  bool `yaml:"image-pull"`
}

type ConfigConfig

type ConfigConfig struct {
	Regenerate bool `yaml:"regenerate,omitempty" default:"false" readonly:""`
}

type InstallConfig

type InstallConfig struct {
	TemplateUrl  string `yaml:"template-url" default:"https://storage.googleapis.com/static.up9.io/mizu/helm-template"`
	TemplateName string `yaml:"template-name" default:"helm-template.yaml"`
	Out          bool   `yaml:"out"`
}

type LogsConfig

type LogsConfig struct {
	FileStr string `yaml:"file"`
}

func (*LogsConfig) FilePath

func (config *LogsConfig) FilePath() string

func (*LogsConfig) Validate

func (config *LogsConfig) Validate() error

type TapConfig

type TapConfig struct {
	PodRegexStr       string   `yaml:"regex" default:".*"`
	GuiPort           uint16   `yaml:"gui-port" default:"8899"`
	ProxyHost         string   `yaml:"proxy-host" default:"127.0.0.1"`
	Namespaces        []string `yaml:"namespaces"`
	AllNamespaces     bool     `yaml:"all-namespaces" default:"false"`
	IgnoredUserAgents []string `yaml:"ignored-user-agents"`
	EnableRedaction   bool     `yaml:"redact" default:"false"`
	RedactPatterns    struct {
		RequestHeaders     []string `yaml:"request-headers"`
		ResponseHeaders    []string `yaml:"response-headers"`
		RequestBody        []string `yaml:"request-body"`
		ResponseBody       []string `yaml:"response-body"`
		RequestQueryParams []string `yaml:"request-query-params"`
	} `yaml:"redact-patterns"`
	HumanMaxEntriesDBSize string           `yaml:"max-entries-db-size" default:"200MB"`
	InsertionFilter       string           `yaml:"insertion-filter" default:""`
	DryRun                bool             `yaml:"dry-run" default:"false"`
	ApiServerResources    shared.Resources `yaml:"api-server-resources"`
	TapperResources       shared.Resources `yaml:"tapper-resources"`
	ServiceMesh           bool             `yaml:"service-mesh" default:"false"`
	Tls                   bool             `yaml:"tls" default:"false"`
	PacketCapture         string           `yaml:"packet-capture" default:"libpcap"`
	Profiler              bool             `yaml:"profiler" default:"false"`
	MaxLiveStreams        int              `yaml:"max-live-streams" default:"500"`
}

func (*TapConfig) GetInsertionFilter

func (config *TapConfig) GetInsertionFilter() string

func (*TapConfig) MaxEntriesDBSizeBytes

func (config *TapConfig) MaxEntriesDBSizeBytes() int64

func (*TapConfig) PodRegex

func (config *TapConfig) PodRegex() *regexp.Regexp

func (*TapConfig) Validate

func (config *TapConfig) Validate() error

type VersionConfig

type VersionConfig struct {
	DebugInfo bool `yaml:"debug" default:"false"`
}

type ViewConfig

type ViewConfig struct {
	GuiPort uint16 `yaml:"gui-port" default:"8899"`
	Url     string `yaml:"url,omitempty" readonly:""`
}

Jump to

Keyboard shortcuts

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