Documentation
¶
Overview ¶
Package hardware is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterHardwareServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterHardwareServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client HardwareServiceClient) error
- func RegisterHardwareServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterHardwareServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server HardwareServiceServer) error
- func RegisterHardwareServiceServer(s *grpc.Server, srv HardwareServiceServer)
- type DeleteRequest
- type Empty
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRequest) GetId() string
- func (x *GetRequest) GetIp() string
- func (x *GetRequest) GetMac() string
- func (*GetRequest) ProtoMessage()
- func (x *GetRequest) ProtoReflect() protoreflect.Message
- func (x *GetRequest) Reset()
- func (x *GetRequest) String() string
- type Hardware
- func (*Hardware) Descriptor() ([]byte, []int)deprecated
- func (x *Hardware) GetId() string
- func (x *Hardware) GetMetadata() string
- func (x *Hardware) GetNetwork() *Hardware_Network
- func (x *Hardware) GetVersion() int64
- func (*Hardware) ProtoMessage()
- func (x *Hardware) ProtoReflect() protoreflect.Message
- func (x *Hardware) Reset()
- func (x *Hardware) String() string
- type HardwareServiceClient
- type HardwareServiceServer
- type HardwareService_AllClient
- type HardwareService_AllServer
- type HardwareService_WatchClient
- type HardwareService_WatchServer
- type Hardware_DHCP
- func (*Hardware_DHCP) Descriptor() ([]byte, []int)deprecated
- func (x *Hardware_DHCP) GetArch() string
- func (x *Hardware_DHCP) GetHostname() string
- func (x *Hardware_DHCP) GetIfaceName() string
- func (x *Hardware_DHCP) GetIp() *Hardware_DHCP_IP
- func (x *Hardware_DHCP) GetLeaseTime() int64
- func (x *Hardware_DHCP) GetMac() string
- func (x *Hardware_DHCP) GetNameServers() []string
- func (x *Hardware_DHCP) GetTimeServers() []string
- func (x *Hardware_DHCP) GetUefi() bool
- func (*Hardware_DHCP) ProtoMessage()
- func (x *Hardware_DHCP) ProtoReflect() protoreflect.Message
- func (x *Hardware_DHCP) Reset()
- func (x *Hardware_DHCP) String() string
- type Hardware_DHCP_IP
- func (*Hardware_DHCP_IP) Descriptor() ([]byte, []int)deprecated
- func (x *Hardware_DHCP_IP) GetAddress() string
- func (x *Hardware_DHCP_IP) GetFamily() int64
- func (x *Hardware_DHCP_IP) GetGateway() string
- func (x *Hardware_DHCP_IP) GetNetmask() string
- func (*Hardware_DHCP_IP) ProtoMessage()
- func (x *Hardware_DHCP_IP) ProtoReflect() protoreflect.Message
- func (x *Hardware_DHCP_IP) Reset()
- func (x *Hardware_DHCP_IP) String() string
- type Hardware_Netboot
- func (*Hardware_Netboot) Descriptor() ([]byte, []int)deprecated
- func (x *Hardware_Netboot) GetAllowPxe() bool
- func (x *Hardware_Netboot) GetAllowWorkflow() bool
- func (x *Hardware_Netboot) GetIpxe() *Hardware_Netboot_IPXE
- func (x *Hardware_Netboot) GetOsie() *Hardware_Netboot_Osie
- func (*Hardware_Netboot) ProtoMessage()
- func (x *Hardware_Netboot) ProtoReflect() protoreflect.Message
- func (x *Hardware_Netboot) Reset()
- func (x *Hardware_Netboot) String() string
- type Hardware_Netboot_IPXE
- func (*Hardware_Netboot_IPXE) Descriptor() ([]byte, []int)deprecated
- func (x *Hardware_Netboot_IPXE) GetContents() string
- func (x *Hardware_Netboot_IPXE) GetUrl() string
- func (*Hardware_Netboot_IPXE) ProtoMessage()
- func (x *Hardware_Netboot_IPXE) ProtoReflect() protoreflect.Message
- func (x *Hardware_Netboot_IPXE) Reset()
- func (x *Hardware_Netboot_IPXE) String() string
- type Hardware_Netboot_Osie
- func (*Hardware_Netboot_Osie) Descriptor() ([]byte, []int)deprecated
- func (x *Hardware_Netboot_Osie) GetBaseUrl() string
- func (x *Hardware_Netboot_Osie) GetInitrd() string
- func (x *Hardware_Netboot_Osie) GetKernel() string
- func (*Hardware_Netboot_Osie) ProtoMessage()
- func (x *Hardware_Netboot_Osie) ProtoReflect() protoreflect.Message
- func (x *Hardware_Netboot_Osie) Reset()
- func (x *Hardware_Netboot_Osie) String() string
- type Hardware_Network
- func (*Hardware_Network) Descriptor() ([]byte, []int)deprecated
- func (x *Hardware_Network) GetInterfaces() []*Hardware_Network_Interface
- func (*Hardware_Network) ProtoMessage()
- func (x *Hardware_Network) ProtoReflect() protoreflect.Message
- func (x *Hardware_Network) Reset()
- func (x *Hardware_Network) String() string
- type Hardware_Network_Interface
- func (*Hardware_Network_Interface) Descriptor() ([]byte, []int)deprecated
- func (x *Hardware_Network_Interface) GetDhcp() *Hardware_DHCP
- func (x *Hardware_Network_Interface) GetNetboot() *Hardware_Netboot
- func (*Hardware_Network_Interface) ProtoMessage()
- func (x *Hardware_Network_Interface) ProtoReflect() protoreflect.Message
- func (x *Hardware_Network_Interface) Reset()
- func (x *Hardware_Network_Interface) String() string
- type PushRequest
- type UnimplementedHardwareServiceServer
- func (*UnimplementedHardwareServiceServer) All(*Empty, HardwareService_AllServer) error
- func (*UnimplementedHardwareServiceServer) ByID(context.Context, *GetRequest) (*Hardware, error)
- func (*UnimplementedHardwareServiceServer) ByIP(context.Context, *GetRequest) (*Hardware, error)
- func (*UnimplementedHardwareServiceServer) ByMAC(context.Context, *GetRequest) (*Hardware, error)
- func (*UnimplementedHardwareServiceServer) Delete(context.Context, *DeleteRequest) (*Empty, error)
- func (*UnimplementedHardwareServiceServer) Push(context.Context, *PushRequest) (*Empty, error)
- func (*UnimplementedHardwareServiceServer) Watch(*GetRequest, HardwareService_WatchServer) error
Constants ¶
This section is empty.
Variables ¶
var File_hardware_hardware_proto protoreflect.FileDescriptor
Functions ¶
func RegisterHardwareServiceHandler ¶
func RegisterHardwareServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterHardwareServiceHandler registers the http handlers for service HardwareService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterHardwareServiceHandlerClient ¶
func RegisterHardwareServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client HardwareServiceClient) error
RegisterHardwareServiceHandlerClient registers the http handlers for service HardwareService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "HardwareServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "HardwareServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "HardwareServiceClient" to call the correct interceptors.
func RegisterHardwareServiceHandlerFromEndpoint ¶
func RegisterHardwareServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterHardwareServiceHandlerFromEndpoint is same as RegisterHardwareServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterHardwareServiceHandlerServer ¶
func RegisterHardwareServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server HardwareServiceServer) error
RegisterHardwareServiceHandlerServer registers the http handlers for service HardwareService to "mux". UnaryRPC :call HardwareServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterHardwareServiceHandlerFromEndpoint instead.
func RegisterHardwareServiceServer ¶
func RegisterHardwareServiceServer(s *grpc.Server, srv HardwareServiceServer)
Types ¶
type DeleteRequest ¶
type DeleteRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetId ¶
func (x *DeleteRequest) GetId() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶ added in v0.2.0
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶ added in v0.2.0
func (x *Empty) ProtoReflect() protoreflect.Message
type GetRequest ¶
type GetRequest struct {
Mac string `protobuf:"bytes,1,opt,name=mac,proto3" json:"mac,omitempty"`
Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetId ¶
func (x *GetRequest) GetId() string
func (*GetRequest) GetIp ¶
func (x *GetRequest) GetIp() string
func (*GetRequest) GetMac ¶
func (x *GetRequest) GetMac() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶ added in v0.2.0
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type Hardware ¶
type Hardware struct {
Network *Hardware_Network `protobuf:"bytes,6,opt,name=network,proto3" json:"network,omitempty"`
Id string `protobuf:"bytes,7,opt,name=id,proto3" json:"id,omitempty"`
Version int64 `protobuf:"varint,8,opt,name=version,proto3" json:"version,omitempty"`
Metadata string `protobuf:"bytes,9,opt,name=metadata,proto3" json:"metadata,omitempty"`
// contains filtered or unexported fields
}
func (*Hardware) Descriptor
deprecated
func (*Hardware) GetMetadata ¶
func (*Hardware) GetNetwork ¶
func (x *Hardware) GetNetwork() *Hardware_Network
func (*Hardware) GetVersion ¶
func (*Hardware) ProtoMessage ¶
func (*Hardware) ProtoMessage()
func (*Hardware) ProtoReflect ¶ added in v0.2.0
func (x *Hardware) ProtoReflect() protoreflect.Message
type HardwareServiceClient ¶
type HardwareServiceClient interface {
// Push adds a new Hardware profile to the data store.
Push(ctx context.Context, in *PushRequest, opts ...grpc.CallOption) (*Empty, error)
// ByMac returns the Hardware with the given hardware MAC Address.
ByMAC(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*Hardware, error)
// ByIP returns the Hardware with the given IP Address.
ByIP(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*Hardware, error)
// ByID returns the Hardware with the given ID.
ByID(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*Hardware, error)
// All returns all of the Hardware profiles.
All(ctx context.Context, in *Empty, opts ...grpc.CallOption) (HardwareService_AllClient, error)
// Watch watches for events on the given hardware and streams the matching Hardware.
Watch(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (HardwareService_WatchClient, error)
// Delete deletes the given hardware from the data store.
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*Empty, error)
}
HardwareServiceClient is the client API for HardwareService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewHardwareServiceClient ¶
func NewHardwareServiceClient(cc grpc.ClientConnInterface) HardwareServiceClient
type HardwareServiceServer ¶
type HardwareServiceServer interface {
// Push adds a new Hardware profile to the data store.
Push(context.Context, *PushRequest) (*Empty, error)
// ByMac returns the Hardware with the given hardware MAC Address.
ByMAC(context.Context, *GetRequest) (*Hardware, error)
// ByIP returns the Hardware with the given IP Address.
ByIP(context.Context, *GetRequest) (*Hardware, error)
// ByID returns the Hardware with the given ID.
ByID(context.Context, *GetRequest) (*Hardware, error)
// All returns all of the Hardware profiles.
All(*Empty, HardwareService_AllServer) error
// Watch watches for events on the given hardware and streams the matching Hardware.
Watch(*GetRequest, HardwareService_WatchServer) error
// Delete deletes the given hardware from the data store.
Delete(context.Context, *DeleteRequest) (*Empty, error)
}
HardwareServiceServer is the server API for HardwareService service.
type HardwareService_AllClient ¶
type HardwareService_AllClient interface {
Recv() (*Hardware, error)
grpc.ClientStream
}
type HardwareService_AllServer ¶
type HardwareService_AllServer interface {
Send(*Hardware) error
grpc.ServerStream
}
type HardwareService_WatchClient ¶
type HardwareService_WatchClient interface {
Recv() (*Hardware, error)
grpc.ClientStream
}
type HardwareService_WatchServer ¶
type HardwareService_WatchServer interface {
Send(*Hardware) error
grpc.ServerStream
}
type Hardware_DHCP ¶
type Hardware_DHCP struct {
Mac string `protobuf:"bytes,1,opt,name=mac,proto3" json:"mac,omitempty"`
Hostname string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"`
LeaseTime int64 `protobuf:"varint,4,opt,name=lease_time,json=leaseTime,proto3" json:"lease_time,omitempty"`
NameServers []string `protobuf:"bytes,5,rep,name=name_servers,json=nameServers,proto3" json:"name_servers,omitempty"`
TimeServers []string `protobuf:"bytes,6,rep,name=time_servers,json=timeServers,proto3" json:"time_servers,omitempty"`
Arch string `protobuf:"bytes,8,opt,name=arch,proto3" json:"arch,omitempty"`
Uefi bool `protobuf:"varint,9,opt,name=uefi,proto3" json:"uefi,omitempty"`
IfaceName string `protobuf:"bytes,10,opt,name=iface_name,json=ifaceName,proto3" json:"iface_name,omitempty"`
Ip *Hardware_DHCP_IP `protobuf:"bytes,11,opt,name=ip,proto3" json:"ip,omitempty"`
// contains filtered or unexported fields
}
func (*Hardware_DHCP) Descriptor
deprecated
func (*Hardware_DHCP) Descriptor() ([]byte, []int)
Deprecated: Use Hardware_DHCP.ProtoReflect.Descriptor instead.
func (*Hardware_DHCP) GetArch ¶
func (x *Hardware_DHCP) GetArch() string
func (*Hardware_DHCP) GetHostname ¶
func (x *Hardware_DHCP) GetHostname() string
func (*Hardware_DHCP) GetIfaceName ¶
func (x *Hardware_DHCP) GetIfaceName() string
func (*Hardware_DHCP) GetIp ¶
func (x *Hardware_DHCP) GetIp() *Hardware_DHCP_IP
func (*Hardware_DHCP) GetLeaseTime ¶
func (x *Hardware_DHCP) GetLeaseTime() int64
func (*Hardware_DHCP) GetMac ¶
func (x *Hardware_DHCP) GetMac() string
func (*Hardware_DHCP) GetNameServers ¶
func (x *Hardware_DHCP) GetNameServers() []string
func (*Hardware_DHCP) GetTimeServers ¶
func (x *Hardware_DHCP) GetTimeServers() []string
func (*Hardware_DHCP) GetUefi ¶
func (x *Hardware_DHCP) GetUefi() bool
func (*Hardware_DHCP) ProtoMessage ¶
func (*Hardware_DHCP) ProtoMessage()
func (*Hardware_DHCP) ProtoReflect ¶ added in v0.2.0
func (x *Hardware_DHCP) ProtoReflect() protoreflect.Message
func (*Hardware_DHCP) Reset ¶
func (x *Hardware_DHCP) Reset()
func (*Hardware_DHCP) String ¶
func (x *Hardware_DHCP) String() string
type Hardware_DHCP_IP ¶
type Hardware_DHCP_IP struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
Netmask string `protobuf:"bytes,2,opt,name=netmask,proto3" json:"netmask,omitempty"`
Gateway string `protobuf:"bytes,3,opt,name=gateway,proto3" json:"gateway,omitempty"`
Family int64 `protobuf:"varint,4,opt,name=family,proto3" json:"family,omitempty"`
// contains filtered or unexported fields
}
func (*Hardware_DHCP_IP) Descriptor
deprecated
func (*Hardware_DHCP_IP) Descriptor() ([]byte, []int)
Deprecated: Use Hardware_DHCP_IP.ProtoReflect.Descriptor instead.
func (*Hardware_DHCP_IP) GetAddress ¶
func (x *Hardware_DHCP_IP) GetAddress() string
func (*Hardware_DHCP_IP) GetFamily ¶
func (x *Hardware_DHCP_IP) GetFamily() int64
func (*Hardware_DHCP_IP) GetGateway ¶
func (x *Hardware_DHCP_IP) GetGateway() string
func (*Hardware_DHCP_IP) GetNetmask ¶
func (x *Hardware_DHCP_IP) GetNetmask() string
func (*Hardware_DHCP_IP) ProtoMessage ¶
func (*Hardware_DHCP_IP) ProtoMessage()
func (*Hardware_DHCP_IP) ProtoReflect ¶ added in v0.2.0
func (x *Hardware_DHCP_IP) ProtoReflect() protoreflect.Message
func (*Hardware_DHCP_IP) Reset ¶
func (x *Hardware_DHCP_IP) Reset()
func (*Hardware_DHCP_IP) String ¶
func (x *Hardware_DHCP_IP) String() string
type Hardware_Netboot ¶
type Hardware_Netboot struct {
AllowPxe bool `protobuf:"varint,1,opt,name=allow_pxe,json=allowPxe,proto3" json:"allow_pxe,omitempty"`
AllowWorkflow bool `protobuf:"varint,2,opt,name=allow_workflow,json=allowWorkflow,proto3" json:"allow_workflow,omitempty"`
Ipxe *Hardware_Netboot_IPXE `protobuf:"bytes,3,opt,name=ipxe,proto3" json:"ipxe,omitempty"`
Osie *Hardware_Netboot_Osie `protobuf:"bytes,5,opt,name=osie,proto3" json:"osie,omitempty"`
// contains filtered or unexported fields
}
func (*Hardware_Netboot) Descriptor
deprecated
func (*Hardware_Netboot) Descriptor() ([]byte, []int)
Deprecated: Use Hardware_Netboot.ProtoReflect.Descriptor instead.
func (*Hardware_Netboot) GetAllowPxe ¶
func (x *Hardware_Netboot) GetAllowPxe() bool
func (*Hardware_Netboot) GetAllowWorkflow ¶
func (x *Hardware_Netboot) GetAllowWorkflow() bool
func (*Hardware_Netboot) GetIpxe ¶
func (x *Hardware_Netboot) GetIpxe() *Hardware_Netboot_IPXE
func (*Hardware_Netboot) GetOsie ¶
func (x *Hardware_Netboot) GetOsie() *Hardware_Netboot_Osie
func (*Hardware_Netboot) ProtoMessage ¶
func (*Hardware_Netboot) ProtoMessage()
func (*Hardware_Netboot) ProtoReflect ¶ added in v0.2.0
func (x *Hardware_Netboot) ProtoReflect() protoreflect.Message
func (*Hardware_Netboot) Reset ¶
func (x *Hardware_Netboot) Reset()
func (*Hardware_Netboot) String ¶
func (x *Hardware_Netboot) String() string
type Hardware_Netboot_IPXE ¶
type Hardware_Netboot_IPXE struct {
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
Contents string `protobuf:"bytes,2,opt,name=contents,proto3" json:"contents,omitempty"`
// contains filtered or unexported fields
}
func (*Hardware_Netboot_IPXE) Descriptor
deprecated
func (*Hardware_Netboot_IPXE) Descriptor() ([]byte, []int)
Deprecated: Use Hardware_Netboot_IPXE.ProtoReflect.Descriptor instead.
func (*Hardware_Netboot_IPXE) GetContents ¶
func (x *Hardware_Netboot_IPXE) GetContents() string
func (*Hardware_Netboot_IPXE) GetUrl ¶
func (x *Hardware_Netboot_IPXE) GetUrl() string
func (*Hardware_Netboot_IPXE) ProtoMessage ¶
func (*Hardware_Netboot_IPXE) ProtoMessage()
func (*Hardware_Netboot_IPXE) ProtoReflect ¶ added in v0.2.0
func (x *Hardware_Netboot_IPXE) ProtoReflect() protoreflect.Message
func (*Hardware_Netboot_IPXE) Reset ¶
func (x *Hardware_Netboot_IPXE) Reset()
func (*Hardware_Netboot_IPXE) String ¶
func (x *Hardware_Netboot_IPXE) String() string
type Hardware_Netboot_Osie ¶
type Hardware_Netboot_Osie struct {
BaseUrl string `protobuf:"bytes,1,opt,name=base_url,json=baseUrl,proto3" json:"base_url,omitempty"`
Kernel string `protobuf:"bytes,2,opt,name=kernel,proto3" json:"kernel,omitempty"`
Initrd string `protobuf:"bytes,3,opt,name=initrd,proto3" json:"initrd,omitempty"`
// contains filtered or unexported fields
}
func (*Hardware_Netboot_Osie) Descriptor
deprecated
func (*Hardware_Netboot_Osie) Descriptor() ([]byte, []int)
Deprecated: Use Hardware_Netboot_Osie.ProtoReflect.Descriptor instead.
func (*Hardware_Netboot_Osie) GetBaseUrl ¶
func (x *Hardware_Netboot_Osie) GetBaseUrl() string
func (*Hardware_Netboot_Osie) GetInitrd ¶
func (x *Hardware_Netboot_Osie) GetInitrd() string
func (*Hardware_Netboot_Osie) GetKernel ¶
func (x *Hardware_Netboot_Osie) GetKernel() string
func (*Hardware_Netboot_Osie) ProtoMessage ¶
func (*Hardware_Netboot_Osie) ProtoMessage()
func (*Hardware_Netboot_Osie) ProtoReflect ¶ added in v0.2.0
func (x *Hardware_Netboot_Osie) ProtoReflect() protoreflect.Message
func (*Hardware_Netboot_Osie) Reset ¶
func (x *Hardware_Netboot_Osie) Reset()
func (*Hardware_Netboot_Osie) String ¶
func (x *Hardware_Netboot_Osie) String() string
type Hardware_Network ¶
type Hardware_Network struct {
Interfaces []*Hardware_Network_Interface `protobuf:"bytes,3,rep,name=interfaces,proto3" json:"interfaces,omitempty"`
// contains filtered or unexported fields
}
func (*Hardware_Network) Descriptor
deprecated
func (*Hardware_Network) Descriptor() ([]byte, []int)
Deprecated: Use Hardware_Network.ProtoReflect.Descriptor instead.
func (*Hardware_Network) GetInterfaces ¶
func (x *Hardware_Network) GetInterfaces() []*Hardware_Network_Interface
func (*Hardware_Network) ProtoMessage ¶
func (*Hardware_Network) ProtoMessage()
func (*Hardware_Network) ProtoReflect ¶ added in v0.2.0
func (x *Hardware_Network) ProtoReflect() protoreflect.Message
func (*Hardware_Network) Reset ¶
func (x *Hardware_Network) Reset()
func (*Hardware_Network) String ¶
func (x *Hardware_Network) String() string
type Hardware_Network_Interface ¶
type Hardware_Network_Interface struct {
Dhcp *Hardware_DHCP `protobuf:"bytes,1,opt,name=dhcp,proto3" json:"dhcp,omitempty"`
Netboot *Hardware_Netboot `protobuf:"bytes,2,opt,name=netboot,proto3" json:"netboot,omitempty"`
// contains filtered or unexported fields
}
func (*Hardware_Network_Interface) Descriptor
deprecated
func (*Hardware_Network_Interface) Descriptor() ([]byte, []int)
Deprecated: Use Hardware_Network_Interface.ProtoReflect.Descriptor instead.
func (*Hardware_Network_Interface) GetDhcp ¶
func (x *Hardware_Network_Interface) GetDhcp() *Hardware_DHCP
func (*Hardware_Network_Interface) GetNetboot ¶
func (x *Hardware_Network_Interface) GetNetboot() *Hardware_Netboot
func (*Hardware_Network_Interface) ProtoMessage ¶
func (*Hardware_Network_Interface) ProtoMessage()
func (*Hardware_Network_Interface) ProtoReflect ¶ added in v0.2.0
func (x *Hardware_Network_Interface) ProtoReflect() protoreflect.Message
func (*Hardware_Network_Interface) Reset ¶
func (x *Hardware_Network_Interface) Reset()
func (*Hardware_Network_Interface) String ¶
func (x *Hardware_Network_Interface) String() string
type PushRequest ¶
type PushRequest struct {
Data *Hardware `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*PushRequest) Descriptor
deprecated
func (*PushRequest) Descriptor() ([]byte, []int)
Deprecated: Use PushRequest.ProtoReflect.Descriptor instead.
func (*PushRequest) GetData ¶
func (x *PushRequest) GetData() *Hardware
func (*PushRequest) ProtoMessage ¶
func (*PushRequest) ProtoMessage()
func (*PushRequest) ProtoReflect ¶ added in v0.2.0
func (x *PushRequest) ProtoReflect() protoreflect.Message
func (*PushRequest) Reset ¶
func (x *PushRequest) Reset()
func (*PushRequest) String ¶
func (x *PushRequest) String() string
type UnimplementedHardwareServiceServer ¶
type UnimplementedHardwareServiceServer struct {
}
UnimplementedHardwareServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedHardwareServiceServer) All ¶
func (*UnimplementedHardwareServiceServer) All(*Empty, HardwareService_AllServer) error
func (*UnimplementedHardwareServiceServer) ByID ¶
func (*UnimplementedHardwareServiceServer) ByID(context.Context, *GetRequest) (*Hardware, error)
func (*UnimplementedHardwareServiceServer) ByIP ¶
func (*UnimplementedHardwareServiceServer) ByIP(context.Context, *GetRequest) (*Hardware, error)
func (*UnimplementedHardwareServiceServer) ByMAC ¶
func (*UnimplementedHardwareServiceServer) ByMAC(context.Context, *GetRequest) (*Hardware, error)
func (*UnimplementedHardwareServiceServer) Delete ¶
func (*UnimplementedHardwareServiceServer) Delete(context.Context, *DeleteRequest) (*Empty, error)
func (*UnimplementedHardwareServiceServer) Push ¶
func (*UnimplementedHardwareServiceServer) Push(context.Context, *PushRequest) (*Empty, error)
func (*UnimplementedHardwareServiceServer) Watch ¶
func (*UnimplementedHardwareServiceServer) Watch(*GetRequest, HardwareService_WatchServer) error