mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-26 18:04:31 +00:00
Add cmd to list plugins (#1535)
* Add cmd to list plugins Signed-off-by: Carlisia <carlisiac@vmware.com>
This commit is contained in:
committed by
Nolan Brubaker
parent
bc7ee686d7
commit
0a771e6a53
@@ -28,6 +28,7 @@ type Builder struct {
|
||||
serverStatusRequest velerov1api.ServerStatusRequest
|
||||
}
|
||||
|
||||
// NewBuilder returns a Builder for a ServerStatusRequest.
|
||||
func NewBuilder() *Builder {
|
||||
return &Builder{
|
||||
serverStatusRequest: velerov1api.ServerStatusRequest{
|
||||
@@ -39,7 +40,8 @@ func NewBuilder() *Builder {
|
||||
}
|
||||
}
|
||||
|
||||
func (b *Builder) Build() *velerov1api.ServerStatusRequest {
|
||||
// ServerStatusRequest returns the built ServerStatusRequest API object.
|
||||
func (b *Builder) ServerStatusRequest() *velerov1api.ServerStatusRequest {
|
||||
return &b.serverStatusRequest
|
||||
}
|
||||
|
||||
@@ -72,3 +74,8 @@ func (b *Builder) ServerVersion(version string) *Builder {
|
||||
b.serverStatusRequest.Status.ServerVersion = version
|
||||
return b
|
||||
}
|
||||
|
||||
func (b *Builder) Plugins(plugins []velerov1api.PluginInfo) *Builder {
|
||||
b.serverStatusRequest.Status.Plugins = plugins
|
||||
return b
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user