MCPcopy Create free account
hub / github.com/cloudbase/garm / PrivateKeyBytes

Method PrivateKeyBytes

config/config.go:245–251  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

243}
244
245func (a *GithubApp) PrivateKeyBytes() ([]byte, error) {
246 keyBytes, err := os.ReadFile(a.PrivateKeyPath)
247 if err != nil {
248 return nil, fmt.Errorf("reading private_key_path: %w", err)
249 }
250 return keyBytes, nil
251}
252
253func (a *GithubApp) Validate() error {
254 if a.AppID == 0 {

Callers 2

Calls

no outgoing calls

Tested by 1