mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-12 14:37:08 +08:00
vendor: update buildkit to v0.19.0-rc1
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
33
vendor/k8s.io/client-go/applyconfigurations/coordination/v1/leasespec.go
generated
vendored
33
vendor/k8s.io/client-go/applyconfigurations/coordination/v1/leasespec.go
generated
vendored
@ -19,20 +19,23 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
coordinationv1 "k8s.io/api/coordination/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
)
|
||||
|
||||
// LeaseSpecApplyConfiguration represents an declarative configuration of the LeaseSpec type for use
|
||||
// LeaseSpecApplyConfiguration represents a declarative configuration of the LeaseSpec type for use
|
||||
// with apply.
|
||||
type LeaseSpecApplyConfiguration struct {
|
||||
HolderIdentity *string `json:"holderIdentity,omitempty"`
|
||||
LeaseDurationSeconds *int32 `json:"leaseDurationSeconds,omitempty"`
|
||||
AcquireTime *v1.MicroTime `json:"acquireTime,omitempty"`
|
||||
RenewTime *v1.MicroTime `json:"renewTime,omitempty"`
|
||||
LeaseTransitions *int32 `json:"leaseTransitions,omitempty"`
|
||||
HolderIdentity *string `json:"holderIdentity,omitempty"`
|
||||
LeaseDurationSeconds *int32 `json:"leaseDurationSeconds,omitempty"`
|
||||
AcquireTime *v1.MicroTime `json:"acquireTime,omitempty"`
|
||||
RenewTime *v1.MicroTime `json:"renewTime,omitempty"`
|
||||
LeaseTransitions *int32 `json:"leaseTransitions,omitempty"`
|
||||
Strategy *coordinationv1.CoordinatedLeaseStrategy `json:"strategy,omitempty"`
|
||||
PreferredHolder *string `json:"preferredHolder,omitempty"`
|
||||
}
|
||||
|
||||
// LeaseSpecApplyConfiguration constructs an declarative configuration of the LeaseSpec type for use with
|
||||
// LeaseSpecApplyConfiguration constructs a declarative configuration of the LeaseSpec type for use with
|
||||
// apply.
|
||||
func LeaseSpec() *LeaseSpecApplyConfiguration {
|
||||
return &LeaseSpecApplyConfiguration{}
|
||||
@ -77,3 +80,19 @@ func (b *LeaseSpecApplyConfiguration) WithLeaseTransitions(value int32) *LeaseSp
|
||||
b.LeaseTransitions = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithStrategy sets the Strategy field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the Strategy field is set to the value of the last call.
|
||||
func (b *LeaseSpecApplyConfiguration) WithStrategy(value coordinationv1.CoordinatedLeaseStrategy) *LeaseSpecApplyConfiguration {
|
||||
b.Strategy = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithPreferredHolder sets the PreferredHolder field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the PreferredHolder field is set to the value of the last call.
|
||||
func (b *LeaseSpecApplyConfiguration) WithPreferredHolder(value string) *LeaseSpecApplyConfiguration {
|
||||
b.PreferredHolder = &value
|
||||
return b
|
||||
}
|
||||
|
Reference in New Issue
Block a user