We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 390b445 commit dbf452dCopy full SHA for dbf452d
pkg/verify.go
@@ -50,6 +50,18 @@ type VerifyGCOptions struct {
50
51
// Validate ensures the specified options are valid
52
func (v *VerifyGCOptions) Validate() error {
53
+ if v.DiscoveryClient == nil {
54
+ return fmt.Errorf("discovery client is required")
55
+ }
56
+ if v.MetadataClient == nil {
57
+ return fmt.Errorf("metadata client is required")
58
59
+ if v.Stderr == nil {
60
+ return fmt.Errorf("stderr is required")
61
62
+ if v.Stdout == nil {
63
+ return fmt.Errorf("stdout is required")
64
65
if v.Output != "" && v.Output != "json" {
66
return fmt.Errorf("invalid output format, only '' and 'json' are supported: %v", v.Output)
67
}
0 commit comments