Documentation ¶
Index ¶
- Variables
- func RegisterDoguAdministrationServer(s grpc.ServiceRegistrar, srv DoguAdministrationServer)
- type Dogu
- func (*Dogu) Descriptor() ([]byte, []int)deprecated
- func (x *Dogu) GetDescription() string
- func (x *Dogu) GetDisplayName() string
- func (x *Dogu) GetLogLevel() string
- func (x *Dogu) GetName() string
- func (x *Dogu) GetTags() []string
- func (x *Dogu) GetVersion() string
- func (*Dogu) ProtoMessage()
- func (x *Dogu) ProtoReflect() protoreflect.Message
- func (x *Dogu) Reset()
- func (x *Dogu) String() string
- type DoguAdministrationClient
- type DoguAdministrationRequest
- func (*DoguAdministrationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DoguAdministrationRequest) GetDoguName() string
- func (*DoguAdministrationRequest) ProtoMessage()
- func (x *DoguAdministrationRequest) ProtoReflect() protoreflect.Message
- func (x *DoguAdministrationRequest) Reset()
- func (x *DoguAdministrationRequest) String() string
- type DoguAdministrationServer
- type DoguBlueprinitIdRequest
- type DoguBlueprintIdResponse
- func (*DoguBlueprintIdResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DoguBlueprintIdResponse) GetBlueprintId() string
- func (*DoguBlueprintIdResponse) ProtoMessage()
- func (x *DoguBlueprintIdResponse) ProtoReflect() protoreflect.Message
- func (x *DoguBlueprintIdResponse) Reset()
- func (x *DoguBlueprintIdResponse) String() string
- type DoguListRequest
- type DoguListResponse
- type UnimplementedDoguAdministrationServer
- func (UnimplementedDoguAdministrationServer) GetBlueprintId(context.Context, *DoguBlueprinitIdRequest) (*DoguBlueprintIdResponse, error)
- func (UnimplementedDoguAdministrationServer) GetDoguList(context.Context, *DoguListRequest) (*DoguListResponse, error)
- func (UnimplementedDoguAdministrationServer) RestartDogu(context.Context, *DoguAdministrationRequest) (*types.BasicResponse, error)
- func (UnimplementedDoguAdministrationServer) StartDogu(context.Context, *DoguAdministrationRequest) (*types.BasicResponse, error)
- func (UnimplementedDoguAdministrationServer) StopDogu(context.Context, *DoguAdministrationRequest) (*types.BasicResponse, error)
- type UnsafeDoguAdministrationServer
Constants ¶
This section is empty.
Variables ¶
var DoguAdministration_ServiceDesc = grpc.ServiceDesc{ ServiceName: "doguAdministration.DoguAdministration", HandlerType: (*DoguAdministrationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetDoguList", Handler: _DoguAdministration_GetDoguList_Handler, }, { MethodName: "GetBlueprintId", Handler: _DoguAdministration_GetBlueprintId_Handler, }, { MethodName: "StartDogu", Handler: _DoguAdministration_StartDogu_Handler, }, { MethodName: "StopDogu", Handler: _DoguAdministration_StopDogu_Handler, }, { MethodName: "RestartDogu", Handler: _DoguAdministration_RestartDogu_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "doguAdministration.proto", }
DoguAdministration_ServiceDesc is the grpc.ServiceDesc for DoguAdministration service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_doguAdministration_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDoguAdministrationServer ¶
func RegisterDoguAdministrationServer(s grpc.ServiceRegistrar, srv DoguAdministrationServer)
Types ¶
type Dogu ¶
type Dogu struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` DisplayName string `protobuf:"bytes,2,opt,name=displayName,proto3" json:"displayName,omitempty"` Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` LogLevel string `protobuf:"bytes,6,opt,name=logLevel,proto3" json:"logLevel,omitempty"` // contains filtered or unexported fields }
func (*Dogu) Descriptor
deprecated
func (*Dogu) GetDescription ¶
func (*Dogu) GetDisplayName ¶
func (*Dogu) GetLogLevel ¶ added in v1.3.0
func (*Dogu) GetVersion ¶
func (*Dogu) ProtoMessage ¶
func (*Dogu) ProtoMessage()
func (*Dogu) ProtoReflect ¶
func (x *Dogu) ProtoReflect() protoreflect.Message
type DoguAdministrationClient ¶
type DoguAdministrationClient interface { // getDogusToAdminList returns the list of dogus to administrate GetDoguList(ctx context.Context, in *DoguListRequest, opts ...grpc.CallOption) (*DoguListResponse, error) // getBlueprintId returns the currently installed blueprint id GetBlueprintId(ctx context.Context, in *DoguBlueprinitIdRequest, opts ...grpc.CallOption) (*DoguBlueprintIdResponse, error) // StartDogu starts a dogu StartDogu(ctx context.Context, in *DoguAdministrationRequest, opts ...grpc.CallOption) (*types.BasicResponse, error) // StopDogu stops a dogu StopDogu(ctx context.Context, in *DoguAdministrationRequest, opts ...grpc.CallOption) (*types.BasicResponse, error) // RestartDogu restarts a dogu RestartDogu(ctx context.Context, in *DoguAdministrationRequest, opts ...grpc.CallOption) (*types.BasicResponse, error) }
DoguAdministrationClient is the client API for DoguAdministration service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDoguAdministrationClient ¶
func NewDoguAdministrationClient(cc grpc.ClientConnInterface) DoguAdministrationClient
type DoguAdministrationRequest ¶
type DoguAdministrationRequest struct { DoguName string `protobuf:"bytes,1,opt,name=dogu_name,json=doguName,proto3" json:"dogu_name,omitempty"` // contains filtered or unexported fields }
func (*DoguAdministrationRequest) Descriptor
deprecated
func (*DoguAdministrationRequest) Descriptor() ([]byte, []int)
Deprecated: Use DoguAdministrationRequest.ProtoReflect.Descriptor instead.
func (*DoguAdministrationRequest) GetDoguName ¶
func (x *DoguAdministrationRequest) GetDoguName() string
func (*DoguAdministrationRequest) ProtoMessage ¶
func (*DoguAdministrationRequest) ProtoMessage()
func (*DoguAdministrationRequest) ProtoReflect ¶
func (x *DoguAdministrationRequest) ProtoReflect() protoreflect.Message
func (*DoguAdministrationRequest) Reset ¶
func (x *DoguAdministrationRequest) Reset()
func (*DoguAdministrationRequest) String ¶
func (x *DoguAdministrationRequest) String() string
type DoguAdministrationServer ¶
type DoguAdministrationServer interface { // getDogusToAdminList returns the list of dogus to administrate GetDoguList(context.Context, *DoguListRequest) (*DoguListResponse, error) // getBlueprintId returns the currently installed blueprint id GetBlueprintId(context.Context, *DoguBlueprinitIdRequest) (*DoguBlueprintIdResponse, error) // StartDogu starts a dogu StartDogu(context.Context, *DoguAdministrationRequest) (*types.BasicResponse, error) // StopDogu stops a dogu StopDogu(context.Context, *DoguAdministrationRequest) (*types.BasicResponse, error) // RestartDogu restarts a dogu RestartDogu(context.Context, *DoguAdministrationRequest) (*types.BasicResponse, error) // contains filtered or unexported methods }
DoguAdministrationServer is the server API for DoguAdministration service. All implementations must embed UnimplementedDoguAdministrationServer for forward compatibility
type DoguBlueprinitIdRequest ¶
type DoguBlueprinitIdRequest struct {
// contains filtered or unexported fields
}
DoguBlueprintId request is empty and is used instead of google.protobuf.Empty because of backward compatibility
func (*DoguBlueprinitIdRequest) Descriptor
deprecated
func (*DoguBlueprinitIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use DoguBlueprinitIdRequest.ProtoReflect.Descriptor instead.
func (*DoguBlueprinitIdRequest) ProtoMessage ¶
func (*DoguBlueprinitIdRequest) ProtoMessage()
func (*DoguBlueprinitIdRequest) ProtoReflect ¶
func (x *DoguBlueprinitIdRequest) ProtoReflect() protoreflect.Message
func (*DoguBlueprinitIdRequest) Reset ¶
func (x *DoguBlueprinitIdRequest) Reset()
func (*DoguBlueprinitIdRequest) String ¶
func (x *DoguBlueprinitIdRequest) String() string
type DoguBlueprintIdResponse ¶
type DoguBlueprintIdResponse struct { BlueprintId string `protobuf:"bytes,1,opt,name=blueprint_id,json=blueprintId,proto3" json:"blueprint_id,omitempty"` // contains filtered or unexported fields }
func (*DoguBlueprintIdResponse) Descriptor
deprecated
func (*DoguBlueprintIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use DoguBlueprintIdResponse.ProtoReflect.Descriptor instead.
func (*DoguBlueprintIdResponse) GetBlueprintId ¶
func (x *DoguBlueprintIdResponse) GetBlueprintId() string
func (*DoguBlueprintIdResponse) ProtoMessage ¶
func (*DoguBlueprintIdResponse) ProtoMessage()
func (*DoguBlueprintIdResponse) ProtoReflect ¶
func (x *DoguBlueprintIdResponse) ProtoReflect() protoreflect.Message
func (*DoguBlueprintIdResponse) Reset ¶
func (x *DoguBlueprintIdResponse) Reset()
func (*DoguBlueprintIdResponse) String ¶
func (x *DoguBlueprintIdResponse) String() string
type DoguListRequest ¶
type DoguListRequest struct {
// contains filtered or unexported fields
}
DoguListRequest is empty and is used instead of google.protobuf.Empty because of backward compability
func (*DoguListRequest) Descriptor
deprecated
func (*DoguListRequest) Descriptor() ([]byte, []int)
Deprecated: Use DoguListRequest.ProtoReflect.Descriptor instead.
func (*DoguListRequest) ProtoMessage ¶
func (*DoguListRequest) ProtoMessage()
func (*DoguListRequest) ProtoReflect ¶
func (x *DoguListRequest) ProtoReflect() protoreflect.Message
func (*DoguListRequest) Reset ¶
func (x *DoguListRequest) Reset()
func (*DoguListRequest) String ¶
func (x *DoguListRequest) String() string
type DoguListResponse ¶
type DoguListResponse struct { // list of dogus Dogus []*Dogu `protobuf:"bytes,1,rep,name=dogus,proto3" json:"dogus,omitempty"` // contains filtered or unexported fields }
func (*DoguListResponse) Descriptor
deprecated
func (*DoguListResponse) Descriptor() ([]byte, []int)
Deprecated: Use DoguListResponse.ProtoReflect.Descriptor instead.
func (*DoguListResponse) GetDogus ¶
func (x *DoguListResponse) GetDogus() []*Dogu
func (*DoguListResponse) ProtoMessage ¶
func (*DoguListResponse) ProtoMessage()
func (*DoguListResponse) ProtoReflect ¶
func (x *DoguListResponse) ProtoReflect() protoreflect.Message
func (*DoguListResponse) Reset ¶
func (x *DoguListResponse) Reset()
func (*DoguListResponse) String ¶
func (x *DoguListResponse) String() string
type UnimplementedDoguAdministrationServer ¶
type UnimplementedDoguAdministrationServer struct { }
UnimplementedDoguAdministrationServer must be embedded to have forward compatible implementations.
func (UnimplementedDoguAdministrationServer) GetBlueprintId ¶
func (UnimplementedDoguAdministrationServer) GetBlueprintId(context.Context, *DoguBlueprinitIdRequest) (*DoguBlueprintIdResponse, error)
func (UnimplementedDoguAdministrationServer) GetDoguList ¶
func (UnimplementedDoguAdministrationServer) GetDoguList(context.Context, *DoguListRequest) (*DoguListResponse, error)
func (UnimplementedDoguAdministrationServer) RestartDogu ¶
func (UnimplementedDoguAdministrationServer) RestartDogu(context.Context, *DoguAdministrationRequest) (*types.BasicResponse, error)
func (UnimplementedDoguAdministrationServer) StartDogu ¶
func (UnimplementedDoguAdministrationServer) StartDogu(context.Context, *DoguAdministrationRequest) (*types.BasicResponse, error)
func (UnimplementedDoguAdministrationServer) StopDogu ¶
func (UnimplementedDoguAdministrationServer) StopDogu(context.Context, *DoguAdministrationRequest) (*types.BasicResponse, error)
type UnsafeDoguAdministrationServer ¶
type UnsafeDoguAdministrationServer interface {
// contains filtered or unexported methods
}
UnsafeDoguAdministrationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DoguAdministrationServer will result in compilation errors.