50 lines
1.5 KiB
C
50 lines
1.5 KiB
C
/*
|
|
* v1_volume_attachment.h
|
|
*
|
|
* VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced.
|
|
*/
|
|
|
|
#ifndef _v1_volume_attachment_H_
|
|
#define _v1_volume_attachment_H_
|
|
|
|
#include <string.h>
|
|
#include "../external/cJSON.h"
|
|
#include "../include/list.h"
|
|
#include "../include/keyValuePair.h"
|
|
#include "../include/binary.h"
|
|
|
|
typedef struct v1_volume_attachment_t v1_volume_attachment_t;
|
|
|
|
#include "v1_object_meta.h"
|
|
#include "v1_volume_attachment_spec.h"
|
|
#include "v1_volume_attachment_status.h"
|
|
|
|
|
|
|
|
typedef struct v1_volume_attachment_t {
|
|
char *api_version; // string
|
|
char *kind; // string
|
|
struct v1_object_meta_t *metadata; //model
|
|
struct v1_volume_attachment_spec_t *spec; //model
|
|
struct v1_volume_attachment_status_t *status; //model
|
|
|
|
int _library_owned; // Is the library responsible for freeing this object?
|
|
} v1_volume_attachment_t;
|
|
|
|
__attribute__((deprecated)) v1_volume_attachment_t *v1_volume_attachment_create(
|
|
char *api_version,
|
|
char *kind,
|
|
v1_object_meta_t *metadata,
|
|
v1_volume_attachment_spec_t *spec,
|
|
v1_volume_attachment_status_t *status
|
|
);
|
|
|
|
void v1_volume_attachment_free(v1_volume_attachment_t *v1_volume_attachment);
|
|
|
|
v1_volume_attachment_t *v1_volume_attachment_parseFromJSON(cJSON *v1_volume_attachmentJSON);
|
|
|
|
cJSON *v1_volume_attachment_convertToJSON(v1_volume_attachment_t *v1_volume_attachment);
|
|
|
|
#endif /* _v1_volume_attachment_H_ */
|
|
|