MCPcopy Create free account
hub / github.com/SignTools/SignTools / createDefaultFile

Function createDefaultFile

src/config/config.go:56–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54}
55
56func createDefaultFile() *File {
57 return &File{
58 Builder: Builder{
59 GitHub: builders.GitHubData{
60 Enable: false,
61 RepoName: "SignTools-CI",
62 OrgName: "YOUR_PROFILE_NAME",
63 WorkflowFileName: "sign.yml",
64 Token: "YOUR_TOKEN",
65 Ref: "master",
66 },
67 Semaphore: builders.SemaphoreData{
68 Enable: false,
69 ProjectName: "YOUR_PROJECT_NAME",
70 OrgName: "YOUR_ORG_NAME",
71 Token: "YOUR_TOKEN",
72 Ref: "refs/heads/master",
73 SecretName: "ios-signer",
74 },
75 SelfHosted: builders.SelfHostedData{
76 Enable: false,
77 Url: "http://192.168.1.133:8090",
78 Key: "SOME_SECRET_KEY",
79 },
80 },
81 ServerUrl: "http://localhost:8080",
82 RedirectHttps: false,
83 SaveDir: "data",
84 SignTimeoutMins: 30,
85 CleanupIntervalMins: 1,
86 BasicAuth: BasicAuth{
87 Enable: false,
88 Username: "admin",
89 Password: "admin",
90 },
91 }
92}
93
94type EnvProfile struct {
95 Name string `yaml:"name"`

Callers 1

getFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected