db_resolver

package
v0.0.0-...-5f6fd8f Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPaginatorLimitAndOffset

func GetPaginatorLimitAndOffset(paginatorInput *model.PaginatorInput) (string, int)

Types

type EnvironmentResolver

type EnvironmentResolver struct {
	model.Project
	model.Environment
	DB *gorm.DB
}

func (*EnvironmentResolver) Projects

func (r *EnvironmentResolver) Projects() []*ProjectResolver

type ExtensionResolver

type ExtensionResolver struct {
	model.Extension
	DB *gorm.DB
}

func (*ExtensionResolver) Environment

func (r *ExtensionResolver) Environment() (*EnvironmentResolver, error)

type FeatureListResolver

type FeatureListResolver struct {
	PaginatorInput *model.PaginatorInput
	DB             *gorm.DB
}

FeatureResolver resolver for Secret

func (*FeatureListResolver) Count

func (r *FeatureListResolver) Count() (int32, error)

Count

func (*FeatureListResolver) Entries

func (r *FeatureListResolver) Entries() ([]*FeatureResolver, error)

Entries

type FeatureResolver

type FeatureResolver struct {
	Feature model.Feature
	DB      *gorm.DB
}

func (*FeatureResolver) Project

func (r *FeatureResolver) Project() *ProjectResolver

type Paginator

type Paginator struct {
	Page  int32 `json:"page"`
	Count int32 `json:"count"`
}

type PaginatorResolver

type PaginatorResolver interface {
	Page() int32
	Count() int32
	Entries() []interface{}
}

type ProjectExtensionResolver

type ProjectExtensionResolver struct {
	model.ProjectExtension
	DB *gorm.DB
}

func (*ProjectExtensionResolver) Environment

func (r *ProjectExtensionResolver) Environment() (*EnvironmentResolver, error)

Environment

func (*ProjectExtensionResolver) Extension

Extension

func (*ProjectExtensionResolver) Project

Project

type ProjectListResolver

type ProjectListResolver struct {
	PaginatorInput *model.PaginatorInput
	DB             *gorm.DB
}

ProjectResolver resolver for Secret

func (*ProjectListResolver) Count

func (r *ProjectListResolver) Count() (int32, error)

Count

func (*ProjectListResolver) Entries

func (r *ProjectListResolver) Entries() ([]*ProjectResolver, error)

Entries

type ProjectResolver

type ProjectResolver struct {
	model.Project
	model.Environment
	DB *gorm.DB
}

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) GitBranch

func (r *ProjectResolver) GitBranch() string

GitBranch

func (*ProjectResolver) Releases

func (r *ProjectResolver) Releases(args *struct {
	Params *model.PaginatorInput
}) *ReleaseListResolver

Releases

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

type ReleaseExtensionResolver

type ReleaseExtensionResolver struct {
	model.ReleaseExtension
	DB *gorm.DB
}

func (*ReleaseExtensionResolver) Extension

ProjectExtension

func (*ReleaseExtensionResolver) Release

Release

type ReleaseListResolver

type ReleaseListResolver struct {
	PaginatorInput *model.PaginatorInput
	DB             *gorm.DB
}

ReleaseResolver resolver for Release

func (*ReleaseListResolver) Count

func (r *ReleaseListResolver) Count() (int32, error)

Count

func (*ReleaseListResolver) Entries

func (r *ReleaseListResolver) Entries() ([]*ReleaseResolver, error)

Entries

type ReleaseResolver

type ReleaseResolver struct {
	model.Release
	DB *gorm.DB
}

ReleaseResolver resolver for Release

func (*ReleaseResolver) Artifacts

func (r *ReleaseResolver) Artifacts(ctx context.Context) (model.JSON, error)

Artifacts

func (*ReleaseResolver) Environment

func (r *ReleaseResolver) Environment() (*EnvironmentResolver, error)

Environment

func (*ReleaseResolver) HeadFeature

func (r *ReleaseResolver) HeadFeature() *FeatureResolver

HeadFeature

func (*ReleaseResolver) ID

func (r *ReleaseResolver) ID() graphql.ID

ID

func (*ReleaseResolver) Project

func (r *ReleaseResolver) Project() *ProjectResolver

