1
// -*- mode: C; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
2
// vim: set softtabstop=4 shiftwidth=4 tabstop=4 expandtab:
9
typedef struct _img_creds {
10
enum { NONE, PASSWORD, X509CREDS, SSHKEY } type;
14
char cert_path [SIZE];
15
char ssh_key_path [SIZE];
18
typedef struct _img_loc {
19
enum { PATH, HTTP, HTTPS, VSPHERE, WALRUS, SFTP } type;
21
char path [SIZE]; // dir/file
27
char vsphere_dc [SIZE];
28
char vsphere_ds [SIZE];
29
char vsphere_vmx_ds [SIZE];
30
char vsphere_vmx_path [SIZE];
34
typedef struct _img_spec {
35
// enum { EMI, EKI, ERI, DISK, VDDK } type;
41
int parse_img_spec (img_loc * loc, const char * str);
42
void print_img_spec (const char * name, const img_spec * spec);