Help us shape the future of Go! Take the 2026 Go Developer Survey

context

package
v1.300073.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResetContext

func ResetContext()

Testing only

Types

type Context

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

func CurrentContext

func CurrentContext() *Context

func (*Context) CloudWatchLogConfig

func (ctx *Context) CloudWatchLogConfig() map[string]interface{}

func (*Context) Credentials

func (ctx *Context) Credentials() map[string]string

func (*Context) GetAgentLogFile added in v1.300025.0

func (ctx *Context) GetAgentLogFile() string

func (*Context) GetOmitHostname added in v1.300041.0

func (ctx *Context) GetOmitHostname() bool

func (*Context) InputJsonDirPath

func (ctx *Context) InputJsonDirPath() string

func (*Context) InputJsonFilePath

func (ctx *Context) InputJsonFilePath() string

func (*Context) KubernetesMode added in v1.300034.0

func (ctx *Context) KubernetesMode() string

func (*Context) Mode

func (ctx *Context) Mode() string

func (*Context) MultiConfig

func (ctx *Context) MultiConfig() string

func (*Context) Os

func (ctx *Context) Os() string

func (*Context) OutputTomlFilePath

func (ctx *Context) OutputTomlFilePath() string

func (*Context) Proxy

func (ctx *Context) Proxy() map[string]string

func (*Context) RunInContainer

func (ctx *Context) RunInContainer() bool

func (*Context) SSL

func (ctx *Context) SSL() map[string]string

func (*Context) SetAgentLogFile added in v1.300025.0

func (ctx *Context) SetAgentLogFile(agentLogFile string)

func (*Context) SetCloudWatchLogConfig

func (ctx *Context) SetCloudWatchLogConfig(config map[string]interface{})

func (*Context) SetCredentials

func (ctx *Context) SetCredentials(creds map[string]string)

func (*Context) SetInputJsonDirPath

func (ctx *Context) SetInputJsonDirPath(inputJsonDirPath string)

func (*Context) SetInputJsonFilePath

func (ctx *Context) SetInputJsonFilePath(inputJsonFilePath string)

func (*Context) SetKubernetesMode added in v1.300034.0

func (ctx *Context) SetKubernetesMode(mode string)

func (*Context) SetMode

func (ctx *Context) SetMode(mode string)

func (*Context) SetMultiConfig

func (ctx *Context) SetMultiConfig(multiConfig string)

func (*Context) SetOmitHostname added in v1.300041.0

func (ctx *Context) SetOmitHostname(omitHostname bool)

func (*Context) SetOs

func (ctx *Context) SetOs(os string)

func (*Context) SetOutputTomlFilePath

func (ctx *Context) SetOutputTomlFilePath(outputTomlFilePath string)

func (*Context) SetProxy

func (ctx *Context) SetProxy(proxy map[string]string)

func (*Context) SetRunInContainer

func (ctx *Context) SetRunInContainer(runInContainer bool)

func (*Context) SetSSL

func (ctx *Context) SetSSL(ssl map[string]string)

func (*Context) ShortMode added in v1.300030.1

func (ctx *Context) ShortMode() string

Jump to

Keyboard shortcuts

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