Project

func (*ReleaseResolver) ReleaseExtensions

func (r *ReleaseResolver) ReleaseExtensions() []*ReleaseExtensionResolver

ReleaseExtensions

func (*ReleaseResolver) State

func (r *ReleaseResolver) State() string

State

func (*ReleaseResolver) StateMessage

func (r *ReleaseResolver) StateMessage() string

StateMessage

func (*ReleaseResolver) TailFeature

func (r *ReleaseResolver) TailFeature() *FeatureResolver

TailFeature

func (*ReleaseResolver) User

func (r *ReleaseResolver) User() *UserResolver

User

type SecretListResolver

type SecretListResolver struct {
	PaginatorInput *model.PaginatorInput
	DB             *gorm.DB
}

SecretResolver resolver for Secret

func (*SecretListResolver) Count

func (r *SecretListResolver) Count() (int32, error)

Count

func (*SecretListResolver) Entries

func (r *SecretListResolver) Entries() ([]*SecretResolver, error)

Entries

type SecretResolver

type SecretResolver struct {
	model.Secret
	model.SecretValue
	DB *gorm.DB
}

func (*SecretResolver) Environment

func (r *SecretResolver) Environment() *EnvironmentResolver

Environment

func (*SecretResolver) IsSecret

func (r *SecretResolver) IsSecret() bool

IsSecret

func (*SecretResolver) Project

func (r *SecretResolver) Project() *ProjectResolver

Project

func (*SecretResolver) Scope

func (r *SecretResolver) Scope() string

Scope

func (*SecretResolver) Type

func (r *SecretResolver) Type() string

Type

func (*SecretResolver) User

func (r *SecretResolver) User() (*UserResolver, error)

User

func (*SecretResolver) Value

func (r *SecretResolver) Value() string

Value

func (*SecretResolver) Versions

func (r *SecretResolver) Versions() ([]*SecretResolver, error)

Versions

type ServiceListResolver

type ServiceListResolver struct {
	PaginatorInput *model.PaginatorInput
	DB             *gorm.DB
}

ServiceResolver resolver for Secret

func (*ServiceListResolver) Count

func (r *ServiceListResolver) Count() (int32, error)

Count

func (*ServiceListResolver) Entries

func (r *ServiceListResolver) Entries() ([]*ServiceResolver, error)

Entries

type ServiceResolver

type ServiceResolver struct {
	model.Service
	DB *gorm.DB
}

func (*ServiceResolver) Command

func (r *ServiceResolver) Command() string

Command

func (*ServiceResolver) Count

func (r *ServiceResolver) Count() int32

Count

func (*ServiceResolver) DeploymentStrategy

func (r *ServiceResolver) DeploymentStrategy() (*model.JSON, error)

DeploymentStrategy

func (*ServiceResolver) Environment

func (r *ServiceResolver) Environment(ctx context.Context) (*EnvironmentResolver, error)

Environment

func (*ServiceResolver) LivenessProbe

func (r *ServiceResolver) LivenessProbe() (*model.JSON, error)

LivenessProbe

func (*ServiceResolver) Name

func (r *ServiceResolver) Name() string

Name

func (*ServiceResolver) Ports

func (r *ServiceResolver) Ports() ([]*model.JSON, error)

ServicePorts

func (*ServiceResolver) PreStopHook

func (r *ServiceResolver) PreStopHook() *string

PreStopHook

func (*ServiceResolver) Project

func (r *ServiceResolver) Project() *ProjectResolver

Project

func (*ServiceResolver) ReadinessProbe

func (r *ServiceResolver) ReadinessProbe() (*model.JSON, error)

ReadinessProbe

func (*ServiceResolver) ServiceSpec

func (r *ServiceResolver) ServiceSpec() *ServiceSpecResolver

ServiceSpec

type ServiceSpecResolver

type ServiceSpecResolver struct {
	model.ServiceSpec
	DB *gorm.DB
}

type UserResolver

type UserResolver struct {
	model.User
	DB *gorm.DB
}

func (*UserResolver) Permissions

func (u *UserResolver) Permissions(ctx context.Context) []string

Jump to

Keyboard shortcuts

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