(ctx context.Context)
| 101 | } |
| 102 | |
| 103 | func (r *RuntimeService) Close(ctx context.Context) error { |
| 104 | if r == nil { |
| 105 | return nil |
| 106 | } |
| 107 | |
| 108 | var err error |
| 109 | if r.runtimeService != nil { |
| 110 | err = r.runtimeService.Close(ctx) |
| 111 | } |
| 112 | if r.runtimeConn != nil { |
| 113 | err = errors.Join(err, r.runtimeConn.Close()) |
| 114 | } |
| 115 | return err |
| 116 | } |
| 117 | |
| 118 | func (r *RuntimeService) Version(apiVersion string, _ ...grpc.CallOption) (*runtimeapi.VersionResponse, error) { |
| 119 | return r.runtimeService.Version(context.Background(), apiVersion) |