Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterMeshAPIServer(s grpc.ServiceRegistrar, srv MeshAPIServer)
- type MeshAPIClient
- type MeshAPIServer
- type NewMeshCertRequest
- type NewMeshCertResponse
- func (*NewMeshCertResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NewMeshCertResponse) GetCertChain() []byte
- func (x *NewMeshCertResponse) GetMeshCACert() []byte
- func (x *NewMeshCertResponse) GetRootCACert() []byte
- func (x *NewMeshCertResponse) GetWorkloadSecret() []byte
- func (*NewMeshCertResponse) ProtoMessage()
- func (x *NewMeshCertResponse) ProtoReflect() protoreflect.Message
- func (x *NewMeshCertResponse) Reset()
- func (x *NewMeshCertResponse) String() string
- type UnimplementedMeshAPIServer
- type UnsafeMeshAPIServer
Constants ¶
const (
MeshAPI_NewMeshCert_FullMethodName = "/meshapi.MeshAPI/NewMeshCert"
)
const Port = "7777"
Port is the port of the mesh API.
Variables ¶
var File_meshapi_proto protoreflect.FileDescriptor
var MeshAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "meshapi.MeshAPI", HandlerType: (*MeshAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "NewMeshCert", Handler: _MeshAPI_NewMeshCert_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "meshapi.proto", }
MeshAPI_ServiceDesc is the grpc.ServiceDesc for MeshAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMeshAPIServer ¶
func RegisterMeshAPIServer(s grpc.ServiceRegistrar, srv MeshAPIServer)
Types ¶
type MeshAPIClient ¶
type MeshAPIClient interface {
NewMeshCert(ctx context.Context, in *NewMeshCertRequest, opts ...grpc.CallOption) (*NewMeshCertResponse, error)
}
MeshAPIClient is the client API for MeshAPI 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 NewMeshAPIClient ¶
func NewMeshAPIClient(cc grpc.ClientConnInterface) MeshAPIClient
type MeshAPIServer ¶
type MeshAPIServer interface { NewMeshCert(context.Context, *NewMeshCertRequest) (*NewMeshCertResponse, error) // contains filtered or unexported methods }
MeshAPIServer is the server API for MeshAPI service. All implementations must embed UnimplementedMeshAPIServer for forward compatibility
type NewMeshCertRequest ¶
type NewMeshCertRequest struct {
// contains filtered or unexported fields
}
func (*NewMeshCertRequest) Descriptor
deprecated
func (*NewMeshCertRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewMeshCertRequest.ProtoReflect.Descriptor instead.
func (*NewMeshCertRequest) ProtoMessage ¶
func (*NewMeshCertRequest) ProtoMessage()
func (*NewMeshCertRequest) ProtoReflect ¶
func (x *NewMeshCertRequest) ProtoReflect() protoreflect.Message
func (*NewMeshCertRequest) Reset ¶
func (x *NewMeshCertRequest) Reset()
func (*NewMeshCertRequest) String ¶
func (x *NewMeshCertRequest) String() string
type NewMeshCertResponse ¶
type NewMeshCertResponse struct { // PEM-encoded certificate used by the workload as CA MeshCACert []byte `protobuf:"bytes,1,opt,name=MeshCACert,proto3" json:"MeshCACert,omitempty"` // Concatenated PEM-encoded certificates used by the workload certificate chain CertChain []byte `protobuf:"bytes,2,opt,name=CertChain,proto3" json:"CertChain,omitempty"` // PEM-encoded certificate when workloads trust also workloads from previous manifests RootCACert []byte `protobuf:"bytes,3,opt,name=RootCACert,proto3" json:"RootCACert,omitempty"` // Raw byte slice which can be used to derive more secrets WorkloadSecret []byte `protobuf:"bytes,4,opt,name=WorkloadSecret,proto3" json:"WorkloadSecret,omitempty"` // contains filtered or unexported fields }
func (*NewMeshCertResponse) Descriptor
deprecated
func (*NewMeshCertResponse) Descriptor() ([]byte, []int)
Deprecated: Use NewMeshCertResponse.ProtoReflect.Descriptor instead.
func (*NewMeshCertResponse) GetCertChain ¶
func (x *NewMeshCertResponse) GetCertChain() []byte
func (*NewMeshCertResponse) GetMeshCACert ¶
func (x *NewMeshCertResponse) GetMeshCACert() []byte
func (*NewMeshCertResponse) GetRootCACert ¶
func (x *NewMeshCertResponse) GetRootCACert() []byte
func (*NewMeshCertResponse) GetWorkloadSecret ¶ added in v1.1.0
func (x *NewMeshCertResponse) GetWorkloadSecret() []byte
func (*NewMeshCertResponse) ProtoMessage ¶
func (*NewMeshCertResponse) ProtoMessage()
func (*NewMeshCertResponse) ProtoReflect ¶
func (x *NewMeshCertResponse) ProtoReflect() protoreflect.Message
func (*NewMeshCertResponse) Reset ¶
func (x *NewMeshCertResponse) Reset()
func (*NewMeshCertResponse) String ¶
func (x *NewMeshCertResponse) String() string
type UnimplementedMeshAPIServer ¶
type UnimplementedMeshAPIServer struct { }
UnimplementedMeshAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedMeshAPIServer) NewMeshCert ¶
func (UnimplementedMeshAPIServer) NewMeshCert(context.Context, *NewMeshCertRequest) (*NewMeshCertResponse, error)
type UnsafeMeshAPIServer ¶
type UnsafeMeshAPIServer interface {
// contains filtered or unexported methods
}
UnsafeMeshAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MeshAPIServer will result in compilation errors.