meshapi

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MeshAPI_NewMeshCert_FullMethodName = "/meshapi.MeshAPI/NewMeshCert"
)
View Source
const Port = "7777"

Port is the port of the mesh API.

Variables

View Source
var File_meshapi_proto protoreflect.FileDescriptor
View Source
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"`
	// 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) 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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL