Documentation ¶
Index ¶
- Variables
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type BuildInResolver
- type BuildResolver
- type BuildRunResolver
- type ComplexityRoot
- type Config
- type CredentialInResolver
- type CredentialResolver
- type DigestResolver
- type DirectiveRoot
- type EntityResolver
- type GithubInstallationResolver
- type GithubListRepositoryResolver
- type GithubSearchRepositoryResolver
- type Github__com___kloudlite___api___common__CreatedOrUpdatedByResolver
- type GitlabProjectResolver
- type MatchFilterInResolver
- type MatchFilterResolver
- type MetadataInResolver
- type MetadataResolver
- type MutationResolver
- type QueryResolver
- type RepositoryResolver
- type ResolverRoot
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 BuildInResolver ¶
type BuildInResolver interface { Source(ctx context.Context, obj *entities.Build, data *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGitSourceIn) error Spec(ctx context.Context, obj *entities.Build, data *model.GithubComKloudliteOperatorApisDistributionV1BuildRunSpecIn) error }
type BuildResolver ¶
type BuildResolver interface { CreationTime(ctx context.Context, obj *entities.Build) (string, error) ErrorMessages(ctx context.Context, obj *entities.Build) (map[string]interface{}, error) Source(ctx context.Context, obj *entities.Build) (*model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGitSource, error) Spec(ctx context.Context, obj *entities.Build) (*model.GithubComKloudliteOperatorApisDistributionV1BuildRunSpec, error) Status(ctx context.Context, obj *entities.Build) (model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesBuildStatus, error) UpdateTime(ctx context.Context, obj *entities.Build) (string, error) LatestBuildRun(ctx context.Context, obj *entities.Build) (*entities.BuildRun, error) }
type BuildRunResolver ¶
type BuildRunResolver interface { CreationTime(ctx context.Context, obj *entities.BuildRun) (string, error) Spec(ctx context.Context, obj *entities.BuildRun) (*model.GithubComKloudliteOperatorApisDistributionV1BuildRunSpec, error) Status(ctx context.Context, obj *entities.BuildRun) (*model.GithubComKloudliteOperatorPkgOperatorStatus, error) SyncStatus(ctx context.Context, obj *entities.BuildRun) (*model.GithubComKloudliteAPIPkgTypesSyncStatus, error) UpdateTime(ctx context.Context, obj *entities.BuildRun) (string, error) }
type ComplexityRoot ¶
type ComplexityRoot struct { Build struct { BuildClusterName func(childComplexity int) int CreatedBy func(childComplexity int) int CreationTime func(childComplexity int) int CredUser func(childComplexity int) int ErrorMessages func(childComplexity int) int Id func(childComplexity int) int LastUpdatedBy func(childComplexity int) int LatestBuildRun func(childComplexity int) int MarkedForDeletion func(childComplexity int) int Name func(childComplexity int) int RecordVersion func(childComplexity int) int Source func(childComplexity int) int Spec func(childComplexity int) int Status func(childComplexity int) int UpdateTime func(childComplexity int) int } BuildEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } BuildPaginatedRecords struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } BuildRun struct { APIVersion func(childComplexity int) int AccountName func(childComplexity int) int BuildId func(childComplexity int) int ClusterName func(childComplexity int) int CreatedBy func(childComplexity int) int CreationTime func(childComplexity int) int DisplayName func(childComplexity int) int Id func(childComplexity int) int Kind func(childComplexity int) int LastUpdatedBy func(childComplexity int) int MarkedForDeletion func(childComplexity int) int ObjectMeta func(childComplexity int) int RecordVersion func(childComplexity int) int Spec func(childComplexity int) int Status func(childComplexity int) int SyncStatus func(childComplexity int) int UpdateTime func(childComplexity int) int } BuildRunEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } BuildRunPaginatedRecords struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } CRCheckNameAvailabilityOutput struct { Result func(childComplexity int) int SuggestedNames func(childComplexity int) int } Credential struct { Access func(childComplexity int) int AccountName func(childComplexity int) int CreatedBy func(childComplexity int) int CreationTime func(childComplexity int) int Expiration func(childComplexity int) int Id func(childComplexity int) int LastUpdatedBy func(childComplexity int) int MarkedForDeletion func(childComplexity int) int Name func(childComplexity int) int RecordVersion func(childComplexity int) int UpdateTime func(childComplexity int) int UserName func(childComplexity int) int } CredentialEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } CredentialPaginatedRecords struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } CursorPagination struct { After func(childComplexity int) int Before func(childComplexity int) int First func(childComplexity int) int Last func(childComplexity int) int OrderBy func(childComplexity int) int SortDirection func(childComplexity int) int } Digest struct { AccountName func(childComplexity int) int Actor func(childComplexity int) int CreationTime func(childComplexity int) int Deleting func(childComplexity int) int Digest func(childComplexity int) int Id func(childComplexity int) int Length func(childComplexity int) int MarkedForDeletion func(childComplexity int) int MediaType func(childComplexity int) int RecordVersion func(childComplexity int) int Repository func(childComplexity int) int Size func(childComplexity int) int Tags func(childComplexity int) int URL func(childComplexity int) int UpdateTime func(childComplexity int) int } DigestEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } DigestPaginatedRecords struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } Entity struct { FindBuildByID func(childComplexity int, id repos.ID) int } GitBranch struct { Name func(childComplexity int) int Protected func(childComplexity int) int } GithubBranch struct { Name func(childComplexity int) int Protected func(childComplexity int) int } GithubInstallation struct { Account func(childComplexity int) int AppID func(childComplexity int) int ID func(childComplexity int) int NodeID func(childComplexity int) int RepositoriesURL func(childComplexity int) int TargetID func(childComplexity int) int TargetType func(childComplexity int) int } GithubListRepository struct { Repositories func(childComplexity int) int TotalCount func(childComplexity int) int } GithubSearchRepository struct { IncompleteResults func(childComplexity int) int Repositories func(childComplexity int) int Total func(childComplexity int) int } Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__Expiration struct { Unit func(childComplexity int) int Value func(childComplexity int) int } Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GitSource struct { Branch func(childComplexity int) int Provider func(childComplexity int) int Repository func(childComplexity int) int WebhookID func(childComplexity int) int } Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubRepository struct { Archived func(childComplexity int) int CloneURL func(childComplexity int) int CreatedAt func(childComplexity int) int DefaultBranch func(childComplexity int) int Description func(childComplexity int) int Disabled func(childComplexity int) int FullName func(childComplexity int) int GitURL func(childComplexity int) int GitignoreTemplate func(childComplexity int) int HTMLURL func(childComplexity int) int ID func(childComplexity int) int Language func(childComplexity int) int MasterBranch func(childComplexity int) int MirrorURL func(childComplexity int) int Name func(childComplexity int) int NodeID func(childComplexity int) int Permissions func(childComplexity int) int Private func(childComplexity int) int PushedAt func(childComplexity int) int Size func(childComplexity int) int TeamID func(childComplexity int) int URL func(childComplexity int) int UpdatedAt func(childComplexity int) int Visibility func(childComplexity int) int } Github__com___kloudlite___api___apps___container____registry___internal___domain___entities__GithubUserAccount struct { AvatarURL func(childComplexity int) int ID func(childComplexity int) int Login func(childComplexity int) int NodeID func(childComplexity int) int Type func(childComplexity int) int } Github__com___kloudlite___api___common__CreatedOrUpdatedBy struct { UserEmail func(childComplexity int) int UserID func(childComplexity int) int UserName func(childComplexity int) int } Github__com___kloudlite___api___pkg___types__SyncStatus struct { Action func(childComplexity int) int Error func(childComplexity int) int LastSyncedAt func(childComplexity int) int RecordVersion func(childComplexity int) int State func(childComplexity int) int SyncScheduledAt func(childComplexity int) int } Github__com___kloudlite___operator___apis___distribution___v1__BuildOptions struct { BuildArgs func(childComplexity int) int BuildContexts func(childComplexity int) int ContextDir func(childComplexity int) int DockerfileContent func(childComplexity int) int DockerfilePath func(childComplexity int) int TargetPlatforms func(childComplexity int) int } Github__com___kloudlite___operator___apis___distribution___v1__BuildRunSpec struct { AccountName func(childComplexity int) int BuildOptions func(childComplexity int) int Caches func(childComplexity int) int Registry func(childComplexity int) int Resource func(childComplexity int) int } Github__com___kloudlite___operator___apis___distribution___v1__Cache struct { Name func(childComplexity int) int Path func(childComplexity int) int } Github__com___kloudlite___operator___apis___distribution___v1__Registry struct { Repo func(childComplexity int) int } Github__com___kloudlite___operator___apis___distribution___v1__Repo struct { Name func(childComplexity int) int Tags func(childComplexity int) int } Github__com___kloudlite___operator___apis___distribution___v1__Resource struct { CPU func(childComplexity int) int MemoryInMb func(childComplexity int) int } Github__com___kloudlite___operator___pkg___operator__Check struct { Debug func(childComplexity int) int Error func(childComplexity int) int Generation func(childComplexity int) int Info func(childComplexity int) int Message func(childComplexity int) int StartedAt func(childComplexity int) int State func(childComplexity int) int Status func(childComplexity int) int } Github__com___kloudlite___operator___pkg___operator__CheckMeta struct { Debug func(childComplexity int) int Description func(childComplexity int) int Hide func(childComplexity int) int Name func(childComplexity int) int Title func(childComplexity int) int } Github__com___kloudlite___operator___pkg___operator__ResourceRef struct { APIVersion func(childComplexity int) int Kind func(childComplexity int) int Name func(childComplexity int) int Namespace func(childComplexity int) int } Github__com___kloudlite___operator___pkg___operator__Status struct { CheckList func(childComplexity int) int Checks func(childComplexity int) int IsReady func(childComplexity int) int LastReadyGeneration func(childComplexity int) int LastReconcileTime func(childComplexity int) int Message func(childComplexity int) int Resources func(childComplexity int) int } Github__com___kloudlite___operator___pkg___raw____json__RawJson struct { RawMessage func(childComplexity int) int } GitlabBranch struct { CanPush func(childComplexity int) int Default func(childComplexity int) int DevelopersCanMerge func(childComplexity int) int DevelopersCanPush func(childComplexity int) int Merged func(childComplexity int) int Name func(childComplexity int) int Protected func(childComplexity int) int WebURL func(childComplexity int) int } GitlabGroup struct { AvatarUrl func(childComplexity int) int FullName func(childComplexity int) int Id func(childComplexity int) int } GitlabProject struct { Archived func(childComplexity int) int AvatarURL func(childComplexity int) int CreatedAt func(childComplexity int) int CreatorID func(childComplexity int) int DefaultBranch func(childComplexity int) int Description func(childComplexity int) int EmptyRepo func(childComplexity int) int HTTPURLToRepo func(childComplexity int) int ID func(childComplexity int) int LastActivityAt func(childComplexity int) int Name func(childComplexity int) int NameWithNamespace func(childComplexity int) int Path func(childComplexity int) int PathWithNamespace func(childComplexity int) int Public func(childComplexity int) int SSHURLToRepo func(childComplexity int) int TagList func(childComplexity int) int Topics func(childComplexity int) int WebURL func(childComplexity int) int } MatchFilter struct { Array func(childComplexity int) int Exact func(childComplexity int) int MatchType func(childComplexity int) int NotInArray func(childComplexity int) int Regex 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 { CrAddBuild func(childComplexity int, build entities.Build) int CrCreateCred func(childComplexity int, credential entities.Credential) int CrCreateRepo func(childComplexity int, repository entities.Repository) int CrDeleteBuild func(childComplexity int, id repos.ID) int CrDeleteCred func(childComplexity int, username string) int CrDeleteDigest func(childComplexity int, repoName string, digest string) int CrDeleteRepo func(childComplexity int, name string) int CrTriggerBuild func(childComplexity int, id repos.ID) int CrUpdateBuild func(childComplexity int, id repos.ID, build entities.Build) int } PageInfo struct { EndCursor func(childComplexity int) int HasNextPage func(childComplexity int) int HasPrevPage func(childComplexity int) int StartCursor func(childComplexity int) int } Pagination struct { Page func(childComplexity int) int PerPage func(childComplexity int) int } Query struct { CrCheckUserNameAvailability func(childComplexity int, name string) int CrGetBuild func(childComplexity int, id repos.ID) int CrGetBuildRun func(childComplexity int, buildID repos.ID, buildRunName string) int CrGetCredToken func(childComplexity int, username string) int CrListBuildRuns func(childComplexity int, search *model.SearchBuildRuns, pq *repos.CursorPagination) int CrListBuilds func(childComplexity int, repoName string, search *model.SearchBuilds, pagination *repos.CursorPagination) int CrListCreds func(childComplexity int, search *model.SearchCreds, pagination *repos.CursorPagination) int CrListDigests func(childComplexity int, repoName string, search *model.SearchRepos, pagination *repos.CursorPagination) int CrListGithubBranches func(childComplexity int, repoURL string, pagination *types.Pagination) int CrListGithubInstallations func(childComplexity int, pagination *types.Pagination) int CrListGithubRepos func(childComplexity int, installationID int, pagination *types.Pagination) int CrListGitlabBranches func(childComplexity int, repoID string, query *string, pagination *types.Pagination) int CrListGitlabGroups func(childComplexity int, query *string, pagination *types.Pagination) int CrListGitlabRepositories func(childComplexity int, groupID string, query *string, pagination *types.Pagination) int CrListRepos func(childComplexity int, search *model.SearchRepos, pagination *repos.CursorPagination) int CrSearchGithubRepos func(childComplexity int, organization string, search string, pagination *types.Pagination) int // contains filtered or unexported fields } Repository struct { AccountName func(childComplexity int) int CreatedBy func(childComplexity int) int CreationTime func(childComplexity int) int Id func(childComplexity int) int LastUpdatedBy func(childComplexity int) int MarkedForDeletion func(childComplexity int) int Name func(childComplexity int) int RecordVersion func(childComplexity int) int UpdateTime func(childComplexity int) int } RepositoryEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } RepositoryPaginatedRecords struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } // contains filtered or unexported fields }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type CredentialInResolver ¶
type CredentialInResolver interface { Access(ctx context.Context, obj *entities.Credential, data model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesRepoAccess) error Expiration(ctx context.Context, obj *entities.Credential, data *model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesExpirationIn) error }
type CredentialResolver ¶
type CredentialResolver interface { Access(ctx context.Context, obj *entities.Credential) (model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesRepoAccess, error) CreationTime(ctx context.Context, obj *entities.Credential) (string, error) Expiration(ctx context.Context, obj *entities.Credential) (*model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesExpiration, error) UpdateTime(ctx context.Context, obj *entities.Credential) (string, error) }
type DigestResolver ¶
type DirectiveRoot ¶
type EntityResolver ¶
type GithubInstallationResolver ¶
type GithubInstallationResolver interface {
Account(ctx context.Context, obj *entities.GithubInstallation) (*model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubUserAccount, error)
}
type GithubListRepositoryResolver ¶
type GithubListRepositoryResolver interface {
Repositories(ctx context.Context, obj *entities.GithubListRepository) ([]*model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository, error)
}
type GithubSearchRepositoryResolver ¶
type GithubSearchRepositoryResolver interface {
Repositories(ctx context.Context, obj *entities.GithubSearchRepository) ([]*model.GithubComKloudliteAPIAppsContainerRegistryInternalDomainEntitiesGithubRepository, error)
}
type GitlabProjectResolver ¶
type MatchFilterInResolver ¶
type MatchFilterInResolver interface {
MatchType(ctx context.Context, obj *repos.MatchFilter, data model.GithubComKloudliteAPIPkgReposMatchType) error
}
type MatchFilterResolver ¶
type MatchFilterResolver interface {
MatchType(ctx context.Context, obj *repos.MatchFilter) (model.GithubComKloudliteAPIPkgReposMatchType, error)
}
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 { CrCreateRepo(ctx context.Context, repository entities.Repository) (*entities.Repository, error) CrCreateCred(ctx context.Context, credential entities.Credential) (*entities.Credential, error) CrDeleteRepo(ctx context.Context, name string) (bool, error) CrDeleteCred(ctx context.Context, username string) (bool, error) CrDeleteDigest(ctx context.Context, repoName string, digest string) (bool, error) CrAddBuild(ctx context.Context, build entities.Build) (*entities.Build, error) CrUpdateBuild(ctx context.Context, id repos.ID, build entities.Build) (*entities.Build, error) CrDeleteBuild(ctx context.Context, id repos.ID) (bool, error) CrTriggerBuild(ctx context.Context, id repos.ID) (bool, error) }
type QueryResolver ¶
type QueryResolver interface { CrListRepos(ctx context.Context, search *model.SearchRepos, pagination *repos.CursorPagination) (*model.RepositoryPaginatedRecords, error) CrListCreds(ctx context.Context, search *model.SearchCreds, pagination *repos.CursorPagination) (*model.CredentialPaginatedRecords, error) CrListDigests(ctx context.Context, repoName string, search *model.SearchRepos, pagination *repos.CursorPagination) (*model.DigestPaginatedRecords, error) CrGetCredToken(ctx context.Context, username string) (string, error) CrCheckUserNameAvailability(ctx context.Context, name string) (*domain.CheckNameAvailabilityOutput, error) CrGetBuild(ctx context.Context, id repos.ID) (*entities.Build, error) CrListBuilds(ctx context.Context, repoName string, search *model.SearchBuilds, pagination *repos.CursorPagination) (*model.BuildPaginatedRecords, error) CrListGithubInstallations(ctx context.Context, pagination *types.Pagination) ([]*entities.GithubInstallation, error) CrListGithubRepos(ctx context.Context, installationID int, pagination *types.Pagination) (*entities.GithubListRepository, error) CrSearchGithubRepos(ctx context.Context, organization string, search string, pagination *types.Pagination) (*entities.GithubSearchRepository, error) CrListGithubBranches(ctx context.Context, repoURL string, pagination *types.Pagination) ([]*entities.GitBranch, error) CrListGitlabGroups(ctx context.Context, query *string, pagination *types.Pagination) ([]*entities.GitlabGroup, error) CrListGitlabRepositories(ctx context.Context, groupID string, query *string, pagination *types.Pagination) ([]*entities.GitlabProject, error) CrListGitlabBranches(ctx context.Context, repoID string, query *string, pagination *types.Pagination) ([]*entities.GitBranch, error) CrListBuildRuns(ctx context.Context, search *model.SearchBuildRuns, pq *repos.CursorPagination) (*model.BuildRunPaginatedRecords, error) CrGetBuildRun(ctx context.Context, buildID repos.ID, buildRunName string) (*entities.BuildRun, error) }
type RepositoryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { Build() BuildResolver BuildRun() BuildRunResolver Credential() CredentialResolver Digest() DigestResolver Entity() EntityResolver GithubInstallation() GithubInstallationResolver GithubListRepository() GithubListRepositoryResolver GithubSearchRepository() GithubSearchRepositoryResolver Github__com___kloudlite___api___common__CreatedOrUpdatedBy() Github__com___kloudlite___api___common__CreatedOrUpdatedByResolver GitlabProject() GitlabProjectResolver MatchFilter() MatchFilterResolver Metadata() MetadataResolver Mutation() MutationResolver Query() QueryResolver Repository() RepositoryResolver BuildIn() BuildInResolver CredentialIn() CredentialInResolver MatchFilterIn() MatchFilterInResolver MetadataIn() MetadataInResolver }
Click to show internal directories.
Click to hide internal directories.