options

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package options holds the option settings for a single graph generation.

Index

Constants

View Source
const (
	GroupByApp      string = "app"
	GroupByNone     string = "none"
	GroupByVersion  string = "version"
	NamespaceIstio  string = "istio-system"
	VendorCytoscape string = "cytoscape"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeOptions

type NodeOptions struct {
	App       string
	Namespace string
	Service   string
	Version   string
	Workload  string
}

NodeOptions are those that apply only to node-detail graphs

type Options

type Options struct {
	AccessibleNamespaces map[string]time.Time
	Appenders            []appender.Appender
	IncludeIstio         bool // include istio-system services. Ignored for istio-system ns. Default false.
	InjectServiceNodes   bool // inject destination service nodes between source and destination nodes.
	Namespaces           map[string]graph.NamespaceInfo
	Vendor               string
	NodeOptions
	VendorOptions
}

Options are all supported graph generation options.

func NewOptions

func NewOptions(r *http.Request) Options

func (*Options) GetGraphKind

func (o *Options) GetGraphKind() string

GetGraphKind will return the kind of graph represented by the options.

type VendorOptions

type VendorOptions struct {
	Duration  time.Duration
	GraphType string
	GroupBy   string
	QueryTime int64 // unix time in seconds
}

VendorOptions are those that are supplied to the vendor-specific generators.

Jump to

Keyboard shortcuts

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