mirror of
https://github.com/moby/moby.git
synced 2026-07-24 16:26:51 +00:00
This switches the hcsshim dependency back to tagged releases, instead of the special "moby" branch. This makes the dependency align with both BuildKit and containerd, which use these versions. The switch to the "moby" branch was done in2865478487, to bring in a fix for image import, without having to bring in additional changes; > We changed to the moby branch for a couple of reasons: > > - Allows us to take this important change without needing to also pull in all > of the other work that has been going on in the repo. > - moby uses an older set of APIs exposed from hcsshim, based on the HCS v1 > functionality. Going forwards, we have discussed deprecating/removing these > APIs from the mainline branch in hcsshim, so our thinking was we could keep > this moby branch around to ensure we don't break compatibility there. > > (...) Long term, the best path here is to get moby using containerd as the > backend on Windows, which should alleviate these issues. full diff:9dcb42f100..v0.8.10 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
31 lines
837 B
Go
31 lines
837 B
Go
package winapi
|
|
|
|
// BOOL LogonUserA(
|
|
// LPCWSTR lpszUsername,
|
|
// LPCWSTR lpszDomain,
|
|
// LPCWSTR lpszPassword,
|
|
// DWORD dwLogonType,
|
|
// DWORD dwLogonProvider,
|
|
// PHANDLE phToken
|
|
// );
|
|
//
|
|
//sys LogonUser(username *uint16, domain *uint16, password *uint16, logonType uint32, logonProvider uint32, token *windows.Token) (err error) = advapi32.LogonUserW
|
|
|
|
// Logon types
|
|
const (
|
|
LOGON32_LOGON_INTERACTIVE uint32 = 2
|
|
LOGON32_LOGON_NETWORK uint32 = 3
|
|
LOGON32_LOGON_BATCH uint32 = 4
|
|
LOGON32_LOGON_SERVICE uint32 = 5
|
|
LOGON32_LOGON_UNLOCK uint32 = 7
|
|
LOGON32_LOGON_NETWORK_CLEARTEXT uint32 = 8
|
|
LOGON32_LOGON_NEW_CREDENTIALS uint32 = 9
|
|
)
|
|
|
|
// Logon providers
|
|
const (
|
|
LOGON32_PROVIDER_DEFAULT uint32 = 0
|
|
LOGON32_PROVIDER_WINNT40 uint32 = 2
|
|
LOGON32_PROVIDER_WINNT50 uint32 = 3
|
|
)
|