provisionerd
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
- func IsMissingParameterErrorCode(code string) bool
- type Dialer
- type Metrics
- type Options
- type Provisioners
- type Server
- func (p *Server) Close() error
- func (p *Server) CommitQuota(ctx context.Context, in *proto.CommitQuotaRequest) (*proto.CommitQuotaResponse, error)
- func (p *Server) CompleteJob(ctx context.Context, in *proto.CompletedJob) error
- func (p *Server) FailJob(ctx context.Context, in *proto.FailedJob) error
- func (p *Server) Shutdown(ctx context.Context) error
- func (p *Server) UpdateJob(ctx context.Context, in *proto.UpdateJobRequest) (*proto.UpdateJobResponse, error)
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcIsMissingParameterErrorCode¶added inv0.19.0
IsMissingParameterErrorCode returns whether the error is a missing parameter error.This can indicate to consumers that they should check parameters.
Types¶
typeDialer¶
type Dialer func(ctxcontext.Context) (proto.DRPCProvisionerDaemonClient,error)
Dialer represents the function to create a daemon client connection.
typeMetrics¶added inv0.12.3
funcNewMetrics¶added inv0.12.3
func NewMetrics(regprometheus.Registerer)Metrics
typeOptions¶
type Options struct {Filesystemafero.FsLoggerslog.LoggerTracerProvidertrace.TracerProviderMetrics *MetricsForceCancelIntervaltime.DurationUpdateIntervaltime.DurationLogBufferIntervaltime.DurationJobPollIntervaltime.DurationJobPollJittertime.DurationJobPollDebouncetime.DurationProvisionersProvisioners// WorkDirectory must not be used by multiple processes at once.WorkDirectorystring}
Options provides customizations to the behavior of a provisioner daemon.
typeProvisioners¶
type Provisioners map[string]sdkproto.DRPCProvisionerClient
Provisioners maps provisioner ID to implementation.
typeServer¶
type Server struct {// contains filtered or unexported fields}
func (*Server)CommitQuota¶added inv0.12.7
func (p *Server) CommitQuota(ctxcontext.Context, in *proto.CommitQuotaRequest) (*proto.CommitQuotaResponse,error)
func (*Server)CompleteJob¶added inv0.7.7
func (*Server)Shutdown¶
Shutdown triggers a graceful exit of each registered provisioner.It exits when an active job stops.
func (*Server)UpdateJob¶added inv0.7.7
func (p *Server) UpdateJob(ctxcontext.Context, in *proto.UpdateJobRequest) (*proto.UpdateJobResponse,error)