()
| 62 | } |
| 63 | |
| 64 | func NewRootlessKitClient() (client.Client, error) { |
| 65 | stateDir, err := RootlessKitStateDir() |
| 66 | if err != nil { |
| 67 | return nil, err |
| 68 | } |
| 69 | apiSock := filepath.Join(stateDir, "api.sock") |
| 70 | return client.New(apiSock) |
| 71 | } |
| 72 | |
| 73 | // RootlessContainredSockAddress returns sock address of rootless containerd based on https://github.com/containerd/nerdctl/blob/main/docs/faq.md#containerd-socket-address |
| 74 | func RootlessContainredSockAddress() (string, error) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…