3 Star 0 Fork 0

首都在线/eci-grpc

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
agent.pb.go 102.71 KB
一键复制 编辑 原始数据 按行查看 历史
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.10
// protoc v3.20.2
// source: agent.proto
package agent
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
v1 "k8s.io/api/core/v1"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type ActionCode int32
const (
ActionCode_SuccessCode ActionCode = 0
ActionCode_FailCode ActionCode = -1
)
// Enum value maps for ActionCode.
var (
ActionCode_name = map[int32]string{
0: "SuccessCode",
-1: "FailCode",
}
ActionCode_value = map[string]int32{
"SuccessCode": 0,
"FailCode": -1,
}
)
func (x ActionCode) Enum() *ActionCode {
p := new(ActionCode)
*p = x
return p
}
func (x ActionCode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ActionCode) Descriptor() protoreflect.EnumDescriptor {
return file_agent_proto_enumTypes[0].Descriptor()
}
func (ActionCode) Type() protoreflect.EnumType {
return &file_agent_proto_enumTypes[0]
}
func (x ActionCode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ActionCode.Descriptor instead.
func (ActionCode) EnumDescriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{0}
}
type SpotStrategy int32
const (
SpotStrategy_NoSpot SpotStrategy = 0
SpotStrategy_SpotWithPriceLimit SpotStrategy = 1
SpotStrategy_SpotAsPriceGo SpotStrategy = 2
)
// Enum value maps for SpotStrategy.
var (
SpotStrategy_name = map[int32]string{
0: "NoSpot",
1: "SpotWithPriceLimit",
2: "SpotAsPriceGo",
}
SpotStrategy_value = map[string]int32{
"NoSpot": 0,
"SpotWithPriceLimit": 1,
"SpotAsPriceGo": 2,
}
)
func (x SpotStrategy) Enum() *SpotStrategy {
p := new(SpotStrategy)
*p = x
return p
}
func (x SpotStrategy) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SpotStrategy) Descriptor() protoreflect.EnumDescriptor {
return file_agent_proto_enumTypes[1].Descriptor()
}
func (SpotStrategy) Type() protoreflect.EnumType {
return &file_agent_proto_enumTypes[1]
}
func (x SpotStrategy) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SpotStrategy.Descriptor instead.
func (SpotStrategy) EnumDescriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{1}
}
type DeleteCode int32
const (
DeleteCode_Default DeleteCode = 0
DeleteCode_SpotFailed DeleteCode = 1
DeleteCode_SpotDelayed DeleteCode = 2
DeleteCode_SpotCanceled DeleteCode = 3
)
// Enum value maps for DeleteCode.
var (
DeleteCode_name = map[int32]string{
0: "Default",
1: "SpotFailed",
2: "SpotDelayed",
3: "SpotCanceled",
}
DeleteCode_value = map[string]int32{
"Default": 0,
"SpotFailed": 1,
"SpotDelayed": 2,
"SpotCanceled": 3,
}
)
func (x DeleteCode) Enum() *DeleteCode {
p := new(DeleteCode)
*p = x
return p
}
func (x DeleteCode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DeleteCode) Descriptor() protoreflect.EnumDescriptor {
return file_agent_proto_enumTypes[2].Descriptor()
}
func (DeleteCode) Type() protoreflect.EnumType {
return &file_agent_proto_enumTypes[2]
}
func (x DeleteCode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DeleteCode.Descriptor instead.
func (DeleteCode) EnumDescriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{2}
}
type NetworkInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
Vlan string `protobuf:"bytes,2,opt,name=vlan,proto3" json:"vlan,omitempty"`
Gateway string `protobuf:"bytes,3,opt,name=gateway,proto3" json:"gateway,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NetworkInfo) Reset() {
*x = NetworkInfo{}
mi := &file_agent_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NetworkInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NetworkInfo) ProtoMessage() {}
func (x *NetworkInfo) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NetworkInfo.ProtoReflect.Descriptor instead.
func (*NetworkInfo) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{0}
}
func (x *NetworkInfo) GetIp() string {
if x != nil {
return x.Ip
}
return ""
}
func (x *NetworkInfo) GetVlan() string {
if x != nil {
return x.Vlan
}
return ""
}
func (x *NetworkInfo) GetGateway() string {
if x != nil {
return x.Gateway
}
return ""
}
type Env struct {
state protoimpl.MessageState `protogen:"open.v1"`
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Env) Reset() {
*x = Env{}
mi := &file_agent_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Env) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Env) ProtoMessage() {}
func (x *Env) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Env.ProtoReflect.Descriptor instead.
func (*Env) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{1}
}
func (x *Env) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *Env) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
type ConfigMapVolume struct {
state protoimpl.MessageState `protogen:"open.v1"`
Source *v1.ConfigMap `protobuf:"bytes,1,opt,name=source,proto3,oneof" json:"source,omitempty"`
Volume *v1.ConfigMapVolumeSource `protobuf:"bytes,2,opt,name=volume,proto3,oneof" json:"volume,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ConfigMapVolume) Reset() {
*x = ConfigMapVolume{}
mi := &file_agent_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ConfigMapVolume) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ConfigMapVolume) ProtoMessage() {}
func (x *ConfigMapVolume) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ConfigMapVolume.ProtoReflect.Descriptor instead.
func (*ConfigMapVolume) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{2}
}
func (x *ConfigMapVolume) GetSource() *v1.ConfigMap {
if x != nil {
return x.Source
}
return nil
}
func (x *ConfigMapVolume) GetVolume() *v1.ConfigMapVolumeSource {
if x != nil {
return x.Volume
}
return nil
}
type SecretVolume struct {
state protoimpl.MessageState `protogen:"open.v1"`
Source *v1.Secret `protobuf:"bytes,1,opt,name=source,proto3,oneof" json:"source,omitempty"`
Volume *v1.SecretVolumeSource `protobuf:"bytes,2,opt,name=volume,proto3,oneof" json:"volume,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SecretVolume) Reset() {
*x = SecretVolume{}
mi := &file_agent_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SecretVolume) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SecretVolume) ProtoMessage() {}
func (x *SecretVolume) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SecretVolume.ProtoReflect.Descriptor instead.
func (*SecretVolume) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{3}
}
func (x *SecretVolume) GetSource() *v1.Secret {
if x != nil {
return x.Source
}
return nil
}
func (x *SecretVolume) GetVolume() *v1.SecretVolumeSource {
if x != nil {
return x.Volume
}
return nil
}
type NASVolumeInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
VolumeName string `protobuf:"bytes,1,opt,name=volume_name,json=volumeName,proto3" json:"volume_name,omitempty"`
Server string `protobuf:"bytes,2,opt,name=server,proto3" json:"server,omitempty"`
Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
MountOptions []string `protobuf:"bytes,4,rep,name=mount_options,json=mountOptions,proto3" json:"mount_options,omitempty"`
ReadOnly bool `protobuf:"varint,5,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NASVolumeInfo) Reset() {
*x = NASVolumeInfo{}
mi := &file_agent_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NASVolumeInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NASVolumeInfo) ProtoMessage() {}
func (x *NASVolumeInfo) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NASVolumeInfo.ProtoReflect.Descriptor instead.
func (*NASVolumeInfo) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{4}
}
func (x *NASVolumeInfo) GetVolumeName() string {
if x != nil {
return x.VolumeName
}
return ""
}
func (x *NASVolumeInfo) GetServer() string {
if x != nil {
return x.Server
}
return ""
}
func (x *NASVolumeInfo) GetPath() string {
if x != nil {
return x.Path
}
return ""
}
func (x *NASVolumeInfo) GetMountOptions() []string {
if x != nil {
return x.MountOptions
}
return nil
}
func (x *NASVolumeInfo) GetReadOnly() bool {
if x != nil {
return x.ReadOnly
}
return false
}
type Pod struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
ContainerGroupName string `protobuf:"bytes,2,opt,name=containerGroupName,proto3" json:"containerGroupName,omitempty"`
Network *NetworkInfo `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"`
RawPod *v1.Pod `protobuf:"bytes,4,opt,name=rawPod,proto3,oneof" json:"rawPod,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Pod) Reset() {
*x = Pod{}
mi := &file_agent_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Pod) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Pod) ProtoMessage() {}
func (x *Pod) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Pod.ProtoReflect.Descriptor instead.
func (*Pod) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{5}
}
func (x *Pod) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Pod) GetContainerGroupName() string {
if x != nil {
return x.ContainerGroupName
}
return ""
}
func (x *Pod) GetNetwork() *NetworkInfo {
if x != nil {
return x.Network
}
return nil
}
func (x *Pod) GetRawPod() *v1.Pod {
if x != nil {
return x.RawPod
}
return nil
}
type PodRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
GpuType string `protobuf:"bytes,1,opt,name=gpu_type,json=gpuType,proto3" json:"gpu_type,omitempty"`
CpuType string `protobuf:"bytes,2,opt,name=cpu_type,json=cpuType,proto3" json:"cpu_type,omitempty"`
CustomerId string `protobuf:"bytes,3,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
RestartPolicy string `protobuf:"bytes,5,opt,name=restart_policy,json=restartPolicy,proto3" json:"restart_policy,omitempty"`
Cpu int64 `protobuf:"varint,6,opt,name=cpu,proto3" json:"cpu,omitempty"`
Ram int64 `protobuf:"varint,7,opt,name=ram,proto3" json:"ram,omitempty"`
Gpu int64 `protobuf:"varint,8,opt,name=gpu,proto3" json:"gpu,omitempty"`
Pods []*Pod `protobuf:"bytes,9,rep,name=pods,proto3" json:"pods,omitempty"`
TempStoreSize int64 `protobuf:"varint,10,opt,name=temp_store_size,json=tempStoreSize,proto3" json:"temp_store_size,omitempty"`
VnodeId string `protobuf:"bytes,12,opt,name=vnode_id,json=vnodeId,proto3" json:"vnode_id,omitempty"`
Secrets []*v1.Secret `protobuf:"bytes,13,rep,name=secrets,proto3" json:"secrets,omitempty"`
ConfigMaps []*v1.ConfigMap `protobuf:"bytes,14,rep,name=configMaps,proto3" json:"configMaps,omitempty"`
SpotStrategy string `protobuf:"bytes,15,opt,name=spotStrategy,proto3" json:"spotStrategy,omitempty"`
SpotPrice string `protobuf:"bytes,16,opt,name=spotPrice,proto3" json:"spotPrice,omitempty"`
Zone string `protobuf:"bytes,17,opt,name=zone,proto3" json:"zone,omitempty"`
CloudEdge bool `protobuf:"varint,18,opt,name=cloudEdge,proto3" json:"cloudEdge,omitempty"`
NasVolumes []*NASVolumeInfo `protobuf:"bytes,19,rep,name=nas_volumes,json=nasVolumes,proto3" json:"nas_volumes,omitempty"`
TestCreditProjectId int64 `protobuf:"varint,20,opt,name=test_credit_project_id,json=testCreditProjectId,proto3" json:"test_credit_project_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PodRequest) Reset() {
*x = PodRequest{}
mi := &file_agent_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PodRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PodRequest) ProtoMessage() {}
func (x *PodRequest) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PodRequest.ProtoReflect.Descriptor instead.
func (*PodRequest) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{6}
}
func (x *PodRequest) GetGpuType() string {
if x != nil {
return x.GpuType
}
return ""
}
func (x *PodRequest) GetCpuType() string {
if x != nil {
return x.CpuType
}
return ""
}
func (x *PodRequest) GetCustomerId() string {
if x != nil {
return x.CustomerId
}
return ""
}
func (x *PodRequest) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *PodRequest) GetRestartPolicy() string {
if x != nil {
return x.RestartPolicy
}
return ""
}
func (x *PodRequest) GetCpu() int64 {
if x != nil {
return x.Cpu
}
return 0
}
func (x *PodRequest) GetRam() int64 {
if x != nil {
return x.Ram
}
return 0
}
func (x *PodRequest) GetGpu() int64 {
if x != nil {
return x.Gpu
}
return 0
}
func (x *PodRequest) GetPods() []*Pod {
if x != nil {
return x.Pods
}
return nil
}
func (x *PodRequest) GetTempStoreSize() int64 {
if x != nil {
return x.TempStoreSize
}
return 0
}
func (x *PodRequest) GetVnodeId() string {
if x != nil {
return x.VnodeId
}
return ""
}
func (x *PodRequest) GetSecrets() []*v1.Secret {
if x != nil {
return x.Secrets
}
return nil
}
func (x *PodRequest) GetConfigMaps() []*v1.ConfigMap {
if x != nil {
return x.ConfigMaps
}
return nil
}
func (x *PodRequest) GetSpotStrategy() string {
if x != nil {
return x.SpotStrategy
}
return ""
}
func (x *PodRequest) GetSpotPrice() string {
if x != nil {
return x.SpotPrice
}
return ""
}
func (x *PodRequest) GetZone() string {
if x != nil {
return x.Zone
}
return ""
}
func (x *PodRequest) GetCloudEdge() bool {
if x != nil {
return x.CloudEdge
}
return false
}
func (x *PodRequest) GetNasVolumes() []*NASVolumeInfo {
if x != nil {
return x.NasVolumes
}
return nil
}
func (x *PodRequest) GetTestCreditProjectId() int64 {
if x != nil {
return x.TestCreditProjectId
}
return 0
}
type PodDeleteRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
VNodeID string `protobuf:"bytes,1,opt,name=vNodeID,proto3" json:"vNodeID,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
Code DeleteCode `protobuf:"varint,4,opt,name=code,proto3,enum=agent.DeleteCode" json:"code,omitempty"`
RecycleProtectionPeriod int64 `protobuf:"varint,5,opt,name=recycleProtectionPeriod,proto3" json:"recycleProtectionPeriod,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PodDeleteRequest) Reset() {
*x = PodDeleteRequest{}
mi := &file_agent_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PodDeleteRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PodDeleteRequest) ProtoMessage() {}
func (x *PodDeleteRequest) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PodDeleteRequest.ProtoReflect.Descriptor instead.
func (*PodDeleteRequest) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{7}
}
func (x *PodDeleteRequest) GetVNodeID() string {
if x != nil {
return x.VNodeID
}
return ""
}
func (x *PodDeleteRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *PodDeleteRequest) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
func (x *PodDeleteRequest) GetCode() DeleteCode {
if x != nil {
return x.Code
}
return DeleteCode_Default
}
func (x *PodDeleteRequest) GetRecycleProtectionPeriod() int64 {
if x != nil {
return x.RecycleProtectionPeriod
}
return 0
}
type PodRebootRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PodRebootRequest) Reset() {
*x = PodRebootRequest{}
mi := &file_agent_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PodRebootRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PodRebootRequest) ProtoMessage() {}
func (x *PodRebootRequest) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PodRebootRequest.ProtoReflect.Descriptor instead.
func (*PodRebootRequest) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{8}
}
func (x *PodRebootRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *PodRebootRequest) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
type PodResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code ActionCode `protobuf:"varint,1,opt,name=code,proto3,enum=agent.ActionCode" json:"code,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PodResponse) Reset() {
*x = PodResponse{}
mi := &file_agent_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PodResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PodResponse) ProtoMessage() {}
func (x *PodResponse) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PodResponse.ProtoReflect.Descriptor instead.
func (*PodResponse) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{9}
}
func (x *PodResponse) GetCode() ActionCode {
if x != nil {
return x.Code
}
return ActionCode_SuccessCode
}
func (x *PodResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
type Pods struct {
state protoimpl.MessageState `protogen:"open.v1"`
Network *NetworkInfo `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
Pod *v1.Pod `protobuf:"bytes,2,opt,name=pod,proto3,oneof" json:"pod,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Pods) Reset() {
*x = Pods{}
mi := &file_agent_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Pods) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Pods) ProtoMessage() {}
func (x *Pods) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Pods.ProtoReflect.Descriptor instead.
func (*Pods) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{10}
}
func (x *Pods) GetNetwork() *NetworkInfo {
if x != nil {
return x.Network
}
return nil
}
func (x *Pods) GetPod() *v1.Pod {
if x != nil {
return x.Pod
}
return nil
}
type PodInfoRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
VnodeId string `protobuf:"bytes,3,opt,name=vnode_id,json=vnodeId,proto3" json:"vnode_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PodInfoRequest) Reset() {
*x = PodInfoRequest{}
mi := &file_agent_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PodInfoRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PodInfoRequest) ProtoMessage() {}
func (x *PodInfoRequest) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PodInfoRequest.ProtoReflect.Descriptor instead.
func (*PodInfoRequest) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{11}
}
func (x *PodInfoRequest) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
func (x *PodInfoRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *PodInfoRequest) GetVnodeId() string {
if x != nil {
return x.VnodeId
}
return ""
}
type PodInfoResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code ActionCode `protobuf:"varint,1,opt,name=code,proto3,enum=agent.ActionCode" json:"code,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
Pods []*Pods `protobuf:"bytes,3,rep,name=pods,proto3" json:"pods,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PodInfoResponse) Reset() {
*x = PodInfoResponse{}
mi := &file_agent_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PodInfoResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PodInfoResponse) ProtoMessage() {}
func (x *PodInfoResponse) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PodInfoResponse.ProtoReflect.Descriptor instead.
func (*PodInfoResponse) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{12}
}
func (x *PodInfoResponse) GetCode() ActionCode {
if x != nil {
return x.Code
}
return ActionCode_SuccessCode
}
func (x *PodInfoResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (x *PodInfoResponse) GetPods() []*Pods {
if x != nil {
return x.Pods
}
return nil
}
type IpPoolSegments struct {
state protoimpl.MessageState `protogen:"open.v1"`
Vlan string `protobuf:"bytes,1,opt,name=vlan,proto3" json:"vlan,omitempty"`
Subnet string `protobuf:"bytes,2,opt,name=subnet,proto3" json:"subnet,omitempty"`
Gateway string `protobuf:"bytes,3,opt,name=gateway,proto3" json:"gateway,omitempty"`
AvailableZoneId string `protobuf:"bytes,4,opt,name=available_zone_id,json=availableZoneId,proto3" json:"available_zone_id,omitempty"`
StartEnd []string `protobuf:"bytes,5,rep,name=start_end,json=startEnd,proto3" json:"start_end,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *IpPoolSegments) Reset() {
*x = IpPoolSegments{}
mi := &file_agent_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *IpPoolSegments) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IpPoolSegments) ProtoMessage() {}
func (x *IpPoolSegments) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IpPoolSegments.ProtoReflect.Descriptor instead.
func (*IpPoolSegments) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{13}
}
func (x *IpPoolSegments) GetVlan() string {
if x != nil {
return x.Vlan
}
return ""
}
func (x *IpPoolSegments) GetSubnet() string {
if x != nil {
return x.Subnet
}
return ""
}
func (x *IpPoolSegments) GetGateway() string {
if x != nil {
return x.Gateway
}
return ""
}
func (x *IpPoolSegments) GetAvailableZoneId() string {
if x != nil {
return x.AvailableZoneId
}
return ""
}
func (x *IpPoolSegments) GetStartEnd() []string {
if x != nil {
return x.StartEnd
}
return nil
}
type PrivateNet struct {
state protoimpl.MessageState `protogen:"open.v1"`
Vlan string `protobuf:"bytes,1,opt,name=vlan,proto3" json:"vlan,omitempty"`
Subnet string `protobuf:"bytes,2,opt,name=subnet,proto3" json:"subnet,omitempty"`
Gateway string `protobuf:"bytes,3,opt,name=gateway,proto3" json:"gateway,omitempty"`
Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"`
Eip string `protobuf:"bytes,5,opt,name=eip,proto3" json:"eip,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PrivateNet) Reset() {
*x = PrivateNet{}
mi := &file_agent_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PrivateNet) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PrivateNet) ProtoMessage() {}
func (x *PrivateNet) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[14]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PrivateNet.ProtoReflect.Descriptor instead.
func (*PrivateNet) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{14}
}
func (x *PrivateNet) GetVlan() string {
if x != nil {
return x.Vlan
}
return ""
}
func (x *PrivateNet) GetSubnet() string {
if x != nil {
return x.Subnet
}
return ""
}
func (x *PrivateNet) GetGateway() string {
if x != nil {
return x.Gateway
}
return ""
}
func (x *PrivateNet) GetIp() string {
if x != nil {
return x.Ip
}
return ""
}
func (x *PrivateNet) GetEip() string {
if x != nil {
return x.Eip
}
return ""
}
type QuantityInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
Cpu int64 `protobuf:"varint,1,opt,name=cpu,proto3" json:"cpu,omitempty"`
Ram int64 `protobuf:"varint,2,opt,name=ram,proto3" json:"ram,omitempty"`
Gpu int64 `protobuf:"varint,3,opt,name=gpu,proto3" json:"gpu,omitempty"`
CpuType string `protobuf:"bytes,4,opt,name=cpu_type,json=cpuType,proto3" json:"cpu_type,omitempty"`
GpuType string `protobuf:"bytes,5,opt,name=gpu_type,json=gpuType,proto3" json:"gpu_type,omitempty"`
MinSpotPrice string `protobuf:"bytes,6,opt,name=min_spot_price,json=minSpotPrice,proto3" json:"min_spot_price,omitempty"`
MaxSpotPrice string `protobuf:"bytes,7,opt,name=max_spot_price,json=maxSpotPrice,proto3" json:"max_spot_price,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *QuantityInfo) Reset() {
*x = QuantityInfo{}
mi := &file_agent_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *QuantityInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QuantityInfo) ProtoMessage() {}
func (x *QuantityInfo) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[15]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use QuantityInfo.ProtoReflect.Descriptor instead.
func (*QuantityInfo) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{15}
}
func (x *QuantityInfo) GetCpu() int64 {
if x != nil {
return x.Cpu
}
return 0
}
func (x *QuantityInfo) GetRam() int64 {
if x != nil {
return x.Ram
}
return 0
}
func (x *QuantityInfo) GetGpu() int64 {
if x != nil {
return x.Gpu
}
return 0
}
func (x *QuantityInfo) GetCpuType() string {
if x != nil {
return x.CpuType
}
return ""
}
func (x *QuantityInfo) GetGpuType() string {
if x != nil {
return x.GpuType
}
return ""
}
func (x *QuantityInfo) GetMinSpotPrice() string {
if x != nil {
return x.MinSpotPrice
}
return ""
}
func (x *QuantityInfo) GetMaxSpotPrice() string {
if x != nil {
return x.MaxSpotPrice
}
return ""
}
type ProductQuantity struct {
state protoimpl.MessageState `protogen:"open.v1"`
Quantity []*QuantityInfo `protobuf:"bytes,1,rep,name=quantity,proto3" json:"quantity,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ProductQuantity) Reset() {
*x = ProductQuantity{}
mi := &file_agent_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ProductQuantity) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ProductQuantity) ProtoMessage() {}
func (x *ProductQuantity) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[16]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ProductQuantity.ProtoReflect.Descriptor instead.
func (*ProductQuantity) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{16}
}
func (x *ProductQuantity) GetQuantity() []*QuantityInfo {
if x != nil {
return x.Quantity
}
return nil
}
type NodeQuantity struct {
state protoimpl.MessageState `protogen:"open.v1"`
Cpu int64 `protobuf:"varint,1,opt,name=cpu,proto3" json:"cpu,omitempty"`
Ram int64 `protobuf:"varint,2,opt,name=ram,proto3" json:"ram,omitempty"`
Gpu int64 `protobuf:"varint,3,opt,name=gpu,proto3" json:"gpu,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NodeQuantity) Reset() {
*x = NodeQuantity{}
mi := &file_agent_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NodeQuantity) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NodeQuantity) ProtoMessage() {}
func (x *NodeQuantity) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[17]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NodeQuantity.ProtoReflect.Descriptor instead.
func (*NodeQuantity) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{17}
}
func (x *NodeQuantity) GetCpu() int64 {
if x != nil {
return x.Cpu
}
return 0
}
func (x *NodeQuantity) GetRam() int64 {
if x != nil {
return x.Ram
}
return 0
}
func (x *NodeQuantity) GetGpu() int64 {
if x != nil {
return x.Gpu
}
return 0
}
type NodeRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
KubeConfig string `protobuf:"bytes,1,opt,name=kube_config,json=kubeConfig,proto3" json:"kube_config,omitempty"`
IpPoolSegments map[string]*IpPoolSegments `protobuf:"bytes,2,rep,name=ip_pool_segments,json=ipPoolSegments,proto3" json:"ip_pool_segments,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
CustomerId string `protobuf:"bytes,3,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
PrivateNet *PrivateNet `protobuf:"bytes,6,opt,name=private_net,json=privateNet,proto3" json:"private_net,omitempty"`
Taints []*v1.Taint `protobuf:"bytes,7,rep,name=Taints,proto3" json:"Taints,omitempty"`
Labels map[string]string `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
NodeQuantity *NodeQuantity `protobuf:"bytes,9,opt,name=nodeQuantity,proto3" json:"nodeQuantity,omitempty"`
Image string `protobuf:"bytes,10,opt,name=image,proto3" json:"image,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NodeRequest) Reset() {
*x = NodeRequest{}
mi := &file_agent_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NodeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NodeRequest) ProtoMessage() {}
func (x *NodeRequest) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[18]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NodeRequest.ProtoReflect.Descriptor instead.
func (*NodeRequest) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{18}
}
func (x *NodeRequest) GetKubeConfig() string {
if x != nil {
return x.KubeConfig
}
return ""
}
func (x *NodeRequest) GetIpPoolSegments() map[string]*IpPoolSegments {
if x != nil {
return x.IpPoolSegments
}
return nil
}
func (x *NodeRequest) GetCustomerId() string {
if x != nil {
return x.CustomerId
}
return ""
}
func (x *NodeRequest) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *NodeRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *NodeRequest) GetPrivateNet() *PrivateNet {
if x != nil {
return x.PrivateNet
}
return nil
}
func (x *NodeRequest) GetTaints() []*v1.Taint {
if x != nil {
return x.Taints
}
return nil
}
func (x *NodeRequest) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *NodeRequest) GetNodeQuantity() *NodeQuantity {
if x != nil {
return x.NodeQuantity
}
return nil
}
func (x *NodeRequest) GetImage() string {
if x != nil {
return x.Image
}
return ""
}
type NodeResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code ActionCode `protobuf:"varint,1,opt,name=code,proto3,enum=agent.ActionCode" json:"code,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NodeResponse) Reset() {
*x = NodeResponse{}
mi := &file_agent_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NodeResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NodeResponse) ProtoMessage() {}
func (x *NodeResponse) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[19]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NodeResponse.ProtoReflect.Descriptor instead.
func (*NodeResponse) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{19}
}
func (x *NodeResponse) GetCode() ActionCode {
if x != nil {
return x.Code
}
return ActionCode_SuccessCode
}
func (x *NodeResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
type NodeGpuUsageRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
NodeIds []string `protobuf:"bytes,1,rep,name=nodeIds,proto3" json:"nodeIds,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NodeGpuUsageRequest) Reset() {
*x = NodeGpuUsageRequest{}
mi := &file_agent_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NodeGpuUsageRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NodeGpuUsageRequest) ProtoMessage() {}
func (x *NodeGpuUsageRequest) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[20]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NodeGpuUsageRequest.ProtoReflect.Descriptor instead.
func (*NodeGpuUsageRequest) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{20}
}
func (x *NodeGpuUsageRequest) GetNodeIds() []string {
if x != nil {
return x.NodeIds
}
return nil
}
type NodeUsageRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NodeUsageRequest) Reset() {
*x = NodeUsageRequest{}
mi := &file_agent_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NodeUsageRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NodeUsageRequest) ProtoMessage() {}
func (x *NodeUsageRequest) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[21]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NodeUsageRequest.ProtoReflect.Descriptor instead.
func (*NodeUsageRequest) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{21}
}
type NodeGpuUsageResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code ActionCode `protobuf:"varint,1,opt,name=code,proto3,enum=agent.ActionCode" json:"code,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
NodeGpuUsage []*NodeGpuUsage `protobuf:"bytes,3,rep,name=node_gpu_usage,json=nodeGpuUsage,proto3" json:"node_gpu_usage,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NodeGpuUsageResponse) Reset() {
*x = NodeGpuUsageResponse{}
mi := &file_agent_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NodeGpuUsageResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NodeGpuUsageResponse) ProtoMessage() {}
func (x *NodeGpuUsageResponse) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[22]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NodeGpuUsageResponse.ProtoReflect.Descriptor instead.
func (*NodeGpuUsageResponse) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{22}
}
func (x *NodeGpuUsageResponse) GetCode() ActionCode {
if x != nil {
return x.Code
}
return ActionCode_SuccessCode
}
func (x *NodeGpuUsageResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (x *NodeGpuUsageResponse) GetNodeGpuUsage() []*NodeGpuUsage {
if x != nil {
return x.NodeGpuUsage
}
return nil
}
type NodeGpuUsage struct {
state protoimpl.MessageState `protogen:"open.v1"`
NodeId string `protobuf:"bytes,1,opt,name=nodeId,proto3" json:"nodeId,omitempty"`
GpuType string `protobuf:"bytes,2,opt,name=gpuType,proto3" json:"gpuType,omitempty"`
TotalGpus int64 `protobuf:"varint,3,opt,name=totalGpus,proto3" json:"totalGpus,omitempty"`
UsedGpus int64 `protobuf:"varint,4,opt,name=usedGpus,proto3" json:"usedGpus,omitempty"`
PodIds []string `protobuf:"bytes,5,rep,name=podIds,proto3" json:"podIds,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NodeGpuUsage) Reset() {
*x = NodeGpuUsage{}
mi := &file_agent_proto_msgTypes[23]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NodeGpuUsage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NodeGpuUsage) ProtoMessage() {}
func (x *NodeGpuUsage) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[23]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NodeGpuUsage.ProtoReflect.Descriptor instead.
func (*NodeGpuUsage) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{23}
}
func (x *NodeGpuUsage) GetNodeId() string {
if x != nil {
return x.NodeId
}
return ""
}
func (x *NodeGpuUsage) GetGpuType() string {
if x != nil {
return x.GpuType
}
return ""
}
func (x *NodeGpuUsage) GetTotalGpus() int64 {
if x != nil {
return x.TotalGpus
}
return 0
}
func (x *NodeGpuUsage) GetUsedGpus() int64 {
if x != nil {
return x.UsedGpus
}
return 0
}
func (x *NodeGpuUsage) GetPodIds() []string {
if x != nil {
return x.PodIds
}
return nil
}
type NodeUsageResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Usage []*NodeUsage `protobuf:"bytes,1,rep,name=usage,proto3" json:"usage,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NodeUsageResponse) Reset() {
*x = NodeUsageResponse{}
mi := &file_agent_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NodeUsageResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NodeUsageResponse) ProtoMessage() {}
func (x *NodeUsageResponse) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[24]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NodeUsageResponse.ProtoReflect.Descriptor instead.
func (*NodeUsageResponse) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{24}
}
func (x *NodeUsageResponse) GetUsage() []*NodeUsage {
if x != nil {
return x.Usage
}
return nil
}
type UsageInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
Gpus int64 `protobuf:"varint,1,opt,name=gpus,proto3" json:"gpus,omitempty"`
Cpus int64 `protobuf:"varint,2,opt,name=cpus,proto3" json:"cpus,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UsageInfo) Reset() {
*x = UsageInfo{}
mi := &file_agent_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UsageInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UsageInfo) ProtoMessage() {}
func (x *UsageInfo) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[25]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UsageInfo.ProtoReflect.Descriptor instead.
func (*UsageInfo) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{25}
}
func (x *UsageInfo) GetGpus() int64 {
if x != nil {
return x.Gpus
}
return 0
}
func (x *UsageInfo) GetCpus() int64 {
if x != nil {
return x.Cpus
}
return 0
}
type NodeUsage struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
GpuType string `protobuf:"bytes,3,opt,name=gpuType,proto3" json:"gpuType,omitempty"`
CpuType string `protobuf:"bytes,4,opt,name=cpuType,proto3" json:"cpuType,omitempty"`
TotalUsage *UsageInfo `protobuf:"bytes,5,opt,name=totalUsage,proto3" json:"totalUsage,omitempty"`
UsedUsage *UsageInfo `protobuf:"bytes,6,opt,name=usedUsage,proto3" json:"usedUsage,omitempty"`
UsedSpotPriceLimitUsage *UsageInfo `protobuf:"bytes,7,opt,name=usedSpotPriceLimitUsage,proto3" json:"usedSpotPriceLimitUsage,omitempty"`
UsedSpotAsPriceGoUsage *UsageInfo `protobuf:"bytes,8,opt,name=usedSpotAsPriceGoUsage,proto3" json:"usedSpotAsPriceGoUsage,omitempty"`
FamilyId string `protobuf:"bytes,9,opt,name=familyId,proto3" json:"familyId,omitempty"`
LowestPricePerUnit float32 `protobuf:"fixed32,10,opt,name=lowestPricePerUnit,proto3" json:"lowestPricePerUnit,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NodeUsage) Reset() {
*x = NodeUsage{}
mi := &file_agent_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NodeUsage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NodeUsage) ProtoMessage() {}
func (x *NodeUsage) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[26]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NodeUsage.ProtoReflect.Descriptor instead.
func (*NodeUsage) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{26}
}
func (x *NodeUsage) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *NodeUsage) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *NodeUsage) GetGpuType() string {
if x != nil {
return x.GpuType
}
return ""
}
func (x *NodeUsage) GetCpuType() string {
if x != nil {
return x.CpuType
}
return ""
}
func (x *NodeUsage) GetTotalUsage() *UsageInfo {
if x != nil {
return x.TotalUsage
}
return nil
}
func (x *NodeUsage) GetUsedUsage() *UsageInfo {
if x != nil {
return x.UsedUsage
}
return nil
}
func (x *NodeUsage) GetUsedSpotPriceLimitUsage() *UsageInfo {
if x != nil {
return x.UsedSpotPriceLimitUsage
}
return nil
}
func (x *NodeUsage) GetUsedSpotAsPriceGoUsage() *UsageInfo {
if x != nil {
return x.UsedSpotAsPriceGoUsage
}
return nil
}
func (x *NodeUsage) GetFamilyId() string {
if x != nil {
return x.FamilyId
}
return ""
}
func (x *NodeUsage) GetLowestPricePerUnit() float32 {
if x != nil {
return x.LowestPricePerUnit
}
return 0
}
type CreateWsTokenRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
PodName string `protobuf:"bytes,3,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"`
VnodeId string `protobuf:"bytes,4,opt,name=vnode_id,json=vnodeId,proto3" json:"vnode_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreateWsTokenRequest) Reset() {
*x = CreateWsTokenRequest{}
mi := &file_agent_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreateWsTokenRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateWsTokenRequest) ProtoMessage() {}
func (x *CreateWsTokenRequest) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[27]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateWsTokenRequest.ProtoReflect.Descriptor instead.
func (*CreateWsTokenRequest) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{27}
}
func (x *CreateWsTokenRequest) GetCustomerId() string {
if x != nil {
return x.CustomerId
}
return ""
}
func (x *CreateWsTokenRequest) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *CreateWsTokenRequest) GetPodName() string {
if x != nil {
return x.PodName
}
return ""
}
func (x *CreateWsTokenRequest) GetVnodeId() string {
if x != nil {
return x.VnodeId
}
return ""
}
type CreateWsTokenResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code ActionCode `protobuf:"varint,1,opt,name=code,proto3,enum=agent.ActionCode" json:"code,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreateWsTokenResponse) Reset() {
*x = CreateWsTokenResponse{}
mi := &file_agent_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreateWsTokenResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateWsTokenResponse) ProtoMessage() {}
func (x *CreateWsTokenResponse) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[28]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateWsTokenResponse.ProtoReflect.Descriptor instead.
func (*CreateWsTokenResponse) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{28}
}
func (x *CreateWsTokenResponse) GetCode() ActionCode {
if x != nil {
return x.Code
}
return ActionCode_SuccessCode
}
func (x *CreateWsTokenResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (x *CreateWsTokenResponse) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
type QuotaRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
CustomerId string `protobuf:"bytes,1,opt,name=customerId,proto3" json:"customerId,omitempty"`
UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"`
Quota *v1.ResourceQuotaSpec `protobuf:"bytes,3,opt,name=quota,proto3,oneof" json:"quota,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *QuotaRequest) Reset() {
*x = QuotaRequest{}
mi := &file_agent_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *QuotaRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QuotaRequest) ProtoMessage() {}
func (x *QuotaRequest) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[29]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use QuotaRequest.ProtoReflect.Descriptor instead.
func (*QuotaRequest) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{29}
}
func (x *QuotaRequest) GetCustomerId() string {
if x != nil {
return x.CustomerId
}
return ""
}
func (x *QuotaRequest) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *QuotaRequest) GetQuota() *v1.ResourceQuotaSpec {
if x != nil {
return x.Quota
}
return nil
}
type QuotaStatusResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Quota *v1.ResourceQuotaStatus `protobuf:"bytes,1,opt,name=quota,proto3,oneof" json:"quota,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *QuotaStatusResponse) Reset() {
*x = QuotaStatusResponse{}
mi := &file_agent_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *QuotaStatusResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QuotaStatusResponse) ProtoMessage() {}
func (x *QuotaStatusResponse) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[30]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use QuotaStatusResponse.ProtoReflect.Descriptor instead.
func (*QuotaStatusResponse) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{30}
}
func (x *QuotaStatusResponse) GetQuota() *v1.ResourceQuotaStatus {
if x != nil {
return x.Quota
}
return nil
}
type QuotaResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *QuotaResponse) Reset() {
*x = QuotaResponse{}
mi := &file_agent_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *QuotaResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QuotaResponse) ProtoMessage() {}
func (x *QuotaResponse) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[31]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use QuotaResponse.ProtoReflect.Descriptor instead.
func (*QuotaResponse) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{31}
}
func (x *QuotaResponse) GetResult() bool {
if x != nil {
return x.Result
}
return false
}
func (x *QuotaResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
type GetInstanceRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
CustomerId string `protobuf:"bytes,1,opt,name=customerId,proto3" json:"customerId,omitempty"`
UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"`
InstanceIds []string `protobuf:"bytes,3,rep,name=InstanceIds,proto3" json:"InstanceIds,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetInstanceRequest) Reset() {
*x = GetInstanceRequest{}
mi := &file_agent_proto_msgTypes[32]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetInstanceRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetInstanceRequest) ProtoMessage() {}
func (x *GetInstanceRequest) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[32]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetInstanceRequest.ProtoReflect.Descriptor instead.
func (*GetInstanceRequest) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{32}
}
func (x *GetInstanceRequest) GetCustomerId() string {
if x != nil {
return x.CustomerId
}
return ""
}
func (x *GetInstanceRequest) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *GetInstanceRequest) GetInstanceIds() []string {
if x != nil {
return x.InstanceIds
}
return nil
}
type GetInstanceResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
InstanceIds []string `protobuf:"bytes,1,rep,name=InstanceIds,proto3" json:"InstanceIds,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetInstanceResponse) Reset() {
*x = GetInstanceResponse{}
mi := &file_agent_proto_msgTypes[33]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetInstanceResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetInstanceResponse) ProtoMessage() {}
func (x *GetInstanceResponse) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[33]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetInstanceResponse.ProtoReflect.Descriptor instead.
func (*GetInstanceResponse) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{33}
}
func (x *GetInstanceResponse) GetInstanceIds() []string {
if x != nil {
return x.InstanceIds
}
return nil
}
type FamilySpecRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
ProductQuantity map[string]*ProductQuantity `protobuf:"bytes,1,rep,name=productQuantity,proto3" json:"productQuantity,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FamilySpecRequest) Reset() {
*x = FamilySpecRequest{}
mi := &file_agent_proto_msgTypes[34]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FamilySpecRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FamilySpecRequest) ProtoMessage() {}
func (x *FamilySpecRequest) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[34]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FamilySpecRequest.ProtoReflect.Descriptor instead.
func (*FamilySpecRequest) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{34}
}
func (x *FamilySpecRequest) GetProductQuantity() map[string]*ProductQuantity {
if x != nil {
return x.ProductQuantity
}
return nil
}
type FamilySpecResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FamilySpecResponse) Reset() {
*x = FamilySpecResponse{}
mi := &file_agent_proto_msgTypes[35]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FamilySpecResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FamilySpecResponse) ProtoMessage() {}
func (x *FamilySpecResponse) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[35]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FamilySpecResponse.ProtoReflect.Descriptor instead.
func (*FamilySpecResponse) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{35}
}
func (x *FamilySpecResponse) GetResult() bool {
if x != nil {
return x.Result
}
return false
}
func (x *FamilySpecResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
type DataCacheRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Network *DataCacheNetworkInfo `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
Dest *DataCacheOptions `protobuf:"bytes,3,opt,name=dest,proto3" json:"dest,omitempty"`
Source *DataCacheOptions `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
CustomerId string `protobuf:"bytes,6,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
UserId string `protobuf:"bytes,7,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DataCacheRequest) Reset() {
*x = DataCacheRequest{}
mi := &file_agent_proto_msgTypes[36]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DataCacheRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DataCacheRequest) ProtoMessage() {}
func (x *DataCacheRequest) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[36]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DataCacheRequest.ProtoReflect.Descriptor instead.
func (*DataCacheRequest) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{36}
}
func (x *DataCacheRequest) GetNetwork() *DataCacheNetworkInfo {
if x != nil {
return x.Network
}
return nil
}
func (x *DataCacheRequest) GetImage() string {
if x != nil {
return x.Image
}
return ""
}
func (x *DataCacheRequest) GetDest() *DataCacheOptions {
if x != nil {
return x.Dest
}
return nil
}
func (x *DataCacheRequest) GetSource() *DataCacheOptions {
if x != nil {
return x.Source
}
return nil
}
func (x *DataCacheRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *DataCacheRequest) GetCustomerId() string {
if x != nil {
return x.CustomerId
}
return ""
}
func (x *DataCacheRequest) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
type DataCacheOptions struct {
state protoimpl.MessageState `protogen:"open.v1"`
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
Server string `protobuf:"bytes,4,opt,name=server,proto3" json:"server,omitempty"`
OtherOpts string `protobuf:"bytes,5,opt,name=otherOpts,proto3" json:"otherOpts,omitempty"`
Bucket string `protobuf:"bytes,6,opt,name=bucket,proto3" json:"bucket,omitempty"`
AkId string `protobuf:"bytes,7,opt,name=akId,proto3" json:"akId,omitempty"`
AkSecret string `protobuf:"bytes,8,opt,name=akSecret,proto3" json:"akSecret,omitempty"`
AccessToken string `protobuf:"bytes,9,opt,name=accessToken,proto3" json:"accessToken,omitempty"`
RepoSource string `protobuf:"bytes,10,opt,name=repoSource,proto3" json:"repoSource,omitempty"`
RepoId string `protobuf:"bytes,11,opt,name=repoId,proto3" json:"repoId,omitempty"`
Revision string `protobuf:"bytes,12,opt,name=revision,proto3" json:"revision,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DataCacheOptions) Reset() {
*x = DataCacheOptions{}
mi := &file_agent_proto_msgTypes[37]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DataCacheOptions) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DataCacheOptions) ProtoMessage() {}
func (x *DataCacheOptions) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[37]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DataCacheOptions.ProtoReflect.Descriptor instead.
func (*DataCacheOptions) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{37}
}
func (x *DataCacheOptions) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *DataCacheOptions) GetPath() string {
if x != nil {
return x.Path
}
return ""
}
func (x *DataCacheOptions) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
func (x *DataCacheOptions) GetServer() string {
if x != nil {
return x.Server
}
return ""
}
func (x *DataCacheOptions) GetOtherOpts() string {
if x != nil {
return x.OtherOpts
}
return ""
}
func (x *DataCacheOptions) GetBucket() string {
if x != nil {
return x.Bucket
}
return ""
}
func (x *DataCacheOptions) GetAkId() string {
if x != nil {
return x.AkId
}
return ""
}
func (x *DataCacheOptions) GetAkSecret() string {
if x != nil {
return x.AkSecret
}
return ""
}
func (x *DataCacheOptions) GetAccessToken() string {
if x != nil {
return x.AccessToken
}
return ""
}
func (x *DataCacheOptions) GetRepoSource() string {
if x != nil {
return x.RepoSource
}
return ""
}
func (x *DataCacheOptions) GetRepoId() string {
if x != nil {
return x.RepoId
}
return ""
}
func (x *DataCacheOptions) GetRevision() string {
if x != nil {
return x.Revision
}
return ""
}
type DataCacheResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code ActionCode `protobuf:"varint,1,opt,name=code,proto3,enum=agent.ActionCode" json:"code,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DataCacheResponse) Reset() {
*x = DataCacheResponse{}
mi := &file_agent_proto_msgTypes[38]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DataCacheResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DataCacheResponse) ProtoMessage() {}
func (x *DataCacheResponse) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[38]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DataCacheResponse.ProtoReflect.Descriptor instead.
func (*DataCacheResponse) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{38}
}
func (x *DataCacheResponse) GetCode() ActionCode {
if x != nil {
return x.Code
}
return ActionCode_SuccessCode
}
func (x *DataCacheResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
type DataCacheNetworkInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
Vlan string `protobuf:"bytes,2,opt,name=vlan,proto3" json:"vlan,omitempty"`
Gateway string `protobuf:"bytes,3,opt,name=gateway,proto3" json:"gateway,omitempty"`
Dns string `protobuf:"bytes,4,opt,name=dns,proto3" json:"dns,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DataCacheNetworkInfo) Reset() {
*x = DataCacheNetworkInfo{}
mi := &file_agent_proto_msgTypes[39]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DataCacheNetworkInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DataCacheNetworkInfo) ProtoMessage() {}
func (x *DataCacheNetworkInfo) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[39]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DataCacheNetworkInfo.ProtoReflect.Descriptor instead.
func (*DataCacheNetworkInfo) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{39}
}
func (x *DataCacheNetworkInfo) GetIp() string {
if x != nil {
return x.Ip
}
return ""
}
func (x *DataCacheNetworkInfo) GetVlan() string {
if x != nil {
return x.Vlan
}
return ""
}
func (x *DataCacheNetworkInfo) GetGateway() string {
if x != nil {
return x.Gateway
}
return ""
}
func (x *DataCacheNetworkInfo) GetDns() string {
if x != nil {
return x.Dns
}
return ""
}
type EventRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EventRequest) Reset() {
*x = EventRequest{}
mi := &file_agent_proto_msgTypes[40]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EventRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EventRequest) ProtoMessage() {}
func (x *EventRequest) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[40]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use EventRequest.ProtoReflect.Descriptor instead.
func (*EventRequest) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{40}
}
func (x *EventRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *EventRequest) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
type PodEvent struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
FirstTimestamp string `protobuf:"bytes,4,opt,name=firstTimestamp,proto3" json:"firstTimestamp,omitempty"`
LastTimestamp string `protobuf:"bytes,5,opt,name=lastTimestamp,proto3" json:"lastTimestamp,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PodEvent) Reset() {
*x = PodEvent{}
mi := &file_agent_proto_msgTypes[41]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PodEvent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PodEvent) ProtoMessage() {}
func (x *PodEvent) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[41]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PodEvent.ProtoReflect.Descriptor instead.
func (*PodEvent) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{41}
}
func (x *PodEvent) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *PodEvent) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *PodEvent) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (x *PodEvent) GetFirstTimestamp() string {
if x != nil {
return x.FirstTimestamp
}
return ""
}
func (x *PodEvent) GetLastTimestamp() string {
if x != nil {
return x.LastTimestamp
}
return ""
}
type EventResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Events []*PodEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EventResponse) Reset() {
*x = EventResponse{}
mi := &file_agent_proto_msgTypes[42]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EventResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EventResponse) ProtoMessage() {}
func (x *EventResponse) ProtoReflect() protoreflect.Message {
mi := &file_agent_proto_msgTypes[42]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use EventResponse.ProtoReflect.Descriptor instead.
func (*EventResponse) Descriptor() ([]byte, []int) {
return file_agent_proto_rawDescGZIP(), []int{42}
}
func (x *EventResponse) GetEvents() []*PodEvent {
if x != nil {
return x.Events
}
return nil
}
var File_agent_proto protoreflect.FileDescriptor
const file_agent_proto_rawDesc = "" +
"\n" +
"\vagent.proto\x12\x05agent\x1a\"k8s.io/api/core/v1/generated.proto\"K\n" +
"\vNetworkInfo\x12\x0e\n" +
"\x02ip\x18\x01 \x01(\tR\x02ip\x12\x12\n" +
"\x04vlan\x18\x02 \x01(\tR\x04vlan\x12\x18\n" +
"\agateway\x18\x03 \x01(\tR\agateway\"-\n" +
"\x03Env\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value\"\xab\x01\n" +
"\x0fConfigMapVolume\x12:\n" +
"\x06source\x18\x01 \x01(\v2\x1d.k8s.io.api.core.v1.ConfigMapH\x00R\x06source\x88\x01\x01\x12F\n" +
"\x06volume\x18\x02 \x01(\v2).k8s.io.api.core.v1.ConfigMapVolumeSourceH\x01R\x06volume\x88\x01\x01B\t\n" +
"\a_sourceB\t\n" +
"\a_volume\"\xa2\x01\n" +
"\fSecretVolume\x127\n" +
"\x06source\x18\x01 \x01(\v2\x1a.k8s.io.api.core.v1.SecretH\x00R\x06source\x88\x01\x01\x12C\n" +
"\x06volume\x18\x02 \x01(\v2&.k8s.io.api.core.v1.SecretVolumeSourceH\x01R\x06volume\x88\x01\x01B\t\n" +
"\a_sourceB\t\n" +
"\a_volume\"\x9e\x01\n" +
"\rNASVolumeInfo\x12\x1f\n" +
"\vvolume_name\x18\x01 \x01(\tR\n" +
"volumeName\x12\x16\n" +
"\x06server\x18\x02 \x01(\tR\x06server\x12\x12\n" +
"\x04path\x18\x03 \x01(\tR\x04path\x12#\n" +
"\rmount_options\x18\x04 \x03(\tR\fmountOptions\x12\x1b\n" +
"\tread_only\x18\x05 \x01(\bR\breadOnly\"\xb4\x01\n" +
"\x03Pod\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12.\n" +
"\x12containerGroupName\x18\x02 \x01(\tR\x12containerGroupName\x12,\n" +
"\anetwork\x18\x03 \x01(\v2\x12.agent.NetworkInfoR\anetwork\x124\n" +
"\x06rawPod\x18\x04 \x01(\v2\x17.k8s.io.api.core.v1.PodH\x00R\x06rawPod\x88\x01\x01B\t\n" +
"\a_rawPod\"\x91\x05\n" +
"\n" +
"PodRequest\x12\x19\n" +
"\bgpu_type\x18\x01 \x01(\tR\agpuType\x12\x19\n" +
"\bcpu_type\x18\x02 \x01(\tR\acpuType\x12\x1f\n" +
"\vcustomer_id\x18\x03 \x01(\tR\n" +
"customerId\x12\x17\n" +
"\auser_id\x18\x04 \x01(\tR\x06userId\x12%\n" +
"\x0erestart_policy\x18\x05 \x01(\tR\rrestartPolicy\x12\x10\n" +
"\x03cpu\x18\x06 \x01(\x03R\x03cpu\x12\x10\n" +
"\x03ram\x18\a \x01(\x03R\x03ram\x12\x10\n" +
"\x03gpu\x18\b \x01(\x03R\x03gpu\x12\x1e\n" +
"\x04pods\x18\t \x03(\v2\n" +
".agent.PodR\x04pods\x12&\n" +
"\x0ftemp_store_size\x18\n" +
" \x01(\x03R\rtempStoreSize\x12\x19\n" +
"\bvnode_id\x18\f \x01(\tR\avnodeId\x124\n" +
"\asecrets\x18\r \x03(\v2\x1a.k8s.io.api.core.v1.SecretR\asecrets\x12=\n" +
"\n" +
"configMaps\x18\x0e \x03(\v2\x1d.k8s.io.api.core.v1.ConfigMapR\n" +
"configMaps\x12\"\n" +
"\fspotStrategy\x18\x0f \x01(\tR\fspotStrategy\x12\x1c\n" +
"\tspotPrice\x18\x10 \x01(\tR\tspotPrice\x12\x12\n" +
"\x04zone\x18\x11 \x01(\tR\x04zone\x12\x1c\n" +
"\tcloudEdge\x18\x12 \x01(\bR\tcloudEdge\x125\n" +
"\vnas_volumes\x18\x13 \x03(\v2\x14.agent.NASVolumeInfoR\n" +
"nasVolumes\x123\n" +
"\x16test_credit_project_id\x18\x14 \x01(\x03R\x13testCreditProjectId\"\xbf\x01\n" +
"\x10PodDeleteRequest\x12\x18\n" +
"\avNodeID\x18\x01 \x01(\tR\avNodeID\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1c\n" +
"\tnamespace\x18\x03 \x01(\tR\tnamespace\x12%\n" +
"\x04code\x18\x04 \x01(\x0e2\x11.agent.DeleteCodeR\x04code\x128\n" +
"\x17recycleProtectionPeriod\x18\x05 \x01(\x03R\x17recycleProtectionPeriod\"D\n" +
"\x10PodRebootRequest\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1c\n" +
"\tnamespace\x18\x03 \x01(\tR\tnamespace\"N\n" +
"\vPodResponse\x12%\n" +
"\x04code\x18\x01 \x01(\x0e2\x11.agent.ActionCodeR\x04code\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\"l\n" +
"\x04Pods\x12,\n" +
"\anetwork\x18\x01 \x01(\v2\x12.agent.NetworkInfoR\anetwork\x12.\n" +
"\x03pod\x18\x02 \x01(\v2\x17.k8s.io.api.core.v1.PodH\x00R\x03pod\x88\x01\x01B\x06\n" +
"\x04_pod\"]\n" +
"\x0ePodInfoRequest\x12\x1c\n" +
"\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x19\n" +
"\bvnode_id\x18\x03 \x01(\tR\avnodeId\"s\n" +
"\x0fPodInfoResponse\x12%\n" +
"\x04code\x18\x01 \x01(\x0e2\x11.agent.ActionCodeR\x04code\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\x12\x1f\n" +
"\x04pods\x18\x03 \x03(\v2\v.agent.PodsR\x04pods\"\x9f\x01\n" +
"\x0eIpPoolSegments\x12\x12\n" +
"\x04vlan\x18\x01 \x01(\tR\x04vlan\x12\x16\n" +
"\x06subnet\x18\x02 \x01(\tR\x06subnet\x12\x18\n" +
"\agateway\x18\x03 \x01(\tR\agateway\x12*\n" +
"\x11available_zone_id\x18\x04 \x01(\tR\x0favailableZoneId\x12\x1b\n" +
"\tstart_end\x18\x05 \x03(\tR\bstartEnd\"t\n" +
"\n" +
"PrivateNet\x12\x12\n" +
"\x04vlan\x18\x01 \x01(\tR\x04vlan\x12\x16\n" +
"\x06subnet\x18\x02 \x01(\tR\x06subnet\x12\x18\n" +
"\agateway\x18\x03 \x01(\tR\agateway\x12\x0e\n" +
"\x02ip\x18\x04 \x01(\tR\x02ip\x12\x10\n" +
"\x03eip\x18\x05 \x01(\tR\x03eip\"\xc6\x01\n" +
"\fQuantityInfo\x12\x10\n" +
"\x03cpu\x18\x01 \x01(\x03R\x03cpu\x12\x10\n" +
"\x03ram\x18\x02 \x01(\x03R\x03ram\x12\x10\n" +
"\x03gpu\x18\x03 \x01(\x03R\x03gpu\x12\x19\n" +
"\bcpu_type\x18\x04 \x01(\tR\acpuType\x12\x19\n" +
"\bgpu_type\x18\x05 \x01(\tR\agpuType\x12$\n" +
"\x0emin_spot_price\x18\x06 \x01(\tR\fminSpotPrice\x12$\n" +
"\x0emax_spot_price\x18\a \x01(\tR\fmaxSpotPrice\"B\n" +
"\x0fProductQuantity\x12/\n" +
"\bquantity\x18\x01 \x03(\v2\x13.agent.QuantityInfoR\bquantity\"D\n" +
"\fNodeQuantity\x12\x10\n" +
"\x03cpu\x18\x01 \x01(\x03R\x03cpu\x12\x10\n" +
"\x03ram\x18\x02 \x01(\x03R\x03ram\x12\x10\n" +
"\x03gpu\x18\x03 \x01(\x03R\x03gpu\"\xcd\x04\n" +
"\vNodeRequest\x12\x1f\n" +
"\vkube_config\x18\x01 \x01(\tR\n" +
"kubeConfig\x12P\n" +
"\x10ip_pool_segments\x18\x02 \x03(\v2&.agent.NodeRequest.IpPoolSegmentsEntryR\x0eipPoolSegments\x12\x1f\n" +
"\vcustomer_id\x18\x03 \x01(\tR\n" +
"customerId\x12\x17\n" +
"\auser_id\x18\x04 \x01(\tR\x06userId\x12\x0e\n" +
"\x02id\x18\x05 \x01(\tR\x02id\x122\n" +
"\vprivate_net\x18\x06 \x01(\v2\x11.agent.PrivateNetR\n" +
"privateNet\x121\n" +
"\x06Taints\x18\a \x03(\v2\x19.k8s.io.api.core.v1.TaintR\x06Taints\x126\n" +
"\x06labels\x18\b \x03(\v2\x1e.agent.NodeRequest.LabelsEntryR\x06labels\x127\n" +
"\fnodeQuantity\x18\t \x01(\v2\x13.agent.NodeQuantityR\fnodeQuantity\x12\x14\n" +
"\x05image\x18\n" +
" \x01(\tR\x05image\x1aX\n" +
"\x13IpPoolSegmentsEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12+\n" +
"\x05value\x18\x02 \x01(\v2\x15.agent.IpPoolSegmentsR\x05value:\x028\x01\x1a9\n" +
"\vLabelsEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"O\n" +
"\fNodeResponse\x12%\n" +
"\x04code\x18\x01 \x01(\x0e2\x11.agent.ActionCodeR\x04code\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\"/\n" +
"\x13NodeGpuUsageRequest\x12\x18\n" +
"\anodeIds\x18\x01 \x03(\tR\anodeIds\"\x12\n" +
"\x10NodeUsageRequest\"\x92\x01\n" +
"\x14NodeGpuUsageResponse\x12%\n" +
"\x04code\x18\x01 \x01(\x0e2\x11.agent.ActionCodeR\x04code\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\x129\n" +
"\x0enode_gpu_usage\x18\x03 \x03(\v2\x13.agent.NodeGpuUsageR\fnodeGpuUsage\"\x92\x01\n" +
"\fNodeGpuUsage\x12\x16\n" +
"\x06nodeId\x18\x01 \x01(\tR\x06nodeId\x12\x18\n" +
"\agpuType\x18\x02 \x01(\tR\agpuType\x12\x1c\n" +
"\ttotalGpus\x18\x03 \x01(\x03R\ttotalGpus\x12\x1a\n" +
"\busedGpus\x18\x04 \x01(\x03R\busedGpus\x12\x16\n" +
"\x06podIds\x18\x05 \x03(\tR\x06podIds\";\n" +
"\x11NodeUsageResponse\x12&\n" +
"\x05usage\x18\x01 \x03(\v2\x10.agent.NodeUsageR\x05usage\"3\n" +
"\tUsageInfo\x12\x12\n" +
"\x04gpus\x18\x01 \x01(\x03R\x04gpus\x12\x12\n" +
"\x04cpus\x18\x02 \x01(\x03R\x04cpus\"\xa7\x03\n" +
"\tNodeUsage\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x18\n" +
"\agpuType\x18\x03 \x01(\tR\agpuType\x12\x18\n" +
"\acpuType\x18\x04 \x01(\tR\acpuType\x120\n" +
"\n" +
"totalUsage\x18\x05 \x01(\v2\x10.agent.UsageInfoR\n" +
"totalUsage\x12.\n" +
"\tusedUsage\x18\x06 \x01(\v2\x10.agent.UsageInfoR\tusedUsage\x12J\n" +
"\x17usedSpotPriceLimitUsage\x18\a \x01(\v2\x10.agent.UsageInfoR\x17usedSpotPriceLimitUsage\x12H\n" +
"\x16usedSpotAsPriceGoUsage\x18\b \x01(\v2\x10.agent.UsageInfoR\x16usedSpotAsPriceGoUsage\x12\x1a\n" +
"\bfamilyId\x18\t \x01(\tR\bfamilyId\x12.\n" +
"\x12lowestPricePerUnit\x18\n" +
" \x01(\x02R\x12lowestPricePerUnit\"\x86\x01\n" +
"\x14CreateWsTokenRequest\x12\x1f\n" +
"\vcustomer_id\x18\x01 \x01(\tR\n" +
"customerId\x12\x17\n" +
"\auser_id\x18\x02 \x01(\tR\x06userId\x12\x19\n" +
"\bpod_name\x18\x03 \x01(\tR\apodName\x12\x19\n" +
"\bvnode_id\x18\x04 \x01(\tR\avnodeId\"n\n" +
"\x15CreateWsTokenResponse\x12%\n" +
"\x04code\x18\x01 \x01(\x0e2\x11.agent.ActionCodeR\x04code\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\x12\x14\n" +
"\x05token\x18\x03 \x01(\tR\x05token\"\x92\x01\n" +
"\fQuotaRequest\x12\x1e\n" +
"\n" +
"customerId\x18\x01 \x01(\tR\n" +
"customerId\x12\x16\n" +
"\x06userId\x18\x02 \x01(\tR\x06userId\x12@\n" +
"\x05quota\x18\x03 \x01(\v2%.k8s.io.api.core.v1.ResourceQuotaSpecH\x00R\x05quota\x88\x01\x01B\b\n" +
"\x06_quota\"c\n" +
"\x13QuotaStatusResponse\x12B\n" +
"\x05quota\x18\x01 \x01(\v2'.k8s.io.api.core.v1.ResourceQuotaStatusH\x00R\x05quota\x88\x01\x01B\b\n" +
"\x06_quota\"A\n" +
"\rQuotaResponse\x12\x16\n" +
"\x06result\x18\x01 \x01(\bR\x06result\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\"n\n" +
"\x12GetInstanceRequest\x12\x1e\n" +
"\n" +
"customerId\x18\x01 \x01(\tR\n" +
"customerId\x12\x16\n" +
"\x06userId\x18\x02 \x01(\tR\x06userId\x12 \n" +
"\vInstanceIds\x18\x03 \x03(\tR\vInstanceIds\"7\n" +
"\x13GetInstanceResponse\x12 \n" +
"\vInstanceIds\x18\x01 \x03(\tR\vInstanceIds\"\xc8\x01\n" +
"\x11FamilySpecRequest\x12W\n" +
"\x0fproductQuantity\x18\x01 \x03(\v2-.agent.FamilySpecRequest.ProductQuantityEntryR\x0fproductQuantity\x1aZ\n" +
"\x14ProductQuantityEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12,\n" +
"\x05value\x18\x02 \x01(\v2\x16.agent.ProductQuantityR\x05value:\x028\x01\"F\n" +
"\x12FamilySpecResponse\x12\x16\n" +
"\x06result\x18\x01 \x01(\bR\x06result\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\"\x87\x02\n" +
"\x10DataCacheRequest\x125\n" +
"\anetwork\x18\x01 \x01(\v2\x1b.agent.DataCacheNetworkInfoR\anetwork\x12\x14\n" +
"\x05image\x18\x02 \x01(\tR\x05image\x12+\n" +
"\x04dest\x18\x03 \x01(\v2\x17.agent.DataCacheOptionsR\x04dest\x12/\n" +
"\x06source\x18\x04 \x01(\v2\x17.agent.DataCacheOptionsR\x06source\x12\x0e\n" +
"\x02id\x18\x05 \x01(\tR\x02id\x12\x1f\n" +
"\vcustomer_id\x18\x06 \x01(\tR\n" +
"customerId\x12\x17\n" +
"\auser_id\x18\a \x01(\tR\x06userId\"\xc0\x02\n" +
"\x10DataCacheOptions\x12\x12\n" +
"\x04type\x18\x01 \x01(\tR\x04type\x12\x12\n" +
"\x04path\x18\x02 \x01(\tR\x04path\x12\x10\n" +
"\x03url\x18\x03 \x01(\tR\x03url\x12\x16\n" +
"\x06server\x18\x04 \x01(\tR\x06server\x12\x1c\n" +
"\totherOpts\x18\x05 \x01(\tR\totherOpts\x12\x16\n" +
"\x06bucket\x18\x06 \x01(\tR\x06bucket\x12\x12\n" +
"\x04akId\x18\a \x01(\tR\x04akId\x12\x1a\n" +
"\bakSecret\x18\b \x01(\tR\bakSecret\x12 \n" +
"\vaccessToken\x18\t \x01(\tR\vaccessToken\x12\x1e\n" +
"\n" +
"repoSource\x18\n" +
" \x01(\tR\n" +
"repoSource\x12\x16\n" +
"\x06repoId\x18\v \x01(\tR\x06repoId\x12\x1a\n" +
"\brevision\x18\f \x01(\tR\brevision\"T\n" +
"\x11DataCacheResponse\x12%\n" +
"\x04code\x18\x01 \x01(\x0e2\x11.agent.ActionCodeR\x04code\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\"f\n" +
"\x14DataCacheNetworkInfo\x12\x0e\n" +
"\x02ip\x18\x01 \x01(\tR\x02ip\x12\x12\n" +
"\x04vlan\x18\x02 \x01(\tR\x04vlan\x12\x18\n" +
"\agateway\x18\x03 \x01(\tR\agateway\x12\x10\n" +
"\x03dns\x18\x04 \x01(\tR\x03dns\"@\n" +
"\fEventRequest\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n" +
"\tnamespace\x18\x02 \x01(\tR\tnamespace\"\x9a\x01\n" +
"\bPodEvent\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
"\x04type\x18\x02 \x01(\tR\x04type\x12\x18\n" +
"\amessage\x18\x03 \x01(\tR\amessage\x12&\n" +
"\x0efirstTimestamp\x18\x04 \x01(\tR\x0efirstTimestamp\x12$\n" +
"\rlastTimestamp\x18\x05 \x01(\tR\rlastTimestamp\"8\n" +
"\rEventResponse\x12'\n" +
"\x06events\x18\x01 \x03(\v2\x0f.agent.PodEventR\x06events*4\n" +
"\n" +
"ActionCode\x12\x0f\n" +
"\vSuccessCode\x10\x00\x12\x15\n" +
"\bFailCode\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01*E\n" +
"\fSpotStrategy\x12\n" +
"\n" +
"\x06NoSpot\x10\x00\x12\x16\n" +
"\x12SpotWithPriceLimit\x10\x01\x12\x11\n" +
"\rSpotAsPriceGo\x10\x02*L\n" +
"\n" +
"DeleteCode\x12\v\n" +
"\aDefault\x10\x00\x12\x0e\n" +
"\n" +
"SpotFailed\x10\x01\x12\x0f\n" +
"\vSpotDelayed\x10\x02\x12\x10\n" +
"\fSpotCanceled\x10\x032\xdf\n" +
"\n" +
"\x05Agent\x124\n" +
"\tCreatePod\x12\x11.agent.PodRequest\x1a\x12.agent.PodResponse\"\x00\x124\n" +
"\tUpdatePod\x12\x11.agent.PodRequest\x1a\x12.agent.PodResponse\"\x00\x12:\n" +
"\tDeletePod\x12\x17.agent.PodDeleteRequest\x1a\x12.agent.PodResponse\"\x00\x12:\n" +
"\tRebootPod\x12\x17.agent.PodRebootRequest\x1a\x12.agent.PodResponse\"\x00\x129\n" +
"\x06GetPod\x12\x15.agent.PodInfoRequest\x1a\x16.agent.PodInfoResponse\"\x00\x12:\n" +
"\aGetPods\x12\x15.agent.PodInfoRequest\x1a\x16.agent.PodInfoResponse\"\x00\x12?\n" +
"\fGetPodStatus\x12\x15.agent.PodInfoRequest\x1a\x16.agent.PodInfoResponse\"\x00\x12:\n" +
"\vGetPodEvent\x12\x13.agent.EventRequest\x1a\x14.agent.EventResponse\"\x00\x12?\n" +
"\x12CheckResourceQuota\x12\x11.agent.PodRequest\x1a\x14.agent.QuotaResponse\"\x00\x12E\n" +
"\x10GetResourceQuota\x12\x13.agent.QuotaRequest\x1a\x1a.agent.QuotaStatusResponse\"\x00\x12?\n" +
"\x10SetResourceQuota\x12\x13.agent.QuotaRequest\x1a\x14.agent.QuotaResponse\"\x00\x127\n" +
"\n" +
"CreateNode\x12\x12.agent.NodeRequest\x1a\x13.agent.NodeResponse\"\x00\x127\n" +
"\n" +
"UpdateNode\x12\x12.agent.NodeRequest\x1a\x13.agent.NodeResponse\"\x00\x127\n" +
"\n" +
"DeleteNode\x12\x12.agent.NodeRequest\x1a\x13.agent.NodeResponse\"\x00\x12L\n" +
"\x0fGetNodeGpuUsage\x12\x1a.agent.NodeGpuUsageRequest\x1a\x1b.agent.NodeGpuUsageResponse\"\x00\x12C\n" +
"\fGetNodeUsage\x12\x17.agent.NodeUsageRequest\x1a\x18.agent.NodeUsageResponse\"\x00\x12L\n" +
"\rCreateWsToken\x12\x1b.agent.CreateWsTokenRequest\x1a\x1c.agent.CreateWsTokenResponse\"\x00\x12J\n" +
"\x0fGetECIInstances\x12\x19.agent.GetInstanceRequest\x1a\x1a.agent.GetInstanceResponse\"\x00\x12M\n" +
"\x14UpdateFamilySpecInfo\x12\x18.agent.FamilySpecRequest\x1a\x19.agent.FamilySpecResponse\"\x00\x12F\n" +
"\x0fCreateDataCache\x12\x17.agent.DataCacheRequest\x1a\x18.agent.DataCacheResponse\"\x00\x12F\n" +
"\x0fDeleteDataCache\x12\x17.agent.DataCacheRequest\x1a\x18.agent.DataCacheResponse\"\x00B\tZ\a./agentb\x06proto3"
var (
file_agent_proto_rawDescOnce sync.Once
file_agent_proto_rawDescData []byte
)
func file_agent_proto_rawDescGZIP() []byte {
file_agent_proto_rawDescOnce.Do(func() {
file_agent_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_agent_proto_rawDesc), len(file_agent_proto_rawDesc)))
})
return file_agent_proto_rawDescData
}
var file_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
var file_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 46)
var file_agent_proto_goTypes = []any{
(ActionCode)(0), // 0: agent.ActionCode
(SpotStrategy)(0), // 1: agent.SpotStrategy
(DeleteCode)(0), // 2: agent.DeleteCode
(*NetworkInfo)(nil), // 3: agent.NetworkInfo
(*Env)(nil), // 4: agent.Env
(*ConfigMapVolume)(nil), // 5: agent.ConfigMapVolume
(*SecretVolume)(nil), // 6: agent.SecretVolume
(*NASVolumeInfo)(nil), // 7: agent.NASVolumeInfo
(*Pod)(nil), // 8: agent.Pod
(*PodRequest)(nil), // 9: agent.PodRequest
(*PodDeleteRequest)(nil), // 10: agent.PodDeleteRequest
(*PodRebootRequest)(nil), // 11: agent.PodRebootRequest
(*PodResponse)(nil), // 12: agent.PodResponse
(*Pods)(nil), // 13: agent.Pods
(*PodInfoRequest)(nil), // 14: agent.PodInfoRequest
(*PodInfoResponse)(nil), // 15: agent.PodInfoResponse
(*IpPoolSegments)(nil), // 16: agent.IpPoolSegments
(*PrivateNet)(nil), // 17: agent.PrivateNet
(*QuantityInfo)(nil), // 18: agent.QuantityInfo
(*ProductQuantity)(nil), // 19: agent.ProductQuantity
(*NodeQuantity)(nil), // 20: agent.NodeQuantity
(*NodeRequest)(nil), // 21: agent.NodeRequest
(*NodeResponse)(nil), // 22: agent.NodeResponse
(*NodeGpuUsageRequest)(nil), // 23: agent.NodeGpuUsageRequest
(*NodeUsageRequest)(nil), // 24: agent.NodeUsageRequest
(*NodeGpuUsageResponse)(nil), // 25: agent.NodeGpuUsageResponse
(*NodeGpuUsage)(nil), // 26: agent.NodeGpuUsage
(*NodeUsageResponse)(nil), // 27: agent.NodeUsageResponse
(*UsageInfo)(nil), // 28: agent.UsageInfo
(*NodeUsage)(nil), // 29: agent.NodeUsage
(*CreateWsTokenRequest)(nil), // 30: agent.CreateWsTokenRequest
(*CreateWsTokenResponse)(nil), // 31: agent.CreateWsTokenResponse
(*QuotaRequest)(nil), // 32: agent.QuotaRequest
(*QuotaStatusResponse)(nil), // 33: agent.QuotaStatusResponse
(*QuotaResponse)(nil), // 34: agent.QuotaResponse
(*GetInstanceRequest)(nil), // 35: agent.GetInstanceRequest
(*GetInstanceResponse)(nil), // 36: agent.GetInstanceResponse
(*FamilySpecRequest)(nil), // 37: agent.FamilySpecRequest
(*FamilySpecResponse)(nil), // 38: agent.FamilySpecResponse
(*DataCacheRequest)(nil), // 39: agent.DataCacheRequest
(*DataCacheOptions)(nil), // 40: agent.DataCacheOptions
(*DataCacheResponse)(nil), // 41: agent.DataCacheResponse
(*DataCacheNetworkInfo)(nil), // 42: agent.DataCacheNetworkInfo
(*EventRequest)(nil), // 43: agent.EventRequest
(*PodEvent)(nil), // 44: agent.PodEvent
(*EventResponse)(nil), // 45: agent.EventResponse
nil, // 46: agent.NodeRequest.IpPoolSegmentsEntry
nil, // 47: agent.NodeRequest.LabelsEntry
nil, // 48: agent.FamilySpecRequest.ProductQuantityEntry
(*v1.ConfigMap)(nil), // 49: k8s.io.api.core.v1.ConfigMap
(*v1.ConfigMapVolumeSource)(nil), // 50: k8s.io.api.core.v1.ConfigMapVolumeSource
(*v1.Secret)(nil), // 51: k8s.io.api.core.v1.Secret
(*v1.SecretVolumeSource)(nil), // 52: k8s.io.api.core.v1.SecretVolumeSource
(*v1.Pod)(nil), // 53: k8s.io.api.core.v1.Pod
(*v1.Taint)(nil), // 54: k8s.io.api.core.v1.Taint
(*v1.ResourceQuotaSpec)(nil), // 55: k8s.io.api.core.v1.ResourceQuotaSpec
(*v1.ResourceQuotaStatus)(nil), // 56: k8s.io.api.core.v1.ResourceQuotaStatus
}
var file_agent_proto_depIdxs = []int32{
49, // 0: agent.ConfigMapVolume.source:type_name -> k8s.io.api.core.v1.ConfigMap
50, // 1: agent.ConfigMapVolume.volume:type_name -> k8s.io.api.core.v1.ConfigMapVolumeSource
51, // 2: agent.SecretVolume.source:type_name -> k8s.io.api.core.v1.Secret
52, // 3: agent.SecretVolume.volume:type_name -> k8s.io.api.core.v1.SecretVolumeSource
3, // 4: agent.Pod.network:type_name -> agent.NetworkInfo
53, // 5: agent.Pod.rawPod:type_name -> k8s.io.api.core.v1.Pod
8, // 6: agent.PodRequest.pods:type_name -> agent.Pod
51, // 7: agent.PodRequest.secrets:type_name -> k8s.io.api.core.v1.Secret
49, // 8: agent.PodRequest.configMaps:type_name -> k8s.io.api.core.v1.ConfigMap
7, // 9: agent.PodRequest.nas_volumes:type_name -> agent.NASVolumeInfo
2, // 10: agent.PodDeleteRequest.code:type_name -> agent.DeleteCode
0, // 11: agent.PodResponse.code:type_name -> agent.ActionCode
3, // 12: agent.Pods.network:type_name -> agent.NetworkInfo
53, // 13: agent.Pods.pod:type_name -> k8s.io.api.core.v1.Pod
0, // 14: agent.PodInfoResponse.code:type_name -> agent.ActionCode
13, // 15: agent.PodInfoResponse.pods:type_name -> agent.Pods
18, // 16: agent.ProductQuantity.quantity:type_name -> agent.QuantityInfo
46, // 17: agent.NodeRequest.ip_pool_segments:type_name -> agent.NodeRequest.IpPoolSegmentsEntry
17, // 18: agent.NodeRequest.private_net:type_name -> agent.PrivateNet
54, // 19: agent.NodeRequest.Taints:type_name -> k8s.io.api.core.v1.Taint
47, // 20: agent.NodeRequest.labels:type_name -> agent.NodeRequest.LabelsEntry
20, // 21: agent.NodeRequest.nodeQuantity:type_name -> agent.NodeQuantity
0, // 22: agent.NodeResponse.code:type_name -> agent.ActionCode
0, // 23: agent.NodeGpuUsageResponse.code:type_name -> agent.ActionCode
26, // 24: agent.NodeGpuUsageResponse.node_gpu_usage:type_name -> agent.NodeGpuUsage
29, // 25: agent.NodeUsageResponse.usage:type_name -> agent.NodeUsage
28, // 26: agent.NodeUsage.totalUsage:type_name -> agent.UsageInfo
28, // 27: agent.NodeUsage.usedUsage:type_name -> agent.UsageInfo
28, // 28: agent.NodeUsage.usedSpotPriceLimitUsage:type_name -> agent.UsageInfo
28, // 29: agent.NodeUsage.usedSpotAsPriceGoUsage:type_name -> agent.UsageInfo
0, // 30: agent.CreateWsTokenResponse.code:type_name -> agent.ActionCode
55, // 31: agent.QuotaRequest.quota:type_name -> k8s.io.api.core.v1.ResourceQuotaSpec
56, // 32: agent.QuotaStatusResponse.quota:type_name -> k8s.io.api.core.v1.ResourceQuotaStatus
48, // 33: agent.FamilySpecRequest.productQuantity:type_name -> agent.FamilySpecRequest.ProductQuantityEntry
42, // 34: agent.DataCacheRequest.network:type_name -> agent.DataCacheNetworkInfo
40, // 35: agent.DataCacheRequest.dest:type_name -> agent.DataCacheOptions
40, // 36: agent.DataCacheRequest.source:type_name -> agent.DataCacheOptions
0, // 37: agent.DataCacheResponse.code:type_name -> agent.ActionCode
44, // 38: agent.EventResponse.events:type_name -> agent.PodEvent
16, // 39: agent.NodeRequest.IpPoolSegmentsEntry.value:type_name -> agent.IpPoolSegments
19, // 40: agent.FamilySpecRequest.ProductQuantityEntry.value:type_name -> agent.ProductQuantity
9, // 41: agent.Agent.CreatePod:input_type -> agent.PodRequest
9, // 42: agent.Agent.UpdatePod:input_type -> agent.PodRequest
10, // 43: agent.Agent.DeletePod:input_type -> agent.PodDeleteRequest
11, // 44: agent.Agent.RebootPod:input_type -> agent.PodRebootRequest
14, // 45: agent.Agent.GetPod:input_type -> agent.PodInfoRequest
14, // 46: agent.Agent.GetPods:input_type -> agent.PodInfoRequest
14, // 47: agent.Agent.GetPodStatus:input_type -> agent.PodInfoRequest
43, // 48: agent.Agent.GetPodEvent:input_type -> agent.EventRequest
9, // 49: agent.Agent.CheckResourceQuota:input_type -> agent.PodRequest
32, // 50: agent.Agent.GetResourceQuota:input_type -> agent.QuotaRequest
32, // 51: agent.Agent.SetResourceQuota:input_type -> agent.QuotaRequest
21, // 52: agent.Agent.CreateNode:input_type -> agent.NodeRequest
21, // 53: agent.Agent.UpdateNode:input_type -> agent.NodeRequest
21, // 54: agent.Agent.DeleteNode:input_type -> agent.NodeRequest
23, // 55: agent.Agent.GetNodeGpuUsage:input_type -> agent.NodeGpuUsageRequest
24, // 56: agent.Agent.GetNodeUsage:input_type -> agent.NodeUsageRequest
30, // 57: agent.Agent.CreateWsToken:input_type -> agent.CreateWsTokenRequest
35, // 58: agent.Agent.GetECIInstances:input_type -> agent.GetInstanceRequest
37, // 59: agent.Agent.UpdateFamilySpecInfo:input_type -> agent.FamilySpecRequest
39, // 60: agent.Agent.CreateDataCache:input_type -> agent.DataCacheRequest
39, // 61: agent.Agent.DeleteDataCache:input_type -> agent.DataCacheRequest
12, // 62: agent.Agent.CreatePod:output_type -> agent.PodResponse
12, // 63: agent.Agent.UpdatePod:output_type -> agent.PodResponse
12, // 64: agent.Agent.DeletePod:output_type -> agent.PodResponse
12, // 65: agent.Agent.RebootPod:output_type -> agent.PodResponse
15, // 66: agent.Agent.GetPod:output_type -> agent.PodInfoResponse
15, // 67: agent.Agent.GetPods:output_type -> agent.PodInfoResponse
15, // 68: agent.Agent.GetPodStatus:output_type -> agent.PodInfoResponse
45, // 69: agent.Agent.GetPodEvent:output_type -> agent.EventResponse
34, // 70: agent.Agent.CheckResourceQuota:output_type -> agent.QuotaResponse
33, // 71: agent.Agent.GetResourceQuota:output_type -> agent.QuotaStatusResponse
34, // 72: agent.Agent.SetResourceQuota:output_type -> agent.QuotaResponse
22, // 73: agent.Agent.CreateNode:output_type -> agent.NodeResponse
22, // 74: agent.Agent.UpdateNode:output_type -> agent.NodeResponse
22, // 75: agent.Agent.DeleteNode:output_type -> agent.NodeResponse
25, // 76: agent.Agent.GetNodeGpuUsage:output_type -> agent.NodeGpuUsageResponse
27, // 77: agent.Agent.GetNodeUsage:output_type -> agent.NodeUsageResponse
31, // 78: agent.Agent.CreateWsToken:output_type -> agent.CreateWsTokenResponse
36, // 79: agent.Agent.GetECIInstances:output_type -> agent.GetInstanceResponse
38, // 80: agent.Agent.UpdateFamilySpecInfo:output_type -> agent.FamilySpecResponse
41, // 81: agent.Agent.CreateDataCache:output_type -> agent.DataCacheResponse
41, // 82: agent.Agent.DeleteDataCache:output_type -> agent.DataCacheResponse
62, // [62:83] is the sub-list for method output_type
41, // [41:62] is the sub-list for method input_type
41, // [41:41] is the sub-list for extension type_name
41, // [41:41] is the sub-list for extension extendee
0, // [0:41] is the sub-list for field type_name
}
func init() { file_agent_proto_init() }
func file_agent_proto_init() {
if File_agent_proto != nil {
return
}
file_agent_proto_msgTypes[2].OneofWrappers = []any{}
file_agent_proto_msgTypes[3].OneofWrappers = []any{}
file_agent_proto_msgTypes[5].OneofWrappers = []any{}
file_agent_proto_msgTypes[10].OneofWrappers = []any{}
file_agent_proto_msgTypes[29].OneofWrappers = []any{}
file_agent_proto_msgTypes[30].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_agent_proto_rawDesc), len(file_agent_proto_rawDesc)),
NumEnums: 3,
NumMessages: 46,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_agent_proto_goTypes,
DependencyIndexes: file_agent_proto_depIdxs,
EnumInfos: file_agent_proto_enumTypes,
MessageInfos: file_agent_proto_msgTypes,
}.Build()
File_agent_proto = out.File
file_agent_proto_goTypes = nil
file_agent_proto_depIdxs = nil
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/capitalonline2025/eci-grpc.git
git@gitee.com:capitalonline2025/eci-grpc.git
capitalonline2025
eci-grpc
eci-grpc
v1.1.89

搜索帮助