refactor(cli): use codersdk for provisioner types (#9508)

This change removes one use of `coderd/database` from the slim binary
and more correctly uses codersdk instead of database or provisionerd
packages.

No size change (yet).

Ref: #9380
This commit is contained in:
Mathias Fredriksson
2023-09-04 21:42:15 +03:00
committed by GitHub
parent 39e3b049a5
commit b240799f47
4 changed files with 15 additions and 14 deletions
-6
View File
@@ -29,12 +29,6 @@ import (
"github.com/coder/retry"
)
// IsMissingParameterErrorCode returns whether the error is a missing parameter error.
// This can indicate to consumers that they should check parameters.
func IsMissingParameterErrorCode(code string) bool {
return code == runner.MissingParameterErrorCode
}
// Dialer represents the function to create a daemon client connection.
type Dialer func(ctx context.Context) (proto.DRPCProvisionerDaemonClient, error)