Documentation ¶
Index ¶
- Variables
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type AccountInResolver
- type AccountMembershipResolver
- type AccountResolver
- type ComplexityRoot
- type Config
- type DirectiveRoot
- type EntityResolver
- type Github__com___kloudlite___api___common__CreatedOrUpdatedByResolver
- type InvitationResolver
- type MetadataInResolver
- type MetadataResolver
- type MutationResolver
- type QueryResolver
- type ResolverRoot
- type UserResolver
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownType = errors.New("unknown type") ErrTypeNotFound = errors.New("type not found") )
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type AccountInResolver ¶
type AccountResolver ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Account struct { ContactEmail func(childComplexity int) int CreatedBy func(childComplexity int) int CreationTime func(childComplexity int) int DisplayName func(childComplexity int) int Id func(childComplexity int) int IsActive func(childComplexity int) int KloudliteGatewayRegion func(childComplexity int) int LastUpdatedBy func(childComplexity int) int Logo func(childComplexity int) int MarkedForDeletion func(childComplexity int) int ObjectMeta func(childComplexity int) int RecordVersion func(childComplexity int) int TargetNamespace func(childComplexity int) int UpdateTime func(childComplexity int) int } AccountMembership struct { AccountName func(childComplexity int) int Role func(childComplexity int) int User func(childComplexity int) int UserID func(childComplexity int) int } AccountsCheckNameAvailabilityOutput struct { Result func(childComplexity int) int SuggestedNames func(childComplexity int) int } AvailableKloudliteRegion struct { DisplayName func(childComplexity int) int ID func(childComplexity int) int } Entity struct { FindUserByID func(childComplexity int, id repos.ID) int } Github__com___kloudlite___api___common__CreatedOrUpdatedBy struct { UserEmail func(childComplexity int) int UserID func(childComplexity int) int UserName func(childComplexity int) int } Invitation struct { Accepted func(childComplexity int) int AccountName func(childComplexity int) int CreationTime func(childComplexity int) int Id func(childComplexity int) int InviteToken func(childComplexity int) int InvitedBy func(childComplexity int) int MarkedForDeletion func(childComplexity int) int RecordVersion func(childComplexity int) int Rejected func(childComplexity int) int UpdateTime func(childComplexity int) int UserEmail func(childComplexity int) int UserName func(childComplexity int) int UserRole func(childComplexity int) int } Metadata struct { Annotations func(childComplexity int) int CreationTimestamp func(childComplexity int) int DeletionTimestamp func(childComplexity int) int Generation func(childComplexity int) int Labels func(childComplexity int) int Name func(childComplexity int) int Namespace func(childComplexity int) int } Mutation struct { AccountsAcceptInvitation func(childComplexity int, accountName string, inviteToken string) int AccountsActivateAccount func(childComplexity int, accountName string) int AccountsCreateAccount func(childComplexity int, account entities.Account) int AccountsDeactivateAccount func(childComplexity int, accountName string) int AccountsDeleteAccount func(childComplexity int, accountName string) int AccountsDeleteInvitation func(childComplexity int, accountName string, invitationID string) int AccountsInviteMembers func(childComplexity int, accountName string, invitations []*entities.Invitation) int AccountsRejectInvitation func(childComplexity int, accountName string, inviteToken string) int AccountsRemoveAccountMembership func(childComplexity int, accountName string, memberID repos.ID) int AccountsResendInviteMail func(childComplexity int, accountName string, invitationID string) int AccountsUpdateAccount func(childComplexity int, account entities.Account) int AccountsUpdateAccountMembership func(childComplexity int, accountName string, memberID repos.ID, role types.Role) int } PageInfo struct { EndCursor func(childComplexity int) int HasNextPage func(childComplexity int) int HasPrevPage func(childComplexity int) int StartCursor func(childComplexity int) int } Query struct { AccountsAvailableKloudliteRegions func(childComplexity int) int AccountsCheckNameAvailability func(childComplexity int, name string) int AccountsEnsureKloudliteRegistryPullSecrets func(childComplexity int, accountName string) int AccountsGetAccount func(childComplexity int, accountName string) int AccountsGetAccountMembership func(childComplexity int, accountName string) int AccountsGetInvitation func(childComplexity int, accountName string, invitationID string) int AccountsListAccounts func(childComplexity int) int AccountsListInvitations func(childComplexity int, accountName string) int AccountsListInvitationsForUser func(childComplexity int, onlyPending bool) int AccountsListMembershipsForAccount func(childComplexity int, accountName string, role *types.Role) int AccountsListMembershipsForUser func(childComplexity int) int AccountsResyncAccount func(childComplexity int, accountName string) int // contains filtered or unexported fields } User struct { AccountInvitations func(childComplexity int, onlyPending bool) int Accounts func(childComplexity int) int ID func(childComplexity int) int } // contains filtered or unexported fields }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type EntityResolver ¶
type InvitationResolver ¶
type MetadataInResolver ¶
type MetadataResolver ¶
type MetadataResolver interface { Annotations(ctx context.Context, obj *v1.ObjectMeta) (map[string]interface{}, error) CreationTimestamp(ctx context.Context, obj *v1.ObjectMeta) (string, error) DeletionTimestamp(ctx context.Context, obj *v1.ObjectMeta) (*string, error) Labels(ctx context.Context, obj *v1.ObjectMeta) (map[string]interface{}, error) }
type MutationResolver ¶
type MutationResolver interface { AccountsCreateAccount(ctx context.Context, account entities.Account) (*entities.Account, error) AccountsUpdateAccount(ctx context.Context, account entities.Account) (*entities.Account, error) AccountsDeactivateAccount(ctx context.Context, accountName string) (bool, error) AccountsActivateAccount(ctx context.Context, accountName string) (bool, error) AccountsDeleteAccount(ctx context.Context, accountName string) (bool, error) AccountsInviteMembers(ctx context.Context, accountName string, invitations []*entities.Invitation) ([]*entities.Invitation, error) AccountsResendInviteMail(ctx context.Context, accountName string, invitationID string) (bool, error) AccountsDeleteInvitation(ctx context.Context, accountName string, invitationID string) (bool, error) AccountsAcceptInvitation(ctx context.Context, accountName string, inviteToken string) (bool, error) AccountsRejectInvitation(ctx context.Context, accountName string, inviteToken string) (bool, error) AccountsRemoveAccountMembership(ctx context.Context, accountName string, memberID repos.ID) (bool, error) AccountsUpdateAccountMembership(ctx context.Context, accountName string, memberID repos.ID, role types.Role) (bool, error) }
type QueryResolver ¶
type QueryResolver interface { AccountsListAccounts(ctx context.Context) ([]*entities.Account, error) AccountsGetAccount(ctx context.Context, accountName string) (*entities.Account, error) AccountsResyncAccount(ctx context.Context, accountName string) (bool, error) AccountsListInvitations(ctx context.Context, accountName string) ([]*entities.Invitation, error) AccountsGetInvitation(ctx context.Context, accountName string, invitationID string) (*entities.Invitation, error) AccountsListInvitationsForUser(ctx context.Context, onlyPending bool) ([]*entities.Invitation, error) AccountsCheckNameAvailability(ctx context.Context, name string) (*domain.CheckNameAvailabilityOutput, error) AccountsListMembershipsForUser(ctx context.Context) ([]*entities.AccountMembership, error) AccountsListMembershipsForAccount(ctx context.Context, accountName string, role *types.Role) ([]*entities.AccountMembership, error) AccountsGetAccountMembership(ctx context.Context, accountName string) (*entities.AccountMembership, error) AccountsEnsureKloudliteRegistryPullSecrets(ctx context.Context, accountName string) (bool, error) AccountsAvailableKloudliteRegions(ctx context.Context) ([]*domain.AvailableKloudliteRegion, error) }
type ResolverRoot ¶
type ResolverRoot interface { Account() AccountResolver AccountMembership() AccountMembershipResolver Entity() EntityResolver Github__com___kloudlite___api___common__CreatedOrUpdatedBy() Github__com___kloudlite___api___common__CreatedOrUpdatedByResolver Invitation() InvitationResolver Metadata() MetadataResolver Mutation() MutationResolver Query() QueryResolver User() UserResolver AccountIn() AccountInResolver MetadataIn() MetadataInResolver }
Click to show internal directories.
Click to hide internal directories.