Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterTrustServiceServer(s grpc.ServiceRegistrar, srv TrustServiceServer)
- type DeleteCertAuthorityRequest
- func (*DeleteCertAuthorityRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCertAuthorityRequest) GetDomain() string
- func (x *DeleteCertAuthorityRequest) GetType() string
- func (*DeleteCertAuthorityRequest) ProtoMessage()
- func (x *DeleteCertAuthorityRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteCertAuthorityRequest) Reset()
- func (x *DeleteCertAuthorityRequest) String() string
- type GenerateHostCertRequest
- func (*GenerateHostCertRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateHostCertRequest) GetClusterName() string
- func (x *GenerateHostCertRequest) GetHostId() string
- func (x *GenerateHostCertRequest) GetKey() []byte
- func (x *GenerateHostCertRequest) GetNodeName() string
- func (x *GenerateHostCertRequest) GetPrincipals() []string
- func (x *GenerateHostCertRequest) GetRole() string
- func (x *GenerateHostCertRequest) GetTtl() *durationpb.Duration
- func (*GenerateHostCertRequest) ProtoMessage()
- func (x *GenerateHostCertRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateHostCertRequest) Reset()
- func (x *GenerateHostCertRequest) String() string
- type GenerateHostCertResponse
- func (*GenerateHostCertResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateHostCertResponse) GetSshCertificate() []byte
- func (*GenerateHostCertResponse) ProtoMessage()
- func (x *GenerateHostCertResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateHostCertResponse) Reset()
- func (x *GenerateHostCertResponse) String() string
- type GetCertAuthoritiesRequest
- func (*GetCertAuthoritiesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCertAuthoritiesRequest) GetIncludeKey() bool
- func (x *GetCertAuthoritiesRequest) GetType() string
- func (*GetCertAuthoritiesRequest) ProtoMessage()
- func (x *GetCertAuthoritiesRequest) ProtoReflect() protoreflect.Message
- func (x *GetCertAuthoritiesRequest) Reset()
- func (x *GetCertAuthoritiesRequest) String() string
- type GetCertAuthoritiesResponse
- func (*GetCertAuthoritiesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCertAuthoritiesResponse) GetCertAuthoritiesV2() []*types.CertAuthorityV2
- func (*GetCertAuthoritiesResponse) ProtoMessage()
- func (x *GetCertAuthoritiesResponse) ProtoReflect() protoreflect.Message
- func (x *GetCertAuthoritiesResponse) Reset()
- func (x *GetCertAuthoritiesResponse) String() string
- type GetCertAuthorityRequest
- func (*GetCertAuthorityRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCertAuthorityRequest) GetDomain() string
- func (x *GetCertAuthorityRequest) GetIncludeKey() bool
- func (x *GetCertAuthorityRequest) GetType() string
- func (*GetCertAuthorityRequest) ProtoMessage()
- func (x *GetCertAuthorityRequest) ProtoReflect() protoreflect.Message
- func (x *GetCertAuthorityRequest) Reset()
- func (x *GetCertAuthorityRequest) String() string
- type RotateCertAuthorityRequest
- func (*RotateCertAuthorityRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RotateCertAuthorityRequest) GetGracePeriod() *durationpb.Duration
- func (x *RotateCertAuthorityRequest) GetMode() string
- func (x *RotateCertAuthorityRequest) GetSchedule() *RotationSchedule
- func (x *RotateCertAuthorityRequest) GetTargetPhase() string
- func (x *RotateCertAuthorityRequest) GetType() string
- func (*RotateCertAuthorityRequest) ProtoMessage()
- func (x *RotateCertAuthorityRequest) ProtoReflect() protoreflect.Message
- func (x *RotateCertAuthorityRequest) Reset()
- func (x *RotateCertAuthorityRequest) String() string
- type RotateCertAuthorityResponse
- type RotateExternalCertAuthorityRequest
- func (*RotateExternalCertAuthorityRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RotateExternalCertAuthorityRequest) GetCertAuthority() *types.CertAuthorityV2
- func (*RotateExternalCertAuthorityRequest) ProtoMessage()
- func (x *RotateExternalCertAuthorityRequest) ProtoReflect() protoreflect.Message
- func (x *RotateExternalCertAuthorityRequest) Reset()
- func (x *RotateExternalCertAuthorityRequest) String() string
- type RotateExternalCertAuthorityResponse
- func (*RotateExternalCertAuthorityResponse) Descriptor() ([]byte, []int)deprecated
- func (*RotateExternalCertAuthorityResponse) ProtoMessage()
- func (x *RotateExternalCertAuthorityResponse) ProtoReflect() protoreflect.Message
- func (x *RotateExternalCertAuthorityResponse) Reset()
- func (x *RotateExternalCertAuthorityResponse) String() string
- type RotationSchedule
- func (*RotationSchedule) Descriptor() ([]byte, []int)deprecated
- func (x *RotationSchedule) GetStandby() *timestamppb.Timestamp
- func (x *RotationSchedule) GetUpdateClients() *timestamppb.Timestamp
- func (x *RotationSchedule) GetUpdateServers() *timestamppb.Timestamp
- func (*RotationSchedule) ProtoMessage()
- func (x *RotationSchedule) ProtoReflect() protoreflect.Message
- func (x *RotationSchedule) Reset()
- func (x *RotationSchedule) String() string
- type TrustServiceClient
- type TrustServiceServer
- type UnimplementedTrustServiceServer
- func (UnimplementedTrustServiceServer) DeleteCertAuthority(context.Context, *DeleteCertAuthorityRequest) (*emptypb.Empty, error)
- func (UnimplementedTrustServiceServer) GenerateHostCert(context.Context, *GenerateHostCertRequest) (*GenerateHostCertResponse, error)
- func (UnimplementedTrustServiceServer) GetCertAuthorities(context.Context, *GetCertAuthoritiesRequest) (*GetCertAuthoritiesResponse, error)
- func (UnimplementedTrustServiceServer) GetCertAuthority(context.Context, *GetCertAuthorityRequest) (*types.CertAuthorityV2, error)
- func (UnimplementedTrustServiceServer) RotateCertAuthority(context.Context, *RotateCertAuthorityRequest) (*RotateCertAuthorityResponse, error)
- func (UnimplementedTrustServiceServer) RotateExternalCertAuthority(context.Context, *RotateExternalCertAuthorityRequest) (*RotateExternalCertAuthorityResponse, error)
- func (UnimplementedTrustServiceServer) UpsertCertAuthority(context.Context, *UpsertCertAuthorityRequest) (*types.CertAuthorityV2, error)
- type UnsafeTrustServiceServer
- type UpsertCertAuthorityRequest
- func (*UpsertCertAuthorityRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpsertCertAuthorityRequest) GetCertAuthority() *types.CertAuthorityV2
- func (*UpsertCertAuthorityRequest) ProtoMessage()
- func (x *UpsertCertAuthorityRequest) ProtoReflect() protoreflect.Message
- func (x *UpsertCertAuthorityRequest) Reset()
- func (x *UpsertCertAuthorityRequest) String() string
Constants ¶
const ( TrustService_GetCertAuthority_FullMethodName = "/teleport.trust.v1.TrustService/GetCertAuthority" TrustService_GetCertAuthorities_FullMethodName = "/teleport.trust.v1.TrustService/GetCertAuthorities" TrustService_DeleteCertAuthority_FullMethodName = "/teleport.trust.v1.TrustService/DeleteCertAuthority" TrustService_UpsertCertAuthority_FullMethodName = "/teleport.trust.v1.TrustService/UpsertCertAuthority" TrustService_RotateCertAuthority_FullMethodName = "/teleport.trust.v1.TrustService/RotateCertAuthority" TrustService_RotateExternalCertAuthority_FullMethodName = "/teleport.trust.v1.TrustService/RotateExternalCertAuthority" TrustService_GenerateHostCert_FullMethodName = "/teleport.trust.v1.TrustService/GenerateHostCert" )
Variables ¶
var File_teleport_trust_v1_trust_service_proto protoreflect.FileDescriptor
var TrustService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "teleport.trust.v1.TrustService", HandlerType: (*TrustServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetCertAuthority", Handler: _TrustService_GetCertAuthority_Handler, }, { MethodName: "GetCertAuthorities", Handler: _TrustService_GetCertAuthorities_Handler, }, { MethodName: "DeleteCertAuthority", Handler: _TrustService_DeleteCertAuthority_Handler, }, { MethodName: "UpsertCertAuthority", Handler: _TrustService_UpsertCertAuthority_Handler, }, { MethodName: "RotateCertAuthority", Handler: _TrustService_RotateCertAuthority_Handler, }, { MethodName: "RotateExternalCertAuthority", Handler: _TrustService_RotateExternalCertAuthority_Handler, }, { MethodName: "GenerateHostCert", Handler: _TrustService_GenerateHostCert_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "teleport/trust/v1/trust_service.proto", }
TrustService_ServiceDesc is the grpc.ServiceDesc for TrustService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTrustServiceServer ¶
func RegisterTrustServiceServer(s grpc.ServiceRegistrar, srv TrustServiceServer)
Types ¶
type DeleteCertAuthorityRequest ¶
type DeleteCertAuthorityRequest struct { // Type of certificate authority. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // The domain for the certificate authority. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` // contains filtered or unexported fields }
Request for DeleteCertAuthority
func (*DeleteCertAuthorityRequest) Descriptor
deprecated
func (*DeleteCertAuthorityRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCertAuthorityRequest.ProtoReflect.Descriptor instead.
func (*DeleteCertAuthorityRequest) GetDomain ¶
func (x *DeleteCertAuthorityRequest) GetDomain() string
func (*DeleteCertAuthorityRequest) GetType ¶
func (x *DeleteCertAuthorityRequest) GetType() string
func (*DeleteCertAuthorityRequest) ProtoMessage ¶
func (*DeleteCertAuthorityRequest) ProtoMessage()
func (*DeleteCertAuthorityRequest) ProtoReflect ¶
func (x *DeleteCertAuthorityRequest) ProtoReflect() protoreflect.Message
func (*DeleteCertAuthorityRequest) Reset ¶
func (x *DeleteCertAuthorityRequest) Reset()
func (*DeleteCertAuthorityRequest) String ¶
func (x *DeleteCertAuthorityRequest) String() string
type GenerateHostCertRequest ¶
type GenerateHostCertRequest struct { // key is the SSH public key that the certificate should include. Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // host_id is the ID of the host the certificate should include. HostId string `protobuf:"bytes,2,opt,name=host_id,json=hostId,proto3" json:"host_id,omitempty"` // node_name is the name of the node the certificate should include. NodeName string `protobuf:"bytes,3,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` // principals is a list of principals that the certificate should include. Principals []string `protobuf:"bytes,4,rep,name=principals,proto3" json:"principals,omitempty"` // cluster_name is a list of principals that the certificate should include. ClusterName string `protobuf:"bytes,5,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"` // role is a system role assigned to the host that will be included on the certificate. Role string `protobuf:"bytes,6,opt,name=role,proto3" json:"role,omitempty"` // ttl is the duration the certificate will be valid for. This may be zero for indefinite. Ttl *durationpb.Duration `protobuf:"bytes,7,opt,name=ttl,proto3" json:"ttl,omitempty"` // contains filtered or unexported fields }
GenerateHostCertRequest is the request for GenerateHostCert.
func (*GenerateHostCertRequest) Descriptor
deprecated
func (*GenerateHostCertRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateHostCertRequest.ProtoReflect.Descriptor instead.
func (*GenerateHostCertRequest) GetClusterName ¶
func (x *GenerateHostCertRequest) GetClusterName() string
func (*GenerateHostCertRequest) GetHostId ¶
func (x *GenerateHostCertRequest) GetHostId() string
func (*GenerateHostCertRequest) GetKey ¶
func (x *GenerateHostCertRequest) GetKey() []byte
func (*GenerateHostCertRequest) GetNodeName ¶
func (x *GenerateHostCertRequest) GetNodeName() string
func (*GenerateHostCertRequest) GetPrincipals ¶
func (x *GenerateHostCertRequest) GetPrincipals() []string
func (*GenerateHostCertRequest) GetRole ¶
func (x *GenerateHostCertRequest) GetRole() string
func (*GenerateHostCertRequest) GetTtl ¶
func (x *GenerateHostCertRequest) GetTtl() *durationpb.Duration
func (*GenerateHostCertRequest) ProtoMessage ¶
func (*GenerateHostCertRequest) ProtoMessage()
func (*GenerateHostCertRequest) ProtoReflect ¶
func (x *GenerateHostCertRequest) ProtoReflect() protoreflect.Message
func (*GenerateHostCertRequest) Reset ¶
func (x *GenerateHostCertRequest) Reset()
func (*GenerateHostCertRequest) String ¶
func (x *GenerateHostCertRequest) String() string
type GenerateHostCertResponse ¶
type GenerateHostCertResponse struct { // ssh_certificate is the encoded bytes of the SSH certificate generated by the RPC. SshCertificate []byte `protobuf:"bytes,1,opt,name=ssh_certificate,json=sshCertificate,proto3" json:"ssh_certificate,omitempty"` // contains filtered or unexported fields }
GenerateHostCertResponse is the response for GenerateHostCert.
func (*GenerateHostCertResponse) Descriptor
deprecated
func (*GenerateHostCertResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateHostCertResponse.ProtoReflect.Descriptor instead.
func (*GenerateHostCertResponse) GetSshCertificate ¶
func (x *GenerateHostCertResponse) GetSshCertificate() []byte
func (*GenerateHostCertResponse) ProtoMessage ¶
func (*GenerateHostCertResponse) ProtoMessage()
func (*GenerateHostCertResponse) ProtoReflect ¶
func (x *GenerateHostCertResponse) ProtoReflect() protoreflect.Message
func (*GenerateHostCertResponse) Reset ¶
func (x *GenerateHostCertResponse) Reset()
func (*GenerateHostCertResponse) String ¶
func (x *GenerateHostCertResponse) String() string
type GetCertAuthoritiesRequest ¶
type GetCertAuthoritiesRequest struct { // Type of certificate authority. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Whether the private key should be included in the response. IncludeKey bool `protobuf:"varint,2,opt,name=include_key,json=includeKey,proto3" json:"include_key,omitempty"` // contains filtered or unexported fields }
Request for GetCertAuthorities
func (*GetCertAuthoritiesRequest) Descriptor
deprecated
func (*GetCertAuthoritiesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCertAuthoritiesRequest.ProtoReflect.Descriptor instead.
func (*GetCertAuthoritiesRequest) GetIncludeKey ¶
func (x *GetCertAuthoritiesRequest) GetIncludeKey() bool
func (*GetCertAuthoritiesRequest) GetType ¶
func (x *GetCertAuthoritiesRequest) GetType() string
func (*GetCertAuthoritiesRequest) ProtoMessage ¶
func (*GetCertAuthoritiesRequest) ProtoMessage()
func (*GetCertAuthoritiesRequest) ProtoReflect ¶
func (x *GetCertAuthoritiesRequest) ProtoReflect() protoreflect.Message
func (*GetCertAuthoritiesRequest) Reset ¶
func (x *GetCertAuthoritiesRequest) Reset()
func (*GetCertAuthoritiesRequest) String ¶
func (x *GetCertAuthoritiesRequest) String() string
type GetCertAuthoritiesResponse ¶
type GetCertAuthoritiesResponse struct { // The matching certificate authorities. CertAuthoritiesV2 []*types.CertAuthorityV2 `protobuf:"bytes,1,rep,name=cert_authorities_v2,json=certAuthoritiesV2,proto3" json:"cert_authorities_v2,omitempty"` // contains filtered or unexported fields }
Response for GetCertAuthorities
func (*GetCertAuthoritiesResponse) Descriptor
deprecated
func (*GetCertAuthoritiesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCertAuthoritiesResponse.ProtoReflect.Descriptor instead.
func (*GetCertAuthoritiesResponse) GetCertAuthoritiesV2 ¶
func (x *GetCertAuthoritiesResponse) GetCertAuthoritiesV2() []*types.CertAuthorityV2
func (*GetCertAuthoritiesResponse) ProtoMessage ¶
func (*GetCertAuthoritiesResponse) ProtoMessage()
func (*GetCertAuthoritiesResponse) ProtoReflect ¶
func (x *GetCertAuthoritiesResponse) ProtoReflect() protoreflect.Message
func (*GetCertAuthoritiesResponse) Reset ¶
func (x *GetCertAuthoritiesResponse) Reset()
func (*GetCertAuthoritiesResponse) String ¶
func (x *GetCertAuthoritiesResponse) String() string
type GetCertAuthorityRequest ¶
type GetCertAuthorityRequest struct { // Type of certificate authority. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // The domain for the certificate authority. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` // Whether the private key should be included in the response. IncludeKey bool `protobuf:"varint,3,opt,name=include_key,json=includeKey,proto3" json:"include_key,omitempty"` // contains filtered or unexported fields }
Request for GetCertAuthority
func (*GetCertAuthorityRequest) Descriptor
deprecated
func (*GetCertAuthorityRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCertAuthorityRequest.ProtoReflect.Descriptor instead.
func (*GetCertAuthorityRequest) GetDomain ¶
func (x *GetCertAuthorityRequest) GetDomain() string
func (*GetCertAuthorityRequest) GetIncludeKey ¶
func (x *GetCertAuthorityRequest) GetIncludeKey() bool
func (*GetCertAuthorityRequest) GetType ¶
func (x *GetCertAuthorityRequest) GetType() string
func (*GetCertAuthorityRequest) ProtoMessage ¶
func (*GetCertAuthorityRequest) ProtoMessage()
func (*GetCertAuthorityRequest) ProtoReflect ¶
func (x *GetCertAuthorityRequest) ProtoReflect() protoreflect.Message
func (*GetCertAuthorityRequest) Reset ¶
func (x *GetCertAuthorityRequest) Reset()
func (*GetCertAuthorityRequest) String ¶
func (x *GetCertAuthorityRequest) String() string
type RotateCertAuthorityRequest ¶
type RotateCertAuthorityRequest struct { // Type is a certificate authority type, if omitted, both user and host CA // will be rotated. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // GracePeriod is used to generate cert rotation schedule that defines // times at which different rotation phases will be applied by the auth server // in auto mode. It is not used in manual rotation mode. // If omitted, default value is set, if 0 is supplied, it is interpreted as // forcing rotation of all certificate authorities with no grace period, // all existing users and hosts will have to re-login and re-added // into the cluster. GracePeriod *durationpb.Duration `protobuf:"bytes,2,opt,name=grace_period,json=gracePeriod,proto3" json:"grace_period,omitempty"` // TargetPhase sets desired rotation phase to move to, if not set // will be set automatically, it is a required argument // for manual rotation. TargetPhase string `protobuf:"bytes,3,opt,name=target_phase,json=targetPhase,proto3" json:"target_phase,omitempty"` // Mode sets manual or auto rotation mode. Mode string `protobuf:"bytes,4,opt,name=mode,proto3" json:"mode,omitempty"` // Schedule is an optional rotation schedule, // autogenerated based on GracePeriod parameter if not set. Schedule *RotationSchedule `protobuf:"bytes,5,opt,name=schedule,proto3" json:"schedule,omitempty"` // contains filtered or unexported fields }
Request for RotateCertAuthority.
func (*RotateCertAuthorityRequest) Descriptor
deprecated
func (*RotateCertAuthorityRequest) Descriptor() ([]byte, []int)
Deprecated: Use RotateCertAuthorityRequest.ProtoReflect.Descriptor instead.
func (*RotateCertAuthorityRequest) GetGracePeriod ¶
func (x *RotateCertAuthorityRequest) GetGracePeriod() *durationpb.Duration
func (*RotateCertAuthorityRequest) GetMode ¶
func (x *RotateCertAuthorityRequest) GetMode() string
func (*RotateCertAuthorityRequest) GetSchedule ¶
func (x *RotateCertAuthorityRequest) GetSchedule() *RotationSchedule
func (*RotateCertAuthorityRequest) GetTargetPhase ¶
func (x *RotateCertAuthorityRequest) GetTargetPhase() string
func (*RotateCertAuthorityRequest) GetType ¶
func (x *RotateCertAuthorityRequest) GetType() string
func (*RotateCertAuthorityRequest) ProtoMessage ¶
func (*RotateCertAuthorityRequest) ProtoMessage()
func (*RotateCertAuthorityRequest) ProtoReflect ¶
func (x *RotateCertAuthorityRequest) ProtoReflect() protoreflect.Message
func (*RotateCertAuthorityRequest) Reset ¶
func (x *RotateCertAuthorityRequest) Reset()
func (*RotateCertAuthorityRequest) String ¶
func (x *RotateCertAuthorityRequest) String() string
type RotateCertAuthorityResponse ¶
type RotateCertAuthorityResponse struct {
// contains filtered or unexported fields
}
Response for RotateCertAuthority.
func (*RotateCertAuthorityResponse) Descriptor
deprecated
func (*RotateCertAuthorityResponse) Descriptor() ([]byte, []int)
Deprecated: Use RotateCertAuthorityResponse.ProtoReflect.Descriptor instead.
func (*RotateCertAuthorityResponse) ProtoMessage ¶
func (*RotateCertAuthorityResponse) ProtoMessage()
func (*RotateCertAuthorityResponse) ProtoReflect ¶
func (x *RotateCertAuthorityResponse) ProtoReflect() protoreflect.Message
func (*RotateCertAuthorityResponse) Reset ¶
func (x *RotateCertAuthorityResponse) Reset()
func (*RotateCertAuthorityResponse) String ¶
func (x *RotateCertAuthorityResponse) String() string
type RotateExternalCertAuthorityRequest ¶
type RotateExternalCertAuthorityRequest struct { // The certificate authority to rotate. CertAuthority *types.CertAuthorityV2 `protobuf:"bytes,1,opt,name=cert_authority,json=certAuthority,proto3" json:"cert_authority,omitempty"` // contains filtered or unexported fields }
Request for RotateExternalCertAuthority.
func (*RotateExternalCertAuthorityRequest) Descriptor
deprecated
func (*RotateExternalCertAuthorityRequest) Descriptor() ([]byte, []int)
Deprecated: Use RotateExternalCertAuthorityRequest.ProtoReflect.Descriptor instead.
func (*RotateExternalCertAuthorityRequest) GetCertAuthority ¶
func (x *RotateExternalCertAuthorityRequest) GetCertAuthority() *types.CertAuthorityV2
func (*RotateExternalCertAuthorityRequest) ProtoMessage ¶
func (*RotateExternalCertAuthorityRequest) ProtoMessage()
func (*RotateExternalCertAuthorityRequest) ProtoReflect ¶
func (x *RotateExternalCertAuthorityRequest) ProtoReflect() protoreflect.Message
func (*RotateExternalCertAuthorityRequest) Reset ¶
func (x *RotateExternalCertAuthorityRequest) Reset()
func (*RotateExternalCertAuthorityRequest) String ¶
func (x *RotateExternalCertAuthorityRequest) String() string
type RotateExternalCertAuthorityResponse ¶
type RotateExternalCertAuthorityResponse struct {
// contains filtered or unexported fields
}
Response for RotateExternalCertAuthority.
func (*RotateExternalCertAuthorityResponse) Descriptor
deprecated
func (*RotateExternalCertAuthorityResponse) Descriptor() ([]byte, []int)
Deprecated: Use RotateExternalCertAuthorityResponse.ProtoReflect.Descriptor instead.
func (*RotateExternalCertAuthorityResponse) ProtoMessage ¶
func (*RotateExternalCertAuthorityResponse) ProtoMessage()
func (*RotateExternalCertAuthorityResponse) ProtoReflect ¶
func (x *RotateExternalCertAuthorityResponse) ProtoReflect() protoreflect.Message
func (*RotateExternalCertAuthorityResponse) Reset ¶
func (x *RotateExternalCertAuthorityResponse) Reset()
func (*RotateExternalCertAuthorityResponse) String ¶
func (x *RotateExternalCertAuthorityResponse) String() string
type RotationSchedule ¶
type RotationSchedule struct { // UpdateClients specifies time to switch to the "Update clients" phase UpdateClients *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=update_clients,json=updateClients,proto3" json:"update_clients,omitempty"` // UpdateServers specifies time to switch to the "Update servers" phase. UpdateServers *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_servers,json=updateServers,proto3" json:"update_servers,omitempty"` // Standby specifies time to switch to the "Standby" phase. Standby *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=standby,proto3" json:"standby,omitempty"` // contains filtered or unexported fields }
RotationSchedule is a rotation schedule setting time switches for different phases.
func (*RotationSchedule) Descriptor
deprecated
func (*RotationSchedule) Descriptor() ([]byte, []int)
Deprecated: Use RotationSchedule.ProtoReflect.Descriptor instead.
func (*RotationSchedule) GetStandby ¶
func (x *RotationSchedule) GetStandby() *timestamppb.Timestamp
func (*RotationSchedule) GetUpdateClients ¶
func (x *RotationSchedule) GetUpdateClients() *timestamppb.Timestamp
func (*RotationSchedule) GetUpdateServers ¶
func (x *RotationSchedule) GetUpdateServers() *timestamppb.Timestamp
func (*RotationSchedule) ProtoMessage ¶
func (*RotationSchedule) ProtoMessage()
func (*RotationSchedule) ProtoReflect ¶
func (x *RotationSchedule) ProtoReflect() protoreflect.Message
func (*RotationSchedule) Reset ¶
func (x *RotationSchedule) Reset()
func (*RotationSchedule) String ¶
func (x *RotationSchedule) String() string
type TrustServiceClient ¶
type TrustServiceClient interface { // GetCertAuthority returns a cert authority by type and domain. GetCertAuthority(ctx context.Context, in *GetCertAuthorityRequest, opts ...grpc.CallOption) (*types.CertAuthorityV2, error) // GetCertAuthorities returns all cert authorities with the specified type. GetCertAuthorities(ctx context.Context, in *GetCertAuthoritiesRequest, opts ...grpc.CallOption) (*GetCertAuthoritiesResponse, error) // DeleteCertAuthority deletes the matching cert authority. DeleteCertAuthority(ctx context.Context, in *DeleteCertAuthorityRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // UpsertCertAuthority creates or updates the provided cert authority. UpsertCertAuthority(ctx context.Context, in *UpsertCertAuthorityRequest, opts ...grpc.CallOption) (*types.CertAuthorityV2, error) // RotateCertAuthority is a request to start rotation of the certificate authority. RotateCertAuthority(ctx context.Context, in *RotateCertAuthorityRequest, opts ...grpc.CallOption) (*RotateCertAuthorityResponse, error) // RotateExternalCertAuthority rotates an external cert authority. RotateExternalCertAuthority(ctx context.Context, in *RotateExternalCertAuthorityRequest, opts ...grpc.CallOption) (*RotateExternalCertAuthorityResponse, error) // GenerateHostCert takes a public key in the OpenSSH `authorized_keys` format and returns // a SSH certificate signed by the Host CA. GenerateHostCert(ctx context.Context, in *GenerateHostCertRequest, opts ...grpc.CallOption) (*GenerateHostCertResponse, error) }
TrustServiceClient is the client API for TrustService 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 NewTrustServiceClient ¶
func NewTrustServiceClient(cc grpc.ClientConnInterface) TrustServiceClient
type TrustServiceServer ¶
type TrustServiceServer interface { // GetCertAuthority returns a cert authority by type and domain. GetCertAuthority(context.Context, *GetCertAuthorityRequest) (*types.CertAuthorityV2, error) // GetCertAuthorities returns all cert authorities with the specified type. GetCertAuthorities(context.Context, *GetCertAuthoritiesRequest) (*GetCertAuthoritiesResponse, error) // DeleteCertAuthority deletes the matching cert authority. DeleteCertAuthority(context.Context, *DeleteCertAuthorityRequest) (*emptypb.Empty, error) // UpsertCertAuthority creates or updates the provided cert authority. UpsertCertAuthority(context.Context, *UpsertCertAuthorityRequest) (*types.CertAuthorityV2, error) // RotateCertAuthority is a request to start rotation of the certificate authority. RotateCertAuthority(context.Context, *RotateCertAuthorityRequest) (*RotateCertAuthorityResponse, error) // RotateExternalCertAuthority rotates an external cert authority. RotateExternalCertAuthority(context.Context, *RotateExternalCertAuthorityRequest) (*RotateExternalCertAuthorityResponse, error) // GenerateHostCert takes a public key in the OpenSSH `authorized_keys` format and returns // a SSH certificate signed by the Host CA. GenerateHostCert(context.Context, *GenerateHostCertRequest) (*GenerateHostCertResponse, error) // contains filtered or unexported methods }
TrustServiceServer is the server API for TrustService service. All implementations must embed UnimplementedTrustServiceServer for forward compatibility
type UnimplementedTrustServiceServer ¶
type UnimplementedTrustServiceServer struct { }
UnimplementedTrustServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTrustServiceServer) DeleteCertAuthority ¶
func (UnimplementedTrustServiceServer) DeleteCertAuthority(context.Context, *DeleteCertAuthorityRequest) (*emptypb.Empty, error)
func (UnimplementedTrustServiceServer) GenerateHostCert ¶
func (UnimplementedTrustServiceServer) GenerateHostCert(context.Context, *GenerateHostCertRequest) (*GenerateHostCertResponse, error)
func (UnimplementedTrustServiceServer) GetCertAuthorities ¶
func (UnimplementedTrustServiceServer) GetCertAuthorities(context.Context, *GetCertAuthoritiesRequest) (*GetCertAuthoritiesResponse, error)
func (UnimplementedTrustServiceServer) GetCertAuthority ¶
func (UnimplementedTrustServiceServer) GetCertAuthority(context.Context, *GetCertAuthorityRequest) (*types.CertAuthorityV2, error)
func (UnimplementedTrustServiceServer) RotateCertAuthority ¶
func (UnimplementedTrustServiceServer) RotateCertAuthority(context.Context, *RotateCertAuthorityRequest) (*RotateCertAuthorityResponse, error)
func (UnimplementedTrustServiceServer) RotateExternalCertAuthority ¶
func (UnimplementedTrustServiceServer) RotateExternalCertAuthority(context.Context, *RotateExternalCertAuthorityRequest) (*RotateExternalCertAuthorityResponse, error)
func (UnimplementedTrustServiceServer) UpsertCertAuthority ¶
func (UnimplementedTrustServiceServer) UpsertCertAuthority(context.Context, *UpsertCertAuthorityRequest) (*types.CertAuthorityV2, error)
type UnsafeTrustServiceServer ¶
type UnsafeTrustServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTrustServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TrustServiceServer will result in compilation errors.
type UpsertCertAuthorityRequest ¶
type UpsertCertAuthorityRequest struct { // The certificate authority to create or update. CertAuthority *types.CertAuthorityV2 `protobuf:"bytes,1,opt,name=cert_authority,json=certAuthority,proto3" json:"cert_authority,omitempty"` // contains filtered or unexported fields }
Request for UpsertCertAuthority
func (*UpsertCertAuthorityRequest) Descriptor
deprecated
func (*UpsertCertAuthorityRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpsertCertAuthorityRequest.ProtoReflect.Descriptor instead.
func (*UpsertCertAuthorityRequest) GetCertAuthority ¶
func (x *UpsertCertAuthorityRequest) GetCertAuthority() *types.CertAuthorityV2
func (*UpsertCertAuthorityRequest) ProtoMessage ¶
func (*UpsertCertAuthorityRequest) ProtoMessage()
func (*UpsertCertAuthorityRequest) ProtoReflect ¶
func (x *UpsertCertAuthorityRequest) ProtoReflect() protoreflect.Message
func (*UpsertCertAuthorityRequest) Reset ¶
func (x *UpsertCertAuthorityRequest) Reset()
func (*UpsertCertAuthorityRequest) String ¶
func (x *UpsertCertAuthorityRequest) String() string