Movatterモバイル変換


[0]ホーム

URL:


Alert  Affected byGO-2024-3228 and 2 other vulnerabilities
Alert GO-2024-3228: Coder vulnerable to post-auth URL redirection to untrusted site ('Open Redirect') in github.com/coder/coder
Alert GO-2025-3921: Coder accepts an APIKey beyond the linked OIDC expiry if there is no refresh token in github.com/coder/coder
Alert GO-2025-3938: Coder vulnerable to privilege escalation could lead to a cross workspace compromise in github.com/coder/coder
Notice  The highest tagged major version isv2.

workspacetraffic

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:19Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeConfig

type Config struct {// AgentID is the workspace agent ID to which to connect.AgentIDuuid.UUID `json:"agent_id"`// BytesPerTick is the number of bytes to send to the agent per tick.BytesPerTickint64 `json:"bytes_per_tick"`// Duration is the total duration for which to send traffic to the agent.Durationtime.Duration `json:"duration"`// TickInterval specifies the interval between ticks (that is, attempts to// send data to workspace agents).TickIntervaltime.Duration `json:"tick_interval"`ReadMetricsConnMetrics `json:"-"`WriteMetricsConnMetrics `json:"-"`SSHbool `json:"ssh"`}

func (Config)Validate

func (cConfig) Validate()error

typeConnMetricsadded inv0.26.2

type ConnMetrics interface {AddError(float64)ObserveLatency(float64)AddTotal(float64)}

typeMetricsadded inv0.24.0

type Metrics struct {BytesReadTotalprometheus.CounterVecBytesWrittenTotalprometheus.CounterVecReadErrorsTotalprometheus.CounterVecWriteErrorsTotalprometheus.CounterVecReadLatencySecondsprometheus.HistogramVecWriteLatencySecondsprometheus.HistogramVecLabelNames          []string}

funcNewMetricsadded inv0.24.0

func NewMetrics(regprometheus.Registerer, labelNames ...string) *Metrics

func (*Metrics)ReadMetricsadded inv0.26.2

func (m *Metrics) ReadMetrics(lvs ...string)ConnMetrics

func (*Metrics)WriteMetricsadded inv0.26.2

func (m *Metrics) WriteMetrics(lvs ...string)ConnMetrics

typeRunner

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

funcNewRunner

func NewRunner(client *codersdk.Client, cfgConfig) *Runner

func NewRunner(client *codersdk.Client, cfg Config, metrics *Metrics) *Runner {

func (*Runner)Cleanup

Cleanup does nothing, successfully.

func (*Runner)Run

func (r *Runner) Run(ctxcontext.Context, _string, logsio.Writer)error

Source Files

View all Source files

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