go.mod: update images to 0.11
Mainly to include: - distro/rhel9: Make /boot 600 MiB big on RHEL 9.3+ - fedora: exclude sdubby - Minimal image builds Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
edc45fde72
commit
19edaca01a
213 changed files with 4113 additions and 3823 deletions
20
vendor/github.com/vmware/govmomi/object/compute_resource.go
generated
vendored
20
vendor/github.com/vmware/govmomi/object/compute_resource.go
generated
vendored
|
|
@ -1,11 +1,11 @@
|
|||
/*
|
||||
Copyright (c) 2015 VMware, Inc. All Rights Reserved.
|
||||
Copyright (c) 2015-2023 VMware, Inc. All Rights Reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
|
|
@ -18,6 +18,7 @@ package object
|
|||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"path"
|
||||
|
||||
"github.com/vmware/govmomi/property"
|
||||
|
|
@ -84,6 +85,21 @@ func (c ComputeResource) Datastores(ctx context.Context) ([]*Datastore, error) {
|
|||
return dss, nil
|
||||
}
|
||||
|
||||
func (c ComputeResource) EnvironmentBrowser(ctx context.Context) (*EnvironmentBrowser, error) {
|
||||
var cr mo.ComputeResource
|
||||
|
||||
err := c.Properties(ctx, c.Reference(), []string{"environmentBrowser"}, &cr)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if cr.EnvironmentBrowser == nil {
|
||||
return nil, fmt.Errorf("%s: nil environmentBrowser", c.Reference())
|
||||
}
|
||||
|
||||
return NewEnvironmentBrowser(c.c, *cr.EnvironmentBrowser), nil
|
||||
}
|
||||
|
||||
func (c ComputeResource) ResourcePool(ctx context.Context) (*ResourcePool, error) {
|
||||
var cr mo.ComputeResource
|
||||
|
||||
|
|
|
|||
10
vendor/github.com/vmware/govmomi/object/datastore.go
generated
vendored
10
vendor/github.com/vmware/govmomi/object/datastore.go
generated
vendored
|
|
@ -278,7 +278,10 @@ func (d Datastore) uploadTicket(ctx context.Context, path string, param *soap.Up
|
|||
return nil, nil, err
|
||||
}
|
||||
|
||||
p.Ticket = ticket
|
||||
if ticket != nil {
|
||||
p.Ticket = ticket
|
||||
p.Close = true // disable Keep-Alive connection to ESX
|
||||
}
|
||||
|
||||
return u, &p, nil
|
||||
}
|
||||
|
|
@ -294,7 +297,10 @@ func (d Datastore) downloadTicket(ctx context.Context, path string, param *soap.
|
|||
return nil, nil, err
|
||||
}
|
||||
|
||||
p.Ticket = ticket
|
||||
if ticket != nil {
|
||||
p.Ticket = ticket
|
||||
p.Close = true // disable Keep-Alive connection to ESX
|
||||
}
|
||||
|
||||
return u, &p, nil
|
||||
}
|
||||
|
|
|
|||
98
vendor/github.com/vmware/govmomi/object/environment_browser.go
generated
vendored
Normal file
98
vendor/github.com/vmware/govmomi/object/environment_browser.go
generated
vendored
Normal file
|
|
@ -0,0 +1,98 @@
|
|||
/*
|
||||
Copyright (c) 2023-2023 VMware, Inc. All Rights Reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
package object
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/vmware/govmomi/vim25"
|
||||
"github.com/vmware/govmomi/vim25/methods"
|
||||
"github.com/vmware/govmomi/vim25/types"
|
||||
)
|
||||
|
||||
type EnvironmentBrowser struct {
|
||||
Common
|
||||
}
|
||||
|
||||
func NewEnvironmentBrowser(c *vim25.Client, ref types.ManagedObjectReference) *EnvironmentBrowser {
|
||||
return &EnvironmentBrowser{
|
||||
Common: NewCommon(c, ref),
|
||||
}
|
||||
}
|
||||
|
||||
func (b EnvironmentBrowser) QueryConfigTarget(ctx context.Context, host *HostSystem) (*types.ConfigTarget, error) {
|
||||
req := types.QueryConfigTarget{
|
||||
This: b.Reference(),
|
||||
}
|
||||
|
||||
if host != nil {
|
||||
ref := host.Reference()
|
||||
req.Host = &ref
|
||||
}
|
||||
|
||||
res, err := methods.QueryConfigTarget(ctx, b.Client(), &req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return res.Returnval, nil
|
||||
}
|
||||
|
||||
func (b EnvironmentBrowser) QueryTargetCapabilities(ctx context.Context, host *HostSystem) (*types.HostCapability, error) {
|
||||
req := types.QueryTargetCapabilities{
|
||||
This: b.Reference(),
|
||||
}
|
||||
|
||||
if host != nil {
|
||||
ref := host.Reference()
|
||||
req.Host = &ref
|
||||
}
|
||||
|
||||
res, err := methods.QueryTargetCapabilities(ctx, b.Client(), &req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return res.Returnval, nil
|
||||
}
|
||||
|
||||
func (b EnvironmentBrowser) QueryConfigOption(ctx context.Context, spec *types.EnvironmentBrowserConfigOptionQuerySpec) (*types.VirtualMachineConfigOption, error) {
|
||||
req := types.QueryConfigOptionEx{
|
||||
This: b.Reference(),
|
||||
Spec: spec,
|
||||
}
|
||||
|
||||
res, err := methods.QueryConfigOptionEx(ctx, b.Client(), &req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return res.Returnval, nil
|
||||
}
|
||||
|
||||
func (b EnvironmentBrowser) QueryConfigOptionDescriptor(ctx context.Context) ([]types.VirtualMachineConfigOptionDescriptor, error) {
|
||||
req := types.QueryConfigOptionDescriptor{
|
||||
This: b.Reference(),
|
||||
}
|
||||
|
||||
res, err := methods.QueryConfigOptionDescriptor(ctx, b.Client(), &req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return res.Returnval, nil
|
||||
}
|
||||
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
|
|
@ -1,11 +1,11 @@
|
|||
/*
|
||||
Copyright (c) 2016 VMware, Inc. All Rights Reserved.
|
||||
Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
|
|
@ -36,10 +36,10 @@ import (
|
|||
type HostCertificateInfo struct {
|
||||
types.HostCertificateManagerCertificateInfo
|
||||
|
||||
ThumbprintSHA1 string
|
||||
ThumbprintSHA256 string
|
||||
ThumbprintSHA1 string `json:"thumbprintSHA1"`
|
||||
ThumbprintSHA256 string `json:"thumbprintSHA256"`
|
||||
|
||||
Err error
|
||||
Err error `json:"err"`
|
||||
Certificate *x509.Certificate `json:"-"`
|
||||
|
||||
subjectName *pkix.Name
|
||||
|
|
|
|||
32
vendor/github.com/vmware/govmomi/object/virtual_machine.go
generated
vendored
32
vendor/github.com/vmware/govmomi/object/virtual_machine.go
generated
vendored
|
|
@ -438,6 +438,17 @@ func (v VirtualMachine) Device(ctx context.Context) (VirtualDeviceList, error) {
|
|||
return VirtualDeviceList(o.Config.Hardware.Device), nil
|
||||
}
|
||||
|
||||
func (v VirtualMachine) EnvironmentBrowser(ctx context.Context) (*EnvironmentBrowser, error) {
|
||||
var vm mo.VirtualMachine
|
||||
|
||||
err := v.Properties(ctx, v.Reference(), []string{"environmentBrowser"}, &vm)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return NewEnvironmentBrowser(v.c, vm.EnvironmentBrowser), nil
|
||||
}
|
||||
|
||||
func (v VirtualMachine) HostSystem(ctx context.Context) (*HostSystem, error) {
|
||||
var o mo.VirtualMachine
|
||||
|
||||
|
|
@ -918,27 +929,6 @@ func (v VirtualMachine) Unregister(ctx context.Context) error {
|
|||
return err
|
||||
}
|
||||
|
||||
// QueryEnvironmentBrowser is a helper to get the environmentBrowser property.
|
||||
func (v VirtualMachine) QueryConfigTarget(ctx context.Context) (*types.ConfigTarget, error) {
|
||||
var vm mo.VirtualMachine
|
||||
|
||||
err := v.Properties(ctx, v.Reference(), []string{"environmentBrowser"}, &vm)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
req := types.QueryConfigTarget{
|
||||
This: vm.EnvironmentBrowser,
|
||||
}
|
||||
|
||||
res, err := methods.QueryConfigTarget(ctx, v.Client(), &req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return res.Returnval, nil
|
||||
}
|
||||
|
||||
func (v VirtualMachine) MountToolsInstaller(ctx context.Context) error {
|
||||
req := types.MountToolsInstaller{
|
||||
This: v.Reference(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue