mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-01-08 14:00:24 -05:00
Update go-cloudstack dependency
This commit is contained in:
20
vendor/github.com/xanzy/go-cloudstack/cloudstack/cloudstack.go
generated
vendored
20
vendor/github.com/xanzy/go-cloudstack/cloudstack/cloudstack.go
generated
vendored
@@ -411,6 +411,26 @@ func WithProject(project string) OptionFunc {
|
||||
}
|
||||
}
|
||||
|
||||
// VPCIDSetter is an interface that every type that can set a vpc ID must implement
|
||||
type VPCIDSetter interface {
|
||||
SetVpcid(string)
|
||||
}
|
||||
|
||||
// WithVPCID takes a vpc ID and sets the `vpcid` parameter
|
||||
func WithVPCID(id string) OptionFunc {
|
||||
return func(cs *CloudStackClient, p interface{}) error {
|
||||
vs, ok := p.(VPCIDSetter)
|
||||
|
||||
if !ok || id == "" {
|
||||
return nil
|
||||
}
|
||||
|
||||
vs.SetVpcid(id)
|
||||
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
type APIDiscoveryService struct {
|
||||
cs *CloudStackClient
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user