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) GetKubernetesComponents() []*KubernetesComponent
- 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 KubernetesComponent
- func (*KubernetesComponent) Descriptor() ([]byte, []int)deprecated
- func (x *KubernetesComponent) GetExtract() bool
- func (x *KubernetesComponent) GetHash() string
- func (x *KubernetesComponent) GetInstallPath() string
- func (x *KubernetesComponent) GetUrl() string
- func (*KubernetesComponent) ProtoMessage()
- func (x *KubernetesComponent) ProtoReflect() protoreflect.Message
- func (x *KubernetesComponent) Reset()
- func (x *KubernetesComponent) 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 issues a join ticket for a new node. IssueJoinTicket(ctx context.Context, in *IssueJoinTicketRequest, opts ...grpc.CallOption) (*IssueJoinTicketResponse, error) // IssueRejoinTicket issues a join ticket for a node that has previously joined the cluster. 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 issues a join ticket for a new node. IssueJoinTicket(context.Context, *IssueJoinTicketRequest) (*IssueJoinTicketResponse, error) // IssueRejoinTicket issues a join ticket for a node that has previously joined the cluster. 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 of the certificate or key. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // data of the certificate or key. 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 { // disk_uuid is the UUID of a node's state disk. DiskUuid string `protobuf:"bytes,1,opt,name=disk_uuid,json=diskUuid,proto3" json:"disk_uuid,omitempty"` // certificate_request is a certificate request for the node's kubelet certificate. CertificateRequest []byte `protobuf:"bytes,2,opt,name=certificate_request,json=certificateRequest,proto3" json:"certificate_request,omitempty"` // is_control_plane indicates whether the node is a control-plane node. 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 { // state_disk_key is the key used to encrypt the state disk. StateDiskKey []byte `protobuf:"bytes,1,opt,name=state_disk_key,json=stateDiskKey,proto3" json:"state_disk_key,omitempty"` // measurement_salt is a salt used to derive the node's ClusterID. // This value is persisted on the state disk. MeasurementSalt []byte `protobuf:"bytes,2,opt,name=measurement_salt,json=measurementSalt,proto3" json:"measurement_salt,omitempty"` // measurement_secret is a secret used to derive the node's ClusterID. // This value is NOT persisted on the state disk. MeasurementSecret []byte `protobuf:"bytes,3,opt,name=measurement_secret,json=measurementSecret,proto3" json:"measurement_secret,omitempty"` // kubelet_cert is the certificate to be used by the kubelet. KubeletCert []byte `protobuf:"bytes,4,opt,name=kubelet_cert,json=kubeletCert,proto3" json:"kubelet_cert,omitempty"` // api_server_endpoint is the endpoint of Constellation's API server. ApiServerEndpoint string `protobuf:"bytes,5,opt,name=api_server_endpoint,json=apiServerEndpoint,proto3" json:"api_server_endpoint,omitempty"` // token is the Kubernetes Join Token to be used by the node to join the cluster. Token string `protobuf:"bytes,6,opt,name=token,proto3" json:"token,omitempty"` // discovery_token_ca_cert_hash is a hash of the root certificate authority presented by the Kubernetes control-plane. DiscoveryTokenCaCertHash string `` /* 139-byte string literal not displayed */ // control_plane_files is a list of control-plane certificates and keys. ControlPlaneFiles []*ControlPlaneCertOrKey `protobuf:"bytes,8,rep,name=control_plane_files,json=controlPlaneFiles,proto3" json:"control_plane_files,omitempty"` // kubernetes_version is the Kubernetes version to install on the node. KubernetesVersion string `protobuf:"bytes,9,opt,name=kubernetes_version,json=kubernetesVersion,proto3" json:"kubernetes_version,omitempty"` // kubernetes_components is a list of components to install on the node. KubernetesComponents []*KubernetesComponent `protobuf:"bytes,10,rep,name=kubernetes_components,json=kubernetesComponents,proto3" json:"kubernetes_components,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) GetKubernetesComponents ¶ added in v2.3.0
func (x *IssueJoinTicketResponse) GetKubernetesComponents() []*KubernetesComponent
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 { // disk_uuid is the UUID of a node's state disk. 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 { // state_disk_key is the key to decrypt the state disk. StateDiskKey []byte `protobuf:"bytes,1,opt,name=state_disk_key,json=stateDiskKey,proto3" json:"state_disk_key,omitempty"` // measurement_secret is a secret used to derive the node's ClusterID. // This value is NOT persisted on the state disk. 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 KubernetesComponent ¶ added in v2.3.0
type KubernetesComponent struct { // url to download the component from. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // hash of the component. Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` // install_path is the path to install the component to. InstallPath string `protobuf:"bytes,3,opt,name=install_path,json=installPath,proto3" json:"install_path,omitempty"` // extract indicates whether the component is an archive and needs to be extracted. Extract bool `protobuf:"varint,4,opt,name=extract,proto3" json:"extract,omitempty"` // contains filtered or unexported fields }
Discuss if we want to import the init proto instead of duplicating it
func (*KubernetesComponent) Descriptor
deprecated
added in
v2.3.0
func (*KubernetesComponent) Descriptor() ([]byte, []int)
Deprecated: Use KubernetesComponent.ProtoReflect.Descriptor instead.
func (*KubernetesComponent) GetExtract ¶ added in v2.3.0
func (x *KubernetesComponent) GetExtract() bool
func (*KubernetesComponent) GetHash ¶ added in v2.3.0
func (x *KubernetesComponent) GetHash() string
func (*KubernetesComponent) GetInstallPath ¶ added in v2.3.0
func (x *KubernetesComponent) GetInstallPath() string
func (*KubernetesComponent) GetUrl ¶ added in v2.3.0
func (x *KubernetesComponent) GetUrl() string
func (*KubernetesComponent) ProtoMessage ¶ added in v2.3.0
func (*KubernetesComponent) ProtoMessage()
func (*KubernetesComponent) ProtoReflect ¶ added in v2.3.0
func (x *KubernetesComponent) ProtoReflect() protoreflect.Message
func (*KubernetesComponent) Reset ¶ added in v2.3.0
func (x *KubernetesComponent) Reset()
func (*KubernetesComponent) String ¶ added in v2.3.0
func (x *KubernetesComponent) 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.