mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 13:07:07 +00:00
This tag of hcsshim brings in a couple welcome features/improvements. One being exposing a way to query for hns endpoint statistics (Packets received/sent etc.). This tag also contains some optimizations for querying whether a certain HCN feature is supported, which is a common workflow in kube-proxy on Windows. The first result from querying HCN is now cached so further calls can skip the hcn query as well as the version range parsing that was performed. This also gets rid of some redundant logs that used to hit everytime the version range parsing occurred. The Go-winio dep bump, and all of the ctrd deps are transitive only. Nothing new is needed/intended to be used. Signed-off-by: Daniel Canter <dcanter@microsoft.com>
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
|
|
)
|