idp

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IdpService_CreateClient_FullMethodName = "/api.v1alpha1.org.idp.IdpService/CreateClient"
	IdpService_UpdateClient_FullMethodName = "/api.v1alpha1.org.idp.IdpService/UpdateClient"
	IdpService_DeleteClient_FullMethodName = "/api.v1alpha1.org.idp.IdpService/DeleteClient"
	IdpService_ListClients_FullMethodName  = "/api.v1alpha1.org.idp.IdpService/ListClients"
)

Variables

View Source
var File_api_v1alpha1_org_idp_entities_proto protoreflect.FileDescriptor
View Source
var File_api_v1alpha1_org_idp_service_proto protoreflect.FileDescriptor
View Source
var IdpService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.v1alpha1.org.idp.IdpService",
	HandlerType: (*IdpServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateClient",
			Handler:    _IdpService_CreateClient_Handler,
		},
		{
			MethodName: "UpdateClient",
			Handler:    _IdpService_UpdateClient_Handler,
		},
		{
			MethodName: "DeleteClient",
			Handler:    _IdpService_DeleteClient_Handler,
		},
		{
			MethodName: "ListClients",
			Handler:    _IdpService_ListClients_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1alpha1/org/idp/service.proto",
}

IdpService_ServiceDesc is the grpc.ServiceDesc for IdpService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterIdpServiceServer

func RegisterIdpServiceServer(s grpc.ServiceRegistrar, srv IdpServiceServer)

Types

type CreateClientRequest

type CreateClientRequest struct {
	Client *org.IdpClient `protobuf:"bytes,1,opt,name=client,proto3" json:"client,omitempty"`
	// contains filtered or unexported fields
}

CreateClientRequest is a request to make a client.

func (*CreateClientRequest) Descriptor deprecated

