-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add flag --installed to command modules (#2130)
Co-authored-by: MichalKalke <michalkalke@gmail.com>
- Loading branch information
1 parent
ca0988a
commit dc07ebe
Showing
2 changed files
with
103 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package model | ||
|
||
type Module []struct { | ||
Name string `json:"name,omitempty"` | ||
Manageable bool `json:"manageable,omitempty"` | ||
Versions []Versions `json:"versions,omitempty"` | ||
} | ||
|
||
type Versions struct { | ||
Version string `json:"version,omitempty"` | ||
Channels []string `json:"channels,omitempty"` | ||
ManagerPath string `json:"managerPath,omitempty"` | ||
ManagerImage string `json:"managerImage,omitempty"` | ||
Resources []Resources `json:"resources,omitempty"` | ||
} | ||
|
||
type Resources struct { | ||
Spec Spec `json:"spec,omitempty"` | ||
} | ||
|
||
type Spec struct { | ||
Group string `json:"group,omitempty"` | ||
Names Names `json:"names,omitempty"` | ||
Scope string `json:"scope,omitempty"` | ||
ApiVersions []ApiVersions `json:"versions,omitempty"` | ||
} | ||
|
||
type Names struct { | ||
Kind string `json:"kind,omitempty"` | ||
ListKind string `json:"listKind,omitempty"` | ||
Plural string `json:"plural,omitempty"` | ||
Singular string `json:"singular,omitempty"` | ||
} | ||
|
||
type ApiVersions struct { | ||
Name string `json:"name,omitempty"` | ||
} |