generated

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

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 AccountInResolver interface {
	Metadata(ctx context.Context, obj *entities.Account, data *v1.ObjectMeta) error
}

type AccountMembershipResolver

type AccountMembershipResolver interface {
	UserID(ctx context.Context, obj *entities.AccountMembership) (string, error)
	User(ctx context.Context, obj *entities.AccountMembership) (*model.User, error)
}

type AccountResolver

type AccountResolver interface {
	CreationTime(ctx context.Context, obj *entities.Account) (string, error)

	UpdateTime(ctx context.Context, obj *entities.Account) (string, error)
}

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 DirectiveRoot struct {
	HasAccount            func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)
	IsLoggedInAndVerified func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)
}

type EntityResolver

type EntityResolver interface {
	FindUserByID(ctx context.Context, id repos.ID) (*model.User, error)
}

type Github__com___kloudlite___api___common__CreatedOrUpdatedByResolver

type Github__com___kloudlite___api___common__CreatedOrUpdatedByResolver interface {
	UserID(ctx context.Context, obj *common.CreatedOrUpdatedBy) (string, error)
}

type InvitationResolver

type InvitationResolver interface {
	CreationTime(ctx context.Context, obj *entities.Invitation) (string, error)

	UpdateTime(ctx context.Context, obj *entities.Invitation) (string, error)
}

type MetadataInResolver

type MetadataInResolver interface {
	Annotations(ctx context.Context, obj *v1.ObjectMeta, data map[string]interface{}) error
	Labels(ctx context.Context, obj *v1.ObjectMeta, data map[string]interface{}) error
}

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
}

type UserResolver

type UserResolver interface {
	Accounts(ctx context.Context, obj *model.User) ([]*entities.AccountMembership, error)
	AccountInvitations(ctx context.Context, obj *model.User, onlyPending bool) ([]*entities.Invitation, error)
}

Jump to

Keyboard shortcuts

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