accessv1alpha1connect

package
v1.69.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// AccessServiceBatchEnsureProcedure is the fully-qualified name of the AccessService's BatchEnsure
	// RPC.
	AccessServiceBatchEnsureProcedure = "/commonfate.access.v1alpha1.AccessService/BatchEnsure"
	// AccessServiceQueryAvailabilitiesProcedure is the fully-qualified name of the AccessService's
	// QueryAvailabilities RPC.
	AccessServiceQueryAvailabilitiesProcedure = "/commonfate.access.v1alpha1.AccessService/QueryAvailabilities"
	// AccessServiceQueryEntitlementsProcedure is the fully-qualified name of the AccessService's
	// QueryEntitlements RPC.
	AccessServiceQueryEntitlementsProcedure = "/commonfate.access.v1alpha1.AccessService/QueryEntitlements"
	// AccessServiceQueryApproversProcedure is the fully-qualified name of the AccessService's
	// QueryApprovers RPC.
	AccessServiceQueryApproversProcedure = "/commonfate.access.v1alpha1.AccessService/QueryApprovers"
	// AccessServicePreviewUserAccessProcedure is the fully-qualified name of the AccessService's
	// PreviewUserAccess RPC.
	AccessServicePreviewUserAccessProcedure = "/commonfate.access.v1alpha1.AccessService/PreviewUserAccess"
	// AccessServicePreviewEntitlementAccessProcedure is the fully-qualified name of the AccessService's
	// PreviewEntitlementAccess RPC.
	AccessServicePreviewEntitlementAccessProcedure = "/commonfate.access.v1alpha1.AccessService/PreviewEntitlementAccess"
	// AccessServiceDebugEntitlementAccessProcedure is the fully-qualified name of the AccessService's
	// DebugEntitlementAccess RPC.
	AccessServiceDebugEntitlementAccessProcedure = "/commonfate.access.v1alpha1.AccessService/DebugEntitlementAccess"
	// AccessServiceQueryEntitlementsTreeProcedure is the fully-qualified name of the AccessService's
	// QueryEntitlementsTree RPC.
	AccessServiceQueryEntitlementsTreeProcedure = "/commonfate.access.v1alpha1.AccessService/QueryEntitlementsTree"
	// AccessServiceRequestReviewProcedure is the fully-qualified name of the AccessService's
	// RequestReview RPC.
	AccessServiceRequestReviewProcedure = "/commonfate.access.v1alpha1.AccessService/RequestReview"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// AccessRequestServiceQueryAccessRequestsProcedure is the fully-qualified name of the
	// AccessRequestService's QueryAccessRequests RPC.
	AccessRequestServiceQueryAccessRequestsProcedure = "/commonfate.access.v1alpha1.AccessRequestService/QueryAccessRequests"
	// AccessRequestServiceQueryMyAccessRequestsProcedure is the fully-qualified name of the
	// AccessRequestService's QueryMyAccessRequests RPC.
	AccessRequestServiceQueryMyAccessRequestsProcedure = "/commonfate.access.v1alpha1.AccessRequestService/QueryMyAccessRequests"
	// AccessRequestServiceGetAccessRequestProcedure is the fully-qualified name of the
	// AccessRequestService's GetAccessRequest RPC.
	AccessRequestServiceGetAccessRequestProcedure = "/commonfate.access.v1alpha1.AccessRequestService/GetAccessRequest"
	// AccessRequestServiceGetAccessRequestActionsProcedure is the fully-qualified name of the
	// AccessRequestService's GetAccessRequestActions RPC.
	AccessRequestServiceGetAccessRequestActionsProcedure = "/commonfate.access.v1alpha1.AccessRequestService/GetAccessRequestActions"
	// AccessRequestServiceApproveAccessRequestProcedure is the fully-qualified name of the
	// AccessRequestService's ApproveAccessRequest RPC.
	AccessRequestServiceApproveAccessRequestProcedure = "/commonfate.access.v1alpha1.AccessRequestService/ApproveAccessRequest"
	// AccessRequestServiceActivateAccessRequestProcedure is the fully-qualified name of the
	// AccessRequestService's ActivateAccessRequest RPC.
	AccessRequestServiceActivateAccessRequestProcedure = "/commonfate.access.v1alpha1.AccessRequestService/ActivateAccessRequest"
	// AccessRequestServiceCloseAccessRequestProcedure is the fully-qualified name of the
	// AccessRequestService's CloseAccessRequest RPC.
	AccessRequestServiceCloseAccessRequestProcedure = "/commonfate.access.v1alpha1.AccessRequestService/CloseAccessRequest"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// GrantsServiceQueryGrantsProcedure is the fully-qualified name of the GrantsService's QueryGrants
	// RPC.
	GrantsServiceQueryGrantsProcedure = "/commonfate.access.v1alpha1.GrantsService/QueryGrants"
	// GrantsServiceGetGrantProcedure is the fully-qualified name of the GrantsService's GetGrant RPC.
	GrantsServiceGetGrantProcedure = "/commonfate.access.v1alpha1.GrantsService/GetGrant"
	// GrantsServiceGetGrantOutputProcedure is the fully-qualified name of the GrantsService's
	// GetGrantOutput RPC.
	GrantsServiceGetGrantOutputProcedure = "/commonfate.access.v1alpha1.GrantsService/GetGrantOutput"
	// GrantsServiceQueryGrantChildrenProcedure is the fully-qualified name of the GrantsService's
	// QueryGrantChildren RPC.
	GrantsServiceQueryGrantChildrenProcedure = "/commonfate.access.v1alpha1.GrantsService/QueryGrantChildren"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// ProxySessionServiceStartSessionProcedure is the fully-qualified name of the ProxySessionService's
	// StartSession RPC.
	ProxySessionServiceStartSessionProcedure = "/commonfate.access.v1alpha1.ProxySessionService/StartSession"
	// ProxySessionServiceEndSessionProcedure is the fully-qualified name of the ProxySessionService's
	// EndSession RPC.
	ProxySessionServiceEndSessionProcedure = "/commonfate.access.v1alpha1.ProxySessionService/EndSession"
	// ProxySessionServicePutSessionLogProcedure is the fully-qualified name of the
	// ProxySessionService's PutSessionLog RPC.
	ProxySessionServicePutSessionLogProcedure = "/commonfate.access.v1alpha1.ProxySessionService/PutSessionLog"
	// ProxySessionServiceQuerySessionLogsProcedure is the fully-qualified name of the
	// ProxySessionService's QuerySessionLogs RPC.
	ProxySessionServiceQuerySessionLogsProcedure = "/commonfate.access.v1alpha1.ProxySessionService/QuerySessionLogs"
	// ProxySessionServiceGetSessionProcedure is the fully-qualified name of the ProxySessionService's
	// GetSession RPC.
	ProxySessionServiceGetSessionProcedure = "/commonfate.access.v1alpha1.ProxySessionService/GetSession"
	// ProxySessionServiceStartShellSessionProcedure is the fully-qualified name of the
	// ProxySessionService's StartShellSession RPC.
	ProxySessionServiceStartShellSessionProcedure = "/commonfate.access.v1alpha1.ProxySessionService/StartShellSession"
	// ProxySessionServiceEndShellSessionProcedure is the fully-qualified name of the
	// ProxySessionService's EndShellSession RPC.
	ProxySessionServiceEndShellSessionProcedure = "/commonfate.access.v1alpha1.ProxySessionService/EndShellSession"
	// ProxySessionServicePutShellSessionChunkProcedure is the fully-qualified name of the
	// ProxySessionService's PutShellSessionChunk RPC.
	ProxySessionServicePutShellSessionChunkProcedure = "/commonfate.access.v1alpha1.ProxySessionService/PutShellSessionChunk"
	// ProxySessionServiceGetShellSessionProcedure is the fully-qualified name of the
	// ProxySessionService's GetShellSession RPC.
	ProxySessionServiceGetShellSessionProcedure = "/commonfate.access.v1alpha1.ProxySessionService/GetShellSession"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// AccessRequestServiceName is the fully-qualified name of the AccessRequestService service.
	AccessRequestServiceName = "commonfate.access.v1alpha1.AccessRequestService"
)
View Source
const (
	// AccessServiceName is the fully-qualified name of the AccessService service.
	AccessServiceName = "commonfate.access.v1alpha1.AccessService"
)
View Source
const (
	// AttachmentsServiceName is the fully-qualified name of the AttachmentsService service.
	AttachmentsServiceName = "commonfate.access.v1alpha1.AttachmentsService"
)
View Source
const (
	// AttachmentsServiceQueryJiraIssuesProcedure is the fully-qualified name of the
	// AttachmentsService's QueryJiraIssues RPC.
	AttachmentsServiceQueryJiraIssuesProcedure = "/commonfate.access.v1alpha1.AttachmentsService/QueryJiraIssues"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// AuditLogServiceName is the fully-qualified name of the AuditLogService service.
	AuditLogServiceName = "commonfate.access.v1alpha1.AuditLogService"
)
View Source
const (
	// AuditLogServiceQueryAuditLogsProcedure is the fully-qualified name of the AuditLogService's
	// QueryAuditLogs RPC.
	AuditLogServiceQueryAuditLogsProcedure = "/commonfate.access.v1alpha1.AuditLogService/QueryAuditLogs"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// EntityServiceName is the fully-qualified name of the EntityService service.
	EntityServiceName = "commonfate.access.v1alpha1.EntityService"
)
View Source
const (
	// EntityServiceQueryDescendentsProcedure is the fully-qualified name of the EntityService's
	// QueryDescendents RPC.
	EntityServiceQueryDescendentsProcedure = "/commonfate.access.v1alpha1.EntityService/QueryDescendents"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// GrantsServiceName is the fully-qualified name of the GrantsService service.
	GrantsServiceName = "commonfate.access.v1alpha1.GrantsService"
)
View Source
const (
	// IdentityServiceGetCallerIdentityProcedure is the fully-qualified name of the IdentityService's
	// GetCallerIdentity RPC.
	IdentityServiceGetCallerIdentityProcedure = "/commonfate.access.v1alpha1.IdentityService/GetCallerIdentity"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// IdentityServiceName is the fully-qualified name of the IdentityService service.
	IdentityServiceName = "commonfate.access.v1alpha1.IdentityService"
)
View Source
const (
	// IntegrationAuditLogServiceBatchPutAuditLogProcedure is the fully-qualified name of the
	// IntegrationAuditLogService's BatchPutAuditLog RPC.
	IntegrationAuditLogServiceBatchPutAuditLogProcedure = "/commonfate.access.v1alpha1.IntegrationAuditLogService/BatchPutAuditLog"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// IntegrationAuditLogServiceName is the fully-qualified name of the IntegrationAuditLogService
	// service.
	IntegrationAuditLogServiceName = "commonfate.access.v1alpha1.IntegrationAuditLogService"
)
View Source
const (
	// ProxySessionServiceName is the fully-qualified name of the ProxySessionService service.
	ProxySessionServiceName = "commonfate.access.v1alpha1.ProxySessionService"
)

Variables

This section is empty.

Functions

func NewAccessRequestServiceHandler

func NewAccessRequestServiceHandler(svc AccessRequestServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewAccessRequestServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewAccessServiceHandler

func NewAccessServiceHandler(svc AccessServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewAccessServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewAttachmentsServiceHandler added in v1.65.0

func NewAttachmentsServiceHandler(svc AttachmentsServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewAttachmentsServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewAuditLogServiceHandler

func NewAuditLogServiceHandler(svc AuditLogServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewAuditLogServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewEntityServiceHandler

func NewEntityServiceHandler(svc EntityServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewEntityServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewGrantsServiceHandler

func NewGrantsServiceHandler(svc GrantsServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewGrantsServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewIdentityServiceHandler

func NewIdentityServiceHandler(svc IdentityServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewIdentityServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewIntegrationAuditLogServiceHandler

func NewIntegrationAuditLogServiceHandler(svc IntegrationAuditLogServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewIntegrationAuditLogServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewProxySessionServiceHandler added in v1.43.0

func NewProxySessionServiceHandler(svc ProxySessionServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewProxySessionServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Types

type AccessRequestServiceClient

type AccessRequestServiceClient interface {
	QueryAccessRequests(context.Context, *connect.Request[v1alpha1.QueryAccessRequestsRequest]) (*connect.Response[v1alpha1.QueryAccessRequestsResponse], error)
	// Query the access requests where the user is the principal
	QueryMyAccessRequests(context.Context, *connect.Request[v1alpha1.QueryMyAccessRequestsRequest]) (*connect.Response[v1alpha1.QueryMyAccessRequestsResponse], error)
	GetAccessRequest(context.Context, *connect.Request[v1alpha1.GetAccessRequestRequest]) (*connect.Response[v1alpha1.GetAccessRequestResponse], error)
	// Returns the actions that the current user is allowed to perform on the request
	GetAccessRequestActions(context.Context, *connect.Request[v1alpha1.GetAccessRequestActionsRequest]) (*connect.Response[v1alpha1.GetAccessRequestActionsResponse], error)
	// Approving an Access Request will attempt to approve all of the Grants associated with the request.
	//
	// If the caller is not permitted to approve particular grants, warnings will be returned.
	ApproveAccessRequest(context.Context, *connect.Request[v1alpha1.ApproveAccessRequestRequest]) (*connect.Response[v1alpha1.ApproveAccessRequestResponse], error)
	ActivateAccessRequest(context.Context, *connect.Request[v1alpha1.ActivateAccessRequestRequest]) (*connect.Response[v1alpha1.ActivateAccessRequestResponse], error)
	// Closing an Access Request will make it no longer reviewable and will deactivate any Grants associated with the request.
	CloseAccessRequest(context.Context, *connect.Request[v1alpha1.CloseAccessRequestRequest]) (*connect.Response[v1alpha1.CloseAccessRequestResponse], error)
}

AccessRequestServiceClient is a client for the commonfate.access.v1alpha1.AccessRequestService service.

func NewAccessRequestServiceClient

func NewAccessRequestServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AccessRequestServiceClient

NewAccessRequestServiceClient constructs a client for the commonfate.access.v1alpha1.AccessRequestService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type AccessRequestServiceHandler

type AccessRequestServiceHandler interface {
	QueryAccessRequests(context.Context, *connect.Request[v1alpha1.QueryAccessRequestsRequest]) (*connect.Response[v1alpha1.QueryAccessRequestsResponse], error)
	// Query the access requests where the user is the principal
	QueryMyAccessRequests(context.Context, *connect.Request[v1alpha1.QueryMyAccessRequestsRequest]) (*connect.Response[v1alpha1.QueryMyAccessRequestsResponse], error)
	GetAccessRequest(context.Context, *connect.Request[v1alpha1.GetAccessRequestRequest]) (*connect.Response[v1alpha1.GetAccessRequestResponse], error)
	// Returns the actions that the current user is allowed to perform on the request
	GetAccessRequestActions(context.Context, *connect.Request[v1alpha1.GetAccessRequestActionsRequest]) (*connect.Response[v1alpha1.GetAccessRequestActionsResponse], error)
	// Approving an Access Request will attempt to approve all of the Grants associated with the request.
	//
	// If the caller is not permitted to approve particular grants, warnings will be returned.
	ApproveAccessRequest(context.Context, *connect.Request[v1alpha1.ApproveAccessRequestRequest]) (*connect.Response[v1alpha1.ApproveAccessRequestResponse], error)
	ActivateAccessRequest(context.Context, *connect.Request[v1alpha1.ActivateAccessRequestRequest]) (*connect.Response[v1alpha1.ActivateAccessRequestResponse], error)
	// Closing an Access Request will make it no longer reviewable and will deactivate any Grants associated with the request.
	CloseAccessRequest(context.Context, *connect.Request[v1alpha1.CloseAccessRequestRequest]) (*connect.Response[v1alpha1.CloseAccessRequestResponse], error)
}

AccessRequestServiceHandler is an implementation of the commonfate.access.v1alpha1.AccessRequestService service.

type AccessServiceClient

type AccessServiceClient interface {
	// BatchEnsure is a high-level declarative API which can be called to ensure access has been provisioned to multiple entitlements.
	//
	// The method checks whether the entitlement has been provisioned to the user.
	// If the entitlement has not been provisioned, an Access Request will be created for the entitlement.
	// If a pending Access Request exists for the entitlement, this request is returned.
	//
	// In future, this method may trigger an extension to any Access Requests which are due to expire.
	BatchEnsure(context.Context, *connect.Request[v1alpha1.BatchEnsureRequest]) (*connect.Response[v1alpha1.BatchEnsureResponse], error)
	// Query for JIT availabilities.
	QueryAvailabilities(context.Context, *connect.Request[v1alpha1.QueryAvailabilitiesRequest]) (*connect.Response[v1alpha1.QueryAvailabilitiesResponse], error)
	QueryEntitlements(context.Context, *connect.Request[v1alpha1.QueryEntitlementsRequest]) (*connect.Response[v1alpha1.QueryEntitlementsResponse], error)
	QueryApprovers(context.Context, *connect.Request[v1alpha1.QueryApproversRequest]) (*connect.Response[v1alpha1.QueryApproversResponse], error)
	PreviewUserAccess(context.Context, *connect.Request[v1alpha1.PreviewUserAccessRequest]) (*connect.Response[v1alpha1.PreviewUserAccessResponse], error)
	PreviewEntitlementAccess(context.Context, *connect.Request[v1alpha1.PreviewEntitlementAccessRequest]) (*connect.Response[v1alpha1.PreviewEntitlementAccessResponse], error)
	DebugEntitlementAccess(context.Context, *connect.Request[v1alpha1.DebugEntitlementAccessRequest]) (*connect.Response[v1alpha1.DebugEntitlementAccessResponse], error)
	QueryEntitlementsTree(context.Context, *connect.Request[v1alpha1.QueryEntitlementsTreeRequest]) (*connect.Response[v1alpha1.QueryEntitlementsTreeResponse], error)
	RequestReview(context.Context, *connect.Request[v1alpha1.RequestReviewRequest]) (*connect.Response[v1alpha1.RequestReviewResponse], error)
}

AccessServiceClient is a client for the commonfate.access.v1alpha1.AccessService service.

func NewAccessServiceClient

func NewAccessServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AccessServiceClient

NewAccessServiceClient constructs a client for the commonfate.access.v1alpha1.AccessService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type AccessServiceHandler

type AccessServiceHandler interface {
	// BatchEnsure is a high-level declarative API which can be called to ensure access has been provisioned to multiple entitlements.
	//
	// The method checks whether the entitlement has been provisioned to the user.
	// If the entitlement has not been provisioned, an Access Request will be created for the entitlement.
	// If a pending Access Request exists for the entitlement, this request is returned.
	//
	// In future, this method may trigger an extension to any Access Requests which are due to expire.
	BatchEnsure(context.Context, *connect.Request[v1alpha1.BatchEnsureRequest]) (*connect.Response[v1alpha1.BatchEnsureResponse], error)
	// Query for JIT availabilities.
	QueryAvailabilities(context.Context, *connect.Request[v1alpha1.QueryAvailabilitiesRequest]) (*connect.Response[v1alpha1.QueryAvailabilitiesResponse], error)
	QueryEntitlements(context.Context, *connect.Request[v1alpha1.QueryEntitlementsRequest]) (*connect.Response[v1alpha1.QueryEntitlementsResponse], error)
	QueryApprovers(context.Context, *connect.Request[v1alpha1.QueryApproversRequest]) (*connect.Response[v1alpha1.QueryApproversResponse], error)
	PreviewUserAccess(context.Context, *connect.Request[v1alpha1.PreviewUserAccessRequest]) (*connect.Response[v1alpha1.PreviewUserAccessResponse], error)
	PreviewEntitlementAccess(context.Context, *connect.Request[v1alpha1.PreviewEntitlementAccessRequest]) (*connect.Response[v1alpha1.PreviewEntitlementAccessResponse], error)
	DebugEntitlementAccess(context.Context, *connect.Request[v1alpha1.DebugEntitlementAccessRequest]) (*connect.Response[v1alpha1.DebugEntitlementAccessResponse], error)
	QueryEntitlementsTree(context.Context, *connect.Request[v1alpha1.QueryEntitlementsTreeRequest]) (*connect.Response[v1alpha1.QueryEntitlementsTreeResponse], error)
	RequestReview(context.Context, *connect.Request[v1alpha1.RequestReviewRequest]) (*connect.Response[v1alpha1.RequestReviewResponse], error)
}

AccessServiceHandler is an implementation of the commonfate.access.v1alpha1.AccessService service.

type AttachmentsServiceClient added in v1.65.0

type AttachmentsServiceClient interface {
	QueryJiraIssues(context.Context, *connect.Request[v1alpha1.QueryJiraIssuesRequest]) (*connect.Response[v1alpha1.QueryJiraIssuesResponse], error)
}

AttachmentsServiceClient is a client for the commonfate.access.v1alpha1.AttachmentsService service.

func NewAttachmentsServiceClient added in v1.65.0

func NewAttachmentsServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AttachmentsServiceClient

NewAttachmentsServiceClient constructs a client for the commonfate.access.v1alpha1.AttachmentsService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type AttachmentsServiceHandler added in v1.65.0

type AttachmentsServiceHandler interface {
	QueryJiraIssues(context.Context, *connect.Request[v1alpha1.QueryJiraIssuesRequest]) (*connect.Response[v1alpha1.QueryJiraIssuesResponse], error)
}

AttachmentsServiceHandler is an implementation of the commonfate.access.v1alpha1.AttachmentsService service.

type AuditLogServiceClient

type AuditLogServiceClient interface {
	QueryAuditLogs(context.Context, *connect.Request[v1alpha1.QueryAuditLogsRequest]) (*connect.Response[v1alpha1.QueryAuditLogsResponse], error)
}

AuditLogServiceClient is a client for the commonfate.access.v1alpha1.AuditLogService service.

func NewAuditLogServiceClient

func NewAuditLogServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AuditLogServiceClient

NewAuditLogServiceClient constructs a client for the commonfate.access.v1alpha1.AuditLogService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type AuditLogServiceHandler

type AuditLogServiceHandler interface {
	QueryAuditLogs(context.Context, *connect.Request[v1alpha1.QueryAuditLogsRequest]) (*connect.Response[v1alpha1.QueryAuditLogsResponse], error)
}

AuditLogServiceHandler is an implementation of the commonfate.access.v1alpha1.AuditLogService service.

type EntityServiceClient

type EntityServiceClient interface {
	QueryDescendents(context.Context, *connect.Request[v1alpha1.QueryDescendentsRequest]) (*connect.Response[v1alpha1.QueryDescendentsResponse], error)
}

EntityServiceClient is a client for the commonfate.access.v1alpha1.EntityService service.

func NewEntityServiceClient

func NewEntityServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) EntityServiceClient

NewEntityServiceClient constructs a client for the commonfate.access.v1alpha1.EntityService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type EntityServiceHandler

type EntityServiceHandler interface {
	QueryDescendents(context.Context, *connect.Request[v1alpha1.QueryDescendentsRequest]) (*connect.Response[v1alpha1.QueryDescendentsResponse], error)
}

EntityServiceHandler is an implementation of the commonfate.access.v1alpha1.EntityService service.

type GrantsServiceClient

GrantsServiceClient is a client for the commonfate.access.v1alpha1.GrantsService service.

func NewGrantsServiceClient

func NewGrantsServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) GrantsServiceClient

NewGrantsServiceClient constructs a client for the commonfate.access.v1alpha1.GrantsService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type IdentityServiceClient

type IdentityServiceClient interface {
	GetCallerIdentity(context.Context, *connect.Request[v1alpha1.GetCallerIdentityRequest]) (*connect.Response[v1alpha1.GetCallerIdentityResponse], error)
}

IdentityServiceClient is a client for the commonfate.access.v1alpha1.IdentityService service.

func NewIdentityServiceClient

func NewIdentityServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) IdentityServiceClient

NewIdentityServiceClient constructs a client for the commonfate.access.v1alpha1.IdentityService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type IdentityServiceHandler

type IdentityServiceHandler interface {
	GetCallerIdentity(context.Context, *connect.Request[v1alpha1.GetCallerIdentityRequest]) (*connect.Response[v1alpha1.GetCallerIdentityResponse], error)
}

IdentityServiceHandler is an implementation of the commonfate.access.v1alpha1.IdentityService service.

type IntegrationAuditLogServiceClient

type IntegrationAuditLogServiceClient interface {
	// Put audit logs relating to a grant
	BatchPutAuditLog(context.Context, *connect.Request[v1alpha1.BatchPutAuditLogRequest]) (*connect.Response[v1alpha1.BatchPutAuditLogResponse], error)
}

IntegrationAuditLogServiceClient is a client for the commonfate.access.v1alpha1.IntegrationAuditLogService service.

func NewIntegrationAuditLogServiceClient

func NewIntegrationAuditLogServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) IntegrationAuditLogServiceClient

NewIntegrationAuditLogServiceClient constructs a client for the commonfate.access.v1alpha1.IntegrationAuditLogService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type IntegrationAuditLogServiceHandler

type IntegrationAuditLogServiceHandler interface {
	// Put audit logs relating to a grant
	BatchPutAuditLog(context.Context, *connect.Request[v1alpha1.BatchPutAuditLogRequest]) (*connect.Response[v1alpha1.BatchPutAuditLogResponse], error)
}

IntegrationAuditLogServiceHandler is an implementation of the commonfate.access.v1alpha1.IntegrationAuditLogService service.

type ProxySessionServiceClient added in v1.43.0

ProxySessionServiceClient is a client for the commonfate.access.v1alpha1.ProxySessionService service.

func NewProxySessionServiceClient added in v1.43.0

func NewProxySessionServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ProxySessionServiceClient

NewProxySessionServiceClient constructs a client for the commonfate.access.v1alpha1.ProxySessionService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type UnimplementedAccessRequestServiceHandler

type UnimplementedAccessRequestServiceHandler struct{}

UnimplementedAccessRequestServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedAccessServiceHandler

type UnimplementedAccessServiceHandler struct{}

UnimplementedAccessServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedAccessServiceHandler) QueryApprovers added in v1.16.0

func (UnimplementedAccessServiceHandler) RequestReview added in v1.66.0

type UnimplementedAttachmentsServiceHandler added in v1.65.0

type UnimplementedAttachmentsServiceHandler struct{}

UnimplementedAttachmentsServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedAttachmentsServiceHandler) QueryJiraIssues added in v1.65.0

type UnimplementedAuditLogServiceHandler

type UnimplementedAuditLogServiceHandler struct{}

UnimplementedAuditLogServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedEntityServiceHandler

type UnimplementedEntityServiceHandler struct{}

UnimplementedEntityServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedGrantsServiceHandler

type UnimplementedGrantsServiceHandler struct{}

UnimplementedGrantsServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedGrantsServiceHandler) GetGrant added in v1.43.0

func (UnimplementedGrantsServiceHandler) GetGrantOutput added in v1.50.0

type UnimplementedIdentityServiceHandler

type UnimplementedIdentityServiceHandler struct{}

UnimplementedIdentityServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedIntegrationAuditLogServiceHandler

type UnimplementedIntegrationAuditLogServiceHandler struct{}

UnimplementedIntegrationAuditLogServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedProxySessionServiceHandler added in v1.43.0

type UnimplementedProxySessionServiceHandler struct{}

UnimplementedProxySessionServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedProxySessionServiceHandler) EndSession added in v1.43.0

func (UnimplementedProxySessionServiceHandler) EndShellSession added in v1.67.0

func (UnimplementedProxySessionServiceHandler) GetSession added in v1.43.0

func (UnimplementedProxySessionServiceHandler) GetShellSession added in v1.67.0

func (UnimplementedProxySessionServiceHandler) PutSessionLog added in v1.43.0

func (UnimplementedProxySessionServiceHandler) QuerySessionLogs added in v1.43.0

func (UnimplementedProxySessionServiceHandler) StartSession added in v1.43.0

Jump to

Keyboard shortcuts

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