forked from kairos-io/osbuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extend cluster iso images information
- Loading branch information
Showing
7 changed files
with
121 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package v1alpha2 | ||
|
||
type CloudConfig struct { | ||
Users Users `json:"users,omitempty"` | ||
Plural Plural `json:"plural,omitempty"` | ||
} | ||
|
||
type Users []User | ||
|
||
func (in Users) FirstUser() *User { | ||
for _, user := range in { | ||
return &user | ||
} | ||
|
||
return nil | ||
} | ||
|
||
type User struct { | ||
Name string `json:"name"` | ||
Passwd string `json:"passwd"` | ||
} | ||
|
||
func (in *User) GetName() *string { | ||
if in == nil { | ||
return nil | ||
} | ||
|
||
return &in.Name | ||
} | ||
|
||
func (in *User) GetPasswd() *string { | ||
if in == nil { | ||
return nil | ||
} | ||
|
||
return &in.Passwd | ||
} | ||
|
||
type Plural struct { | ||
Token string `json:"token"` | ||
URL string `json:"url"` | ||
} |
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ maintainers: | |
- name: Plural | ||
email: [email protected] | ||
type: application | ||
version: 0.8.2 | ||
version: 0.9.0 |
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
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