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.

healthcheck

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

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

View Source
const (SectionDERPstring = "DERP"SectionAccessURLstring = "AccessURL"SectionWebsocketstring = "Websocket"SectionDatabasestring = "Database")

Variables

This section is empty.

Functions

This section is empty.

Types

typeAccessURLReportadded inv0.23.0

type AccessURLReport struct {AccessURLstring  `json:"access_url"`Healthybool    `json:"healthy"`Reachablebool    `json:"reachable"`StatusCodeint     `json:"status_code"`HealthzResponsestring  `json:"healthz_response"`Error           *string `json:"error"`}

func (*AccessURLReport)Runadded inv0.23.0

typeAccessURLReportOptionsadded inv0.25.0

type AccessURLReportOptions struct {AccessURL *url.URLClient    *http.Client}

typeDERPNodeReport

type DERPNodeReport struct {Healthybool              `json:"healthy"`Node    *tailcfg.DERPNode `json:"node"`ServerInfoderp.ServerInfoMessage `json:"node_info"`CanExchangeMessagesbool                   `json:"can_exchange_messages"`RoundTripPingtime.Duration          `json:"round_trip_ping"`UsesWebsocketbool                   `json:"uses_websocket"`ClientLogs          [][]string             `json:"client_logs"`ClientErrs          [][]string             `json:"client_errs"`Error               *string                `json:"error"`STUNDERPStunReport `json:"stun"`// contains filtered or unexported fields}

func (*DERPNodeReport)Run

func (r *DERPNodeReport) Run(ctxcontext.Context)

typeDERPRegionReport

type DERPRegionReport struct {Healthybool `json:"healthy"`Region      *tailcfg.DERPRegion `json:"region"`NodeReports []*DERPNodeReport   `json:"node_reports"`Error       *string             `json:"error"`// contains filtered or unexported fields}

func (*DERPRegionReport)Run

func (r *DERPRegionReport) Run(ctxcontext.Context)

typeDERPReport

type DERPReport struct {Healthybool `json:"healthy"`Regions map[int]*DERPRegionReport `json:"regions"`Netcheck     *netcheck.Report `json:"netcheck"`NetcheckErr  *string          `json:"netcheck_err"`NetcheckLogs []string         `json:"netcheck_logs"`Error *string `json:"error"`}

func (*DERPReport)Run

func (r *DERPReport) Run(ctxcontext.Context, opts *DERPReportOptions)

typeDERPReportOptions

type DERPReportOptions struct {DERPMap *tailcfg.DERPMap}

typeDERPStunReport

type DERPStunReport struct {EnabledboolCanSTUNboolErrorerror}

typeDatabaseReportadded inv0.25.0

type DatabaseReport struct {Healthybool          `json:"healthy"`Reachablebool          `json:"reachable"`Latencytime.Duration `json:"latency"`Error     *string       `json:"error"`}

func (*DatabaseReport)Runadded inv0.25.0

typeDatabaseReportOptionsadded inv0.25.0

type DatabaseReportOptions struct {DBdatabase.Store}

typeReport

type Report struct {// Time is the time the report was generated at.Timetime.Time `json:"time"`// Healthy is true if the report returns no errors.Healthybool `json:"healthy"`// FailingSections is a list of sections that have failed their healthcheck.FailingSections []string `json:"failing_sections"`DERPDERPReport      `json:"derp"`AccessURLAccessURLReport `json:"access_url"`WebsocketWebsocketReport `json:"websocket"`DatabaseDatabaseReport  `json:"database"`// The Coder version of the server that the report was generated on.CoderVersionstring `json:"coder_version"`}

funcRun

func Run(ctxcontext.Context, opts *ReportOptions) *Report

typeReportOptions

type ReportOptions struct {DBdatabase.Store// TODO: support getting this over HTTP?DERPMap   *tailcfg.DERPMapAccessURL *url.URLClient    *http.ClientAPIKeystringCheckerChecker}

typeWebsocketEchoServeradded inv0.24.0

type WebsocketEchoServer struct {ErrorerrorCodeint}

func (*WebsocketEchoServer)ServeHTTPadded inv0.24.0

typeWebsocketReport

type WebsocketReport struct {Healthybool              `json:"healthy"`ResponseWebsocketResponse `json:"response"`Error    *string           `json:"error"`}

func (*WebsocketReport)Runadded inv0.23.0

typeWebsocketReportOptionsadded inv0.24.0

type WebsocketReportOptions struct {APIKeystringAccessURL  *url.URLHTTPClient *http.Client}

typeWebsocketResponseadded inv0.24.0

type WebsocketResponse struct {Bodystring `json:"body"`Codeint    `json:"code"`}

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