Documentation
¶
Overview ¶
Code generated by protoc-gen-deepcopy. DO NOT EDIT.
Code generated by protoc-json-shim. DO NOT EDIT.
Index ¶
- Variables
- func RegisterConnectCAServiceServer(s grpc.ServiceRegistrar, srv ConnectCAServiceServer)
- type CARoot
- func (in *CARoot) DeepCopy() *CARoot
- func (in *CARoot) DeepCopyInterface() interface{}
- func (in *CARoot) DeepCopyInto(out *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 (this *CARoot) MarshalJSON() ([]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
- func (this *CARoot) UnmarshalJSON(b []byte) error
- type ConnectCAServiceClient
- type ConnectCAServiceServer
- type ConnectCAService_WatchRootsClient
- type ConnectCAService_WatchRootsServer
- type SignRequest
- func (in *SignRequest) DeepCopy() *SignRequest
- func (in *SignRequest) DeepCopyInterface() interface{}
- func (in *SignRequest) DeepCopyInto(out *SignRequest)
- func (*SignRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignRequest) GetCsr() string
- func (msg *SignRequest) MarshalBinary() ([]byte, error)
- func (this *SignRequest) MarshalJSON() ([]byte, error)
- func (*SignRequest) ProtoMessage()
- func (x *SignRequest) ProtoReflect() protoreflect.Message
- func (x *SignRequest) Reset()
- func (x *SignRequest) String() string
- func (msg *SignRequest) UnmarshalBinary(b []byte) error
- func (this *SignRequest) UnmarshalJSON(b []byte) error
- type SignResponse
- func (in *SignResponse) DeepCopy() *SignResponse
- func (in *SignResponse) DeepCopyInterface() interface{}
- func (in *SignResponse) DeepCopyInto(out *SignResponse)
- func (*SignResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SignResponse) GetCertPem() string
- func (msg *SignResponse) MarshalBinary() ([]byte, error)
- func (this *SignResponse) MarshalJSON() ([]byte, error)
- func (*SignResponse) ProtoMessage()
- func (x *SignResponse) ProtoReflect() protoreflect.Message
- func (x *SignResponse) Reset()
- func (x *SignResponse) String() string
- func (msg *SignResponse) UnmarshalBinary(b []byte) error
- func (this *SignResponse) UnmarshalJSON(b []byte) error
- type UnimplementedConnectCAServiceServer
- type UnsafeConnectCAServiceServer
- type WatchRootsRequest
- func (in *WatchRootsRequest) DeepCopy() *WatchRootsRequest
- func (in *WatchRootsRequest) DeepCopyInterface() interface{}
- func (in *WatchRootsRequest) DeepCopyInto(out *WatchRootsRequest)
- func (*WatchRootsRequest) Descriptor() ([]byte, []int)deprecated
- func (msg *WatchRootsRequest) MarshalBinary() ([]byte, error)
- func (this *WatchRootsRequest) MarshalJSON() ([]byte, error)
- func (*WatchRootsRequest) ProtoMessage()
- func (x *WatchRootsRequest) ProtoReflect() protoreflect.Message
- func (x *WatchRootsRequest) Reset()
- func (x *WatchRootsRequest) String() string
- func (msg *WatchRootsRequest) UnmarshalBinary(b []byte) error
- func (this *WatchRootsRequest) UnmarshalJSON(b []byte) error
- type WatchRootsResponse
- func (in *WatchRootsResponse) DeepCopy() *WatchRootsResponse
- func (in *WatchRootsResponse) DeepCopyInterface() interface{}
- func (in *WatchRootsResponse) DeepCopyInto(out *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 (this *WatchRootsResponse) MarshalJSON() ([]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
- func (this *WatchRootsResponse) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( CaMarshaler = &protojson.MarshalOptions{} CaUnmarshaler = &protojson.UnmarshalOptions{DiscardUnknown: false} )
var ConnectCAService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hashicorp.consul.connectca.ConnectCAService", HandlerType: (*ConnectCAServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Sign", Handler: _ConnectCAService_Sign_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "WatchRoots", Handler: _ConnectCAService_WatchRoots_Handler, ServerStreams: true, }, }, Metadata: "pbconnectca/ca.proto", }
ConnectCAService_ServiceDesc is the grpc.ServiceDesc for ConnectCAService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pbconnectca_ca_proto protoreflect.FileDescriptor
Functions ¶
func RegisterConnectCAServiceServer ¶
func RegisterConnectCAServiceServer(s grpc.ServiceRegistrar, 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) DeepCopy ¶ added in v0.5.1
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CARoot. Required by controller-gen.
func (*CARoot) DeepCopyInterface ¶ added in v0.5.1
func (in *CARoot) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new CARoot. Required by controller-gen.
func (*CARoot) DeepCopyInto ¶ added in v0.5.1
DeepCopyInto supports using CARoot within kubernetes types, where deepcopy-gen is used.
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) MarshalJSON ¶ added in v0.5.1
MarshalJSON is a custom marshaler for CARoot
func (*CARoot) ProtoMessage ¶
func (*CARoot) ProtoMessage()
func (*CARoot) ProtoReflect ¶
func (x *CARoot) ProtoReflect() protoreflect.Message
func (*CARoot) UnmarshalBinary ¶
UnmarshalBinary implements encoding.BinaryUnmarshaler
func (*CARoot) UnmarshalJSON ¶ added in v0.5.1
UnmarshalJSON is a custom unmarshaler for CARoot
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 *WatchRootsRequest, opts ...grpc.CallOption) (ConnectCAService_WatchRootsClient, error) // Sign a leaf certificate for the service or agent identified by the SPIFFE // ID in the given CSR's SAN. Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error) }
ConnectCAServiceClient is the client API for ConnectCAService 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 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(*WatchRootsRequest, ConnectCAService_WatchRootsServer) error // Sign a leaf certificate for the service or agent identified by the SPIFFE // ID in the given CSR's SAN. Sign(context.Context, *SignRequest) (*SignResponse, error) }
ConnectCAServiceServer is the server API for ConnectCAService service. All implementations should embed UnimplementedConnectCAServiceServer for forward compatibility
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 SignRequest ¶
type SignRequest struct { // csr is the PEM-encoded Certificate Signing Request (CSR). // // The CSR's SAN must include a SPIFFE ID that identifies a service or agent // to which the ACL token provided in the `x-consul-token` metadata has write // access. Csr string `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"` // contains filtered or unexported fields }
func (*SignRequest) DeepCopy ¶ added in v0.5.1
func (in *SignRequest) DeepCopy() *SignRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SignRequest. Required by controller-gen.
func (*SignRequest) DeepCopyInterface ¶ added in v0.5.1
func (in *SignRequest) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new SignRequest. Required by controller-gen.
func (*SignRequest) DeepCopyInto ¶ added in v0.5.1
func (in *SignRequest) DeepCopyInto(out *SignRequest)
DeepCopyInto supports using SignRequest within kubernetes types, where deepcopy-gen is used.
func (*SignRequest) Descriptor
deprecated
func (*SignRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignRequest.ProtoReflect.Descriptor instead.
func (*SignRequest) GetCsr ¶
func (x *SignRequest) GetCsr() string
func (*SignRequest) MarshalBinary ¶
func (msg *SignRequest) MarshalBinary() ([]byte, error)
MarshalBinary implements encoding.BinaryMarshaler
func (*SignRequest) MarshalJSON ¶ added in v0.5.1
func (this *SignRequest) MarshalJSON() ([]byte, error)
MarshalJSON is a custom marshaler for SignRequest
func (*SignRequest) ProtoMessage ¶
func (*SignRequest) ProtoMessage()
func (*SignRequest) ProtoReflect ¶
func (x *SignRequest) ProtoReflect() protoreflect.Message
func (*SignRequest) Reset ¶
func (x *SignRequest) Reset()
func (*SignRequest) String ¶
func (x *SignRequest) String() string
func (*SignRequest) UnmarshalBinary ¶
func (msg *SignRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary implements encoding.BinaryUnmarshaler
func (*SignRequest) UnmarshalJSON ¶ added in v0.5.1
func (this *SignRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON is a custom unmarshaler for SignRequest
type SignResponse ¶
type SignResponse struct { // cert_pem is the PEM-encoded leaf certificate. CertPem string `protobuf:"bytes,2,opt,name=cert_pem,json=certPem,proto3" json:"cert_pem,omitempty"` // contains filtered or unexported fields }
func (*SignResponse) DeepCopy ¶ added in v0.5.1
func (in *SignResponse) DeepCopy() *SignResponse
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SignResponse. Required by controller-gen.
func (*SignResponse) DeepCopyInterface ¶ added in v0.5.1
func (in *SignResponse) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new SignResponse. Required by controller-gen.
func (*SignResponse) DeepCopyInto ¶ added in v0.5.1
func (in *SignResponse) DeepCopyInto(out *SignResponse)
DeepCopyInto supports using SignResponse within kubernetes types, where deepcopy-gen is used.
func (*SignResponse) Descriptor
deprecated
func (*SignResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignResponse.ProtoReflect.Descriptor instead.
func (*SignResponse) GetCertPem ¶
func (x *SignResponse) GetCertPem() string
func (*SignResponse) MarshalBinary ¶
func (msg *SignResponse) MarshalBinary() ([]byte, error)
MarshalBinary implements encoding.BinaryMarshaler
func (*SignResponse) MarshalJSON ¶ added in v0.5.1
func (this *SignResponse) MarshalJSON() ([]byte, error)
MarshalJSON is a custom marshaler for SignResponse
func (*SignResponse) ProtoMessage ¶
func (*SignResponse) ProtoMessage()
func (*SignResponse) ProtoReflect ¶
func (x *SignResponse) ProtoReflect() protoreflect.Message
func (*SignResponse) Reset ¶
func (x *SignResponse) Reset()
func (*SignResponse) String ¶
func (x *SignResponse) String() string
func (*SignResponse) UnmarshalBinary ¶
func (msg *SignResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary implements encoding.BinaryUnmarshaler
func (*SignResponse) UnmarshalJSON ¶ added in v0.5.1
func (this *SignResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON is a custom unmarshaler for SignResponse
type UnimplementedConnectCAServiceServer ¶
type UnimplementedConnectCAServiceServer struct { }
UnimplementedConnectCAServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedConnectCAServiceServer) Sign ¶
func (UnimplementedConnectCAServiceServer) Sign(context.Context, *SignRequest) (*SignResponse, error)
func (UnimplementedConnectCAServiceServer) WatchRoots ¶
func (UnimplementedConnectCAServiceServer) WatchRoots(*WatchRootsRequest, ConnectCAService_WatchRootsServer) error
type UnsafeConnectCAServiceServer ¶
type UnsafeConnectCAServiceServer interface {
// contains filtered or unexported methods
}
UnsafeConnectCAServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ConnectCAServiceServer will result in compilation errors.
type WatchRootsRequest ¶
type WatchRootsRequest struct {
// contains filtered or unexported fields
}
func (*WatchRootsRequest) DeepCopy ¶ added in v0.5.1
func (in *WatchRootsRequest) DeepCopy() *WatchRootsRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WatchRootsRequest. Required by controller-gen.
func (*WatchRootsRequest) DeepCopyInterface ¶ added in v0.5.1
func (in *WatchRootsRequest) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new WatchRootsRequest. Required by controller-gen.
func (*WatchRootsRequest) DeepCopyInto ¶ added in v0.5.1
func (in *WatchRootsRequest) DeepCopyInto(out *WatchRootsRequest)
DeepCopyInto supports using WatchRootsRequest within kubernetes types, where deepcopy-gen is used.
func (*WatchRootsRequest) Descriptor
deprecated
func (*WatchRootsRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchRootsRequest.ProtoReflect.Descriptor instead.
func (*WatchRootsRequest) MarshalBinary ¶
func (msg *WatchRootsRequest) MarshalBinary() ([]byte, error)
MarshalBinary implements encoding.BinaryMarshaler
func (*WatchRootsRequest) MarshalJSON ¶ added in v0.5.1
func (this *WatchRootsRequest) MarshalJSON() ([]byte, error)
MarshalJSON is a custom marshaler for WatchRootsRequest
func (*WatchRootsRequest) ProtoMessage ¶
func (*WatchRootsRequest) ProtoMessage()
func (*WatchRootsRequest) ProtoReflect ¶
func (x *WatchRootsRequest) ProtoReflect() protoreflect.Message
func (*WatchRootsRequest) Reset ¶
func (x *WatchRootsRequest) Reset()
func (*WatchRootsRequest) String ¶
func (x *WatchRootsRequest) String() string
func (*WatchRootsRequest) UnmarshalBinary ¶
func (msg *WatchRootsRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary implements encoding.BinaryUnmarshaler
func (*WatchRootsRequest) UnmarshalJSON ¶ added in v0.5.1
func (this *WatchRootsRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON is a custom unmarshaler for WatchRootsRequest
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) DeepCopy ¶ added in v0.5.1
func (in *WatchRootsResponse) DeepCopy() *WatchRootsResponse
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WatchRootsResponse. Required by controller-gen.
func (*WatchRootsResponse) DeepCopyInterface ¶ added in v0.5.1
func (in *WatchRootsResponse) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new WatchRootsResponse. Required by controller-gen.
func (*WatchRootsResponse) DeepCopyInto ¶ added in v0.5.1
func (in *WatchRootsResponse) DeepCopyInto(out *WatchRootsResponse)
DeepCopyInto supports using WatchRootsResponse within kubernetes types, where deepcopy-gen is used.
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) MarshalJSON ¶ added in v0.5.1
func (this *WatchRootsResponse) MarshalJSON() ([]byte, error)
MarshalJSON is a custom marshaler for WatchRootsResponse
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
func (*WatchRootsResponse) UnmarshalJSON ¶ added in v0.5.1
func (this *WatchRootsResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON is a custom unmarshaler for WatchRootsResponse