Versions in this module Expand all Collapse all v2 v2.3.0 Aug 28, 2026 Changes in this version + const ActionCreate + const ActionDelete + const ActionGet + const ActionUpdate + const AuthExtensionKey + const DefaultComplexityLimit + const DefaultMaxMemoryMB + const GraphPath + const IntrospectionComplexity + const ModulesExtensionKey + const ServerLatencyExtensionKey + const TraceExtensionKey + var ErrCascadeDelete = errors.New("error deleting associated objects") + var ErrInternalServerError = errors.New("internal server error") + var ErrInvalidInput = errors.New("invalid input") + var ErrMappableDomainNotConfigured = errors.New("mappable domain not configured for trust center cname target") + var ErrMissingRequireScopes = errors.New("api token lacks the required scopes for this request") + var ErrMissingTrustCenterCnameTarget = errors.New("missing trust center cname target") + var ErrNoOrganizationID = errors.New("unable to determine organization ID in request") + var ErrResourceNotAccessibleWithToken = errors.New("resource is not accessible with token authentication") + var ErrSearchFailed = errors.New("search failed, please try again") + var ErrSearchQueryTooShort = errors.New("search query is too short, please enter a longer search query") + var ErrTrustCenterDomainAlreadyExists = errors.New("domain already exists for this trust center") + var ErrUnableToDetermineObjectType = errors.New("unable to determine parent object type") + func AddAllExtensions(h *handler.Server) + func CheckAllowedAuthType(ctx context.Context) error + func ConvertToObject[J any](obj any) (*J, error) + func GetBulkUploadOwnerInput[T any](input []*T) (*string, error) + func GetConstraintField(err error, object string) string + func GetOrgOwnerFromInput[T any](input *T) (*string, error) + func IsEmpty(x any) bool + func NewCascadeDeleteError(ctx context.Context, err error) error + func SetOrganizationInAuthContext(ctx context.Context, inputOrgID *string) (context.Context, error) + func SetOrganizationInAuthContextBulkRequest[T any](ctx context.Context, input []*T) (context.Context, error) + func UnmarshalBulkData[T any](input graphql.Upload) ([]*T, error) + func WithContextLevelCache(h *handler.Server) + func WithFileUploader(h *handler.Server, u *objects.Service) + func WithMetrics(h *handler.Server) + func WithResultLimit(h *handler.Server, limit *int) + func WithSkipCache(h *handler.Server) + type Action struct + Action string + Object string + type AlreadyExistsError struct + ObjectType string + func NewAlreadyExistsError(o string) *AlreadyExistsError + func (e *AlreadyExistsError) Code() string + func (e *AlreadyExistsError) Error() string + func (e *AlreadyExistsError) Message() string + func (e *AlreadyExistsError) Module() models.OrgModule + type Auth struct + AccessToken string + AuthenticationType auth.AuthenticationType + AuthorizedOrganizations []string + RefreshToken string + SessionID string + type ComplexityLimitWithMetrics struct + func NewComplexityLimitWithMetrics(limitFunc func(ctx context.Context, rc *graphql.OperationContext) int) *ComplexityLimitWithMetrics + func (c *ComplexityLimitWithMetrics) ExtensionName() string + func (c *ComplexityLimitWithMetrics) MutateOperationContext(ctx context.Context, opCtx *graphql.OperationContext) *gqlerror.Error + func (c *ComplexityLimitWithMetrics) Validate(schema graphql.ExecutableSchema) error + type ComplexityStats struct + Complexity int + ComplexityLimit int + type ConstraintError struct + ConstraintError error + ObjectType string + func NewConstraintError(o string, err error) *ConstraintError + func (e *ConstraintError) Code() string + func (e *ConstraintError) Error() string + func (e *ConstraintError) Message() string + func (e *ConstraintError) Module() models.OrgModule + type ErrorWithCode struct + ErrorCode string + ErrorResponse error + func NewErrorWithCode(err error, code string) *ErrorWithCode + func (e *ErrorWithCode) Code() string + func (e *ErrorWithCode) Error() string + func (e *ErrorWithCode) Message() string + func (e *ErrorWithCode) Module() models.OrgModule + type ForeignKeyError struct + Action string + ObjectType string + func NewForeignKeyError(action, objecttype string) *ForeignKeyError + func (e *ForeignKeyError) Code() string + func (e *ForeignKeyError) Error() string + func (e *ForeignKeyError) Message() string + func (e *ForeignKeyError) Module() models.OrgModule + type NotFoundError struct + ObjectType string + func NewNotFoundError(o string) NotFoundError + func (e NotFoundError) Code() string + func (e NotFoundError) Error() string + func (e NotFoundError) Message() string + func (e NotFoundError) Module() models.OrgModule + type ValidationError struct + ErrMsg string + FieldNames []string + func NewValidationError(errMsg string) *ValidationError + func NewValidationErrorWithFields(errMsg string, fields ...string) *ValidationError + func (e *ValidationError) Code() string + func (e *ValidationError) Error() string + func (e *ValidationError) Fields() []string + func (e *ValidationError) Message() string + func (e *ValidationError) Module() models.OrgModule Other modules containing this package github.com/theopenlane/core