config

package
v0.0.0-...-7784702 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: Apache-2.0 Imports: 7 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 {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig() *Config

func (*Config) Burst

func (c *Config) Burst() int

func (*Config) ContentType

func (c *Config) ContentType() ContentType

func (*Config) GlobalRunnerConfig

func (c *Config) GlobalRunnerConfig() *RunnerConfig

func (*Config) LogLevel

func (c *Config) LogLevel() string

func (*Config) RunAsMonitoring

func (c *Config) RunAsMonitoring() bool

func (*Config) RunAsScript

func (c *Config) RunAsScript() bool

func (*Config) RunAsService

func (c *Config) RunAsService() bool

func (*Config) RunInContainer

func (c *Config) RunInContainer() bool

func (*Config) RunInVM

func (c *Config) RunInVM() bool

func (*Config) ServerPort

func (c *Config) ServerPort() int

func (*Config) SetBurst

func (c *Config) SetBurst(burst int)

func (*Config) SetContentType

func (c *Config) SetContentType(contentType ContentType)

func (*Config) SetWithResources

func (c *Config) SetWithResources(withResources bool)

func (*Config) String

func (c *Config) String() string

func (*Config) WithResources

func (c *Config) WithResources() bool

type ContentType

type ContentType int64
const (
	Text ContentType = iota
	CSV
	JSON
	YAML
)

func ContentTypeFromString

func ContentTypeFromString(contentType string) ContentType

func (ContentType) HttpContentType

func (t ContentType) HttpContentType() string

func (ContentType) String

func (t ContentType) String() string

func (ContentType) Suffix

func (t ContentType) Suffix() string

type RunAs

type RunAs int64
const (
	Script RunAs = iota
	Rest
	Monitoring
)

func RunAsFromString

func RunAsFromString(runtimeMode string) RunAs

func (RunAs) String

func (r RunAs) String() string

type RunIn

type RunIn int64
const (
	VM RunIn = iota
	Container
)

func RunInFromString

func RunInFromString(runtimeMode string) RunIn

func (RunIn) String

func (r RunIn) String() string

type RunnerConfig

type RunnerConfig struct {
	// contains filtered or unexported fields
}

func NewRunnerConfig

func NewRunnerConfig() *RunnerConfig

func NewRunnerConfigFromProperties

func NewRunnerConfigFromProperties(p *properties.Properties) *RunnerConfig

func (*RunnerConfig) Environment

func (c *RunnerConfig) Environment() string

func (*RunnerConfig) NamespaceSelector

func (c *RunnerConfig) NamespaceSelector() string

func (*RunnerConfig) OutputFileName

func (c *RunnerConfig) OutputFileName() string

func (*RunnerConfig) SetNamespaceSelector

func (c *RunnerConfig) SetNamespaceSelector(namespaceSelector string)

func (*RunnerConfig) SetOutputFileName

func (c *RunnerConfig) SetOutputFileName(outputFileName string)

func (*RunnerConfig) String

func (r *RunnerConfig) String() string

Jump to

Keyboard shortcuts

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