Documentation ¶
Index ¶
- Variables
- func RegisterDaemonServiceServer(s grpc.ServiceRegistrar, srv DaemonServiceServer)
- type DaemonServiceClient
- type DaemonServiceServer
- type DownRequest
- type DownResponse
- type GetConfigRequest
- type GetConfigResponse
- func (*GetConfigResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetConfigResponse) GetAdminURL() string
- func (x *GetConfigResponse) GetConfigFile() string
- func (x *GetConfigResponse) GetLogFile() string
- func (x *GetConfigResponse) GetManagementUrl() string
- func (x *GetConfigResponse) GetPreSharedKey() string
- func (*GetConfigResponse) ProtoMessage()
- func (x *GetConfigResponse) ProtoReflect() protoreflect.Message
- func (x *GetConfigResponse) Reset()
- func (x *GetConfigResponse) String() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetAdminURL() string
- func (x *LoginRequest) GetManagementUrl() string
- func (x *LoginRequest) GetPreSharedKey() string
- func (x *LoginRequest) GetSetupKey() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetNeedsSSOLogin() bool
- func (x *LoginResponse) GetUserCode() string
- func (x *LoginResponse) GetVerificationURI() string
- func (x *LoginResponse) GetVerificationURIComplete() string
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- type StatusRequest
- type StatusResponse
- type UnimplementedDaemonServiceServer
- func (UnimplementedDaemonServiceServer) Down(context.Context, *DownRequest) (*DownResponse, error)
- func (UnimplementedDaemonServiceServer) GetConfig(context.Context, *GetConfigRequest) (*GetConfigResponse, error)
- func (UnimplementedDaemonServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedDaemonServiceServer) Status(context.Context, *StatusRequest) (*StatusResponse, error)
- func (UnimplementedDaemonServiceServer) Up(context.Context, *UpRequest) (*UpResponse, error)
- func (UnimplementedDaemonServiceServer) WaitSSOLogin(context.Context, *WaitSSOLoginRequest) (*WaitSSOLoginResponse, error)
- type UnsafeDaemonServiceServer
- type UpRequest
- type UpResponse
- type WaitSSOLoginRequest
- func (*WaitSSOLoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WaitSSOLoginRequest) GetUserCode() string
- func (*WaitSSOLoginRequest) ProtoMessage()
- func (x *WaitSSOLoginRequest) ProtoReflect() protoreflect.Message
- func (x *WaitSSOLoginRequest) Reset()
- func (x *WaitSSOLoginRequest) String() string
- type WaitSSOLoginResponse
Constants ¶
This section is empty.
Variables ¶
var DaemonService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "daemon.DaemonService", HandlerType: (*DaemonServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _DaemonService_Login_Handler, }, { MethodName: "WaitSSOLogin", Handler: _DaemonService_WaitSSOLogin_Handler, }, { MethodName: "Up", Handler: _DaemonService_Up_Handler, }, { MethodName: "Status", Handler: _DaemonService_Status_Handler, }, { MethodName: "Down", Handler: _DaemonService_Down_Handler, }, { MethodName: "GetConfig", Handler: _DaemonService_GetConfig_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "daemon.proto", }
DaemonService_ServiceDesc is the grpc.ServiceDesc for DaemonService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_daemon_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDaemonServiceServer ¶
func RegisterDaemonServiceServer(s grpc.ServiceRegistrar, srv DaemonServiceServer)
Types ¶
type DaemonServiceClient ¶
type DaemonServiceClient interface { // Login uses setup key to prepare configuration for the daemon. Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) // WaitSSOLogin uses the userCode to validate the TokenInfo and // waits for the user to continue with the login on a browser WaitSSOLogin(ctx context.Context, in *WaitSSOLoginRequest, opts ...grpc.CallOption) (*WaitSSOLoginResponse, error) // Up starts engine work in the daemon. Up(ctx context.Context, in *UpRequest, opts ...grpc.CallOption) (*UpResponse, error) // Status of the service. Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) // Down engine work in the daemon. Down(ctx context.Context, in *DownRequest, opts ...grpc.CallOption) (*DownResponse, error) // GetConfig of the daemon. GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error) }
DaemonServiceClient is the client API for DaemonService 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 NewDaemonServiceClient ¶
func NewDaemonServiceClient(cc grpc.ClientConnInterface) DaemonServiceClient
type DaemonServiceServer ¶
type DaemonServiceServer interface { // Login uses setup key to prepare configuration for the daemon. Login(context.Context, *LoginRequest) (*LoginResponse, error) // WaitSSOLogin uses the userCode to validate the TokenInfo and // waits for the user to continue with the login on a browser WaitSSOLogin(context.Context, *WaitSSOLoginRequest) (*WaitSSOLoginResponse, error) // Up starts engine work in the daemon. Up(context.Context, *UpRequest) (*UpResponse, error) // Status of the service. Status(context.Context, *StatusRequest) (*StatusResponse, error) // Down engine work in the daemon. Down(context.Context, *DownRequest) (*DownResponse, error) // GetConfig of the daemon. GetConfig(context.Context, *GetConfigRequest) (*GetConfigResponse, error) // contains filtered or unexported methods }
DaemonServiceServer is the server API for DaemonService service. All implementations must embed UnimplementedDaemonServiceServer for forward compatibility
type DownRequest ¶
type DownRequest struct {
// contains filtered or unexported fields
}
func (*DownRequest) Descriptor
deprecated
func (*DownRequest) Descriptor() ([]byte, []int)
Deprecated: Use DownRequest.ProtoReflect.Descriptor instead.
func (*DownRequest) ProtoMessage ¶
func (*DownRequest) ProtoMessage()
func (*DownRequest) ProtoReflect ¶
func (x *DownRequest) ProtoReflect() protoreflect.Message
func (*DownRequest) Reset ¶
func (x *DownRequest) Reset()
func (*DownRequest) String ¶
func (x *DownRequest) String() string
type DownResponse ¶
type DownResponse struct {
// contains filtered or unexported fields
}
func (*DownResponse) Descriptor
deprecated
func (*DownResponse) Descriptor() ([]byte, []int)
Deprecated: Use DownResponse.ProtoReflect.Descriptor instead.
func (*DownResponse) ProtoMessage ¶
func (*DownResponse) ProtoMessage()
func (*DownResponse) ProtoReflect ¶
func (x *DownResponse) ProtoReflect() protoreflect.Message
func (*DownResponse) Reset ¶
func (x *DownResponse) Reset()
func (*DownResponse) String ¶
func (x *DownResponse) String() string
type GetConfigRequest ¶
type GetConfigRequest struct {
// contains filtered or unexported fields
}
func (*GetConfigRequest) Descriptor
deprecated
func (*GetConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetConfigRequest.ProtoReflect.Descriptor instead.
func (*GetConfigRequest) ProtoMessage ¶
func (*GetConfigRequest) ProtoMessage()
func (*GetConfigRequest) ProtoReflect ¶
func (x *GetConfigRequest) ProtoReflect() protoreflect.Message
func (*GetConfigRequest) Reset ¶
func (x *GetConfigRequest) Reset()
func (*GetConfigRequest) String ¶
func (x *GetConfigRequest) String() string
type GetConfigResponse ¶
type GetConfigResponse struct { // managementUrl settings value. ManagementUrl string `protobuf:"bytes,1,opt,name=managementUrl,proto3" json:"managementUrl,omitempty"` // configFile settings value. ConfigFile string `protobuf:"bytes,2,opt,name=configFile,proto3" json:"configFile,omitempty"` // logFile settings value. LogFile string `protobuf:"bytes,3,opt,name=logFile,proto3" json:"logFile,omitempty"` PreSharedKey string `protobuf:"bytes,4,opt,name=preSharedKey,proto3" json:"preSharedKey,omitempty"` // adminURL settings value. AdminURL string `protobuf:"bytes,5,opt,name=adminURL,proto3" json:"adminURL,omitempty"` // contains filtered or unexported fields }
func (*GetConfigResponse) Descriptor
deprecated
func (*GetConfigResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetConfigResponse.ProtoReflect.Descriptor instead.
func (*GetConfigResponse) GetAdminURL ¶
func (x *GetConfigResponse) GetAdminURL() string
func (*GetConfigResponse) GetConfigFile ¶
func (x *GetConfigResponse) GetConfigFile() string
func (*GetConfigResponse) GetLogFile ¶
func (x *GetConfigResponse) GetLogFile() string
func (*GetConfigResponse) GetManagementUrl ¶
func (x *GetConfigResponse) GetManagementUrl() string
func (*GetConfigResponse) GetPreSharedKey ¶
func (x *GetConfigResponse) GetPreSharedKey() string
func (*GetConfigResponse) ProtoMessage ¶
func (*GetConfigResponse) ProtoMessage()
func (*GetConfigResponse) ProtoReflect ¶
func (x *GetConfigResponse) ProtoReflect() protoreflect.Message
func (*GetConfigResponse) Reset ¶
func (x *GetConfigResponse) Reset()
func (*GetConfigResponse) String ¶
func (x *GetConfigResponse) String() string
type LoginRequest ¶
type LoginRequest struct { // setupKey wiretrustee setup key. SetupKey string `protobuf:"bytes,1,opt,name=setupKey,proto3" json:"setupKey,omitempty"` PreSharedKey string `protobuf:"bytes,2,opt,name=preSharedKey,proto3" json:"preSharedKey,omitempty"` // managementUrl to authenticate. ManagementUrl string `protobuf:"bytes,3,opt,name=managementUrl,proto3" json:"managementUrl,omitempty"` // adminUrl to manage keys. AdminURL string `protobuf:"bytes,4,opt,name=adminURL,proto3" json:"adminURL,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetAdminURL ¶
func (x *LoginRequest) GetAdminURL() string
func (*LoginRequest) GetManagementUrl ¶
func (x *LoginRequest) GetManagementUrl() string
func (*LoginRequest) GetPreSharedKey ¶
func (x *LoginRequest) GetPreSharedKey() string
func (*LoginRequest) GetSetupKey ¶
func (x *LoginRequest) GetSetupKey() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
type LoginResponse ¶
type LoginResponse struct { NeedsSSOLogin bool `protobuf:"varint,1,opt,name=needsSSOLogin,proto3" json:"needsSSOLogin,omitempty"` UserCode string `protobuf:"bytes,2,opt,name=userCode,proto3" json:"userCode,omitempty"` VerificationURI string `protobuf:"bytes,3,opt,name=verificationURI,proto3" json:"verificationURI,omitempty"` VerificationURIComplete string `protobuf:"bytes,4,opt,name=verificationURIComplete,proto3" json:"verificationURIComplete,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetNeedsSSOLogin ¶
func (x *LoginResponse) GetNeedsSSOLogin() bool
func (*LoginResponse) GetUserCode ¶
func (x *LoginResponse) GetUserCode() string
func (*LoginResponse) GetVerificationURI ¶
func (x *LoginResponse) GetVerificationURI() string
func (*LoginResponse) GetVerificationURIComplete ¶
func (x *LoginResponse) GetVerificationURIComplete() string
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
type StatusRequest ¶
type StatusRequest struct {
// contains filtered or unexported fields
}
func (*StatusRequest) Descriptor
deprecated
func (*StatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.
func (*StatusRequest) ProtoMessage ¶
func (*StatusRequest) ProtoMessage()
func (*StatusRequest) ProtoReflect ¶
func (x *StatusRequest) ProtoReflect() protoreflect.Message
func (*StatusRequest) Reset ¶
func (x *StatusRequest) Reset()
func (*StatusRequest) String ¶
func (x *StatusRequest) String() string
type StatusResponse ¶
type StatusResponse struct { // status of the server. Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*StatusResponse) Descriptor
deprecated
func (*StatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.
func (*StatusResponse) GetStatus ¶
func (x *StatusResponse) GetStatus() string
func (*StatusResponse) ProtoMessage ¶
func (*StatusResponse) ProtoMessage()
func (*StatusResponse) ProtoReflect ¶
func (x *StatusResponse) ProtoReflect() protoreflect.Message
func (*StatusResponse) Reset ¶
func (x *StatusResponse) Reset()
func (*StatusResponse) String ¶
func (x *StatusResponse) String() string
type UnimplementedDaemonServiceServer ¶
type UnimplementedDaemonServiceServer struct { }
UnimplementedDaemonServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDaemonServiceServer) Down ¶
func (UnimplementedDaemonServiceServer) Down(context.Context, *DownRequest) (*DownResponse, error)
func (UnimplementedDaemonServiceServer) GetConfig ¶
func (UnimplementedDaemonServiceServer) GetConfig(context.Context, *GetConfigRequest) (*GetConfigResponse, error)
func (UnimplementedDaemonServiceServer) Login ¶
func (UnimplementedDaemonServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedDaemonServiceServer) Status ¶
func (UnimplementedDaemonServiceServer) Status(context.Context, *StatusRequest) (*StatusResponse, error)
func (UnimplementedDaemonServiceServer) Up ¶
func (UnimplementedDaemonServiceServer) Up(context.Context, *UpRequest) (*UpResponse, error)
func (UnimplementedDaemonServiceServer) WaitSSOLogin ¶
func (UnimplementedDaemonServiceServer) WaitSSOLogin(context.Context, *WaitSSOLoginRequest) (*WaitSSOLoginResponse, error)
type UnsafeDaemonServiceServer ¶
type UnsafeDaemonServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDaemonServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DaemonServiceServer will result in compilation errors.
type UpRequest ¶
type UpRequest struct {
// contains filtered or unexported fields
}
func (*UpRequest) Descriptor
deprecated
func (*UpRequest) ProtoMessage ¶
func (*UpRequest) ProtoMessage()
func (*UpRequest) ProtoReflect ¶
func (x *UpRequest) ProtoReflect() protoreflect.Message
type UpResponse ¶
type UpResponse struct {
// contains filtered or unexported fields
}
func (*UpResponse) Descriptor
deprecated
func (*UpResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpResponse.ProtoReflect.Descriptor instead.
func (*UpResponse) ProtoMessage ¶
func (*UpResponse) ProtoMessage()
func (*UpResponse) ProtoReflect ¶
func (x *UpResponse) ProtoReflect() protoreflect.Message
func (*UpResponse) Reset ¶
func (x *UpResponse) Reset()
func (*UpResponse) String ¶
func (x *UpResponse) String() string
type WaitSSOLoginRequest ¶
type WaitSSOLoginRequest struct { UserCode string `protobuf:"bytes,1,opt,name=userCode,proto3" json:"userCode,omitempty"` // contains filtered or unexported fields }
func (*WaitSSOLoginRequest) Descriptor
deprecated
func (*WaitSSOLoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use WaitSSOLoginRequest.ProtoReflect.Descriptor instead.
func (*WaitSSOLoginRequest) GetUserCode ¶
func (x *WaitSSOLoginRequest) GetUserCode() string
func (*WaitSSOLoginRequest) ProtoMessage ¶
func (*WaitSSOLoginRequest) ProtoMessage()
func (*WaitSSOLoginRequest) ProtoReflect ¶
func (x *WaitSSOLoginRequest) ProtoReflect() protoreflect.Message
func (*WaitSSOLoginRequest) Reset ¶
func (x *WaitSSOLoginRequest) Reset()
func (*WaitSSOLoginRequest) String ¶
func (x *WaitSSOLoginRequest) String() string
type WaitSSOLoginResponse ¶
type WaitSSOLoginResponse struct {
// contains filtered or unexported fields
}
func (*WaitSSOLoginResponse) Descriptor
deprecated
func (*WaitSSOLoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use WaitSSOLoginResponse.ProtoReflect.Descriptor instead.
func (*WaitSSOLoginResponse) ProtoMessage ¶
func (*WaitSSOLoginResponse) ProtoMessage()
func (*WaitSSOLoginResponse) ProtoReflect ¶
func (x *WaitSSOLoginResponse) ProtoReflect() protoreflect.Message
func (*WaitSSOLoginResponse) Reset ¶
func (x *WaitSSOLoginResponse) Reset()
func (*WaitSSOLoginResponse) String ¶
func (x *WaitSSOLoginResponse) String() string