Movatterモバイル変換


[0]ホーム

URL:


createworkspaces

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:16Imported 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 {// User is the configuration for the user to create.UserUserConfig `json:"user"`// Workspace is the configuration for the workspace to create. The workspace// will be built using the new user.//// OrganizationID is ignored and set to the new user's organization ID.Workspaceworkspacebuild.Config `json:"workspace"`// ReconnectingPTY is the configuration for web terminal connections to the// new workspace. If nil, no web terminal connections will be made. Runs in// parallel to agent connections if specified.//// AgentID is ignored and set to the new workspace's agent ID.ReconnectingPTY *reconnectingpty.Config `json:"reconnecting_pty"`// AgentConn is the configuration for connections made to the agent. If nil,// no agent connections will be made. Runs in parallel to reconnecting pty// connections if specified.//// AgentID is ignored and set to the new workspace's agent ID.AgentConn *agentconn.Config `json:"agent_conn"`// NoCleanup determines whether the user and workspace should be left as is// and not deleted or stopped in any way.NoCleanupbool `json:"no_cleanup"`}

func (Config)Validate

func (cConfig) Validate()error

typeRunner

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

funcNewRunner

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

func (*Runner)Cleanup

func (r *Runner) Cleanup(ctxcontext.Context, idstring, logsio.Writer)error

Cleanup implements Cleanable.

func (*Runner)Run

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

Run implements Runnable.

typeUserConfig

type UserConfig struct {// OrganizationID is the ID of the organization to add the user to.OrganizationIDuuid.UUID `json:"organization_id"`// Username is the username of the new user.Usernamestring `json:"username"`// Email is the email of the new user.Emailstring `json:"email"`// SessionToken is the session token of an already existing user. If set, no// user will be created.SessionTokenstring `json:"session_token"`}

func (UserConfig)Validate

func (cUserConfig) Validate()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