Documentation ¶
Index ¶
- Variables
- func RegisterAPIServer(s grpc.ServiceRegistrar, srv APIServer)
- type APIClient
- type APIServer
- type ControlPlaneCertOrKey
- func (*ControlPlaneCertOrKey) Descriptor() ([]byte, []int)deprecated
- func (x *ControlPlaneCertOrKey) GetData() []byte
- func (x *ControlPlaneCertOrKey) GetName() string
- func (*ControlPlaneCertOrKey) ProtoMessage()
- func (x *ControlPlaneCertOrKey) ProtoReflect() protoreflect.Message
- func (x *ControlPlaneCertOrKey) Reset()
- func (x *ControlPlaneCertOrKey) String() string
- type IssueJoinTicketRequest
- func (*IssueJoinTicketRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IssueJoinTicketRequest) GetCertificateRequest() []byte
- func (x *IssueJoinTicketRequest) GetDiskUuid() string
- func (x *IssueJoinTicketRequest) GetIsControlPlane() bool
- func (*IssueJoinTicketRequest) ProtoMessage()
- func (x *IssueJoinTicketRequest) ProtoReflect() protoreflect.Message
- func (x *IssueJoinTicketRequest) Reset()
- func (x *IssueJoinTicketRequest) String() string
- type IssueJoinTicketResponse
- func (*IssueJoinTicketResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IssueJoinTicketResponse) GetApiServerEndpoint() string
- func (x *IssueJoinTicketResponse) GetControlPlaneFiles() []*ControlPlaneCertOrKey
- func (x *IssueJoinTicketResponse) GetDiscoveryTokenCaCertHash() string
- func (x *IssueJoinTicketResponse) GetKubeletCert() []byte
- func (x *IssueJoinTicketResponse) GetKubernetesVersion() string
- func (x *IssueJoinTicketResponse) GetMeasurementSalt() []byte
- func (x *IssueJoinTicketResponse) GetMeasurementSecret() []byte
- func (x *IssueJoinTicketResponse) GetStateDiskKey() []byte
- func (x *IssueJoinTicketResponse) GetToken() string
- func (*IssueJoinTicketResponse) ProtoMessage()
- func (x *IssueJoinTicketResponse) ProtoReflect() protoreflect.Message
- func (x *IssueJoinTicketResponse) Reset()
- func (x *IssueJoinTicketResponse) String() string
- type IssueRejoinTicketRequest
- func (*IssueRejoinTicketRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IssueRejoinTicketRequest) GetDiskUuid() string
- func (*IssueRejoinTicketRequest) ProtoMessage()
- func (x *IssueRejoinTicketRequest) ProtoReflect() protoreflect.Message
- func (x *IssueRejoinTicketRequest) Reset()
- func (x *IssueRejoinTicketRequest) String() string
- type IssueRejoinTicketResponse
- func (*IssueRejoinTicketResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IssueRejoinTicketResponse) GetMeasurementSecret() []byte
- func (x *IssueRejoinTicketResponse) GetStateDiskKey() []byte
- func (*IssueRejoinTicketResponse) ProtoMessage()
- func (x *IssueRejoinTicketResponse) ProtoReflect() protoreflect.Message
- func (x *IssueRejoinTicketResponse) Reset()
- func (x *IssueRejoinTicketResponse) String() string
- type UnimplementedAPIServer
- type UnsafeAPIServer
Constants ¶
This section is empty.
Variables ¶
var API_ServiceDesc = grpc.ServiceDesc{ ServiceName: "join.API", HandlerType: (*APIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "IssueJoinTicket", Handler: _API_IssueJoinTicket_Handler, }, { MethodName: "IssueRejoinTicket", Handler: _API_IssueRejoinTicket_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "join.proto", }
API_ServiceDesc is the grpc.ServiceDesc for API service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_join_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAPIServer ¶
func RegisterAPIServer(s grpc.ServiceRegistrar, srv APIServer)
Types ¶
type APIClient ¶
type APIClient interface { IssueJoinTicket(ctx context.Context, in *IssueJoinTicketRequest, opts ...grpc.CallOption) (*IssueJoinTicketResponse, error) IssueRejoinTicket(ctx context.Context, in *IssueRejoinTicketRequest, opts ...grpc.CallOption) (*IssueRejoinTicketResponse, error) }
APIClient is the client API for API 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 NewAPIClient ¶
func NewAPIClient(cc grpc.ClientConnInterface) APIClient
type APIServer ¶
type APIServer interface { IssueJoinTicket(context.Context, *IssueJoinTicketRequest) (*IssueJoinTicketResponse, error) IssueRejoinTicket(context.Context, *IssueRejoinTicketRequest) (*IssueRejoinTicketResponse, error) // contains filtered or unexported methods }
APIServer is the server API for API service. All implementations must embed UnimplementedAPIServer for forward compatibility
type ControlPlaneCertOrKey ¶
type ControlPlaneCertOrKey struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ControlPlaneCertOrKey) Descriptor
deprecated
func (*ControlPlaneCertOrKey) Descriptor() ([]byte, []int)
Deprecated: Use ControlPlaneCertOrKey.ProtoReflect.Descriptor instead.
func (*ControlPlaneCertOrKey) GetData ¶
func (x *ControlPlaneCertOrKey) GetData() []byte
func (*ControlPlaneCertOrKey) GetName ¶
func (x *ControlPlaneCertOrKey) GetName() string
func (*ControlPlaneCertOrKey) ProtoMessage ¶
func (*ControlPlaneCertOrKey) ProtoMessage()
func (*ControlPlaneCertOrKey) ProtoReflect ¶
func (x *ControlPlaneCertOrKey) ProtoReflect() protoreflect.Message
func (*ControlPlaneCertOrKey) Reset ¶
func (x *ControlPlaneCertOrKey) Reset()
func (*ControlPlaneCertOrKey) String ¶
func (x *ControlPlaneCertOrKey) String() string
type IssueJoinTicketRequest ¶
type IssueJoinTicketRequest struct { DiskUuid string `protobuf:"bytes,1,opt,name=disk_uuid,json=diskUuid,proto3" json:"disk_uuid,omitempty"` CertificateRequest []byte `protobuf:"bytes,2,opt,name=certificate_request,json=certificateRequest,proto3" json:"certificate_request,omitempty"` IsControlPlane bool `protobuf:"varint,3,opt,name=is_control_plane,json=isControlPlane,proto3" json:"is_control_plane,omitempty"` // contains filtered or unexported fields }
func (*IssueJoinTicketRequest) Descriptor
deprecated
func (*IssueJoinTicketRequest) Descriptor() ([]byte, []int)
Deprecated: Use IssueJoinTicketRequest.ProtoReflect.Descriptor instead.
func (*IssueJoinTicketRequest) GetCertificateRequest ¶
func (x *IssueJoinTicketRequest) GetCertificateRequest() []byte
func (*IssueJoinTicketRequest) GetDiskUuid ¶
func (x *IssueJoinTicketRequest) GetDiskUuid() string
func (*IssueJoinTicketRequest) GetIsControlPlane ¶
func (x *IssueJoinTicketRequest) GetIsControlPlane() bool
func (*IssueJoinTicketRequest) ProtoMessage ¶
func (*IssueJoinTicketRequest) ProtoMessage()
func (*IssueJoinTicketRequest) ProtoReflect ¶
func (x *IssueJoinTicketRequest) ProtoReflect() protoreflect.Message
func (*IssueJoinTicketRequest) Reset ¶
func (x *IssueJoinTicketRequest) Reset()
func (*IssueJoinTicketRequest) String ¶
func (x *IssueJoinTicketRequest) String() string
type IssueJoinTicketResponse ¶
type IssueJoinTicketResponse struct { StateDiskKey []byte `protobuf:"bytes,1,opt,name=state_disk_key,json=stateDiskKey,proto3" json:"state_disk_key,omitempty"` MeasurementSalt []byte `protobuf:"bytes,2,opt,name=measurement_salt,json=measurementSalt,proto3" json:"measurement_salt,omitempty"` MeasurementSecret []byte `protobuf:"bytes,3,opt,name=measurement_secret,json=measurementSecret,proto3" json:"measurement_secret,omitempty"` KubeletCert []byte `protobuf:"bytes,4,opt,name=kubelet_cert,json=kubeletCert,proto3" json:"kubelet_cert,omitempty"` ApiServerEndpoint string `protobuf:"bytes,5,opt,name=api_server_endpoint,json=apiServerEndpoint,proto3" json:"api_server_endpoint,omitempty"` Token string `protobuf:"bytes,6,opt,name=token,proto3" json:"token,omitempty"` DiscoveryTokenCaCertHash string `` /* 139-byte string literal not displayed */ ControlPlaneFiles []*ControlPlaneCertOrKey `protobuf:"bytes,8,rep,name=control_plane_files,json=controlPlaneFiles,proto3" json:"control_plane_files,omitempty"` KubernetesVersion string `protobuf:"bytes,9,opt,name=kubernetes_version,json=kubernetesVersion,proto3" json:"kubernetes_version,omitempty"` // contains filtered or unexported fields }
func (*IssueJoinTicketResponse) Descriptor
deprecated
func (*IssueJoinTicketResponse) Descriptor() ([]byte, []int)
Deprecated: Use IssueJoinTicketResponse.ProtoReflect.Descriptor instead.
func (*IssueJoinTicketResponse) GetApiServerEndpoint ¶
func (x *IssueJoinTicketResponse) GetApiServerEndpoint() string
func (*IssueJoinTicketResponse) GetControlPlaneFiles ¶
func (x *IssueJoinTicketResponse) GetControlPlaneFiles() []*ControlPlaneCertOrKey
func (*IssueJoinTicketResponse) GetDiscoveryTokenCaCertHash ¶
func (x *IssueJoinTicketResponse) GetDiscoveryTokenCaCertHash() string
func (*IssueJoinTicketResponse) GetKubeletCert ¶
func (x *IssueJoinTicketResponse) GetKubeletCert() []byte
func (*IssueJoinTicketResponse) GetKubernetesVersion ¶
func (x *IssueJoinTicketResponse) GetKubernetesVersion() string
func (*IssueJoinTicketResponse) GetMeasurementSalt ¶
func (x *IssueJoinTicketResponse) GetMeasurementSalt() []byte
func (*IssueJoinTicketResponse) GetMeasurementSecret ¶
func (x *IssueJoinTicketResponse) GetMeasurementSecret() []byte
func (*IssueJoinTicketResponse) GetStateDiskKey ¶
func (x *IssueJoinTicketResponse) GetStateDiskKey() []byte
func (*IssueJoinTicketResponse) GetToken ¶
func (x *IssueJoinTicketResponse) GetToken() string
func (*IssueJoinTicketResponse) ProtoMessage ¶
func (*IssueJoinTicketResponse) ProtoMessage()
func (*IssueJoinTicketResponse) ProtoReflect ¶
func (x *IssueJoinTicketResponse) ProtoReflect() protoreflect.Message
func (*IssueJoinTicketResponse) Reset ¶
func (x *IssueJoinTicketResponse) Reset()
func (*IssueJoinTicketResponse) String ¶
func (x *IssueJoinTicketResponse) String() string
type IssueRejoinTicketRequest ¶
type IssueRejoinTicketRequest struct { DiskUuid string `protobuf:"bytes,1,opt,name=disk_uuid,json=diskUuid,proto3" json:"disk_uuid,omitempty"` // contains filtered or unexported fields }
func (*IssueRejoinTicketRequest) Descriptor
deprecated
func (*IssueRejoinTicketRequest) Descriptor() ([]byte, []int)
Deprecated: Use IssueRejoinTicketRequest.ProtoReflect.Descriptor instead.
func (*IssueRejoinTicketRequest) GetDiskUuid ¶
func (x *IssueRejoinTicketRequest) GetDiskUuid() string
func (*IssueRejoinTicketRequest) ProtoMessage ¶
func (*IssueRejoinTicketRequest) ProtoMessage()
func (*IssueRejoinTicketRequest) ProtoReflect ¶
func (x *IssueRejoinTicketRequest) ProtoReflect() protoreflect.Message
func (*IssueRejoinTicketRequest) Reset ¶
func (x *IssueRejoinTicketRequest) Reset()
func (*IssueRejoinTicketRequest) String ¶
func (x *IssueRejoinTicketRequest) String() string
type IssueRejoinTicketResponse ¶
type IssueRejoinTicketResponse struct { StateDiskKey []byte `protobuf:"bytes,1,opt,name=state_disk_key,json=stateDiskKey,proto3" json:"state_disk_key,omitempty"` MeasurementSecret []byte `protobuf:"bytes,2,opt,name=measurement_secret,json=measurementSecret,proto3" json:"measurement_secret,omitempty"` // contains filtered or unexported fields }
func (*IssueRejoinTicketResponse) Descriptor
deprecated
func (*IssueRejoinTicketResponse) Descriptor() ([]byte, []int)
Deprecated: Use IssueRejoinTicketResponse.ProtoReflect.Descriptor instead.
func (*IssueRejoinTicketResponse) GetMeasurementSecret ¶
func (x *IssueRejoinTicketResponse) GetMeasurementSecret() []byte
func (*IssueRejoinTicketResponse) GetStateDiskKey ¶
func (x *IssueRejoinTicketResponse) GetStateDiskKey() []byte
func (*IssueRejoinTicketResponse) ProtoMessage ¶
func (*IssueRejoinTicketResponse) ProtoMessage()
func (*IssueRejoinTicketResponse) ProtoReflect ¶
func (x *IssueRejoinTicketResponse) ProtoReflect() protoreflect.Message
func (*IssueRejoinTicketResponse) Reset ¶
func (x *IssueRejoinTicketResponse) Reset()
func (*IssueRejoinTicketResponse) String ¶
func (x *IssueRejoinTicketResponse) String() string
type UnimplementedAPIServer ¶
type UnimplementedAPIServer struct { }
UnimplementedAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedAPIServer) IssueJoinTicket ¶
func (UnimplementedAPIServer) IssueJoinTicket(context.Context, *IssueJoinTicketRequest) (*IssueJoinTicketResponse, error)
func (UnimplementedAPIServer) IssueRejoinTicket ¶
func (UnimplementedAPIServer) IssueRejoinTicket(context.Context, *IssueRejoinTicketRequest) (*IssueRejoinTicketResponse, error)
type UnsafeAPIServer ¶
type UnsafeAPIServer interface {
// contains filtered or unexported methods
}
UnsafeAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to APIServer will result in compilation errors.