Movatterモバイル変換


[0]ホーム

URL:


Alert GO-2024-3228: Coder vulnerable to post-auth URL redirection to untrusted site ('Open Redirect') in github.com/coder/coder
Notice  The highest tagged major version isv2.

agent

package
v0.27.3Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License:AGPL-3.0Imports:44Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

View Source
const (ProtocolReconnectingPTY = "reconnecting-pty"ProtocolSSH             = "ssh"ProtocolDial            = "dial")
View Source
const EnvAgentSubsystem = "CODER_AGENT_SUBSYSTEM"

EnvAgentSubsystem is the environment variable used to denote thespecialized environment in which the agent is running(e.g. envbox, envbuilder).

Variables

This section is empty.

Functions

This section is empty.

Types

typeAgentadded inv0.23.1

type Agent interface {HTTPDebug()http.Handlerio.Closer}

funcNew

func New(optionsOptions)Agent

typeClientadded inv0.11.0

type Client interface {Manifest(ctxcontext.Context) (agentsdk.Manifest,error)Listen(ctxcontext.Context) (net.Conn,error)ReportStats(ctxcontext.Context, logslog.Logger, statsChan <-chan *agentsdk.Stats, setInterval func(time.Duration)) (io.Closer,error)PostLifecycle(ctxcontext.Context, stateagentsdk.PostLifecycleRequest)errorPostAppHealth(ctxcontext.Context, reqagentsdk.PostAppHealthsRequest)errorPostStartup(ctxcontext.Context, reqagentsdk.PostStartupRequest)errorPostMetadata(ctxcontext.Context, keystring, reqagentsdk.PostMetadataRequest)errorPatchStartupLogs(ctxcontext.Context, reqagentsdk.PatchStartupLogs)errorGetServiceBanner(ctxcontext.Context) (codersdk.ServiceBannerConfig,error)}

typeOptions

type Options struct {Filesystemafero.FsLogDirstringTempDirstringExchangeToken                func(ctxcontext.Context) (string,error)ClientClientReconnectingPTYTimeouttime.DurationEnvironmentVariables         map[string]stringLoggerslog.LoggerIgnorePorts                  map[int]stringSSHMaxTimeouttime.DurationTailnetListenPortuint16Subsystemcodersdk.AgentSubsystemAddresses                    []netip.PrefixPrometheusRegistry           *prometheus.RegistryReportMetadataIntervaltime.DurationServiceBannerRefreshIntervaltime.Duration}

typePostWorkspaceAgentAppHealthadded inv0.9.0

type PostWorkspaceAgentAppHealth func(context.Context,agentsdk.PostAppHealthsRequest)error

PostWorkspaceAgentAppHealth updates the workspace app health.

typeWorkspaceAgentAppsadded inv0.9.0

type WorkspaceAgentApps func(context.Context) ([]codersdk.WorkspaceApp,error)

WorkspaceAgentApps fetches the workspace apps.

typeWorkspaceAppHealthReporteradded inv0.9.0

type WorkspaceAppHealthReporter func(ctxcontext.Context)

WorkspaceAppHealthReporter is a function that checks and reports the health of the workspace apps until the passed context is canceled.

funcNewWorkspaceAppHealthReporteradded inv0.9.0

func NewWorkspaceAppHealthReporter(loggerslog.Logger, apps []codersdk.WorkspaceApp, postWorkspaceAgentAppHealthPostWorkspaceAgentAppHealth)WorkspaceAppHealthReporter

NewWorkspaceAppHealthReporter creates a WorkspaceAppHealthReporter that reports app health to coderd.

Source Files

View all Source files

Directories

PathSynopsis
Package reaper contains logic for reaping subprocesses.
Package reaper contains logic for reaping subprocesses.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp