Documentation ¶
Index ¶
- func AppendPluginService(pluginServices []plugins.Service, service model.Service, ...) []plugins.Service
- func BuildReleasePayload(release model.Release, project model.Project, environment model.Environment, ...) plugins.Release
- func ExtractArtifacts(projectExtension model.ProjectExtension, extension model.Extension, ...) ([]transistor.Artifact, error)
- func GetProjectExtensionsWithRoute53Subdomain(subdomain string, db *gorm.DB) []model.ProjectExtension
- func GetSecretScope(s string) model.SecretScope
- type EnvironmentResolver
- func (r *EnvironmentResolver) Color() string
- func (r *EnvironmentResolver) Created() graphql.Time
- func (r *EnvironmentResolver) ID() graphql.ID
- func (r *EnvironmentResolver) IsDefault() bool
- func (r *EnvironmentResolver) Key() string
- func (r *EnvironmentResolver) MarshalJSON() ([]byte, error)
- func (r *EnvironmentResolver) Name() string
- func (r *EnvironmentResolver) Projects() []*ProjectResolver
- func (r *EnvironmentResolver) UnmarshalJSON(data []byte) error
- type EnvironmentResolverQuery
- type ExtensionResolver
- func (r *ExtensionResolver) Component() string
- func (r *ExtensionResolver) Config() model.JSON
- func (r *ExtensionResolver) Created() graphql.Time
- func (r *ExtensionResolver) Environment() (*EnvironmentResolver, error)
- func (r *ExtensionResolver) ID() graphql.ID
- func (r *ExtensionResolver) Key() string
- func (r *ExtensionResolver) MarshalJSON() ([]byte, error)
- func (r *ExtensionResolver) Name() string
- func (r *ExtensionResolver) Type() string
- func (r *ExtensionResolver) UnmarshalJSON(data []byte) error
- type ExtensionResolverQuery
- type FeatureListResolver
- type FeatureResolver
- func (r *FeatureResolver) Created() graphql.Time
- func (r *FeatureResolver) Hash() string
- func (r *FeatureResolver) ID() graphql.ID
- func (r *FeatureResolver) MarshalJSON() ([]byte, error)
- func (r *FeatureResolver) Message() string
- func (r *FeatureResolver) ParentHash() string
- func (r *FeatureResolver) Project() *ProjectResolver
- func (r *FeatureResolver) Ref() string
- func (r *FeatureResolver) UnmarshalJSON(data []byte) error
- func (r *FeatureResolver) User() string
- type FeatureResolverQuery
- type Middleware
- type ProjectExtensionResolver
- func (r *ProjectExtensionResolver) Artifacts() model.JSON
- func (r *ProjectExtensionResolver) Config() model.JSON
- func (r *ProjectExtensionResolver) Created() graphql.Time
- func (r *ProjectExtensionResolver) CustomConfig() model.JSON
- func (r *ProjectExtensionResolver) Environment() (*EnvironmentResolver, error)
- func (r *ProjectExtensionResolver) Extension() *ExtensionResolver
- func (r *ProjectExtensionResolver) ID() graphql.ID
- func (r *ProjectExtensionResolver) MarshalJSON() ([]byte, error)
- func (r *ProjectExtensionResolver) Project() *ProjectResolver
- func (r *ProjectExtensionResolver) State() string
- func (r *ProjectExtensionResolver) StateMessage() string
- func (r *ProjectExtensionResolver) UnmarshalJSON(data []byte) error
- type ProjectExtensionResolverQuery
- type ProjectListResolver
- type ProjectResolver
- func (r *ProjectResolver) Bookmarked(ctx context.Context) bool
- func (r *ProjectResolver) ContinuousDeploy() bool
- func (r *ProjectResolver) Created() graphql.Time
- func (r *ProjectResolver) CurrentRelease() (*ReleaseResolver, error)
- func (r *ProjectResolver) Environments() []*EnvironmentResolver
- func (r *ProjectResolver) Extensions() ([]*ProjectExtensionResolver, error)
- func (r *ProjectResolver) Features(args ...) FeatureListResolver
- func (r *ProjectResolver) GitBranch() string
- func (r *ProjectResolver) GitProtocol() string
- func (r *ProjectResolver) GitUrl() string
- func (r *ProjectResolver) ID() graphql.ID
- func (r *ProjectResolver) MarshalJSON() ([]byte, error)
- func (r *ProjectResolver) Name() string
- func (r *ProjectResolver) Releases(args ...) *ReleaseListResolver
- func (r *ProjectResolver) Repository() string
- func (r *ProjectResolver) RsaPrivateKey() string
- func (r *ProjectResolver) RsaPublicKey() string
- func (r *ProjectResolver) Secret() string
- func (r *ProjectResolver) Secrets(ctx context.Context, args ...) (*SecretListResolver, error)
- func (r *ProjectResolver) Services(args ...) *ServiceListResolver
- func (r *ProjectResolver) Slug() string
- func (r *ProjectResolver) UnmarshalJSON(data []byte) error
- type ProjectResolverQuery
- type ReleaseExtensionResolver
- func (r *ReleaseExtensionResolver) Artifacts() model.JSON
- func (r *ReleaseExtensionResolver) Created() graphql.Time
- func (r *ReleaseExtensionResolver) Extension() (*ProjectExtensionResolver, error)
- func (r *ReleaseExtensionResolver) Finished() graphql.Time
- func (r *ReleaseExtensionResolver) ID() graphql.ID
- func (r *ReleaseExtensionResolver) MarshalJSON() ([]byte, error)
- func (r *ReleaseExtensionResolver) Release() (*ReleaseResolver, error)
- func (r *ReleaseExtensionResolver) SecretsSignature() string
- func (r *ReleaseExtensionResolver) ServicesSignature() string
- func (r *ReleaseExtensionResolver) Started() graphql.Time
- func (r *ReleaseExtensionResolver) State() string
- func (r *ReleaseExtensionResolver) StateMessage() string
- func (r *ReleaseExtensionResolver) Type() string
- func (r *ReleaseExtensionResolver) UnmarshalJSON(data []byte) error
- type ReleaseExtensionResolverQuery
- type ReleaseListResolver
- type ReleaseResolver
- func (r *ReleaseResolver) Artifacts(ctx context.Context) (model.JSON, error)
- func (r *ReleaseResolver) Created() graphql.Time
- func (r *ReleaseResolver) Environment() (*EnvironmentResolver, error)
- func (r *ReleaseResolver) Finished() graphql.Time
- func (r *ReleaseResolver) HeadFeature() *FeatureResolver
- func (r *ReleaseResolver) ID() graphql.ID
- func (r *ReleaseResolver) IsRollback() bool
- func (r *ReleaseResolver) MarshalJSON() ([]byte, error)
- func (r *ReleaseResolver) Project() *ProjectResolver
- func (r *ReleaseResolver) ReleaseExtensions() []*ReleaseExtensionResolver
- func (r *ReleaseResolver) Started() graphql.Time
- func (r *ReleaseResolver) State() string
- func (r *ReleaseResolver) StateMessage() string
- func (r *ReleaseResolver) TailFeature() *FeatureResolver
- func (r *ReleaseResolver) UnmarshalJSON(data []byte) error
- func (r *ReleaseResolver) User() *UserResolver
- type ReleaseResolverQuery
- type Resolver
- func (r *Resolver) BookmarkProject(ctx context.Context, args *struct{ ID graphql.ID }) (bool, error)
- func (r *Resolver) CreateEnvironment(ctx context.Context, args *struct{ Environment *model.EnvironmentInput }) (*EnvironmentResolver, error)
- func (r *Resolver) CreateExtension(args *struct{ Extension *model.ExtensionInput }) (*ExtensionResolver, error)
- func (r *Resolver) CreateProject(ctx context.Context, args ...) (*ProjectResolver, error)
- func (r *Resolver) CreateProjectExtension(ctx context.Context, ...) (*ProjectExtensionResolver, error)
- func (r *Resolver) CreateRelease(ctx context.Context, args *struct{ Release *model.ReleaseInput }) (*ReleaseResolver, error)
- func (r *Resolver) CreateSecret(ctx context.Context, args *struct{ Secret *model.SecretInput }) (*SecretResolver, error)
- func (r *Resolver) CreateService(args *struct{ Service *model.ServiceInput }) (*ServiceResolver, error)
- func (r *Resolver) CreateServiceSpec(args *struct{ ServiceSpec *model.ServiceSpecInput }) (*ServiceSpecResolver, error)
- func (r *Resolver) DeleteEnvironment(ctx context.Context, args *struct{ Environment *model.EnvironmentInput }) (*EnvironmentResolver, error)
- func (r *Resolver) DeleteExtension(args *struct{ Extension *model.ExtensionInput }) (*ExtensionResolver, error)
- func (r *Resolver) DeleteProjectExtension(args *struct{ ProjectExtension *model.ProjectExtensionInput }) (*ProjectExtensionResolver, error)
- func (r *Resolver) DeleteSecret(ctx context.Context, args *struct{ Secret *model.SecretInput }) (*SecretResolver, error)
- func (r *Resolver) DeleteService(args *struct{ Service *model.ServiceInput }) (*ServiceResolver, error)
- func (r *Resolver) DeleteServiceSpec(args *struct{ ServiceSpec *model.ServiceSpecInput }) (*ServiceSpecResolver, error)
- func (r *Resolver) Environments(ctx context.Context, args *struct{ ProjectSlug *string }) ([]*EnvironmentResolver, error)
- func (r *Resolver) Extensions(ctx context.Context, args *struct{ EnvironmentID *string }) ([]*ExtensionResolver, error)
- func (r *Resolver) Features(ctx context.Context, args ...) (*FeatureListResolver, error)
- func (r *Resolver) GetGitCommits(ctx context.Context, args ...) (bool, error)
- func (r *Resolver) Permissions(ctx context.Context) (model.JSON, error)
- func (r *Resolver) Project(ctx context.Context, args ...) (*ProjectResolver, error)
- func (r *Resolver) ProjectExtensions(ctx context.Context) ([]*ProjectExtensionResolver, error)
- func (r *Resolver) Projects(ctx context.Context, args ...) (*ProjectListResolver, error)
- func (r *Resolver) ReleaseExtensions(ctx context.Context) ([]*ReleaseExtensionResolver, error)
- func (r *Resolver) Releases(ctx context.Context, args ...) (*ReleaseListResolver, error)
- func (r *Resolver) Secrets(ctx context.Context, args ...) (*SecretListResolver, error)
- func (r *Resolver) ServiceSpecs(ctx context.Context) ([]*ServiceSpecResolver, error)
- func (r *Resolver) Services(ctx context.Context, args ...) (*ServiceListResolver, error)
- func (r *Resolver) StopRelease(ctx context.Context, args *struct{ ID graphql.ID }) (*ReleaseResolver, error)
- func (r *Resolver) UpdateEnvironment(ctx context.Context, args *struct{ Environment *model.EnvironmentInput }) (*EnvironmentResolver, error)
- func (r *Resolver) UpdateExtension(args *struct{ Extension *model.ExtensionInput }) (*ExtensionResolver, error)
- func (r *Resolver) UpdateProject(args ...) (*ProjectResolver, error)
- func (r *Resolver) UpdateProjectEnvironments(ctx context.Context, args ...) ([]*EnvironmentResolver, error)
- func (r *Resolver) UpdateProjectExtension(args *struct{ ProjectExtension *model.ProjectExtensionInput }) (*ProjectExtensionResolver, error)
- func (r *Resolver) UpdateSecret(ctx context.Context, args *struct{ Secret *model.SecretInput }) (*SecretResolver, error)
- func (r *Resolver) UpdateService(args *struct{ Service *model.ServiceInput }) (*ServiceResolver, error)
- func (r *Resolver) UpdateServiceSpec(args *struct{ ServiceSpec *model.ServiceSpecInput }) (*ServiceSpecResolver, error)
- func (r *Resolver) UpdateUserPermissions(ctx context.Context, ...) ([]string, error)
- func (r *Resolver) User(ctx context.Context, args ...) (*UserResolver, error)
- func (r *Resolver) Users(ctx context.Context) ([]*UserResolver, error)
- type SecretListResolver
- type SecretResolver
- func (r *SecretResolver) Created() graphql.Time
- func (r *SecretResolver) Environment() *EnvironmentResolver
- func (r *SecretResolver) ID() graphql.ID
- func (r *SecretResolver) IsSecret() bool
- func (r *SecretResolver) Key() string
- func (r *SecretResolver) MarshalJSON() ([]byte, error)
- func (r *SecretResolver) Project() *ProjectResolver
- func (r *SecretResolver) Scope() string
- func (r *SecretResolver) Type() string
- func (r *SecretResolver) UnmarshalJSON(data []byte) error
- func (r *SecretResolver) User() (*UserResolver, error)
- func (r *SecretResolver) Value() string
- func (r *SecretResolver) Versions() ([]*SecretResolver, error)
- type SecretResolverQuery
- type ServiceListResolver
- type ServiceResolver
- func (r *ServiceResolver) Command() string
- func (r *ServiceResolver) Count() int32
- func (r *ServiceResolver) Created() graphql.Time
- func (r *ServiceResolver) DeploymentStrategy(ctx context.Context) (*model.JSON, error)
- func (r *ServiceResolver) Environment(ctx context.Context) (*EnvironmentResolver, error)
- func (r *ServiceResolver) ID() graphql.ID
- func (r *ServiceResolver) LivenessProbe(ctx context.Context) (*model.JSON, error)
- func (r *ServiceResolver) MarshalJSON() ([]byte, error)
- func (r *ServiceResolver) Name() string
- func (r *ServiceResolver) Ports() ([]*model.JSON, error)
- func (r *ServiceResolver) PreStopHook() *string
- func (r *ServiceResolver) Project() *ProjectResolver
- func (r *ServiceResolver) ReadinessProbe(ctx context.Context) (*model.JSON, error)
- func (r *ServiceResolver) ServiceSpec() *ServiceSpecResolver
- func (r *ServiceResolver) Type() string
- func (r *ServiceResolver) UnmarshalJSON(data []byte) error
- type ServiceResolverQuery
- type ServiceSpecResolver
- func (r *ServiceSpecResolver) CpuLimit() string
- func (r *ServiceSpecResolver) CpuRequest() string
- func (r *ServiceSpecResolver) Created() graphql.Time
- func (r *ServiceSpecResolver) ID() graphql.ID
- func (r *ServiceSpecResolver) MarshalJSON() ([]byte, error)
- func (r *ServiceSpecResolver) MemoryLimit() string
- func (r *ServiceSpecResolver) MemoryRequest() string
- func (r *ServiceSpecResolver) Name() string
- func (r *ServiceSpecResolver) TerminationGracePeriod() string
- func (r *ServiceSpecResolver) UnmarshalJSON(data []byte) error
- type ServiceSpecResolverQuery
- type UserResolver
- type UserResolverQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendPluginService ¶
func BuildReleasePayload ¶
func ExtractArtifacts ¶
func ExtractArtifacts(projectExtension model.ProjectExtension, extension model.Extension, db *gorm.DB) ([]transistor.Artifact, error)
fills in Config by querying config ids and getting the actual value
func GetProjectExtensionsWithRoute53Subdomain ¶
func GetProjectExtensionsWithRoute53Subdomain(subdomain string, db *gorm.DB) []model.ProjectExtension
func GetSecretScope ¶
func GetSecretScope(s string) model.SecretScope
Types ¶
type EnvironmentResolver ¶
type EnvironmentResolver struct {
DBEnvironmentResolver *db_resolver.EnvironmentResolver
}
EnvironmentResolver resolver for Environment
func (*EnvironmentResolver) MarshalJSON ¶
func (r *EnvironmentResolver) MarshalJSON() ([]byte, error)
func (*EnvironmentResolver) Projects ¶
func (r *EnvironmentResolver) Projects() []*ProjectResolver
Projects - get projects permissioned for the environment
func (*EnvironmentResolver) UnmarshalJSON ¶
func (r *EnvironmentResolver) UnmarshalJSON(data []byte) error
type EnvironmentResolverQuery ¶
Environment Resolver Query
func (*EnvironmentResolverQuery) Environments ¶
func (r *EnvironmentResolverQuery) Environments(ctx context.Context, args *struct{ ProjectSlug *string }) ([]*EnvironmentResolver, error)
type ExtensionResolver ¶
type ExtensionResolver struct {
DBExtensionResolver *db_resolver.ExtensionResolver
}
ExtensionResolver resolver for Extension
func (*ExtensionResolver) Environment ¶
func (r *ExtensionResolver) Environment() (*EnvironmentResolver, error)
Environment
func (*ExtensionResolver) MarshalJSON ¶
func (r *ExtensionResolver) MarshalJSON() ([]byte, error)
func (*ExtensionResolver) UnmarshalJSON ¶
func (r *ExtensionResolver) UnmarshalJSON(data []byte) error
type ExtensionResolverQuery ¶
Extension Resolver Query
func (*ExtensionResolverQuery) Extensions ¶
func (r *ExtensionResolverQuery) Extensions(ctx context.Context, args *struct{ EnvironmentID *string }) ([]*ExtensionResolver, error)
type FeatureListResolver ¶
type FeatureListResolver struct {
DBFeatureListResolver *db_resolver.FeatureListResolver
}
FeatureListResolver resolver for Feature
func (FeatureListResolver) Count ¶
func (r FeatureListResolver) Count() (int32, error)
func (FeatureListResolver) Entries ¶
func (r FeatureListResolver) Entries() ([]*FeatureResolver, error)
type FeatureResolver ¶
type FeatureResolver struct {
DBFeatureResolver *db_resolver.FeatureResolver
}
FeatureResolver resolver for Feature
func (*FeatureResolver) MarshalJSON ¶
func (r *FeatureResolver) MarshalJSON() ([]byte, error)
func (*FeatureResolver) UnmarshalJSON ¶
func (r *FeatureResolver) UnmarshalJSON(data []byte) error
type FeatureResolverQuery ¶
Feature Resolver Query
func (*FeatureResolverQuery) Features ¶
func (r *FeatureResolverQuery) Features(ctx context.Context, args *struct { Params *model.PaginatorInput }) (*FeatureListResolver, error)
type Middleware ¶
type Middleware struct {
Resolver *Resolver
}
type ProjectExtensionResolver ¶
type ProjectExtensionResolver struct {
DBProjectExtensionResolver *db_resolver.ProjectExtensionResolver
}
ProjectExtensionResolver resolver for ProjectExtension
func (*ProjectExtensionResolver) Artifacts ¶
func (r *ProjectExtensionResolver) Artifacts() model.JSON
Artifacts
func (*ProjectExtensionResolver) Config ¶
func (r *ProjectExtensionResolver) Config() model.JSON
Config
func (*ProjectExtensionResolver) Created ¶
func (r *ProjectExtensionResolver) Created() graphql.Time
Created
func (*ProjectExtensionResolver) CustomConfig ¶
func (r *ProjectExtensionResolver) CustomConfig() model.JSON
CustomConfig
func (*ProjectExtensionResolver) Environment ¶
func (r *ProjectExtensionResolver) Environment() (*EnvironmentResolver, error)
Environment
func (*ProjectExtensionResolver) Extension ¶
func (r *ProjectExtensionResolver) Extension() *ExtensionResolver
Extension
func (*ProjectExtensionResolver) MarshalJSON ¶
func (r *ProjectExtensionResolver) MarshalJSON() ([]byte, error)
func (*ProjectExtensionResolver) Project ¶
func (r *ProjectExtensionResolver) Project() *ProjectResolver
Project
func (*ProjectExtensionResolver) StateMessage ¶
func (r *ProjectExtensionResolver) StateMessage() string
StateMessage
func (*ProjectExtensionResolver) UnmarshalJSON ¶
func (r *ProjectExtensionResolver) UnmarshalJSON(data []byte) error
type ProjectExtensionResolverQuery ¶
ProjectExtension Resolver Query
func (*ProjectExtensionResolverQuery) ProjectExtensions ¶
func (r *ProjectExtensionResolverQuery) ProjectExtensions(ctx context.Context) ([]*ProjectExtensionResolver, error)
type ProjectListResolver ¶
type ProjectListResolver struct {
DBProjectListResolver *db_resolver.ProjectListResolver
}
ProjectListResolver
func (ProjectListResolver) Count ¶
func (r ProjectListResolver) Count() (int32, error)
func (ProjectListResolver) Entries ¶
func (r ProjectListResolver) Entries() ([]*ProjectResolver, error)
type ProjectResolver ¶
type ProjectResolver struct {
DBProjectResolver *db_resolver.ProjectResolver
}
ProjectResolver resolver for Project
func (*ProjectResolver) Bookmarked ¶
func (r *ProjectResolver) Bookmarked(ctx context.Context) bool
Bookmarked
func (*ProjectResolver) ContinuousDeploy ¶
func (r *ProjectResolver) ContinuousDeploy() bool
ContinuousDeploy
func (*ProjectResolver) CurrentRelease ¶
func (r *ProjectResolver) CurrentRelease() (*ReleaseResolver, error)
CurrentRelease
func (*ProjectResolver) Environments ¶
func (r *ProjectResolver) Environments() []*EnvironmentResolver
Environments
func (*ProjectResolver) Extensions ¶
func (r *ProjectResolver) Extensions() ([]*ProjectExtensionResolver, error)
ProjectExtensions
func (*ProjectResolver) Features ¶
func (r *ProjectResolver) Features(args *struct { ShowDeployed *bool Params *model.PaginatorInput }) FeatureListResolver
Features
func (*ProjectResolver) MarshalJSON ¶
func (r *ProjectResolver) MarshalJSON() ([]byte, error)
func (*ProjectResolver) Releases ¶
func (r *ProjectResolver) Releases(args *struct { Params *model.PaginatorInput }) *ReleaseListResolver
Releases
func (*ProjectResolver) RsaPrivateKey ¶
func (r *ProjectResolver) RsaPrivateKey() string
RsaPrivateKey
func (*ProjectResolver) Secrets ¶
func (r *ProjectResolver) Secrets(ctx context.Context, args *struct { Params *model.PaginatorInput }) (*SecretListResolver, error)
Secrets
func (*ProjectResolver) Services ¶
func (r *ProjectResolver) Services(args *struct { Params *model.PaginatorInput }) *ServiceListResolver
Services
func (*ProjectResolver) UnmarshalJSON ¶
func (r *ProjectResolver) UnmarshalJSON(data []byte) error
type ProjectResolverQuery ¶
User Resolver Query
func (*ProjectResolverQuery) Project ¶
func (u *ProjectResolverQuery) Project(ctx context.Context, args *struct { ID *graphql.ID Slug *string Name *string EnvironmentID *string }) (*ProjectResolver, error)
func (*ProjectResolverQuery) Projects ¶
func (u *ProjectResolverQuery) Projects(ctx context.Context, args *struct { ProjectSearch *model.ProjectSearchInput Params *model.PaginatorInput }) (*ProjectListResolver, error)
type ReleaseExtensionResolver ¶
type ReleaseExtensionResolver struct {
DBReleaseExtensionResolver *db_resolver.ReleaseExtensionResolver
}
ReleaseExtensionResolver resolver for ReleaseExtension
func (*ReleaseExtensionResolver) Artifacts ¶
func (r *ReleaseExtensionResolver) Artifacts() model.JSON
Artifacts
func (*ReleaseExtensionResolver) Created ¶
func (r *ReleaseExtensionResolver) Created() graphql.Time
Created
func (*ReleaseExtensionResolver) Extension ¶
func (r *ReleaseExtensionResolver) Extension() (*ProjectExtensionResolver, error)
ProjectExtension
func (*ReleaseExtensionResolver) Finished ¶
func (r *ReleaseExtensionResolver) Finished() graphql.Time
Finished
func (*ReleaseExtensionResolver) MarshalJSON ¶
func (r *ReleaseExtensionResolver) MarshalJSON() ([]byte, error)
func (*ReleaseExtensionResolver) Release ¶
func (r *ReleaseExtensionResolver) Release() (*ReleaseResolver, error)
Release
func (*ReleaseExtensionResolver) SecretsSignature ¶
func (r *ReleaseExtensionResolver) SecretsSignature() string
SecretsSignature
func (*ReleaseExtensionResolver) ServicesSignature ¶
func (r *ReleaseExtensionResolver) ServicesSignature() string
ServicesSignature
func (*ReleaseExtensionResolver) Started ¶
func (r *ReleaseExtensionResolver) Started() graphql.Time
Started
func (*ReleaseExtensionResolver) StateMessage ¶
func (r *ReleaseExtensionResolver) StateMessage() string
StateMessage
func (*ReleaseExtensionResolver) UnmarshalJSON ¶
func (r *ReleaseExtensionResolver) UnmarshalJSON(data []byte) error
type ReleaseExtensionResolverQuery ¶
Extension Resolver Query
func (*ReleaseExtensionResolverQuery) ReleaseExtensions ¶
func (r *ReleaseExtensionResolverQuery) ReleaseExtensions(ctx context.Context) ([]*ReleaseExtensionResolver, error)
type ReleaseListResolver ¶
type ReleaseListResolver struct {
DBReleaseListResolver *db_resolver.ReleaseListResolver
}
ReleaseListResolver
func (ReleaseListResolver) Count ¶
func (r ReleaseListResolver) Count() (int32, error)
func (ReleaseListResolver) Entries ¶
func (r ReleaseListResolver) Entries() ([]*ReleaseResolver, error)
type ReleaseResolver ¶
type ReleaseResolver struct {
DBReleaseResolver *db_resolver.ReleaseResolver
}
ReleaseResolver resolver for Release
func (*ReleaseResolver) Environment ¶
func (r *ReleaseResolver) Environment() (*EnvironmentResolver, error)
Environment
func (*ReleaseResolver) HeadFeature ¶
func (r *ReleaseResolver) HeadFeature() *FeatureResolver
HeadFeature
func (*ReleaseResolver) MarshalJSON ¶
func (r *ReleaseResolver) MarshalJSON() ([]byte, error)
func (*ReleaseResolver) ReleaseExtensions ¶
func (r *ReleaseResolver) ReleaseExtensions() []*ReleaseExtensionResolver
ReleaseExtensions
func (*ReleaseResolver) TailFeature ¶
func (r *ReleaseResolver) TailFeature() *FeatureResolver
TailFeature
func (*ReleaseResolver) UnmarshalJSON ¶
func (r *ReleaseResolver) UnmarshalJSON(data []byte) error
type ReleaseResolverQuery ¶
Extension Resolver Query
func (*ReleaseResolverQuery) Releases ¶
func (r *ReleaseResolverQuery) Releases(ctx context.Context, args *struct { Params *model.PaginatorInput }) (*ReleaseListResolver, error)
type Resolver ¶
type Resolver struct { // DB DB *gorm.DB // Events Events chan transistor.Event // Redis Redis *redis.Client }
Resolver is the main resolver for all queries
func (*Resolver) BookmarkProject ¶
func (*Resolver) CreateEnvironment ¶
func (r *Resolver) CreateEnvironment(ctx context.Context, args *struct{ Environment *model.EnvironmentInput }) (*EnvironmentResolver, error)
func (*Resolver) CreateExtension ¶
func (r *Resolver) CreateExtension(args *struct{ Extension *model.ExtensionInput }) (*ExtensionResolver, error)
func (*Resolver) CreateProject ¶
func (r *Resolver) CreateProject(ctx context.Context, args *struct { Project *model.ProjectInput }) (*ProjectResolver, error)
CreateProject Create project
func (*Resolver) CreateProjectExtension ¶
func (r *Resolver) CreateProjectExtension(ctx context.Context, args *struct{ ProjectExtension *model.ProjectExtensionInput }) (*ProjectExtensionResolver, error)
func (*Resolver) CreateRelease ¶
func (r *Resolver) CreateRelease(ctx context.Context, args *struct{ Release *model.ReleaseInput }) (*ReleaseResolver, error)
CreateRelease
func (*Resolver) CreateSecret ¶
func (r *Resolver) CreateSecret(ctx context.Context, args *struct{ Secret *model.SecretInput }) (*SecretResolver, error)
func (*Resolver) CreateService ¶
func (r *Resolver) CreateService(args *struct{ Service *model.ServiceInput }) (*ServiceResolver, error)
CreateService Create service
func (*Resolver) CreateServiceSpec ¶
func (r *Resolver) CreateServiceSpec(args *struct{ ServiceSpec *model.ServiceSpecInput }) (*ServiceSpecResolver, error)
func (*Resolver) DeleteEnvironment ¶
func (r *Resolver) DeleteEnvironment(ctx context.Context, args *struct{ Environment *model.EnvironmentInput }) (*EnvironmentResolver, error)
func (*Resolver) DeleteExtension ¶
func (r *Resolver) DeleteExtension(args *struct{ Extension *model.ExtensionInput }) (*ExtensionResolver, error)
func (*Resolver) DeleteProjectExtension ¶
func (r *Resolver) DeleteProjectExtension(args *struct{ ProjectExtension *model.ProjectExtensionInput }) (*ProjectExtensionResolver, error)
func (*Resolver) DeleteSecret ¶
func (r *Resolver) DeleteSecret(ctx context.Context, args *struct{ Secret *model.SecretInput }) (*SecretResolver, error)
func (*Resolver) DeleteService ¶
func (r *Resolver) DeleteService(args *struct{ Service *model.ServiceInput }) (*ServiceResolver, error)
DeleteService Delete service
func (*Resolver) DeleteServiceSpec ¶
func (r *Resolver) DeleteServiceSpec(args *struct{ ServiceSpec *model.ServiceSpecInput }) (*ServiceSpecResolver, error)
func (*Resolver) Environments ¶
func (*Resolver) Extensions ¶
func (*Resolver) Features ¶
func (r *Resolver) Features(ctx context.Context, args *struct { Params *model.PaginatorInput }) (*FeatureListResolver, error)
func (*Resolver) GetGitCommits ¶
func (r *Resolver) GetGitCommits(ctx context.Context, args *struct { ProjectID graphql.ID EnvironmentID graphql.ID New *bool }) (bool, error)
GetGitCommits
func (*Resolver) Permissions ¶
Permissions
func (*Resolver) Project ¶
func (r *Resolver) Project(ctx context.Context, args *struct { ID *graphql.ID Slug *string Name *string EnvironmentID *string }) (*ProjectResolver, error)
Project
func (*Resolver) ProjectExtensions ¶
func (r *Resolver) ProjectExtensions(ctx context.Context) ([]*ProjectExtensionResolver, error)
func (*Resolver) Projects ¶
func (r *Resolver) Projects(ctx context.Context, args *struct { ProjectSearch *model.ProjectSearchInput Params *model.PaginatorInput }) (*ProjectListResolver, error)
Projects
func (*Resolver) ReleaseExtensions ¶
func (r *Resolver) ReleaseExtensions(ctx context.Context) ([]*ReleaseExtensionResolver, error)
func (*Resolver) Releases ¶
func (r *Resolver) Releases(ctx context.Context, args *struct { Params *model.PaginatorInput }) (*ReleaseListResolver, error)
func (*Resolver) Secrets ¶
func (r *Resolver) Secrets(ctx context.Context, args *struct { Params *model.PaginatorInput }) (*SecretListResolver, error)
func (*Resolver) ServiceSpecs ¶
func (r *Resolver) ServiceSpecs(ctx context.Context) ([]*ServiceSpecResolver, error)
func (*Resolver) Services ¶
func (r *Resolver) Services(ctx context.Context, args *struct { Params *model.PaginatorInput }) (*ServiceListResolver, error)
func (*Resolver) StopRelease ¶
func (r *Resolver) StopRelease(ctx context.Context, args *struct{ ID graphql.ID }) (*ReleaseResolver, error)
StopRelease
func (*Resolver) UpdateEnvironment ¶
func (r *Resolver) UpdateEnvironment(ctx context.Context, args *struct{ Environment *model.EnvironmentInput }) (*EnvironmentResolver, error)
func (*Resolver) UpdateExtension ¶
func (r *Resolver) UpdateExtension(args *struct{ Extension *model.ExtensionInput }) (*ExtensionResolver, error)
func (*Resolver) UpdateProject ¶
func (r *Resolver) UpdateProject(args *struct { Project *model.ProjectInput }) (*ProjectResolver, error)
UpdateProject Update project
func (*Resolver) UpdateProjectEnvironments ¶
func (r *Resolver) UpdateProjectEnvironments(ctx context.Context, args *struct { ProjectEnvironments *model.ProjectEnvironmentsInput }) ([]*EnvironmentResolver, error)
UpdateProjectEnvironments
func (*Resolver) UpdateProjectExtension ¶
func (r *Resolver) UpdateProjectExtension(args *struct{ ProjectExtension *model.ProjectExtensionInput }) (*ProjectExtensionResolver, error)
func (*Resolver) UpdateSecret ¶
func (r *Resolver) UpdateSecret(ctx context.Context, args *struct{ Secret *model.SecretInput }) (*SecretResolver, error)
func (*Resolver) UpdateService ¶
func (r *Resolver) UpdateService(args *struct{ Service *model.ServiceInput }) (*ServiceResolver, error)
UpdateService Update Service
func (*Resolver) UpdateServiceSpec ¶
func (r *Resolver) UpdateServiceSpec(args *struct{ ServiceSpec *model.ServiceSpecInput }) (*ServiceSpecResolver, error)
func (*Resolver) UpdateUserPermissions ¶
func (r *Resolver) UpdateUserPermissions(ctx context.Context, args *struct{ UserPermissions *model.UserPermissionsInput }) ([]string, error)
UpdateUserPermissions
type SecretListResolver ¶
type SecretListResolver struct {
DBSecretListResolver *db_resolver.SecretListResolver
}
SecretListResolver
func (SecretListResolver) Count ¶
func (r SecretListResolver) Count() (int32, error)
func (SecretListResolver) Entries ¶
func (r SecretListResolver) Entries() ([]*SecretResolver, error)
type SecretResolver ¶
type SecretResolver struct {
DBSecretResolver *db_resolver.SecretResolver
}
SecretResolver resolver for Secret
func (*SecretResolver) Environment ¶
func (r *SecretResolver) Environment() *EnvironmentResolver
Environment
func (*SecretResolver) MarshalJSON ¶
func (r *SecretResolver) MarshalJSON() ([]byte, error)
func (*SecretResolver) UnmarshalJSON ¶
func (r *SecretResolver) UnmarshalJSON(data []byte) error
func (*SecretResolver) Versions ¶
func (r *SecretResolver) Versions() ([]*SecretResolver, error)
Versions
type SecretResolverQuery ¶
Secret Resolver Query
func (*SecretResolverQuery) Secrets ¶
func (r *SecretResolverQuery) Secrets(ctx context.Context, args *struct { Params *model.PaginatorInput }) (*SecretListResolver, error)
type ServiceListResolver ¶
type ServiceListResolver struct {
DBServiceListResolver *db_resolver.ServiceListResolver
}
ServiceListResolver
func (ServiceListResolver) Count ¶
func (r ServiceListResolver) Count() (int32, error)
func (ServiceListResolver) Entries ¶
func (r ServiceListResolver) Entries() ([]*ServiceResolver, error)
type ServiceResolver ¶
type ServiceResolver struct {
DBServiceResolver *db_resolver.ServiceResolver
}
Service Resolver
func (*ServiceResolver) DeploymentStrategy ¶
DBServiceResolver
func (*ServiceResolver) Environment ¶
func (r *ServiceResolver) Environment(ctx context.Context) (*EnvironmentResolver, error)
Environment
func (*ServiceResolver) LivenessProbe ¶
LivenessProbe
func (*ServiceResolver) MarshalJSON ¶
func (r *ServiceResolver) MarshalJSON() ([]byte, error)
func (*ServiceResolver) Ports ¶
func (r *ServiceResolver) Ports() ([]*model.JSON, error)
ServicePorts
func (*ServiceResolver) PreStopHook ¶
func (r *ServiceResolver) PreStopHook() *string
func (*ServiceResolver) ReadinessProbe ¶
ReadinessProbe
func (*ServiceResolver) ServiceSpec ¶
func (r *ServiceResolver) ServiceSpec() *ServiceSpecResolver
ServiceSpec
func (*ServiceResolver) UnmarshalJSON ¶
func (r *ServiceResolver) UnmarshalJSON(data []byte) error
type ServiceResolverQuery ¶
Service Resolver Query
func (*ServiceResolverQuery) Services ¶
func (r *ServiceResolverQuery) Services(ctx context.Context, args *struct { Params *model.PaginatorInput }) (*ServiceListResolver, error)
type ServiceSpecResolver ¶
type ServiceSpecResolver struct {
DBServiceSpecResolver *db_resolver.ServiceSpecResolver
}
ServiceSpecResolver resolver for ServiceSpec
func (*ServiceSpecResolver) CpuRequest ¶
func (r *ServiceSpecResolver) CpuRequest() string
CpuRequest
func (*ServiceSpecResolver) MarshalJSON ¶
func (r *ServiceSpecResolver) MarshalJSON() ([]byte, error)
func (*ServiceSpecResolver) MemoryLimit ¶
func (r *ServiceSpecResolver) MemoryLimit() string
MemoryLimit
func (*ServiceSpecResolver) MemoryRequest ¶
func (r *ServiceSpecResolver) MemoryRequest() string
MemoryRequest
func (*ServiceSpecResolver) TerminationGracePeriod ¶
func (r *ServiceSpecResolver) TerminationGracePeriod() string
TerminationGracePeriod
func (*ServiceSpecResolver) UnmarshalJSON ¶
func (r *ServiceSpecResolver) UnmarshalJSON(data []byte) error
type ServiceSpecResolverQuery ¶
ServiceSpec Resolver Query
func (*ServiceSpecResolverQuery) ServiceSpecs ¶
func (r *ServiceSpecResolverQuery) ServiceSpecs(ctx context.Context) ([]*ServiceSpecResolver, error)
type UserResolver ¶
type UserResolver struct {
DBUserResolver *db_resolver.UserResolver
}
User resolver
func (*UserResolver) MarshalJSON ¶
func (r *UserResolver) MarshalJSON() ([]byte, error)
func (*UserResolver) Permissions ¶
func (r *UserResolver) Permissions(ctx context.Context) []string
Permissions
func (*UserResolver) UnmarshalJSON ¶
func (r *UserResolver) UnmarshalJSON(data []byte) error
type UserResolverQuery ¶
User Resolver Query
func (*UserResolverQuery) Permissions ¶
Permissions
func (*UserResolverQuery) User ¶
func (u *UserResolverQuery) User(ctx context.Context, args *struct { ID *graphql.ID }) (*UserResolver, error)
func (*UserResolverQuery) Users ¶
func (u *UserResolverQuery) Users(ctx context.Context) ([]*UserResolver, error)
Source Files ¶
- environment.go
- environment_query.go
- extension.go
- extension_query.go
- feature.go
- feature_query.go
- helpers.go
- middleware.go
- mutation.go
- paginator.go
- project.go
- project_query.go
- projectextension.go
- projectextension_query.go
- query.go
- release.go
- release_query.go
- releaseextension.go
- releaseextension_query.go
- resolver.go
- secret.go
- secret_query.go
- service.go
- service_query.go
- servicespec.go
- servicespec_query.go
- user.go
- user_query.go