func (*CreateClientRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateClientRequest.ProtoReflect.Descriptor instead.

func (*CreateClientRequest) GetClient

func (x *CreateClientRequest) GetClient() *org.IdpClient

func (*CreateClientRequest) ProtoMessage

func (*CreateClientRequest) ProtoMessage()

func (*CreateClientRequest) ProtoReflect

func (x *CreateClientRequest) ProtoReflect() protoreflect.Message

func (*CreateClientRequest) Reset

func (x *CreateClientRequest) Reset()

func (*CreateClientRequest) String

func (x *CreateClientRequest) String() string

type CreateClientResponse

type CreateClientResponse struct {
	AlreadyExists bool           `protobuf:"varint,1,opt,name=already_exists,json=alreadyExists,proto3" json:"already_exists,omitempty"`
	Client        *org.IdpClient `protobuf:"bytes,2,opt,name=client,proto3" json:"client,omitempty"`
	// contains filtered or unexported fields
}

CreateClientResponse returns the response from creating a client.

func (*CreateClientResponse) Descriptor deprecated

func (*CreateClientResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateClientResponse.ProtoReflect.Descriptor instead.

func (*CreateClientResponse) GetAlreadyExists

func (x *CreateClientResponse) GetAlreadyExists() bool

func (*CreateClientResponse) GetClient

func (x *CreateClientResponse) GetClient() *org.IdpClient

func (*CreateClientResponse) ProtoMessage

func (*CreateClientResponse) ProtoMessage()

func (*CreateClientResponse) ProtoReflect

func (x *CreateClientResponse) ProtoReflect() protoreflect.Message

func (*CreateClientResponse) Reset

func (x *CreateClientResponse) Reset()

func (*CreateClientResponse) String

func (x *CreateClientResponse) String() string

type DeleteClientRequest

type DeleteClientRequest struct {

	// The ID of the client.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

DeleteClientRequest is a request to delete a client.

func (*DeleteClientRequest) Descriptor deprecated

func (*DeleteClientRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteClientRequest.ProtoReflect.Descriptor instead.

func (*DeleteClientRequest) GetId

func (x *DeleteClientRequest) GetId() string

func (*DeleteClientRequest) ProtoMessage

func (*DeleteClientRequest) ProtoMessage()

func (*DeleteClientRequest) ProtoReflect

func (x *DeleteClientRequest) ProtoReflect() protoreflect.Message

func (*DeleteClientRequest) Reset

func (x *DeleteClientRequest) Reset()

func (*DeleteClientRequest) String

func (x *DeleteClientRequest) String() string

type DeleteClientResponse

type DeleteClientResponse struct {
	NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
	// contains filtered or unexported fields
}

DeleteClientResponse determines if the client is deleted successfully.

func (*DeleteClientResponse) Descriptor deprecated

func (*DeleteClientResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteClientResponse.ProtoReflect.Descriptor instead.

func (*DeleteClientResponse) GetNotFound

func (x *DeleteClientResponse) GetNotFound() bool

func (*DeleteClientResponse) ProtoMessage

func (*DeleteClientResponse) ProtoMessage()

func (*DeleteClientResponse) ProtoReflect

func (x *DeleteClientResponse) ProtoReflect() protoreflect.Message

func (*DeleteClientResponse) Reset

func (x *DeleteClientResponse) Reset()

func (*DeleteClientResponse) String

func (x *DeleteClientResponse) String() string

type IdpServiceClient

type IdpServiceClient interface {
	// CreateClient creates a client.
	CreateClient(ctx context.Context, in *CreateClientRequest, opts ...grpc.CallOption) (*CreateClientResponse, error)
	// UpdateClient updates an existing client
	UpdateClient(ctx context.Context, in *UpdateClientRequest, opts ...grpc.CallOption) (*UpdateClientResponse, error)
	// DeleteClient deletes the provided client.
	DeleteClient(ctx context.Context, in *DeleteClientRequest, opts ...grpc.CallOption) (*DeleteClientResponse, error)
	// ListClients returns all clients.
	ListClients(ctx context.Context, in *ListClientsRequest, opts ...grpc.CallOption) (*ListClientsResponse, error)
}

IdpServiceClient is the client API for IdpService 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 NewIdpServiceClient

func NewIdpServiceClient(cc grpc.ClientConnInterface) IdpServiceClient

type IdpServiceServer

type IdpServiceServer interface {
	// CreateClient creates a client.
	CreateClient(context.Context, *CreateClientRequest) (*CreateClientResponse, error)
	// UpdateClient updates an existing client
	UpdateClient(context.Context, *UpdateClientRequest) (*UpdateClientResponse, error)
	// DeleteClient deletes the provided client.
	DeleteClient(context.Context, *DeleteClientRequest) (*DeleteClientResponse, error)
	// ListClients returns all clients.
	ListClients(context.Context, *ListClientsRequest) (*ListClientsResponse, error)
	// contains filtered or unexported methods
}

IdpServiceServer is the server API for IdpService service. All implementations must embed UnimplementedIdpServiceServer for forward compatibility.

type ListClientsRequest

type ListClientsRequest struct {
	// contains filtered or unexported fields
}

ListClientsRequest is a request to list all existing clients.

func (*ListClientsRequest) Descriptor deprecated

func (*ListClientsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListClientsRequest.ProtoReflect.Descriptor instead.

func (*ListClientsRequest) ProtoMessage

func (*ListClientsRequest) ProtoMessage()

func (*ListClientsRequest) ProtoReflect

func (x *ListClientsRequest) ProtoReflect() protoreflect.Message

func (*ListClientsRequest) Reset

func (x *ListClientsRequest) Reset()

func (*ListClientsRequest) String

func (x *ListClientsRequest) String() string

type ListClientsResponse

type ListClientsResponse struct {
	Clients []*org.IdpClient `protobuf:"bytes,1,rep,name=clients,proto3" json:"clients,omitempty"`
	// contains filtered or unexported fields
}

ListClientsResponse returns the response from listing all clients.

func (*ListClientsResponse) Descriptor deprecated

func (*ListClientsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListClientsResponse.ProtoReflect.Descriptor instead.

func (*ListClientsResponse) GetClients

func (x *ListClientsResponse) GetClients() []*org.IdpClient

func (*ListClientsResponse) ProtoMessage

func (*ListClientsResponse) ProtoMessage()

func (*ListClientsResponse) ProtoReflect

func (x *ListClientsResponse) ProtoReflect() protoreflect.Message

func (*ListClientsResponse) Reset

func (x *ListClientsResponse) Reset()

func (*ListClientsResponse) String

func (x *ListClientsResponse) String() string

type UnimplementedIdpServiceServer

type UnimplementedIdpServiceServer struct{}

UnimplementedIdpServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedIdpServiceServer) CreateClient

func (UnimplementedIdpServiceServer) DeleteClient

func (UnimplementedIdpServiceServer) ListClients

func (UnimplementedIdpServiceServer) UpdateClient

type UnsafeIdpServiceServer

type UnsafeIdpServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeIdpServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IdpServiceServer will result in compilation errors.

type UpdateClientRequest

type UpdateClientRequest struct {
	Client *org.IdpClient `protobuf:"bytes,1,opt,name=client,proto3" json:"client,omitempty"`
	// contains filtered or unexported fields
}

UpdateClientRequest is a request to update an existing client.

func (*UpdateClientRequest) Descriptor deprecated

func (*UpdateClientRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateClientRequest.ProtoReflect.Descriptor instead.

func (*UpdateClientRequest) GetClient

func (x *UpdateClientRequest) GetClient() *org.IdpClient

func (*UpdateClientRequest) ProtoMessage

func (*UpdateClientRequest) ProtoMessage()

func (*UpdateClientRequest) ProtoReflect

func (x *UpdateClientRequest) ProtoReflect() protoreflect.Message

func (*UpdateClientRequest) Reset

func (x *UpdateClientRequest) Reset()

func (*UpdateClientRequest) String

func (x *UpdateClientRequest) String() string

type UpdateClientResponse

type UpdateClientResponse struct {
	NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
	// contains filtered or unexported fields
}

UpdateClientResponse returns the response from updating a client.

func (*UpdateClientResponse) Descriptor deprecated

func (*UpdateClientResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateClientResponse.ProtoReflect.Descriptor instead.

func (*UpdateClientResponse) GetNotFound

func (x *UpdateClientResponse) GetNotFound() bool

func (*UpdateClientResponse) ProtoMessage

func (*UpdateClientResponse) ProtoMessage()

func (*UpdateClientResponse) ProtoReflect

func (x *UpdateClientResponse) ProtoReflect() protoreflect.Message

func (*UpdateClientResponse) Reset

func (x *UpdateClientResponse) Reset()

func (*UpdateClientResponse) String

func (x *UpdateClientResponse) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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