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.

provisionerdserver

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

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

View Source
const (TagScope = "scope"TagOwner = "owner"ScopeUser         = "user"ScopeOrganization = "organization")

Variables

This section is empty.

Functions

funcInsertWorkspaceResource

func InsertWorkspaceResource(ctxcontext.Context, dbdatabase.Store, jobIDuuid.UUID, transitiondatabase.WorkspaceTransition, protoResource *sdkproto.Resource, snapshot *telemetry.Snapshot)error

funcMutateTagsadded inv0.12.8

func MutateTags(userIDuuid.UUID, tags map[string]string) map[string]string

MutateTags adjusts the "owner" tag dependent on the "scope".If the scope is "user", the "owner" is changed to the user ID.This is for user-scoped provisioner daemons, where users shouldown their own operations.

Types

typeServer

type Server struct {AccessURL                   *url.URLIDuuid.UUIDLoggerslog.LoggerProvisioners                []database.ProvisionerTypeGitAuthConfigs              []*gitauth.ConfigTagsjson.RawMessageDatabasedatabase.StorePubsubpubsub.PubsubTelemetrytelemetry.ReporterTracertrace.TracerQuotaCommitter              *atomic.Pointer[proto.QuotaCommitter]Auditor                     *atomic.Pointer[audit.Auditor]TemplateScheduleStore       *atomic.Pointer[schedule.TemplateScheduleStore]UserQuietHoursScheduleStore *atomic.Pointer[schedule.UserQuietHoursScheduleStore]DeploymentValues            *codersdk.DeploymentValuesAcquireJobDebouncetime.DurationOIDCConfighttpmw.OAuth2ConfigTimeNowFn func()time.Time}

func (*Server)AcquireJob

func (server *Server) AcquireJob(ctxcontext.Context, _ *proto.Empty) (*proto.AcquiredJob,error)

AcquireJob queries the database to lock a job.

func (*Server)CommitQuotaadded inv0.12.7

func (server *Server) CommitQuota(ctxcontext.Context, request *proto.CommitQuotaRequest) (*proto.CommitQuotaResponse,error)

func (*Server)CompleteJob

func (server *Server) CompleteJob(ctxcontext.Context, completed *proto.CompletedJob) (*proto.Empty,error)

CompleteJob is triggered by a provision daemon to mark a provisioner job as completed.

func (*Server)FailJob

func (server *Server) FailJob(ctxcontext.Context, failJob *proto.FailedJob) (*proto.Empty,error)

func (*Server)UpdateJob

func (server *Server) UpdateJob(ctxcontext.Context, request *proto.UpdateJobRequest) (*proto.UpdateJobResponse,error)

typeTemplateVersionDryRunJob

type TemplateVersionDryRunJob struct {TemplateVersionIDuuid.UUID                          `json:"template_version_id"`WorkspaceNamestring                             `json:"workspace_name"`RichParameterValues []database.WorkspaceBuildParameter `json:"rich_parameter_values"`}

TemplateVersionDryRunJob is the payload for the "template_version_dry_run" job type.

typeTemplateVersionImportJobadded inv0.15.0

type TemplateVersionImportJob struct {TemplateVersionIDuuid.UUID                `json:"template_version_id"`UserVariableValues []codersdk.VariableValue `json:"user_variable_values"`}

typeWorkspaceProvisionJob

type WorkspaceProvisionJob struct {WorkspaceBuildIDuuid.UUID `json:"workspace_build_id"`DryRunbool      `json:"dry_run"`LogLevelstring    `json:"log_level,omitempty"`}

WorkspaceProvisionJob is the payload for the "workspace_provision" job type.

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