Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ require (
github.com/stretchr/objx v0.5.3 // indirect
golang.org/x/exp v0.0.0-20260112195511-716be5621a96 // indirect
golang.org/x/text v0.33.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20260128011058-8636f8732409 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260128011058-8636f8732409 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20260203192932-546029d2fa20 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260203192932-546029d2fa20 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ golang.org/x/exp v0.0.0-20260112195511-716be5621a96 h1:Z/6YuSHTLOHfNFdb8zVZomZr7
golang.org/x/exp v0.0.0-20260112195511-716be5621a96/go.mod h1:nzimsREAkjBCIEFtHiYkrJyT+2uy9YZJB7H1k68CXZU=
golang.org/x/text v0.33.0 h1:B3njUFyqtHDUI5jMn1YIr5B0IE2U0qck04r6d4KPAxE=
golang.org/x/text v0.33.0/go.mod h1:LuMebE6+rBincTi9+xWTY8TztLzKHc/9C1uBCG27+q8=
google.golang.org/genproto/googleapis/api v0.0.0-20260128011058-8636f8732409 h1:merA0rdPeUV3YIIfHHcH4qBkiQAc1nfCKSI7lB4cV2M=
google.golang.org/genproto/googleapis/api v0.0.0-20260128011058-8636f8732409/go.mod h1:fl8J1IvUjCilwZzQowmw2b7HQB2eAuYBabMXzWurF+I=
google.golang.org/genproto/googleapis/rpc v0.0.0-20260128011058-8636f8732409 h1:H86B94AW+VfJWDqFeEbBPhEtHzJwJfTbgE2lZa54ZAQ=
google.golang.org/genproto/googleapis/rpc v0.0.0-20260128011058-8636f8732409/go.mod h1:j9x/tPzZkyxcgEFkiKEEGxfvyumM01BEtsW8xzOahRQ=
google.golang.org/genproto/googleapis/api v0.0.0-20260203192932-546029d2fa20 h1:7ei4lp52gK1uSejlA8AZl5AJjeLUOHBQscRQZUgAcu0=
google.golang.org/genproto/googleapis/api v0.0.0-20260203192932-546029d2fa20/go.mod h1:ZdbssH/1SOVnjnDlXzxDHK2MCidiqXtbYccJNzNYPEE=
google.golang.org/genproto/googleapis/rpc v0.0.0-20260203192932-546029d2fa20 h1:Jr5R2J6F6qWyzINc+4AM8t5pfUz6beZpHp678GNrMbE=
google.golang.org/genproto/googleapis/rpc v0.0.0-20260203192932-546029d2fa20/go.mod h1:j9x/tPzZkyxcgEFkiKEEGxfvyumM01BEtsW8xzOahRQ=
google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE=
google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
Expand Down
235 changes: 233 additions & 2 deletions js/metalstack/admin/v2/machine_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegen
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb";
import { file_metalstack_api_v2_common } from "../../api/v2/common_pb";
import type { Machine, MachineQuery } from "../../api/v2/machine_pb";
import type { Machine, MachineBMCCommand, MachineBMCQuery, MachineBMCReport, MachineQuery } from "../../api/v2/machine_pb";
import { file_metalstack_api_v2_machine } from "../../api/v2/machine_pb";
import { file_metalstack_api_v2_predefined_rules } from "../../api/v2/predefined_rules_pb";
import type { Message } from "@bufbuild/protobuf";
Expand All @@ -15,7 +15,7 @@ import type { Message } from "@bufbuild/protobuf";
* Describes the file metalstack/admin/v2/machine.proto.
*/
export const file_metalstack_admin_v2_machine: GenFile = /*@__PURE__*/
fileDesc("CiFtZXRhbHN0YWNrL2FkbWluL3YyL21hY2hpbmUucHJvdG8SE21ldGFsc3RhY2suYWRtaW4udjIiMgoYTWFjaGluZVNlcnZpY2VHZXRSZXF1ZXN0EhYKBHV1aWQYASABKAlCCLpIBXIDsAEBIkgKGU1hY2hpbmVTZXJ2aWNlR2V0UmVzcG9uc2USKwoHbWFjaGluZRgBIAEoCzIaLm1ldGFsc3RhY2suYXBpLnYyLk1hY2hpbmUifgoZTWFjaGluZVNlcnZpY2VMaXN0UmVxdWVzdBIuCgVxdWVyeRgBIAEoCzIfLm1ldGFsc3RhY2suYXBpLnYyLk1hY2hpbmVRdWVyeRIjCglwYXJ0aXRpb24YAiABKAlCC7pICHIG0LOusQIBSACIAQFCDAoKX3BhcnRpdGlvbiJKChpNYWNoaW5lU2VydmljZUxpc3RSZXNwb25zZRIsCghtYWNoaW5lcxgBIAMoCzIaLm1ldGFsc3RhY2suYXBpLnYyLk1hY2hpbmUy9wEKDk1hY2hpbmVTZXJ2aWNlEnAKA0dldBItLm1ldGFsc3RhY2suYWRtaW4udjIuTWFjaGluZVNlcnZpY2VHZXRSZXF1ZXN0Gi4ubWV0YWxzdGFjay5hZG1pbi52Mi5NYWNoaW5lU2VydmljZUdldFJlc3BvbnNlIgrS8xgCAQLg8xgCEnMKBExpc3QSLi5tZXRhbHN0YWNrLmFkbWluLnYyLk1hY2hpbmVTZXJ2aWNlTGlzdFJlcXVlc3QaLy5tZXRhbHN0YWNrLmFkbWluLnYyLk1hY2hpbmVTZXJ2aWNlTGlzdFJlc3BvbnNlIgrS8xgCAQLg8xgCQtABChdjb20ubWV0YWxzdGFjay5hZG1pbi52MkIMTWFjaGluZVByb3RvUAFaOWdpdGh1Yi5jb20vbWV0YWwtc3RhY2svYXBpL2dvL21ldGFsc3RhY2svYWRtaW4vdjI7YWRtaW52MqICA01BWKoCE01ldGFsc3RhY2suQWRtaW4uVjLKAhNNZXRhbHN0YWNrXEFkbWluXFYy4gIfTWV0YWxzdGFja1xBZG1pblxWMlxHUEJNZXRhZGF0YeoCFU1ldGFsc3RhY2s6OkFkbWluOjpWMmIGcHJvdG8z", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_machine, file_metalstack_api_v2_predefined_rules]);
fileDesc("CiFtZXRhbHN0YWNrL2FkbWluL3YyL21hY2hpbmUucHJvdG8SE21ldGFsc3RhY2suYWRtaW4udjIiMgoYTWFjaGluZVNlcnZpY2VHZXRSZXF1ZXN0EhYKBHV1aWQYASABKAlCCLpIBXIDsAEBIkgKGU1hY2hpbmVTZXJ2aWNlR2V0UmVzcG9uc2USKwoHbWFjaGluZRgBIAEoCzIaLm1ldGFsc3RhY2suYXBpLnYyLk1hY2hpbmUifgoZTWFjaGluZVNlcnZpY2VMaXN0UmVxdWVzdBIuCgVxdWVyeRgBIAEoCzIfLm1ldGFsc3RhY2suYXBpLnYyLk1hY2hpbmVRdWVyeRIjCglwYXJ0aXRpb24YAiABKAlCC7pICHIG0LOusQIBSACIAQFCDAoKX3BhcnRpdGlvbiJKChpNYWNoaW5lU2VydmljZUxpc3RSZXNwb25zZRIsCghtYWNoaW5lcxgBIAMoCzIaLm1ldGFsc3RhY2suYXBpLnYyLk1hY2hpbmUiegofTWFjaGluZVNlcnZpY2VCTUNDb21tYW5kUmVxdWVzdBIWCgR1dWlkGAEgASgJQgi6SAVyA7ABARI/Cgdjb21tYW5kGAIgASgOMiQubWV0YWxzdGFjay5hcGkudjIuTWFjaGluZUJNQ0NvbW1hbmRCCLpIBYIBAhABIiIKIE1hY2hpbmVTZXJ2aWNlQk1DQ29tbWFuZFJlc3BvbnNlIjUKG01hY2hpbmVTZXJ2aWNlR2V0Qk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jJiBnByb3RvMw", [file_buf_validate_validate, file_metalstack_api_v2_common, file_metalstack_api_v2_machine, file_metalstack_api_v2_predefined_rules]);

