(targetNode *yaml.Node)
| 38 | } |
| 39 | |
| 40 | func ensureSampleInvites(targetNode *yaml.Node) bool { |
| 41 | _, modified := targetNode.EnsureKey( |
| 42 | "invites", |
| 43 | yaml.NewMappingNode(), |
| 44 | &yaml.EnsureOptions{ |
| 45 | Comment: ` |
| 46 | Invites define temporary codes for a user to get in to the service. They |
| 47 | can SSH in using ssh invite:invite-code@go-code and it will add that public |
| 48 | key to their user. |
| 49 | # |
| 50 | Sample invites: |
| 51 | # |
| 52 | invites: |
| 53 | orai7Quaipoocungah1vee6Ieh8Ien: belak`, |
| 54 | }, |
| 55 | ) |
| 56 | |
| 57 | return modified |
| 58 | } |
| 59 | |
| 60 | func ensureSampleUsers(targetNode *yaml.Node) bool { |
| 61 | _, modified := targetNode.EnsureKey( |
no test coverage detected