diff --git a/majordomo_grpc.pb.go b/majordomo_grpc.pb.go index bd9a49f..a0303ae 100644 --- a/majordomo_grpc.pb.go +++ b/majordomo_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc v4.23.4 // source: majordomo.proto @@ -18,6 +18,27 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + Majordomo_Login_FullMethodName = "/linkedca.Majordomo/Login" + Majordomo_GetRootCertificate_FullMethodName = "/linkedca.Majordomo/GetRootCertificate" + Majordomo_GetConfiguration_FullMethodName = "/linkedca.Majordomo/GetConfiguration" + Majordomo_CreateProvisioner_FullMethodName = "/linkedca.Majordomo/CreateProvisioner" + Majordomo_GetProvisioner_FullMethodName = "/linkedca.Majordomo/GetProvisioner" + Majordomo_UpdateProvisioner_FullMethodName = "/linkedca.Majordomo/UpdateProvisioner" + Majordomo_DeleteProvisioner_FullMethodName = "/linkedca.Majordomo/DeleteProvisioner" + Majordomo_CreateAdmin_FullMethodName = "/linkedca.Majordomo/CreateAdmin" + Majordomo_GetAdmin_FullMethodName = "/linkedca.Majordomo/GetAdmin" + Majordomo_UpdateAdmin_FullMethodName = "/linkedca.Majordomo/UpdateAdmin" + Majordomo_DeleteAdmin_FullMethodName = "/linkedca.Majordomo/DeleteAdmin" + Majordomo_PostCertificate_FullMethodName = "/linkedca.Majordomo/PostCertificate" + Majordomo_PostSSHCertificate_FullMethodName = "/linkedca.Majordomo/PostSSHCertificate" + Majordomo_RevokeCertificate_FullMethodName = "/linkedca.Majordomo/RevokeCertificate" + Majordomo_RevokeSSHCertificate_FullMethodName = "/linkedca.Majordomo/RevokeSSHCertificate" + Majordomo_GetCertificate_FullMethodName = "/linkedca.Majordomo/GetCertificate" + Majordomo_GetCertificateStatus_FullMethodName = "/linkedca.Majordomo/GetCertificateStatus" + Majordomo_GetSSHCertificateStatus_FullMethodName = "/linkedca.Majordomo/GetSSHCertificateStatus" +) + // MajordomoClient is the client API for Majordomo 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. @@ -73,7 +94,7 @@ func NewMajordomoClient(cc grpc.ClientConnInterface) MajordomoClient { func (c *majordomoClient) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) { out := new(LoginResponse) - err := c.cc.Invoke(ctx, "/linkedca.Majordomo/Login", in, out, opts...) + err := c.cc.Invoke(ctx, Majordomo_Login_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -82,7 +103,7 @@ func (c *majordomoClient) Login(ctx context.Context, in *LoginRequest, opts ...g func (c *majordomoClient) GetRootCertificate(ctx context.Context, in *GetRootCertificateRequest, opts ...grpc.CallOption) (*GetRootCertificateResponse, error) { out := new(GetRootCertificateResponse) - err := c.cc.Invoke(ctx, "/linkedca.Majordomo/GetRootCertificate", in, out, opts...) + err := c.cc.Invoke(ctx, Majordomo_GetRootCertificate_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -91,7 +112,7 @@ func (c *majordomoClient) GetRootCertificate(ctx context.Context, in *GetRootCer func (c *majordomoClient) GetConfiguration(ctx context.Context, in *ConfigurationRequest, opts ...grpc.CallOption) (*ConfigurationResponse, error) { out := new(ConfigurationResponse) - err := c.cc.Invoke(ctx, "/linkedca.Majordomo/GetConfiguration", in, out, opts...) + err := c.cc.Invoke(ctx, Majordomo_GetConfiguration_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -100,7 +121,7 @@ func (c *majordomoClient) GetConfiguration(ctx context.Context, in *Configuratio func (c *majordomoClient) CreateProvisioner(ctx context.Context, in *CreateProvisionerRequest, opts ...grpc.CallOption) (*Provisioner, error) { out := new(Provisioner) - err := c.cc.Invoke(ctx, "/linkedca.Majordomo/CreateProvisioner", in, out, opts...) + err := c.cc.Invoke(ctx, Majordomo_CreateProvisioner_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -109,7 +130,7 @@ func (c *majordomoClient) CreateProvisioner(ctx context.Context, in *CreateProvi func (c *majordomoClient) GetProvisioner(ctx context.Context, in *GetProvisionerRequest, opts ...grpc.CallOption) (*Provisioner, error) { out := new(Provisioner) - err := c.cc.Invoke(ctx, "/linkedca.Majordomo/GetProvisioner", in, out, opts...) + err := c.cc.Invoke(ctx, Majordomo_GetProvisioner_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -118,7 +139,7 @@ func (c *majordomoClient) GetProvisioner(ctx context.Context, in *GetProvisioner func (c *majordomoClient) UpdateProvisioner(ctx context.Context, in *UpdateProvisionerRequest, opts ...grpc.CallOption) (*Provisioner, error) { out := new(Provisioner) - err := c.cc.Invoke(ctx, "/linkedca.Majordomo/UpdateProvisioner", in, out, opts...) + err := c.cc.Invoke(ctx, Majordomo_UpdateProvisioner_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -127,7 +148,7 @@ func (c *majordomoClient) UpdateProvisioner(ctx context.Context, in *UpdateProvi func (c *majordomoClient) DeleteProvisioner(ctx context.Context, in *DeleteProvisionerRequest, opts ...grpc.CallOption) (*Provisioner, error) { out := new(Provisioner) - err := c.cc.Invoke(ctx, "/linkedca.Majordomo/DeleteProvisioner", in, out, opts...) + err := c.cc.Invoke(ctx, Majordomo_DeleteProvisioner_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -136,7 +157,7 @@ func (c *majordomoClient) DeleteProvisioner(ctx context.Context, in *DeleteProvi func (c *majordomoClient) CreateAdmin(ctx context.Context, in *CreateAdminRequest, opts ...grpc.CallOption) (*Admin, error) { out := new(Admin) - err := c.cc.Invoke(ctx, "/linkedca.Majordomo/CreateAdmin", in, out, opts...) + err := c.cc.Invoke(ctx, Majordomo_CreateAdmin_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -145,7 +166,7 @@ func (c *majordomoClient) CreateAdmin(ctx context.Context, in *CreateAdminReques func (c *majordomoClient) GetAdmin(ctx context.Context, in *GetAdminRequest, opts ...grpc.CallOption) (*Admin, error) { out := new(Admin) - err := c.cc.Invoke(ctx, "/linkedca.Majordomo/GetAdmin", in, out, opts...) + err := c.cc.Invoke(ctx, Majordomo_GetAdmin_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -154,7 +175,7 @@ func (c *majordomoClient) GetAdmin(ctx context.Context, in *GetAdminRequest, opt func (c *majordomoClient) UpdateAdmin(ctx context.Context, in *UpdateAdminRequest, opts ...grpc.CallOption) (*Admin, error) { out := new(Admin) - err := c.cc.Invoke(ctx, "/linkedca.Majordomo/UpdateAdmin", in, out, opts...) + err := c.cc.Invoke(ctx, Majordomo_UpdateAdmin_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -163,7 +184,7 @@ func (c *majordomoClient) UpdateAdmin(ctx context.Context, in *UpdateAdminReques func (c *majordomoClient) DeleteAdmin(ctx context.Context, in *DeleteAdminRequest, opts ...grpc.CallOption) (*Admin, error) { out := new(Admin) - err := c.cc.Invoke(ctx, "/linkedca.Majordomo/DeleteAdmin", in, out, opts...) + err := c.cc.Invoke(ctx, Majordomo_DeleteAdmin_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -172,7 +193,7 @@ func (c *majordomoClient) DeleteAdmin(ctx context.Context, in *DeleteAdminReques func (c *majordomoClient) PostCertificate(ctx context.Context, in *CertificateRequest, opts ...grpc.CallOption) (*CertificateResponse, error) { out := new(CertificateResponse) - err := c.cc.Invoke(ctx, "/linkedca.Majordomo/PostCertificate", in, out, opts...) + err := c.cc.Invoke(ctx, Majordomo_PostCertificate_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -181,7 +202,7 @@ func (c *majordomoClient) PostCertificate(ctx context.Context, in *CertificateRe func (c *majordomoClient) PostSSHCertificate(ctx context.Context, in *SSHCertificateRequest, opts ...grpc.CallOption) (*SSHCertificateResponse, error) { out := new(SSHCertificateResponse) - err := c.cc.Invoke(ctx, "/linkedca.Majordomo/PostSSHCertificate", in, out, opts...) + err := c.cc.Invoke(ctx, Majordomo_PostSSHCertificate_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -190,7 +211,7 @@ func (c *majordomoClient) PostSSHCertificate(ctx context.Context, in *SSHCertifi func (c *majordomoClient) RevokeCertificate(ctx context.Context, in *RevokeCertificateRequest, opts ...grpc.CallOption) (*RevokeCertificateResponse, error) { out := new(RevokeCertificateResponse) - err := c.cc.Invoke(ctx, "/linkedca.Majordomo/RevokeCertificate", in, out, opts...) + err := c.cc.Invoke(ctx, Majordomo_RevokeCertificate_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -199,7 +220,7 @@ func (c *majordomoClient) RevokeCertificate(ctx context.Context, in *RevokeCerti func (c *majordomoClient) RevokeSSHCertificate(ctx context.Context, in *RevokeSSHCertificateRequest, opts ...grpc.CallOption) (*RevokeSSHCertificateResponse, error) { out := new(RevokeSSHCertificateResponse) - err := c.cc.Invoke(ctx, "/linkedca.Majordomo/RevokeSSHCertificate", in, out, opts...) + err := c.cc.Invoke(ctx, Majordomo_RevokeSSHCertificate_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -208,7 +229,7 @@ func (c *majordomoClient) RevokeSSHCertificate(ctx context.Context, in *RevokeSS func (c *majordomoClient) GetCertificate(ctx context.Context, in *GetCertificateRequest, opts ...grpc.CallOption) (*GetCertificateResponse, error) { out := new(GetCertificateResponse) - err := c.cc.Invoke(ctx, "/linkedca.Majordomo/GetCertificate", in, out, opts...) + err := c.cc.Invoke(ctx, Majordomo_GetCertificate_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -217,7 +238,7 @@ func (c *majordomoClient) GetCertificate(ctx context.Context, in *GetCertificate func (c *majordomoClient) GetCertificateStatus(ctx context.Context, in *GetCertificateStatusRequest, opts ...grpc.CallOption) (*GetCertificateStatusResponse, error) { out := new(GetCertificateStatusResponse) - err := c.cc.Invoke(ctx, "/linkedca.Majordomo/GetCertificateStatus", in, out, opts...) + err := c.cc.Invoke(ctx, Majordomo_GetCertificateStatus_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -226,7 +247,7 @@ func (c *majordomoClient) GetCertificateStatus(ctx context.Context, in *GetCerti func (c *majordomoClient) GetSSHCertificateStatus(ctx context.Context, in *GetSSHCertificateStatusRequest, opts ...grpc.CallOption) (*GetSSHCertificateStatusResponse, error) { out := new(GetSSHCertificateStatusResponse) - err := c.cc.Invoke(ctx, "/linkedca.Majordomo/GetSSHCertificateStatus", in, out, opts...) + err := c.cc.Invoke(ctx, Majordomo_GetSSHCertificateStatus_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -360,7 +381,7 @@ func _Majordomo_Login_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/linkedca.Majordomo/Login", + FullMethod: Majordomo_Login_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MajordomoServer).Login(ctx, req.(*LoginRequest)) @@ -378,7 +399,7 @@ func _Majordomo_GetRootCertificate_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/linkedca.Majordomo/GetRootCertificate", + FullMethod: Majordomo_GetRootCertificate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MajordomoServer).GetRootCertificate(ctx, req.(*GetRootCertificateRequest)) @@ -396,7 +417,7 @@ func _Majordomo_GetConfiguration_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/linkedca.Majordomo/GetConfiguration", + FullMethod: Majordomo_GetConfiguration_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MajordomoServer).GetConfiguration(ctx, req.(*ConfigurationRequest)) @@ -414,7 +435,7 @@ func _Majordomo_CreateProvisioner_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/linkedca.Majordomo/CreateProvisioner", + FullMethod: Majordomo_CreateProvisioner_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MajordomoServer).CreateProvisioner(ctx, req.(*CreateProvisionerRequest)) @@ -432,7 +453,7 @@ func _Majordomo_GetProvisioner_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/linkedca.Majordomo/GetProvisioner", + FullMethod: Majordomo_GetProvisioner_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MajordomoServer).GetProvisioner(ctx, req.(*GetProvisionerRequest)) @@ -450,7 +471,7 @@ func _Majordomo_UpdateProvisioner_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/linkedca.Majordomo/UpdateProvisioner", + FullMethod: Majordomo_UpdateProvisioner_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MajordomoServer).UpdateProvisioner(ctx, req.(*UpdateProvisionerRequest)) @@ -468,7 +489,7 @@ func _Majordomo_DeleteProvisioner_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/linkedca.Majordomo/DeleteProvisioner", + FullMethod: Majordomo_DeleteProvisioner_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MajordomoServer).DeleteProvisioner(ctx, req.(*DeleteProvisionerRequest)) @@ -486,7 +507,7 @@ func _Majordomo_CreateAdmin_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/linkedca.Majordomo/CreateAdmin", + FullMethod: Majordomo_CreateAdmin_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MajordomoServer).CreateAdmin(ctx, req.(*CreateAdminRequest)) @@ -504,7 +525,7 @@ func _Majordomo_GetAdmin_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/linkedca.Majordomo/GetAdmin", + FullMethod: Majordomo_GetAdmin_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MajordomoServer).GetAdmin(ctx, req.(*GetAdminRequest)) @@ -522,7 +543,7 @@ func _Majordomo_UpdateAdmin_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/linkedca.Majordomo/UpdateAdmin", + FullMethod: Majordomo_UpdateAdmin_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MajordomoServer).UpdateAdmin(ctx, req.(*UpdateAdminRequest)) @@ -540,7 +561,7 @@ func _Majordomo_DeleteAdmin_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/linkedca.Majordomo/DeleteAdmin", + FullMethod: Majordomo_DeleteAdmin_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MajordomoServer).DeleteAdmin(ctx, req.(*DeleteAdminRequest)) @@ -558,7 +579,7 @@ func _Majordomo_PostCertificate_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/linkedca.Majordomo/PostCertificate", + FullMethod: Majordomo_PostCertificate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MajordomoServer).PostCertificate(ctx, req.(*CertificateRequest)) @@ -576,7 +597,7 @@ func _Majordomo_PostSSHCertificate_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/linkedca.Majordomo/PostSSHCertificate", + FullMethod: Majordomo_PostSSHCertificate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MajordomoServer).PostSSHCertificate(ctx, req.(*SSHCertificateRequest)) @@ -594,7 +615,7 @@ func _Majordomo_RevokeCertificate_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/linkedca.Majordomo/RevokeCertificate", + FullMethod: Majordomo_RevokeCertificate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MajordomoServer).RevokeCertificate(ctx, req.(*RevokeCertificateRequest)) @@ -612,7 +633,7 @@ func _Majordomo_RevokeSSHCertificate_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/linkedca.Majordomo/RevokeSSHCertificate", + FullMethod: Majordomo_RevokeSSHCertificate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MajordomoServer).RevokeSSHCertificate(ctx, req.(*RevokeSSHCertificateRequest)) @@ -630,7 +651,7 @@ func _Majordomo_GetCertificate_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/linkedca.Majordomo/GetCertificate", + FullMethod: Majordomo_GetCertificate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MajordomoServer).GetCertificate(ctx, req.(*GetCertificateRequest)) @@ -648,7 +669,7 @@ func _Majordomo_GetCertificateStatus_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/linkedca.Majordomo/GetCertificateStatus", + FullMethod: Majordomo_GetCertificateStatus_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MajordomoServer).GetCertificateStatus(ctx, req.(*GetCertificateStatusRequest)) @@ -666,7 +687,7 @@ func _Majordomo_GetSSHCertificateStatus_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/linkedca.Majordomo/GetSSHCertificateStatus", + FullMethod: Majordomo_GetSSHCertificateStatus_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MajordomoServer).GetSSHCertificateStatus(ctx, req.(*GetSSHCertificateStatusRequest))