Movatterモバイル変換


[0]ホーム

URL:


provisionerd

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

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcAuthenticateProvisioner

func AuthenticateProvisioner(connio.ReadWriter, token, jobIDstring)error

AuthenticateProvisioner performs the provisioner's side of the authenticationprotocol.

funcDialTLS

func DialTLS(ctxcontext.Context, cert, addrstring) (*tls.Conn,error)

DialTLS establishes a TLS connection to the given addr using the given certas the root CA

funcEphemeralEcho

func EphemeralEcho(ctxcontext.Context,loggerslog.Logger,cacheDir, jobID, token, daemonCert, daemonAddressstring,)error

EphemeralEcho starts an Echo provisioner that connects to provisioner daemon,handles one job, then exits.

funcGenCert

func GenCert() (*ecdsa.PrivateKey, []byte,error)

GenCert is a helper function that generates a private key and certificate. Itis exported so that we can test a certificate generated in exactly the sameway, but with a different private key.

funcNewRemoteConnector

func NewRemoteConnector(ctxcontext.Context, loggerslog.Logger, execExecutor) (agpl.Connector,error)

Types

typeExecutor

type Executor interface {// Execute a provisioner that connects back to the remoteConnector.  errCh// allows signaling of errors asynchronously and is closed on completion// with no error.Execute(ctxcontext.Context,provisionerTypedatabase.ProvisionerType,jobID, token, daemonCert, daemonAddressstring) (errCh <-chanerror)}

Executor is responsible for executing the remote provisioners.

TODO: this interface is where we will run Kubernetes Jobs in a futureversion; right now, only the unit tests implement this interface.

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