v1

package
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2022 License: AGPL-3.0 Imports: 9 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_v1_event_proto protoreflect.FileDescriptor
View Source
var File_api_v1_supwd_proto protoreflect.FileDescriptor
View Source
var File_api_v1_wait_proto protoreflect.FileDescriptor

Functions

func RegisterEventServiceServer added in v0.17.0

func RegisterEventServiceServer(s *grpc.Server, srv EventServiceServer)

func RegisterSuperUserPasswordServer added in v0.10.2

func RegisterSuperUserPasswordServer(s *grpc.Server, srv SuperUserPasswordServer)

func RegisterWaitServer

func RegisterWaitServer(s *grpc.Server, srv WaitServer)

Types

type EventServiceClient added in v0.17.0

type EventServiceClient interface {
	Send(ctx context.Context, in *EventServiceSendRequest, opts ...grpc.CallOption) (*EventServiceSendResponse, error)
}

EventServiceClient is the client API for EventService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewEventServiceClient added in v0.17.0

func NewEventServiceClient(cc grpc.ClientConnInterface) EventServiceClient

type EventServiceSendRequest added in v0.17.0

type EventServiceSendRequest struct {
	Events map[string]*MachineProvisioningEvent `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*EventServiceSendRequest) Descriptor deprecated added in v0.17.0

func (*EventServiceSendRequest) Descriptor() ([]byte, []int)

Deprecated: Use EventServiceSendRequest.ProtoReflect.Descriptor instead.

func (*EventServiceSendRequest) GetEvents added in v0.17.0

func (*EventServiceSendRequest) ProtoMessage added in v0.17.0

func (*EventServiceSendRequest) ProtoMessage()

func (*EventServiceSendRequest) ProtoReflect added in v0.17.0

func (x *EventServiceSendRequest) ProtoReflect() protoreflect.Message

func (*EventServiceSendRequest) Reset added in v0.17.0

func (x *EventServiceSendRequest) Reset()

func (*EventServiceSendRequest) String added in v0.17.0

func (x *EventServiceSendRequest) String() string

type EventServiceSendResponse added in v0.17.0

type EventServiceSendResponse struct {

	// number of events stored
	Events uint64 `protobuf:"varint,1,opt,name=events,proto3" json:"events,omitempty"`
	// slice of machineIDs for which event was not published
	Failed []string `protobuf:"bytes,2,rep,name=failed,proto3" json:"failed,omitempty"`
	// contains filtered or unexported fields
}

func (*EventServiceSendResponse) Descriptor deprecated added in v0.17.0

func (*EventServiceSendResponse) Descriptor() ([]byte, []int)

Deprecated: Use EventServiceSendResponse.ProtoReflect.Descriptor instead.

func (*EventServiceSendResponse) GetEvents added in v0.17.0

func (x *EventServiceSendResponse) GetEvents() uint64

func (*EventServiceSendResponse) GetFailed added in v0.17.0

func (x *EventServiceSendResponse) GetFailed() []string

func (*EventServiceSendResponse) ProtoMessage added in v0.17.0

func (*EventServiceSendResponse) ProtoMessage()

func (*EventServiceSendResponse) ProtoReflect added in v0.17.0

func (x *EventServiceSendResponse) ProtoReflect() protoreflect.Message

func (*EventServiceSendResponse) Reset added in v0.17.0

func (x *EventServiceSendResponse) Reset()

func (*EventServiceSendResponse) String added in v0.17.0

func (x *EventServiceSendResponse) String() string

type EventServiceServer added in v0.17.0

type EventServiceServer interface {
	Send(context.Context, *EventServiceSendRequest) (*EventServiceSendResponse, error)
}

EventServiceServer is the server API for EventService service.

type KeepPatientResponse added in v0.8.2

type KeepPatientResponse struct {
	// contains filtered or unexported fields
}

func (*KeepPatientResponse) Descriptor deprecated added in v0.8.2

func (*KeepPatientResponse) Descriptor() ([]byte, []int)

Deprecated: Use KeepPatientResponse.ProtoReflect.Descriptor instead.

func (*KeepPatientResponse) ProtoMessage added in v0.8.2

func (*KeepPatientResponse) ProtoMessage()

func (*KeepPatientResponse) ProtoReflect added in v0.8.2

func (x *KeepPatientResponse) ProtoReflect() protoreflect.Message

func (*KeepPatientResponse) Reset added in v0.8.2

func (x *KeepPatientResponse) Reset()

func (*KeepPatientResponse) String added in v0.8.2

func (x *KeepPatientResponse) String() string

type MachineProvisioningEvent added in v0.17.0

type MachineProvisioningEvent struct {

	// timestamp when the event occured
	Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
	// the event type
	// must be one of metal.ProvisioningEventType, otherwise event will be skipped
	// TODO should be migrated to be an enum
	Event string `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"`
	// an additional message describing the event more detailed
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*MachineProvisioningEvent) Descriptor deprecated added in v0.17.0

func (*MachineProvisioningEvent) Descriptor() ([]byte, []int)

Deprecated: Use MachineProvisioningEvent.ProtoReflect.Descriptor instead.

func (*MachineProvisioningEvent) GetEvent added in v0.17.0

func (x *MachineProvisioningEvent) GetEvent() string

func (*MachineProvisioningEvent) GetMessage added in v0.17.0

func (x *MachineProvisioningEvent) GetMessage() string

func (*MachineProvisioningEvent) GetTime added in v0.17.0

func (*MachineProvisioningEvent) ProtoMessage added in v0.17.0

func (*MachineProvisioningEvent) ProtoMessage()

func (*MachineProvisioningEvent) ProtoReflect added in v0.17.0

func (x *MachineProvisioningEvent) ProtoReflect() protoreflect.Message

