MCPcopy Create free account
hub / github.com/belak/gitdir / ensureSampleInvites

Function ensureSampleInvites

config_ensure.go:40–58  ·  view source on GitHub ↗
(targetNode *yaml.Node)

Source from the content-addressed store, hash-verified

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

Callers 1

ensureSampleConfigYamlFunction · 0.85

Calls 2

NewMappingNodeFunction · 0.92
EnsureKeyMethod · 0.80

Tested by

no test coverage detected