func toRuntimeAuthConfig(a AuthConfig) *runtime.AuthConfig {
	return &runtime.AuthConfig{
		Username:      a.Username,
		Password:      a.Password,
		Auth:          a.Auth,
		IdentityToken: a.IdentityToken,
	}
}
// toRuntimeAuthConfig converts cri plugin auth config to runtime auth config.
// Ported from https://github.com/containerd/containerd/blob/v1.5.2/pkg/cri/server/helpers.go#L295-L303
// TODO: import this from CRI package once we drop support to continerd v1.4.x
toRuntimeAuthConfig converts cri plugin auth config to runtime auth config.
// toRuntimeAuthConfig converts cri plugin auth config to runtime auth config . // Ported from https : // github . com / containerd / containerd / blob / v1 . 5 . 2 / pkg / cri / server / helpers . go#L295 - L303 // TODO : import this from CRI package once we drop support to continerd v1 . 4 . x
func toRuntimeAuthConfig(a AuthConfig) *runtime.AuthConfig {
	return &runtime.AuthConfig{
		Username:      a.Username,
		Password:      a.Password,
		Auth:          a.Auth,
		IdentityToken: a.IdentityToken,
	}
}
func toRuntimeAuthConfig ( a AuthConfig ) * runtime . AuthConfig { return & runtime . AuthConfig { Username : a . Username , Password : a . Password , Auth : a . Auth , IdentityToken : a . IdentityToken , } }
toRuntimeAuthConfig converts cri plugin auth config to runtime auth config.
toRuntimeAuthConfig converts cri plugin auth config to runtime auth config .