/**
* MachineServiceGetRequest is the request payload for a machine get request
Expand Down Expand Up @@ -109,6 +109,197 @@ export type MachineServiceListResponse = Message<"metalstack.admin.v2.MachineSer
export const MachineServiceListResponseSchema: GenMessage<MachineServiceListResponse> = /*@__PURE__*/
messageDesc(file_metalstack_admin_v2_machine, 3);

/**
* MachineServiceBMCCommandRequest is the request payload for a machine bmc command
*
* @generated from message metalstack.admin.v2.MachineServiceBMCCommandRequest
*/
export type MachineServiceBMCCommandRequest = Message<"metalstack.admin.v2.MachineServiceBMCCommandRequest"> & {
/**
* UUID of the machine to send the command to
*
* @generated from field: string uuid = 1;
*/
uuid: string;

/**
* Command to send to the bmc of the machine
*
* @generated from field: metalstack.api.v2.MachineBMCCommand command = 2;
*/
command: MachineBMCCommand;
};

/**
* Describes the message metalstack.admin.v2.MachineServiceBMCCommandRequest.
* Use `create(MachineServiceBMCCommandRequestSchema)` to create a new message.
*/
export const MachineServiceBMCCommandRequestSchema: GenMessage<MachineServiceBMCCommandRequest> = /*@__PURE__*/
messageDesc(file_metalstack_admin_v2_machine, 4);

