feat(host/plugin): Support External Name field
The new `ExternalName` field is an optional field that is used to store the cloud providers' human-identifiable name for a given compute instance. This field is not user-editable, but it is kept in sync with the cloud provider's through Boundary's `SetSyncJob`.
This commit is contained in:
1 parent
26ebaefd70
commit
2ff9b8efac
13 files changed
+340
-132
No files matched your search
@@ -22,6 +22,7 @@ type options struct {
|
||||
withPublicId string
|
||||
withPluginId string
|
||||
withName string
|
||||
withExternalName string
|
||||
withDescription string
|
||||
withAttributes *structpb.Struct
|
||||
withSecrets *structpb.Struct
|
||||
@@ -68,6 +69,13 @@ func WithName(name string) Option {
|
||||
}
|
||||
}
|
||||
|
||||
// WithExternalName provides an optional external name for the plugin host.
|
||||
func WithExternalName(externalName string) Option {
|
||||
return func(o *options) {
|
||||
o.withExternalName = externalName
|
||||
}
|
||||
}
|
||||
|
||||
// WithAttributes provides an optional attributes field.
|
||||
func WithAttributes(attrs *structpb.Struct) Option {
|
||||
return func(o *options) {
|
||||
|
||||
Reference in new issue
Block a user