Documentation ¶
Index ¶
- Variables
- func RegisterConnectCAServiceServer(s *grpc.Server, srv ConnectCAServiceServer)
- type CARoot
- func (*CARoot) Descriptor() ([]byte, []int)deprecated
- func (x *CARoot) GetActive() bool
- func (x *CARoot) GetId() string
- func (x *CARoot) GetIntermediateCerts() []string
- func (x *CARoot) GetName() string
- func (x *CARoot) GetRootCert() string
- func (x *CARoot) GetRotatedOutAt() *timestamppb.Timestamp
- func (x *CARoot) GetSerialNumber() uint64
- func (x *CARoot) GetSigningKeyId() string
- func (msg *CARoot) MarshalBinary() ([]byte, error)
- func (*CARoot) ProtoMessage()
- func (x *CARoot) ProtoReflect() protoreflect.Message
- func (x *CARoot) Reset()
- func (x *CARoot) String() string
- func (msg *CARoot) UnmarshalBinary(b []byte) error
- type ConnectCAServiceClient
- type ConnectCAServiceServer
- type ConnectCAService_WatchRootsClient
- type ConnectCAService_WatchRootsServer
- type UnimplementedConnectCAServiceServer
- type WatchRootsResponse
- func (*WatchRootsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WatchRootsResponse) GetActiveRootId() string
- func (x *WatchRootsResponse) GetRoots() []*CARoot
- func (x *WatchRootsResponse) GetTrustDomain() string
- func (msg *WatchRootsResponse) MarshalBinary() ([]byte, error)
- func (*WatchRootsResponse) ProtoMessage()
- func (x *WatchRootsResponse) ProtoReflect() protoreflect.Message
- func (x *WatchRootsResponse) Reset()
- func (x *WatchRootsResponse) String() string
- func (msg *WatchRootsResponse) UnmarshalBinary(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_public_pbconnectca_ca_proto protoreflect.FileDescriptor
Functions ¶
func RegisterConnectCAServiceServer ¶
func RegisterConnectCAServiceServer(s *grpc.Server, srv ConnectCAServiceServer)
Types ¶
type CARoot ¶
type CARoot struct { // id is a globally unique ID (UUID) representing this CA root. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // name is a human-friendly name for this CA root. This value is opaque to // Consul and is not used for anything internally. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // serial_number is the x509 serial number of the certificate. SerialNumber uint64 `protobuf:"varint,3,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"` // signing_key_id is the connect.HexString encoded id of the public key that // corresponds to the private key used to sign leaf certificates in the // local datacenter. // // The value comes from x509.Certificate.SubjectKeyId of the local leaf // signing cert. // // See https://www.rfc-editor.org/rfc/rfc3280#section-4.2.1.1 for more detail. SigningKeyId string `protobuf:"bytes,4,opt,name=signing_key_id,json=signingKeyId,proto3" json:"signing_key_id,omitempty"` // root_cert is the PEM-encoded public certificate. RootCert string `protobuf:"bytes,5,opt,name=root_cert,json=rootCert,proto3" json:"root_cert,omitempty"` // intermediate_certs is a list of PEM-encoded intermediate certs to // attach to any leaf certs signed by this CA. IntermediateCerts []string `protobuf:"bytes,6,rep,name=intermediate_certs,json=intermediateCerts,proto3" json:"intermediate_certs,omitempty"` // active is true if this is the current active CA. This must only // be true for exactly one CA. Active bool `protobuf:"varint,7,opt,name=active,proto3" json:"active,omitempty"` // rotated_out_at is the time at which this CA was removed from the state. // This will only be set on roots that have been rotated out from being the // active root. RotatedOutAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=rotated_out_at,json=rotatedOutAt,proto3" json:"rotated_out_at,omitempty"` // contains filtered or unexported fields }
func (*CARoot) Descriptor
deprecated
func (*CARoot) GetIntermediateCerts ¶
func (*CARoot) GetRootCert ¶
func (*CARoot) GetRotatedOutAt ¶
func (x *CARoot) GetRotatedOutAt() *timestamppb.Timestamp
func (*CARoot) GetSerialNumber ¶
func (*CARoot) GetSigningKeyId ¶
func (*CARoot) MarshalBinary ¶
MarshalBinary implements encoding.BinaryMarshaler
func (*CARoot) ProtoMessage ¶
func (*CARoot) ProtoMessage()
func (*CARoot) ProtoReflect ¶
func (x *CARoot) ProtoReflect() protoreflect.Message
func (*CARoot) UnmarshalBinary ¶
UnmarshalBinary implements encoding.BinaryUnmarshaler
type ConnectCAServiceClient ¶
type ConnectCAServiceClient interface { // WatchRoots provides a stream on which you can receive the list of active // Connect CA roots. Current roots are sent immediately at the start of the // stream, and new lists will be sent whenever the roots are rotated. WatchRoots(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (ConnectCAService_WatchRootsClient, error) }
ConnectCAServiceClient is the client API for ConnectCAService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewConnectCAServiceClient ¶
func NewConnectCAServiceClient(cc grpc.ClientConnInterface) ConnectCAServiceClient
type ConnectCAServiceServer ¶
type ConnectCAServiceServer interface { // WatchRoots provides a stream on which you can receive the list of active // Connect CA roots. Current roots are sent immediately at the start of the // stream, and new lists will be sent whenever the roots are rotated. WatchRoots(*emptypb.Empty, ConnectCAService_WatchRootsServer) error }
ConnectCAServiceServer is the server API for ConnectCAService service.
type ConnectCAService_WatchRootsClient ¶
type ConnectCAService_WatchRootsClient interface { Recv() (*WatchRootsResponse, error) grpc.ClientStream }
type ConnectCAService_WatchRootsServer ¶
type ConnectCAService_WatchRootsServer interface { Send(*WatchRootsResponse) error grpc.ServerStream }
type UnimplementedConnectCAServiceServer ¶
type UnimplementedConnectCAServiceServer struct { }
UnimplementedConnectCAServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedConnectCAServiceServer) WatchRoots ¶
func (*UnimplementedConnectCAServiceServer) WatchRoots(*emptypb.Empty, ConnectCAService_WatchRootsServer) error
type WatchRootsResponse ¶
type WatchRootsResponse struct { // active_root_id is the ID of a root in Roots that is the active CA root. // Other roots are still valid if they're in the Roots list but are in the // process of being rotated out. ActiveRootId string `protobuf:"bytes,1,opt,name=active_root_id,json=activeRootId,proto3" json:"active_root_id,omitempty"` // trust_domain is the identification root for this Consul cluster. All // certificates signed by the cluster's CA must have their identifying URI // in this domain. // // This does not include the protocol (currently spiffe://) since we may // implement other protocols in future with equivalent semantics. It should // be compared against the "authority" section of a URI (i.e. host:port). TrustDomain string `protobuf:"bytes,2,opt,name=trust_domain,json=trustDomain,proto3" json:"trust_domain,omitempty"` // roots is a list of root CA certs to trust. Roots []*CARoot `protobuf:"bytes,3,rep,name=roots,proto3" json:"roots,omitempty"` // contains filtered or unexported fields }
func (*WatchRootsResponse) Descriptor
deprecated
func (*WatchRootsResponse) Descriptor() ([]byte, []int)
Deprecated: Use WatchRootsResponse.ProtoReflect.Descriptor instead.
func (*WatchRootsResponse) GetActiveRootId ¶
func (x *WatchRootsResponse) GetActiveRootId() string
func (*WatchRootsResponse) GetRoots ¶
func (x *WatchRootsResponse) GetRoots() []*CARoot
func (*WatchRootsResponse) GetTrustDomain ¶
func (x *WatchRootsResponse) GetTrustDomain() string
func (*WatchRootsResponse) MarshalBinary ¶
func (msg *WatchRootsResponse) MarshalBinary() ([]byte, error)
MarshalBinary implements encoding.BinaryMarshaler
func (*WatchRootsResponse) ProtoMessage ¶
func (*WatchRootsResponse) ProtoMessage()
func (*WatchRootsResponse) ProtoReflect ¶
func (x *WatchRootsResponse) ProtoReflect() protoreflect.Message
func (*WatchRootsResponse) Reset ¶
func (x *WatchRootsResponse) Reset()
func (*WatchRootsResponse) String ¶
func (x *WatchRootsResponse) String() string
func (*WatchRootsResponse) UnmarshalBinary ¶
func (msg *WatchRootsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary implements encoding.BinaryUnmarshaler
Click to show internal directories.
Click to hide internal directories.