/**
* MachineServiceBMCCommandResponse is the response payload for a machine bmc command
*
* @generated from message metalstack.admin.v2.MachineServiceBMCCommandResponse
*/
export type MachineServiceBMCCommandResponse = Message<"metalstack.admin.v2.MachineServiceBMCCommandResponse"> & {
};

/**
* Describes the message metalstack.admin.v2.MachineServiceBMCCommandResponse.
* Use `create(MachineServiceBMCCommandResponseSchema)` to create a new message.
*/
export const MachineServiceBMCCommandResponseSchema: GenMessage<MachineServiceBMCCommandResponse> = /*@__PURE__*/
messageDesc(file_metalstack_admin_v2_machine, 5);

/**
* MachineServiceGetBMCRequest is the request payload for a machine getbmc request
*
* @generated from message metalstack.admin.v2.MachineServiceGetBMCRequest
*/
export type MachineServiceGetBMCRequest = Message<"metalstack.admin.v2.MachineServiceGetBMCRequest"> & {
/**
* UUID of the machine to get
*
* @generated from field: string uuid = 1;
*/
uuid: string;
};

/**
* Describes the message metalstack.admin.v2.MachineServiceGetBMCRequest.
* Use `create(MachineServiceGetBMCRequestSchema)` to create a new message.
*/
export const MachineServiceGetBMCRequestSchema: GenMessage<MachineServiceGetBMCRequest> = /*@__PURE__*/
messageDesc(file_metalstack_admin_v2_machine, 6);

/**
* MachineServiceGetBMCResponse is the response payload for a machine getbmc request
*
* @generated from message metalstack.admin.v2.MachineServiceGetBMCResponse
*/
export type MachineServiceGetBMCResponse = Message<"metalstack.admin.v2.MachineServiceGetBMCResponse"> & {
/**
* UUID of the machine
*
* @generated from field: string uuid = 1;
*/
uuid: string;

/**
* BMC contains the BMC details of this machine
*
* @generated from field: metalstack.api.v2.MachineBMCReport bmc = 2;
*/
bmc?: MachineBMCReport;
};

/**
* Describes the message metalstack.admin.v2.MachineServiceGetBMCResponse.
* Use `create(MachineServiceGetBMCResponseSchema)` to create a new message.
*/
export const MachineServiceGetBMCResponseSchema: GenMessage<MachineServiceGetBMCResponse> = /*@__PURE__*/
messageDesc(file_metalstack_admin_v2_machine, 7);

/**
* MachineServiceListBMCRequest is the request payload for a machine listbmc request
*
* @generated from message metalstack.admin.v2.MachineServiceListBMCRequest
*/
export type MachineServiceListBMCRequest = Message<"metalstack.admin.v2.MachineServiceListBMCRequest"> & {
/**
* Query to list one ore more bmcs of more machines
*
* @generated from field: metalstack.api.v2.MachineBMCQuery query = 1;
*/
query?: MachineBMCQuery;
};

/**
* Describes the message metalstack.admin.v2.MachineServiceListBMCRequest.
* Use `create(MachineServiceListBMCRequestSchema)` to create a new message.
*/
export const MachineServiceListBMCRequestSchema: GenMessage<MachineServiceListBMCRequest> = /*@__PURE__*/
messageDesc(file_metalstack_admin_v2_machine, 8);

