github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/go/tao/linux_host.pb.go (about) 1 // Code generated by protoc-gen-go. 2 // source: linux_host.proto 3 // DO NOT EDIT! 4 5 package tao 6 7 import proto "github.com/golang/protobuf/proto" 8 import json "encoding/json" 9 import math "math" 10 11 // Reference proto, json, and math imports to suppress error if they are not otherwise used. 12 var _ = proto.Marshal 13 var _ = &json.SyntaxError{} 14 var _ = math.Inf 15 16 type LinuxHostSealedBundle struct { 17 Policy *string `protobuf:"bytes,1,req,name=policy" json:"policy,omitempty"` 18 PolicyInfo *string `protobuf:"bytes,2,opt,name=policy_info" json:"policy_info,omitempty"` 19 Data []byte `protobuf:"bytes,3,req,name=data" json:"data,omitempty"` 20 XXX_unrecognized []byte `json:"-"` 21 } 22 23 func (m *LinuxHostSealedBundle) Reset() { *m = LinuxHostSealedBundle{} } 24 func (m *LinuxHostSealedBundle) String() string { return proto.CompactTextString(m) } 25 func (*LinuxHostSealedBundle) ProtoMessage() {} 26 27 func (m *LinuxHostSealedBundle) GetPolicy() string { 28 if m != nil && m.Policy != nil { 29 return *m.Policy 30 } 31 return "" 32 } 33 34 func (m *LinuxHostSealedBundle) GetPolicyInfo() string { 35 if m != nil && m.PolicyInfo != nil { 36 return *m.PolicyInfo 37 } 38 return "" 39 } 40 41 func (m *LinuxHostSealedBundle) GetData() []byte { 42 if m != nil { 43 return m.Data 44 } 45 return nil 46 } 47 48 type LinuxHostConfig struct { 49 // Either "root" or "stacked" 50 Type *string `protobuf:"bytes,1,req,name=type" json:"type,omitempty"` 51 // Either "TPM", "TPM2", "pipe", "file", or "unix" 52 ParentType *string `protobuf:"bytes,2,opt,name=parent_type" json:"parent_type,omitempty"` 53 // For non-tpm parent types, the parent connection spec 54 ParentSpec *string `protobuf:"bytes,3,opt,name=parent_spec" json:"parent_spec,omitempty"` 55 // Socket directory, relative to host configuration directory. 56 SocketDir *string `protobuf:"bytes,4,opt,name=socket_dir" json:"socket_dir,omitempty"` 57 // Either "process", "docker", or "kvm_coreos" 58 Hosting *string `protobuf:"bytes,5,req,name=hosting" json:"hosting,omitempty"` 59 // Path to CoreOS image for hosted KVM, absolute or relative to domain. 60 KvmCoreosImg *string `protobuf:"bytes,6,opt,name=kvm_coreos_img" json:"kvm_coreos_img,omitempty"` 61 // KB of memory to allocate for each VM 62 KvmCoreosVmMemory *int32 `protobuf:"varint,7,opt,name=kvm_coreos_vm_memory" json:"kvm_coreos_vm_memory,omitempty"` 63 // Path to CoreOS authorized_keys for hosted KVM, absolute or relative to domain. 64 KvmCoreosSshAuthKeys *string `protobuf:"bytes,8,opt,name=kvm_coreos_ssh_auth_keys" json:"kvm_coreos_ssh_auth_keys,omitempty"` 65 // KB of memory to allocate for each VM with custom kernel and initram. 66 KvmCustomVmMemory *int32 `protobuf:"varint,9,opt,name=kvm_custom_vm_memory" json:"kvm_custom_vm_memory,omitempty"` 67 XXX_unrecognized []byte `json:"-"` 68 } 69 70 func (m *LinuxHostConfig) Reset() { *m = LinuxHostConfig{} } 71 func (m *LinuxHostConfig) String() string { return proto.CompactTextString(m) } 72 func (*LinuxHostConfig) ProtoMessage() {} 73 74 func (m *LinuxHostConfig) GetType() string { 75 if m != nil && m.Type != nil { 76 return *m.Type 77 } 78 return "" 79 } 80 81 func (m *LinuxHostConfig) GetParentType() string { 82 if m != nil && m.ParentType != nil { 83 return *m.ParentType 84 } 85 return "" 86 } 87 88 func (m *LinuxHostConfig) GetParentSpec() string { 89 if m != nil && m.ParentSpec != nil { 90 return *m.ParentSpec 91 } 92 return "" 93 } 94 95 func (m *LinuxHostConfig) GetSocketDir() string { 96 if m != nil && m.SocketDir != nil { 97 return *m.SocketDir 98 } 99 return "" 100 } 101 102 func (m *LinuxHostConfig) GetHosting() string { 103 if m != nil && m.Hosting != nil { 104 return *m.Hosting 105 } 106 return "" 107 } 108 109 func (m *LinuxHostConfig) GetKvmCoreosImg() string { 110 if m != nil && m.KvmCoreosImg != nil { 111 return *m.KvmCoreosImg 112 } 113 return "" 114 } 115 116 func (m *LinuxHostConfig) GetKvmCoreosVmMemory() int32 { 117 if m != nil && m.KvmCoreosVmMemory != nil { 118 return *m.KvmCoreosVmMemory 119 } 120 return 0 121 } 122 123 func (m *LinuxHostConfig) GetKvmCoreosSshAuthKeys() string { 124 if m != nil && m.KvmCoreosSshAuthKeys != nil { 125 return *m.KvmCoreosSshAuthKeys 126 } 127 return "" 128 } 129 130 func (m *LinuxHostConfig) GetKvmCustomVmMemory() int32 { 131 if m != nil && m.KvmCustomVmMemory != nil { 132 return *m.KvmCustomVmMemory 133 } 134 return 0 135 } 136 137 func init() { 138 }