Movatterモバイル変換


[0]ホーム

URL:


cliutil

package
v2.23.0Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License:AGPL-3.0Imports:13Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

View Source
const AWSIPRangesURL = "https://ip-ranges.amazonaws.com/ip-ranges.json"

Variables

This section is empty.

Functions

funcDiscardAfterClose

func DiscardAfterClose(wcio.WriteCloser)io.WriteCloser

DiscardAfterClose is an io.WriteCloser that discards writes after it is closed without errors.It is useful as a target for a slog.Sink such that an underlying WriteCloser, like a file, canbe cleaned up without race conditions from still-active loggers.

funcHostnameadded inv2.5.0

func Hostname()string

Hostname returns the hostname of the machine, lowercased,with any trailing domain suffix stripped.It is cached after the first call.If the hostname cannot be determined, for any reason,localhost will be returned instead.

funcWarnMatchedProvisionersadded inv2.18.1

func WarnMatchedProvisioners(wio.Writer, mp *codersdk.MatchedProvisioners, jobcodersdk.ProvisionerJob)

WarnMatchedProvisioners warns the user if there are no provisioners thatmatch the requested tags for a given provisioner job.If the job is not pending, it is ignored.

Types

typeAWSIPRangesadded inv2.15.0

type AWSIPRanges struct {V4 []netip.PrefixV6 []netip.Prefix}

funcFetchAWSIPRangesadded inv2.15.0

func FetchAWSIPRanges(ctxcontext.Context, urlstring) (*AWSIPRanges,error)

func (*AWSIPRanges)CheckIPadded inv2.15.0

func (r *AWSIPRanges) CheckIP(ipnetip.Addr)bool

CheckIP checks if the given IP address is an AWS IP.

Source Files

View all Source files

Directories

PathSynopsis

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