/**
* MachineServiceListBMCResponse is the response payload for a machine listbmc request
*
* @generated from message metalstack.admin.v2.MachineServiceListBMCResponse
*/
export type MachineServiceListBMCResponse = Message<"metalstack.admin.v2.MachineServiceListBMCResponse"> & {
/**
* BMCReports maps the bmc report per machine uuid
*
* @generated from field: map<string, metalstack.api.v2.MachineBMCReport> bmc_reports = 1;
*/
bmcReports: { [key: string]: MachineBMCReport };
};

/**
* Describes the message metalstack.admin.v2.MachineServiceListBMCResponse.
* Use `create(MachineServiceListBMCResponseSchema)` to create a new message.
*/
export const MachineServiceListBMCResponseSchema: GenMessage<MachineServiceListBMCResponse> = /*@__PURE__*/
messageDesc(file_metalstack_admin_v2_machine, 9);

/**
* MachineServiceConsolePasswordRequest is the request to get the console password
*
* @generated from message metalstack.admin.v2.MachineServiceConsolePasswordRequest
*/
export type MachineServiceConsolePasswordRequest = Message<"metalstack.admin.v2.MachineServiceConsolePasswordRequest"> & {
/**
* UUID of the machine to get
*
* @generated from field: string uuid = 1;
*/
uuid: string;

/**
* Reason must be provided why access to the console is requested.
* Reason is only forwarded to an audit sink
*
* @generated from field: string reason = 2;
*/
reason: string;
};

/**
* Describes the message metalstack.admin.v2.MachineServiceConsolePasswordRequest.
* Use `create(MachineServiceConsolePasswordRequestSchema)` to create a new message.
*/
export const MachineServiceConsolePasswordRequestSchema: GenMessage<MachineServiceConsolePasswordRequest> = /*@__PURE__*/
messageDesc(file_metalstack_admin_v2_machine, 10);

/**
* MachineServiceConsolePasswordResponse is the response to the console password request
*
* @generated from message metalstack.admin.v2.MachineServiceConsolePasswordResponse
*/
export type MachineServiceConsolePasswordResponse = Message<"metalstack.admin.v2.MachineServiceConsolePasswordResponse"> & {
/**
* UUID of the machine to get
*
* @generated from field: string uuid = 1;
*/
uuid: string;

/**
* Password to access the console
*
* @generated from field: string password = 2;
*/
password: string;
};

/**
* Describes the message metalstack.admin.v2.MachineServiceConsolePasswordResponse.
* Use `create(MachineServiceConsolePasswordResponseSchema)` to create a new message.
*/
export const MachineServiceConsolePasswordResponseSchema: GenMessage<MachineServiceConsolePasswordResponse> = /*@__PURE__*/
messageDesc(file_metalstack_admin_v2_machine, 11);

/**
* MachineService serves machine related functions
*
Expand All @@ -135,6 +326,46 @@ export const MachineService: GenService<{
input: typeof MachineServiceListRequestSchema;
output: typeof MachineServiceListResponseSchema;
},
/**
* BMCCommand send a command to the bmc of a machine
*
* @generated from rpc metalstack.admin.v2.MachineService.BMCCommand
*/
bMCCommand: {
methodKind: "unary";
input: typeof MachineServiceBMCCommandRequestSchema;
output: typeof MachineServiceBMCCommandResponseSchema;
},
/**
* GetBMC returns the BMC details of a machine
*
* @generated from rpc metalstack.admin.v2.MachineService.GetBMC
*/
getBMC: {
methodKind: "unary";
input: typeof MachineServiceGetBMCRequestSchema;
output: typeof MachineServiceGetBMCResponseSchema;
},
/**
* ListBMC returns the BMC details of many machines
*
* @generated from rpc metalstack.admin.v2.MachineService.ListBMC
*/
listBMC: {
methodKind: "unary";
input: typeof MachineServiceListBMCRequestSchema;
output: typeof MachineServiceListBMCResponseSchema;
},
/**
* ConsolePassword returns the password to access the serial console of the machine
*
* @generated from rpc metalstack.admin.v2.MachineService.ConsolePassword
*/
consolePassword: {
methodKind: "unary";
input: typeof MachineServiceConsolePasswordRequestSchema;
output: typeof MachineServiceConsolePasswordResponseSchema;
},
}> = /*@__PURE__*/
serviceDesc(file_metalstack_admin_v2_machine, 0);

Loading
Loading