Versions in this module Expand all Collapse all v0 v0.1.0 Feb 20, 2023 Changes in this version + var EventUpdate_Type_name = map[int32]string + var EventUpdate_Type_value = map[string]int32 + var File_protos_libvirt_proto protoreflect.FileDescriptor + var Instance_SpecialCase_name = map[int32]string + var Instance_SpecialCase_value = map[string]int32 + var Instance_State_name = map[int32]string + var Instance_State_value = map[string]int32 + var Libvirt_ServiceDesc = grpc.ServiceDesc + var Volume_State_name = map[int32]string + var Volume_State_value = map[string]int32 + func RegisterLibvirtServer(s grpc.ServiceRegistrar, srv LibvirtServer) + type Empty struct + func (*Empty) Descriptor() ([]byte, []int) + func (*Empty) ProtoMessage() + func (x *Empty) ProtoReflect() protoreflect.Message + func (x *Empty) Reset() + func (x *Empty) String() string + type Event struct + EventId string + Instance *Instance + Volume *Volume + func (*Event) Descriptor() ([]byte, []int) + func (*Event) ProtoMessage() + func (x *Event) GetEventId() string + func (x *Event) GetInstance() *Instance + func (x *Event) GetVolume() *Volume + func (x *Event) ProtoReflect() protoreflect.Message + func (x *Event) Reset() + func (x *Event) String() string + type EventUpdate struct + EventId string + Message string + Type EventUpdate_Type + func (*EventUpdate) Descriptor() ([]byte, []int) + func (*EventUpdate) ProtoMessage() + func (x *EventUpdate) GetEventId() string + func (x *EventUpdate) GetMessage() string + func (x *EventUpdate) GetType() EventUpdate_Type + func (x *EventUpdate) ProtoReflect() protoreflect.Message + func (x *EventUpdate) Reset() + func (x *EventUpdate) String() string + type EventUpdate_Type int32 + const EventUpdate_ASYNC + const EventUpdate_FAILED + const EventUpdate_STARTED + const EventUpdate_SUCCESS + const EventUpdate_UPDATE + func (EventUpdate_Type) Descriptor() protoreflect.EnumDescriptor + func (EventUpdate_Type) EnumDescriptor() ([]byte, []int) + func (EventUpdate_Type) Type() protoreflect.EnumType + func (x EventUpdate_Type) Enum() *EventUpdate_Type + func (x EventUpdate_Type) Number() protoreflect.EnumNumber + func (x EventUpdate_Type) String() string + type Instance struct + Biosdata string + Cores int32 + Id string + Memory int32 + NetworkInterfaces []*NetworkInterface + RootVolume string + SpecialCases []Instance_SpecialCase + State Instance_State + Volumes []string + func (*Instance) Descriptor() ([]byte, []int) + func (*Instance) ProtoMessage() + func (x *Instance) GetBiosdata() string + func (x *Instance) GetCores() int32 + func (x *Instance) GetId() string + func (x *Instance) GetMemory() int32 + func (x *Instance) GetNetworkInterfaces() []*NetworkInterface + func (x *Instance) GetRootVolume() string + func (x *Instance) GetSpecialCases() []Instance_SpecialCase + func (x *Instance) GetState() Instance_State + func (x *Instance) GetVolumes() []string + func (x *Instance) ProtoReflect() protoreflect.Message + func (x *Instance) Reset() + func (x *Instance) String() string + type Instance_SpecialCase int32 + const Instance_CONTROL_NETWORK + const Instance_ROUTER + func (Instance_SpecialCase) Descriptor() protoreflect.EnumDescriptor + func (Instance_SpecialCase) EnumDescriptor() ([]byte, []int) + func (Instance_SpecialCase) Type() protoreflect.EnumType + func (x Instance_SpecialCase) Enum() *Instance_SpecialCase + func (x Instance_SpecialCase) Number() protoreflect.EnumNumber + func (x Instance_SpecialCase) String() string + type Instance_State int32 + const Instance_CREATING + const Instance_DELETED + const Instance_DELETING + const Instance_ERROR + const Instance_PENDING + const Instance_RUNNING + const Instance_STARTING + const Instance_STOPPED + const Instance_STOPPING + func (Instance_State) Descriptor() protoreflect.EnumDescriptor + func (Instance_State) EnumDescriptor() ([]byte, []int) + func (Instance_State) Type() protoreflect.EnumType + func (x Instance_State) Enum() *Instance_State + func (x Instance_State) Number() protoreflect.EnumNumber + func (x Instance_State) String() string + type LibvirtClient interface + EventStream func(ctx context.Context, opts ...grpc.CallOption) (Libvirt_EventStreamClient, error) + InstanceStateChange func(ctx context.Context, in *Instance, opts ...grpc.CallOption) (*Empty, error) + VolumeStateChange func(ctx context.Context, in *Volume, opts ...grpc.CallOption) (*Empty, error) + func NewLibvirtClient(cc grpc.ClientConnInterface) LibvirtClient + type LibvirtServer interface + EventStream func(Libvirt_EventStreamServer) error + InstanceStateChange func(context.Context, *Instance) (*Empty, error) + VolumeStateChange func(context.Context, *Volume) (*Empty, error) + type Libvirt_EventStreamClient interface + Recv func() (*Event, error) + Send func(*EventUpdate) error + type Libvirt_EventStreamServer interface + Recv func() (*EventUpdate, error) + Send func(*Event) error + type NetworkInterface struct + Id string + Ip string + Mac string + Tagged bool + Vlan []int32 + Wan bool + func (*NetworkInterface) Descriptor() ([]byte, []int) + func (*NetworkInterface) ProtoMessage() + func (x *NetworkInterface) GetId() string + func (x *NetworkInterface) GetIp() string + func (x *NetworkInterface) GetMac() string + func (x *NetworkInterface) GetTagged() bool + func (x *NetworkInterface) GetVlan() []int32 + func (x *NetworkInterface) GetWan() bool + func (x *NetworkInterface) ProtoReflect() protoreflect.Message + func (x *NetworkInterface) Reset() + func (x *NetworkInterface) String() string + type UnimplementedLibvirtServer struct + func (UnimplementedLibvirtServer) EventStream(Libvirt_EventStreamServer) error + func (UnimplementedLibvirtServer) InstanceStateChange(context.Context, *Instance) (*Empty, error) + func (UnimplementedLibvirtServer) VolumeStateChange(context.Context, *Volume) (*Empty, error) + type UnsafeLibvirtServer interface + type Volume struct + Id string + Size int32 + SourceImage string + State Volume_State + func (*Volume) Descriptor() ([]byte, []int) + func (*Volume) ProtoMessage() + func (x *Volume) GetId() string + func (x *Volume) GetSize() int32 + func (x *Volume) GetSourceImage() string + func (x *Volume) GetState() Volume_State + func (x *Volume) ProtoReflect() protoreflect.Message + func (x *Volume) Reset() + func (x *Volume) String() string + type Volume_State int32 + const Volume_ATTACHED + const Volume_CREATING + const Volume_DELETED + const Volume_ERROR + const Volume_PENDING + const Volume_UNATTACHED + func (Volume_State) Descriptor() protoreflect.EnumDescriptor + func (Volume_State) EnumDescriptor() ([]byte, []int) + func (Volume_State) Type() protoreflect.EnumType + func (x Volume_State) Enum() *Volume_State + func (x Volume_State) Number() protoreflect.EnumNumber + func (x Volume_State) String() string