()
| 27 | ) |
| 28 | |
| 29 | func newArtifactCmd() *cobra.Command { |
| 30 | cmd := &cobra.Command{ |
| 31 | Use: "artifact", |
| 32 | Short: "Download or upload Artifacts to the CAS", |
| 33 | } |
| 34 | |
| 35 | cmd.AddCommand(newArtifactUploadCmd(), newArtifactDownloadCmd()) |
| 36 | return cmd |
| 37 | } |
| 38 | |
| 39 | func wrappedArtifactConn(cpConn *grpc.ClientConn, role pb.CASCredentialsServiceGetRequest_Role, digest string) (*grpc.ClientConn, error) { |
| 40 | // Retrieve temporary credentials for uploading |
no test coverage detected