go.mod: bump osbuild/images to 0.55
This commit is contained in:
parent
eab44ca8a8
commit
22140aa7c9
700 changed files with 30353 additions and 27556 deletions
10
vendor/github.com/vmware/govmomi/object/host_certificate_info.go
generated
vendored
10
vendor/github.com/vmware/govmomi/object/host_certificate_info.go
generated
vendored
|
|
@ -17,7 +17,6 @@ limitations under the License.
|
|||
package object
|
||||
|
||||
import (
|
||||
"crypto/sha256"
|
||||
"crypto/tls"
|
||||
"crypto/x509"
|
||||
"crypto/x509/pkix"
|
||||
|
|
@ -58,14 +57,7 @@ func (info *HostCertificateInfo) FromCertificate(cert *x509.Certificate) *HostCe
|
|||
info.Subject = info.fromName(info.subjectName)
|
||||
|
||||
info.ThumbprintSHA1 = soap.ThumbprintSHA1(cert)
|
||||
|
||||
// SHA-256 for info purposes only, API fields all use SHA-1
|
||||
sum := sha256.Sum256(cert.Raw)
|
||||
hex := make([]string, len(sum))
|
||||
for i, b := range sum {
|
||||
hex[i] = fmt.Sprintf("%02X", b)
|
||||
}
|
||||
info.ThumbprintSHA256 = strings.Join(hex, ":")
|
||||
info.ThumbprintSHA256 = soap.ThumbprintSHA256(cert)
|
||||
|
||||
if info.Status == "" {
|
||||
info.Status = string(types.HostCertificateManagerCertificateInfoCertificateStatusUnknown)
|
||||
|
|
|
|||
14
vendor/github.com/vmware/govmomi/object/task.go
generated
vendored
14
vendor/github.com/vmware/govmomi/object/task.go
generated
vendored
|
|
@ -44,13 +44,17 @@ func NewTask(c *vim25.Client, ref types.ManagedObjectReference) *Task {
|
|||
return &t
|
||||
}
|
||||
|
||||
// Deprecated: Please use WaitEx instead.
|
||||
// Wait waits for a task to complete.
|
||||
// NOTE: This method create a thread-safe PropertyCollector instance per-call, so it is thread safe.
|
||||
// The downside of this approach is the additional resource usage on the vCenter side for each call.
|
||||
func (t *Task) Wait(ctx context.Context) error {
|
||||
_, err := t.WaitForResult(ctx, nil)
|
||||
return err
|
||||
}
|
||||
|
||||
// Deprecated: Please use WaitForResultEx instead.
|
||||
// WaitForResult wait for a task to complete.
|
||||
// NOTE: This method create a thread-safe PropertyCollector instance per-call, so it is thread safe.
|
||||
// The downside of this approach is the additional resource usage on the vCenter side for each call.
|
||||
func (t *Task) WaitForResult(ctx context.Context, s ...progress.Sinker) (taskInfo *types.TaskInfo, result error) {
|
||||
var pr progress.Sinker
|
||||
if len(s) == 1 {
|
||||
|
|
@ -79,11 +83,17 @@ func (t *Task) WaitForResult(ctx context.Context, s ...progress.Sinker) (taskInf
|
|||
return task.WaitEx(ctx, t.Reference(), p, pr)
|
||||
}
|
||||
|
||||
// WaitEx waits for a task to complete.
|
||||
// NOTE: This method use the same PropertyCollector instance in each call, thus reducing resource usage on the vCenter side.
|
||||
// The downside of this approach is that this method is not thread safe.
|
||||
func (t *Task) WaitEx(ctx context.Context) error {
|
||||
_, err := t.WaitForResultEx(ctx, nil)
|
||||
return err
|
||||
}
|
||||
|
||||
// WaitForResultEx waits for a task to complete.
|
||||
// NOTE: This method use the same PropertyCollector instance in each call, thus reducing resource usage on the vCenter side.
|
||||
// The downside of this approach is that this method is not thread safe.
|
||||
func (t *Task) WaitForResultEx(ctx context.Context, s ...progress.Sinker) (*types.TaskInfo, error) {
|
||||
var pr progress.Sinker
|
||||
if len(s) == 1 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue