AttestationStatePath returns the resolved path for local attestation state. If customPath is non-empty it is returned as-is; otherwise the default temp-dir location is used.
(customPath string)
| 47 | // If customPath is non-empty it is returned as-is; otherwise the default |
| 48 | // temp-dir location is used. |
| 49 | func AttestationStatePath(customPath string) string { |
| 50 | if customPath != "" { |
| 51 | return customPath |
| 52 | } |
| 53 | |
| 54 | return filepath.Join(os.TempDir(), defaultAttestationStateFile) |
| 55 | } |
| 56 | |
| 57 | type ActionsOpts struct { |
| 58 | CPConnection *grpc.ClientConn |
no outgoing calls
no test coverage detected