2020-10-09 13:18:53 -04:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
package services
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
2021-02-22 12:46:00 -05:00
// Requires gRPC-Go v1.32.0 or later.
2020-11-11 14:41:05 -05:00
const _ = grpc . SupportPackageIsVersion7
2020-10-09 13:18:53 -04:00
// AuthMethodServiceClient is the client API for AuthMethodService 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.
type AuthMethodServiceClient interface {
// GetAuthMethod returns a stored Auth Method if present. The provided request
// must include the Auth Method id. If missing, malformed or referencing a
// non existing resource an error is returned.
GetAuthMethod ( ctx context . Context , in * GetAuthMethodRequest , opts ... grpc . CallOption ) ( * GetAuthMethodResponse , error )
// ListAuthMethods returns a list of stored Auth Methods which are in the
// provided scope. The request must include the scope id and if missing,
// malformed, or referencing a non existing scope, an error is returned.
ListAuthMethods ( ctx context . Context , in * ListAuthMethodsRequest , opts ... grpc . CallOption ) ( * ListAuthMethodsResponse , error )
// CreateAuthMethod creates and stores an Auth Method in boundary. The
// provided request must include the scope in which the Auth Method will be
// created. If the scope id is missing, malformed or referencing a
// non existing resource an error is returned. If a name is provided that is
// in use in another Auth Method in the same scope, an error is returned.
CreateAuthMethod ( ctx context . Context , in * CreateAuthMethodRequest , opts ... grpc . CallOption ) ( * CreateAuthMethodResponse , error )
// UpdateAuthMethod updates an existing Auth Method in boundary. The provided
// Auth Method must not have any read only fields set. The update mask must be
// included in the request and contain at least 1 mutable field. To unset
// a field's value, include the field in the update mask and don't set it
// in the provided user. An error is returned if the Auth Method id is missing
// or reference a non existing resource. An error is also returned if the
// request attempts to update the name to one that is already in use by
// another Auth Method in the parent scope.
UpdateAuthMethod ( ctx context . Context , in * UpdateAuthMethodRequest , opts ... grpc . CallOption ) ( * UpdateAuthMethodResponse , error )
// DeleteAuthMethod removes an Auth Method from Boundary. If the Auth Method id
// is malformed or not provided an error is returned.
DeleteAuthMethod ( ctx context . Context , in * DeleteAuthMethodRequest , opts ... grpc . CallOption ) ( * DeleteAuthMethodResponse , error )
2021-04-08 20:54:32 -04:00
// ChangeState changes the state of an Auth Method from Boundary.
ChangeState ( ctx context . Context , in * ChangeStateRequest , opts ... grpc . CallOption ) ( * ChangeStateResponse , error )
2020-10-12 18:03:15 -04:00
// Authenticate validates credentials provided and returns an Auth Token.
Authenticate ( ctx context . Context , in * AuthenticateRequest , opts ... grpc . CallOption ) ( * AuthenticateResponse , error )
2020-10-09 13:18:53 -04:00
}
type authMethodServiceClient struct {
cc grpc . ClientConnInterface
}
func NewAuthMethodServiceClient ( cc grpc . ClientConnInterface ) AuthMethodServiceClient {
return & authMethodServiceClient { cc }
}
func ( c * authMethodServiceClient ) GetAuthMethod ( ctx context . Context , in * GetAuthMethodRequest , opts ... grpc . CallOption ) ( * GetAuthMethodResponse , error ) {
out := new ( GetAuthMethodResponse )
err := c . cc . Invoke ( ctx , "/controller.api.services.v1.AuthMethodService/GetAuthMethod" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * authMethodServiceClient ) ListAuthMethods ( ctx context . Context , in * ListAuthMethodsRequest , opts ... grpc . CallOption ) ( * ListAuthMethodsResponse , error ) {
out := new ( ListAuthMethodsResponse )
err := c . cc . Invoke ( ctx , "/controller.api.services.v1.AuthMethodService/ListAuthMethods" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * authMethodServiceClient ) CreateAuthMethod ( ctx context . Context , in * CreateAuthMethodRequest , opts ... grpc . CallOption ) ( * CreateAuthMethodResponse , error ) {
out := new ( CreateAuthMethodResponse )
err := c . cc . Invoke ( ctx , "/controller.api.services.v1.AuthMethodService/CreateAuthMethod" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * authMethodServiceClient ) UpdateAuthMethod ( ctx context . Context , in * UpdateAuthMethodRequest , opts ... grpc . CallOption ) ( * UpdateAuthMethodResponse , error ) {
out := new ( UpdateAuthMethodResponse )
err := c . cc . Invoke ( ctx , "/controller.api.services.v1.AuthMethodService/UpdateAuthMethod" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * authMethodServiceClient ) DeleteAuthMethod ( ctx context . Context , in * DeleteAuthMethodRequest , opts ... grpc . CallOption ) ( * DeleteAuthMethodResponse , error ) {
out := new ( DeleteAuthMethodResponse )
err := c . cc . Invoke ( ctx , "/controller.api.services.v1.AuthMethodService/DeleteAuthMethod" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2021-04-08 20:54:32 -04:00
func ( c * authMethodServiceClient ) ChangeState ( ctx context . Context , in * ChangeStateRequest , opts ... grpc . CallOption ) ( * ChangeStateResponse , error ) {
out := new ( ChangeStateResponse )
err := c . cc . Invoke ( ctx , "/controller.api.services.v1.AuthMethodService/ChangeState" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2020-10-12 18:03:15 -04:00
func ( c * authMethodServiceClient ) Authenticate ( ctx context . Context , in * AuthenticateRequest , opts ... grpc . CallOption ) ( * AuthenticateResponse , error ) {
out := new ( AuthenticateResponse )
err := c . cc . Invoke ( ctx , "/controller.api.services.v1.AuthMethodService/Authenticate" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2020-10-09 13:18:53 -04:00
// AuthMethodServiceServer is the server API for AuthMethodService service.
2020-11-11 14:41:05 -05:00
// All implementations must embed UnimplementedAuthMethodServiceServer
// for forward compatibility
2020-10-09 13:18:53 -04:00
type AuthMethodServiceServer interface {
// GetAuthMethod returns a stored Auth Method if present. The provided request
// must include the Auth Method id. If missing, malformed or referencing a
// non existing resource an error is returned.
GetAuthMethod ( context . Context , * GetAuthMethodRequest ) ( * GetAuthMethodResponse , error )
// ListAuthMethods returns a list of stored Auth Methods which are in the
// provided scope. The request must include the scope id and if missing,
// malformed, or referencing a non existing scope, an error is returned.
ListAuthMethods ( context . Context , * ListAuthMethodsRequest ) ( * ListAuthMethodsResponse , error )
// CreateAuthMethod creates and stores an Auth Method in boundary. The
// provided request must include the scope in which the Auth Method will be
// created. If the scope id is missing, malformed or referencing a
// non existing resource an error is returned. If a name is provided that is
// in use in another Auth Method in the same scope, an error is returned.
CreateAuthMethod ( context . Context , * CreateAuthMethodRequest ) ( * CreateAuthMethodResponse , error )
// UpdateAuthMethod updates an existing Auth Method in boundary. The provided
// Auth Method must not have any read only fields set. The update mask must be
// included in the request and contain at least 1 mutable field. To unset
// a field's value, include the field in the update mask and don't set it
// in the provided user. An error is returned if the Auth Method id is missing
// or reference a non existing resource. An error is also returned if the
// request attempts to update the name to one that is already in use by
// another Auth Method in the parent scope.
UpdateAuthMethod ( context . Context , * UpdateAuthMethodRequest ) ( * UpdateAuthMethodResponse , error )
// DeleteAuthMethod removes an Auth Method from Boundary. If the Auth Method id
// is malformed or not provided an error is returned.
DeleteAuthMethod ( context . Context , * DeleteAuthMethodRequest ) ( * DeleteAuthMethodResponse , error )
2021-04-08 20:54:32 -04:00
// ChangeState changes the state of an Auth Method from Boundary.
ChangeState ( context . Context , * ChangeStateRequest ) ( * ChangeStateResponse , error )
2020-10-12 18:03:15 -04:00
// Authenticate validates credentials provided and returns an Auth Token.
Authenticate ( context . Context , * AuthenticateRequest ) ( * AuthenticateResponse , error )
2020-11-11 14:41:05 -05:00
mustEmbedUnimplementedAuthMethodServiceServer ()
2020-10-09 13:18:53 -04:00
}
2020-11-11 14:41:05 -05:00
// UnimplementedAuthMethodServiceServer must be embedded to have forward compatible implementations.
2021-01-08 10:32:02 -05:00
type UnimplementedAuthMethodServiceServer struct {
}
2020-10-09 13:18:53 -04:00
2020-11-11 14:41:05 -05:00
func ( UnimplementedAuthMethodServiceServer ) GetAuthMethod ( context . Context , * GetAuthMethodRequest ) ( * GetAuthMethodResponse , error ) {
2020-10-09 13:18:53 -04:00
return nil , status . Errorf ( codes . Unimplemented , "method GetAuthMethod not implemented" )
}
2020-11-11 14:41:05 -05:00
func ( UnimplementedAuthMethodServiceServer ) ListAuthMethods ( context . Context , * ListAuthMethodsRequest ) ( * ListAuthMethodsResponse , error ) {
2020-10-09 13:18:53 -04:00
return nil , status . Errorf ( codes . Unimplemented , "method ListAuthMethods not implemented" )
}
2020-11-11 14:41:05 -05:00
func ( UnimplementedAuthMethodServiceServer ) CreateAuthMethod ( context . Context , * CreateAuthMethodRequest ) ( * CreateAuthMethodResponse , error ) {
2020-10-09 13:18:53 -04:00
return nil , status . Errorf ( codes . Unimplemented , "method CreateAuthMethod not implemented" )
}
2020-11-11 14:41:05 -05:00
func ( UnimplementedAuthMethodServiceServer ) UpdateAuthMethod ( context . Context , * UpdateAuthMethodRequest ) ( * UpdateAuthMethodResponse , error ) {
2020-10-09 13:18:53 -04:00
return nil , status . Errorf ( codes . Unimplemented , "method UpdateAuthMethod not implemented" )
}
2020-11-11 14:41:05 -05:00
func ( UnimplementedAuthMethodServiceServer ) DeleteAuthMethod ( context . Context , * DeleteAuthMethodRequest ) ( * DeleteAuthMethodResponse , error ) {
2020-10-09 13:18:53 -04:00
return nil , status . Errorf ( codes . Unimplemented , "method DeleteAuthMethod not implemented" )
}
2021-04-08 20:54:32 -04:00
func ( UnimplementedAuthMethodServiceServer ) ChangeState ( context . Context , * ChangeStateRequest ) ( * ChangeStateResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ChangeState not implemented" )
}
2020-11-11 14:41:05 -05:00
func ( UnimplementedAuthMethodServiceServer ) Authenticate ( context . Context , * AuthenticateRequest ) ( * AuthenticateResponse , error ) {
2020-10-12 18:03:15 -04:00
return nil , status . Errorf ( codes . Unimplemented , "method Authenticate not implemented" )
}
2020-11-11 14:41:05 -05:00
func ( UnimplementedAuthMethodServiceServer ) mustEmbedUnimplementedAuthMethodServiceServer () {}
2020-10-09 13:18:53 -04:00
2020-11-11 14:41:05 -05:00
// UnsafeAuthMethodServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to AuthMethodServiceServer will
// result in compilation errors.
type UnsafeAuthMethodServiceServer interface {
mustEmbedUnimplementedAuthMethodServiceServer ()
}
func RegisterAuthMethodServiceServer ( s grpc . ServiceRegistrar , srv AuthMethodServiceServer ) {
2021-02-22 12:46:00 -05:00
s . RegisterService ( & AuthMethodService_ServiceDesc , srv )
2020-10-09 13:18:53 -04:00
}
func _AuthMethodService_GetAuthMethod_Handler ( srv interface {}, ctx context . Context , dec func ( interface {}) error , interceptor grpc . UnaryServerInterceptor ) ( interface {}, error ) {
in := new ( GetAuthMethodRequest )
if err := dec ( in ); err != nil {
return nil , err
}
if interceptor == nil {
return srv .( AuthMethodServiceServer ). GetAuthMethod ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/controller.api.services.v1.AuthMethodService/GetAuthMethod" ,
}
handler := func ( ctx context . Context , req interface {}) ( interface {}, error ) {
return srv .( AuthMethodServiceServer ). GetAuthMethod ( ctx , req .( * GetAuthMethodRequest ))
}
return interceptor ( ctx , in , info , handler )
}
func _AuthMethodService_ListAuthMethods_Handler ( srv interface {}, ctx context . Context , dec func ( interface {}) error , interceptor grpc . UnaryServerInterceptor ) ( interface {}, error ) {
in := new ( ListAuthMethodsRequest )
if err := dec ( in ); err != nil {
return nil , err
}
if interceptor == nil {
return srv .( AuthMethodServiceServer ). ListAuthMethods ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/controller.api.services.v1.AuthMethodService/ListAuthMethods" ,
}
handler := func ( ctx context . Context , req interface {}) ( interface {}, error ) {
return srv .( AuthMethodServiceServer ). ListAuthMethods ( ctx , req .( * ListAuthMethodsRequest ))
}
return interceptor ( ctx , in , info , handler )
}
func _AuthMethodService_CreateAuthMethod_Handler ( srv interface {}, ctx context . Context , dec func ( interface {}) error , interceptor grpc . UnaryServerInterceptor ) ( interface {}, error ) {
in := new ( CreateAuthMethodRequest )
if err := dec ( in ); err != nil {
return nil , err
}
if interceptor == nil {
return srv .( AuthMethodServiceServer ). CreateAuthMethod ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/controller.api.services.v1.AuthMethodService/CreateAuthMethod" ,
}
handler := func ( ctx context . Context , req interface {}) ( interface {}, error ) {
return srv .( AuthMethodServiceServer ). CreateAuthMethod ( ctx , req .( * CreateAuthMethodRequest ))
}
return interceptor ( ctx , in , info , handler )
}
func _AuthMethodService_UpdateAuthMethod_Handler ( srv interface {}, ctx context . Context , dec func ( interface {}) error , interceptor grpc . UnaryServerInterceptor ) ( interface {}, error ) {
in := new ( UpdateAuthMethodRequest )
if err := dec ( in ); err != nil {
return nil , err
}
if interceptor == nil {
return srv .( AuthMethodServiceServer ). UpdateAuthMethod ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/controller.api.services.v1.AuthMethodService/UpdateAuthMethod" ,
}
handler := func ( ctx context . Context , req interface {}) ( interface {}, error ) {
return srv .( AuthMethodServiceServer ). UpdateAuthMethod ( ctx , req .( * UpdateAuthMethodRequest ))
}
return interceptor ( ctx , in , info , handler )
}
func _AuthMethodService_DeleteAuthMethod_Handler ( srv interface {}, ctx context . Context , dec func ( interface {}) error , interceptor grpc . UnaryServerInterceptor ) ( interface {}, error ) {
in := new ( DeleteAuthMethodRequest )
if err := dec ( in ); err != nil {
return nil , err
}
if interceptor == nil {
return srv .( AuthMethodServiceServer ). DeleteAuthMethod ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/controller.api.services.v1.AuthMethodService/DeleteAuthMethod" ,
}
handler := func ( ctx context . Context , req interface {}) ( interface {}, error ) {
return srv .( AuthMethodServiceServer ). DeleteAuthMethod ( ctx , req .( * DeleteAuthMethodRequest ))
}
return interceptor ( ctx , in , info , handler )
}
2021-04-08 20:54:32 -04:00
func _AuthMethodService_ChangeState_Handler ( srv interface {}, ctx context . Context , dec func ( interface {}) error , interceptor grpc . UnaryServerInterceptor ) ( interface {}, error ) {
in := new ( ChangeStateRequest )
if err := dec ( in ); err != nil {
return nil , err
}
if interceptor == nil {
return srv .( AuthMethodServiceServer ). ChangeState ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/controller.api.services.v1.AuthMethodService/ChangeState" ,
}
handler := func ( ctx context . Context , req interface {}) ( interface {}, error ) {
return srv .( AuthMethodServiceServer ). ChangeState ( ctx , req .( * ChangeStateRequest ))
}
return interceptor ( ctx , in , info , handler )
}
2020-10-12 18:03:15 -04:00
func _AuthMethodService_Authenticate_Handler ( srv interface {}, ctx context . Context , dec func ( interface {}) error , interceptor grpc . UnaryServerInterceptor ) ( interface {}, error ) {
in := new ( AuthenticateRequest )
if err := dec ( in ); err != nil {
return nil , err
}
if interceptor == nil {
return srv .( AuthMethodServiceServer ). Authenticate ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/controller.api.services.v1.AuthMethodService/Authenticate" ,
}
handler := func ( ctx context . Context , req interface {}) ( interface {}, error ) {
return srv .( AuthMethodServiceServer ). Authenticate ( ctx , req .( * AuthenticateRequest ))
}
return interceptor ( ctx , in , info , handler )
}
2021-02-22 12:46:00 -05:00
// AuthMethodService_ServiceDesc is the grpc.ServiceDesc for AuthMethodService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var AuthMethodService_ServiceDesc = grpc . ServiceDesc {
2020-10-09 13:18:53 -04:00
ServiceName : "controller.api.services.v1.AuthMethodService" ,
HandlerType : ( * AuthMethodServiceServer )( nil ),
Methods : [] grpc . MethodDesc {
{
MethodName : "GetAuthMethod" ,
Handler : _AuthMethodService_GetAuthMethod_Handler ,
},
{
MethodName : "ListAuthMethods" ,
Handler : _AuthMethodService_ListAuthMethods_Handler ,
},
{
MethodName : "CreateAuthMethod" ,
Handler : _AuthMethodService_CreateAuthMethod_Handler ,
},
{
MethodName : "UpdateAuthMethod" ,
Handler : _AuthMethodService_UpdateAuthMethod_Handler ,
},
{
MethodName : "DeleteAuthMethod" ,
Handler : _AuthMethodService_DeleteAuthMethod_Handler ,
},
2021-04-08 20:54:32 -04:00
{
MethodName : "ChangeState" ,
Handler : _AuthMethodService_ChangeState_Handler ,
},
2020-10-12 18:03:15 -04:00
{
MethodName : "Authenticate" ,
Handler : _AuthMethodService_Authenticate_Handler ,
},
2020-10-09 13:18:53 -04:00
},
Streams : [] grpc . StreamDesc {},
Metadata : "controller/api/services/v1/auth_method_service.proto" ,
}