@@ -68,26 +68,27 @@ const (
68
68
)
69
69
70
70
type Options struct {
71
- Filesystem afero.Fs
72
- LogDir string
73
- TempDir string
74
- ScriptDataDir string
75
- ExchangeToken func (ctx context.Context ) (string , error )
76
- Client Client
77
- ReconnectingPTYTimeout time.Duration
78
- EnvironmentVariables map [string ]string
79
- Logger slog.Logger
80
- IgnorePorts map [int ]string
81
- PortCacheDuration time.Duration
82
- SSHMaxTimeout time.Duration
83
- TailnetListenPort uint16
84
- Subsystems []codersdk.AgentSubsystem
85
- PrometheusRegistry * prometheus.Registry
86
- ReportMetadataInterval time.Duration
87
- ServiceBannerRefreshInterval time.Duration
88
- BlockFileTransfer bool
89
- Execer agentexec.Execer
90
- ContainerLister agentcontainers.Lister
71
+ Filesystem afero.Fs
72
+ LogDir string
73
+ TempDir string
74
+ ScriptDataDir string
75
+ ExchangeToken func (ctx context.Context ) (string , error )
76
+ Client Client
77
+ ReconnectingPTYTimeout time.Duration
78
+ EnvironmentVariables map [string ]string
79
+ Logger slog.Logger
80
+ IgnorePorts map [int ]string
81
+ PortCacheDuration time.Duration
82
+ SSHMaxTimeout time.Duration
83
+ TailnetListenPort uint16
84
+ Subsystems []codersdk.AgentSubsystem
85
+ PrometheusRegistry * prometheus.Registry
86
+ ReportMetadataInterval time.Duration
87
+ ServiceBannerRefreshInterval time.Duration
88
+ BlockFileTransfer bool
89
+ Execer agentexec.Execer
90
+ ContainerLister agentcontainers.Lister
91
+
91
92
ExperimentalContainersEnabled bool
92
93
}
93
94
@@ -185,10 +186,11 @@ func New(options Options) Agent {
185
186
logSender : agentsdk .NewLogSender (options .Logger ),
186
187
blockFileTransfer : options .BlockFileTransfer ,
187
188
188
- prometheusRegistry : prometheusRegistry ,
189
- metrics : newAgentMetrics (prometheusRegistry ),
190
- execer : options .Execer ,
191
- lister : options .ContainerLister ,
189
+ prometheusRegistry : prometheusRegistry ,
190
+ metrics : newAgentMetrics (prometheusRegistry ),
191
+ execer : options .Execer ,
192
+ lister : options .ContainerLister ,
193
+
192
194
experimentalDevcontainersEnabled : options .ExperimentalContainersEnabled ,
193
195
}
194
196
// Initially, we have a closed channel, reflecting the fact that we are not initially connected.
@@ -257,9 +259,10 @@ type agent struct {
257
259
prometheusRegistry * prometheus.Registry
258
260
// metrics are prometheus registered metrics that will be collected and
259
261
// labeled in Coder with the agent + workspace.
260
- metrics * agentMetrics
261
- execer agentexec.Execer
262
- lister agentcontainers.Lister
262
+ metrics * agentMetrics
263
+ execer agentexec.Execer
264
+ lister agentcontainers.Lister
265
+
263
266
experimentalDevcontainersEnabled bool
264
267
}
265
268
0 commit comments