func (*MachineProvisioningEvent) Reset added in v0.17.0

func (x *MachineProvisioningEvent) Reset()

func (*MachineProvisioningEvent) String added in v0.17.0

func (x *MachineProvisioningEvent) String() string

type SuperUserPasswordClient added in v0.10.2

type SuperUserPasswordClient interface {
	FetchSuperUserPassword(ctx context.Context, in *SuperUserPasswordRequest, opts ...grpc.CallOption) (*SuperUserPasswordResponse, error)
}

SuperUserPasswordClient is the client API for SuperUserPassword service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSuperUserPasswordClient added in v0.10.2

func NewSuperUserPasswordClient(cc grpc.ClientConnInterface) SuperUserPasswordClient

type SuperUserPasswordRequest added in v0.10.2

type SuperUserPasswordRequest struct {
	// contains filtered or unexported fields
}

func (*SuperUserPasswordRequest) Descriptor deprecated added in v0.10.2

func (*SuperUserPasswordRequest) Descriptor() ([]byte, []int)

Deprecated: Use SuperUserPasswordRequest.ProtoReflect.Descriptor instead.

func (*SuperUserPasswordRequest) ProtoMessage added in v0.10.2

func (*SuperUserPasswordRequest) ProtoMessage()

func (*SuperUserPasswordRequest) ProtoReflect added in v0.10.2

func (x *SuperUserPasswordRequest) ProtoReflect() protoreflect.Message

func (*SuperUserPasswordRequest) Reset added in v0.10.2

func (x *SuperUserPasswordRequest) Reset()

func (*SuperUserPasswordRequest) String added in v0.10.2

func (x *SuperUserPasswordRequest) String() string

type SuperUserPasswordResponse added in v0.10.2

type SuperUserPasswordResponse struct {
	FeatureDisabled   bool   `protobuf:"varint,1,opt,name=featureDisabled,proto3" json:"featureDisabled,omitempty"`
	SuperUserPassword string `protobuf:"bytes,2,opt,name=superUserPassword,proto3" json:"superUserPassword,omitempty"`
	// contains filtered or unexported fields
}

func (*SuperUserPasswordResponse) Descriptor deprecated added in v0.10.2

func (*SuperUserPasswordResponse) Descriptor() ([]byte, []int)

Deprecated: Use SuperUserPasswordResponse.ProtoReflect.Descriptor instead.

func (*SuperUserPasswordResponse) GetFeatureDisabled added in v0.10.2

func (x *SuperUserPasswordResponse) GetFeatureDisabled() bool

func (*SuperUserPasswordResponse) GetSuperUserPassword added in v0.10.2

func (x *SuperUserPasswordResponse) GetSuperUserPassword() string

func (*SuperUserPasswordResponse) ProtoMessage added in v0.10.2

func (*SuperUserPasswordResponse) ProtoMessage()

func (*SuperUserPasswordResponse) ProtoReflect added in v0.10.2

func (*SuperUserPasswordResponse) Reset added in v0.10.2

func (x *SuperUserPasswordResponse) Reset()

func (*SuperUserPasswordResponse) String added in v0.10.2

func (x *SuperUserPasswordResponse) String() string

type SuperUserPasswordServer added in v0.10.2

type SuperUserPasswordServer interface {
	FetchSuperUserPassword(context.Context, *SuperUserPasswordRequest) (*SuperUserPasswordResponse, error)
}

SuperUserPasswordServer is the server API for SuperUserPassword service.

type UnimplementedEventServiceServer added in v0.17.0

type UnimplementedEventServiceServer struct {
}

UnimplementedEventServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedEventServiceServer) Send added in v0.17.0

type UnimplementedSuperUserPasswordServer added in v0.10.2

type UnimplementedSuperUserPasswordServer struct {
}

UnimplementedSuperUserPasswordServer can be embedded to have forward compatible implementations.

func (*UnimplementedSuperUserPasswordServer) FetchSuperUserPassword added in v0.10.2

type UnimplementedWaitServer

type UnimplementedWaitServer struct {
}

UnimplementedWaitServer can be embedded to have forward compatible implementations.

func (*UnimplementedWaitServer) Wait

type WaitClient

type WaitClient interface {
	Wait(ctx context.Context, in *WaitRequest, opts ...grpc.CallOption) (Wait_WaitClient, error)
}

WaitClient is the client API for Wait service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewWaitClient

func NewWaitClient(cc grpc.ClientConnInterface) WaitClient

type WaitRequest

type WaitRequest struct {
	MachineID string `protobuf:"bytes,1,opt,name=machineID,proto3" json:"machineID,omitempty"`
	// contains filtered or unexported fields
}

func (*WaitRequest) Descriptor deprecated

func (*WaitRequest) Descriptor() ([]byte, []int)

Deprecated: Use WaitRequest.ProtoReflect.Descriptor instead.

func (*WaitRequest) GetMachineID

func (x *WaitRequest) GetMachineID() string

func (*WaitRequest) ProtoMessage

func (*WaitRequest) ProtoMessage()

func (*WaitRequest) ProtoReflect

func (x *WaitRequest) ProtoReflect() protoreflect.Message

func (*WaitRequest) Reset

func (x *WaitRequest) Reset()

func (*WaitRequest) String

func (x *WaitRequest) String() string

type WaitServer

type WaitServer interface {
	Wait(*WaitRequest, Wait_WaitServer) error
}

WaitServer is the server API for Wait service.

type Wait_WaitClient

type Wait_WaitClient interface {
	Recv() (*KeepPatientResponse, error)
	grpc.ClientStream
}

type Wait_WaitServer

type Wait_WaitServer interface {
	Send(*KeepPatientResponse) error
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL