model

package
v0.0.0-...-e4664ba Latest Latest
Warning

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

Go to latest
Published: May 3, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllGitType = []GitType{
	GitTypeHTTP,
	GitTypeSSH,
}
View Source
var AllPersistentVolumeRestoreType = []PersistentVolumeRestoreType{
	PersistentVolumeRestoreTypeLocal,
}

Functions

This section is empty.

Types

type AppBasicAuthAccessControlList

type AppBasicAuthAccessControlList struct {
	ID            uint                             `json:"id"`
	Name          string                           `json:"name"`
	GeneratedName string                           `json:"generatedName"`
	Users         []*AppBasicAuthAccessControlUser `json:"users"`
}

type AppBasicAuthAccessControlListInput

type AppBasicAuthAccessControlListInput struct {
	Name string `json:"name"`
}

type AppBasicAuthAccessControlUser

type AppBasicAuthAccessControlUser struct {
	ID       uint   `json:"id"`
	Username string `json:"username"`
}

type AppBasicAuthAccessControlUserInput

type AppBasicAuthAccessControlUserInput struct {
	Username                        string `json:"username"`
	Password                        string `json:"password"`
	AppBasicAuthAccessControlListID uint   `json:"appBasicAuthAccessControlListID"`
}

type Application

type Application struct {
	ID                       string                        `json:"id"`
	Name                     string                        `json:"name"`
	EnvironmentVariables     []*EnvironmentVariable        `json:"environmentVariables"`
	PersistentVolumeBindings []*PersistentVolumeBinding    `json:"persistentVolumeBindings"`
	ConfigMounts             []*ConfigMount                `json:"configMounts"`
	Capabilities             []string                      `json:"capabilities"`
	Sysctls                  []string                      `json:"sysctls"`
	ResourceLimit            *ResourceLimit                `json:"resourceLimit"`
	ReservedResource         *ReservedResource             `json:"reservedResource"`
	RealtimeInfo             *RealtimeInfo                 `json:"realtimeInfo"`
	LatestDeployment         *Deployment                   `json:"latestDeployment"`
	Deployments              []*Deployment                 `json:"deployments"`
	DeploymentMode           DeploymentMode                `json:"deploymentMode"`
	Replicas                 uint                          `json:"replicas"`
	IngressRules             []*IngressRule                `json:"ingressRules"`
	IsDeleted                bool                          `json:"isDeleted"`
	WebhookToken             string                        `json:"webhookToken"`
	IsSleeping               bool                          `json:"isSleeping"`
	Command                  string                        `json:"command"`
	Hostname                 string                        `json:"hostname"`
	ApplicationGroupID       *string                       `json:"applicationGroupID,omitempty"`
	ApplicationGroup         *ApplicationGroup             `json:"applicationGroup,omitempty"`
	PreferredServerHostnames []string                      `json:"preferredServerHostnames"`
	DockerProxyHost          string                        `json:"dockerProxyHost"`
	DockerProxyConfig        *DockerProxyConfig            `json:"dockerProxyConfig"`
	CustomHealthCheck        *ApplicationCustomHealthCheck `json:"customHealthCheck"`
}

type ApplicationCustomHealthCheck

type ApplicationCustomHealthCheck struct {
	Enabled              bool   `json:"enabled"`
	TestCommand          string `json:"test_command"`
	IntervalSeconds      uint64 `json:"interval_seconds"`
	TimeoutSeconds       uint64 `json:"timeout_seconds"`
	StartPeriodSeconds   uint64 `json:"start_period_seconds"`
	StartIntervalSeconds uint64 `json:"start_interval_seconds"`
	Retries              uint64 `json:"retries"`
}

type ApplicationCustomHealthCheckInput

type ApplicationCustomHealthCheckInput struct {
	Enabled              bool   `json:"enabled"`
	TestCommand          string `json:"test_command"`
	IntervalSeconds      uint64 `json:"interval_seconds"`
	TimeoutSeconds       uint64 `json:"timeout_seconds"`
	StartPeriodSeconds   uint64 `json:"start_period_seconds"`
	StartIntervalSeconds uint64 `json:"start_interval_seconds"`
	Retries              uint64 `json:"retries"`
}

type ApplicationDeployResult

type ApplicationDeployResult struct {
	Success     bool         `json:"success"`
	Message     string       `json:"message"`
	Application *Application `json:"application,omitempty"`
}

type ApplicationGroup

type ApplicationGroup struct {
	ID           string         `json:"id"`
	Name         string         `json:"name"`
	Applications []*Application `json:"applications"`
}

type ApplicationGroupInput

type ApplicationGroupInput struct {
	Name string `json:"name"`
}

type ApplicationInput

type ApplicationInput struct {
	Name                         string                             `json:"name"`
	EnvironmentVariables         []*EnvironmentVariableInput        `json:"environmentVariables"`
	PersistentVolumeBindings     []*PersistentVolumeBindingInput    `json:"persistentVolumeBindings"`
	ConfigMounts                 []*ConfigMountInput                `json:"configMounts"`
	Capabilities                 []string                           `json:"capabilities"`
	Sysctls                      []string                           `json:"sysctls"`
	Dockerfile                   *string                            `json:"dockerfile,omitempty"`
	BuildArgs                    []*BuildArgInput                   `json:"buildArgs"`
	DeploymentMode               DeploymentMode                     `json:"deploymentMode"`
	Replicas                     *uint                              `json:"replicas,omitempty"`
	ResourceLimit                *ResourceLimitInput                `json:"resourceLimit"`
	ReservedResource             *ReservedResourceInput             `json:"reservedResource"`
	UpstreamType                 UpstreamType                       `json:"upstreamType"`
	Command                      string                             `json:"command"`
	GitCredentialID              *uint                              `json:"gitCredentialID,omitempty"`
	RepositoryURL                *string                            `json:"repositoryUrl,omitempty"`
	RepositoryBranch             *string                            `json:"repositoryBranch,omitempty"`
	CodePath                     *string                            `json:"codePath,omitempty"`
	SourceCodeCompressedFileName *string                            `json:"sourceCodeCompressedFileName,omitempty"`
	DockerImage                  *string                            `json:"dockerImage,omitempty"`
	Hostname                     string                             `json:"hostname"`
	ImageRegistryCredentialID    *uint                              `json:"imageRegistryCredentialID,omitempty"`
	ApplicationGroupID           *string                            `json:"applicationGroupID,omitempty"`
	PreferredServerHostnames     []string                           `json:"preferredServerHostnames"`
	DockerProxyConfig            *DockerProxyConfigInput            `json:"dockerProxyConfig"`
	CustomHealthCheck            *ApplicationCustomHealthCheckInput `json:"customHealthCheck"`
}

type ApplicationResourceAnalytics

type ApplicationResourceAnalytics struct {
	CPUUsagePercent      int       `json:"cpu_usage_percent"`
	ServiceCPUTime       uint64    `json:"service_cpu_time"`
	SystemCPUTime        uint64    `json:"system_cpu_time"`
	ReportingServerCount int       `json:"reporting_server_count"`
	MemoryUsedMb         uint64    `json:"memory_used_mb"`
	NetworkSentKb        uint64    `json:"network_sent_kb"`
	NetworkRecvKb        uint64    `json:"network_recv_kb"`
	NetworkSentKbps      uint64    `json:"network_sent_kbps"`
	NetworkRecvKbps      uint64    `json:"network_recv_kbps"`
	Timestamp            time.Time `json:"timestamp"`
}

type ApplicationResourceAnalyticsTimeframe

type ApplicationResourceAnalyticsTimeframe string
const (
	ApplicationResourceAnalyticsTimeframeLast1Hour   ApplicationResourceAnalyticsTimeframe = "last_1_hour"
	ApplicationResourceAnalyticsTimeframeLast3Hours  ApplicationResourceAnalyticsTimeframe = "last_3_hours"
	ApplicationResourceAnalyticsTimeframeLast6Hours  ApplicationResourceAnalyticsTimeframe = "last_6_hours"
	ApplicationResourceAnalyticsTimeframeLast12Hours ApplicationResourceAnalyticsTimeframe = "last_12_hours"
	ApplicationResourceAnalyticsTimeframeLast24Hours ApplicationResourceAnalyticsTimeframe = "last_24_hours"
	ApplicationResourceAnalyticsTimeframeLast7Days   ApplicationResourceAnalyticsTimeframe = "last_7_days"
	ApplicationResourceAnalyticsTimeframeLast30Days  ApplicationResourceAnalyticsTimeframe = "last_30_days"
)

func (ApplicationResourceAnalyticsTimeframe) IsValid

func (ApplicationResourceAnalyticsTimeframe) MarshalGQL

func (ApplicationResourceAnalyticsTimeframe) String

func (*ApplicationResourceAnalyticsTimeframe) UnmarshalGQL

func (e *ApplicationResourceAnalyticsTimeframe) UnmarshalGQL(v interface{}) error

type BuildArg

type BuildArg struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type BuildArgInput

type BuildArgInput struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type CIFSConfig

type CIFSConfig struct {
	Host     string `json:"host"`
	Share    string `json:"share"`
	Username string `json:"username"`
	Password string `json:"password"`
	FileMode string `json:"file_mode"`
	DirMode  string `json:"dir_mode"`
	UID      int    `json:"uid"`
	Gid      int    `json:"gid"`
}

type CIFSConfigInput

type CIFSConfigInput struct {
	Host     string `json:"host"`
	Share    string `json:"share"`
	Username string `json:"username"`
	Password string `json:"password"`
	FileMode string `json:"file_mode"`
	DirMode  string `json:"dir_mode"`
	UID      int    `json:"uid"`
	Gid      int    `json:"gid"`
}

type ConfigMount

type ConfigMount struct {
	Content      string `json:"content"`
	MountingPath string `json:"mountingPath"`
	UID          uint   `json:"uid"`
	Gid          uint   `json:"gid"`
}

type ConfigMountInput

type ConfigMountInput struct {
	Content      string `json:"content"`
	MountingPath string `json:"mountingPath"`
	UID          uint   `json:"uid"`
	Gid          uint   `json:"gid"`
}

type CustomSSLInput

type CustomSSLInput struct {
	FullChain  string `json:"fullChain"`
	PrivateKey string `json:"privateKey"`
}

type Dependency

type Dependency struct {
	Name      string `json:"name"`
	Available bool   `json:"available"`
}

type Deployment

type Deployment struct {
	ID                           string                   `json:"id"`
	ApplicationID                string                   `json:"applicationID"`
	Application                  *Application             `json:"application"`
	UpstreamType                 UpstreamType             `json:"upstreamType"`
	GitCredentialID              uint                     `json:"gitCredentialID"`
	GitCredential                *GitCredential           `json:"gitCredential"`
	GitType                      GitType                  `json:"gitType"`
	GitProvider                  string                   `json:"gitProvider"`
	GitEndpoint                  string                   `json:"gitEndpoint"`
	GitSSHUser                   string                   `json:"gitSshUser"`
	RepositoryOwner              string                   `json:"repositoryOwner"`
	RepositoryName               string                   `json:"repositoryName"`
	RepositoryBranch             string                   `json:"repositoryBranch"`
	RepositoryURL                string                   `json:"repositoryUrl"`
	CommitHash                   string                   `json:"commitHash"`
	CommitMessage                string                   `json:"commitMessage"`
	CodePath                     string                   `json:"codePath"`
	SourceCodeCompressedFileName string                   `json:"sourceCodeCompressedFileName"`
	DockerImage                  string                   `json:"dockerImage"`
	ImageRegistryCredentialID    uint                     `json:"imageRegistryCredentialID"`
	ImageRegistryCredential      *ImageRegistryCredential `json:"imageRegistryCredential"`
	BuildArgs                    []*BuildArg              `json:"buildArgs"`
	Dockerfile                   string                   `json:"dockerfile"`
	Status                       DeploymentStatus         `json:"status"`
	CreatedAt                    time.Time                `json:"createdAt"`
}

type DeploymentLog

type DeploymentLog struct {
	Content   string    `json:"content"`
	CreatedAt time.Time `json:"createdAt"`
}

type DeploymentMode

type DeploymentMode string
const (
	DeploymentModeReplicated DeploymentMode = "replicated"
	DeploymentModeGlobal     DeploymentMode = "global"
)

func (DeploymentMode) IsValid

func (e DeploymentMode) IsValid() bool

func (DeploymentMode) MarshalGQL

func (e DeploymentMode) MarshalGQL(w io.Writer)

func (DeploymentMode) String

func (e DeploymentMode) String() string

func (*DeploymentMode) UnmarshalGQL

func (e *DeploymentMode) UnmarshalGQL(v interface{}) error

type DeploymentStatus

type DeploymentStatus string
const (
	DeploymentStatusPending       DeploymentStatus = "pending"
	DeploymentStatusDeployPending DeploymentStatus = "deployPending"
	DeploymentStatusDeploying     DeploymentStatus = "deploying"
	DeploymentStatusDeployed      DeploymentStatus = "deployed"
	DeploymentStatusStopped       DeploymentStatus = "stopped"
	DeploymentStatusFailed        DeploymentStatus = "failed"
	DeploymentStatusStalled       DeploymentStatus = "stalled"
)

func (DeploymentStatus) IsValid

func (e DeploymentStatus) IsValid() bool

func (DeploymentStatus) MarshalGQL

func (e DeploymentStatus) MarshalGQL(w io.Writer)

func (DeploymentStatus) String

func (e DeploymentStatus) String() string

func (*DeploymentStatus) UnmarshalGQL

func (e *DeploymentStatus) UnmarshalGQL(v interface{}) error

type DockerConfigBuildArg

type DockerConfigBuildArg struct {
	Key          string `json:"key"`
	Description  string `json:"description"`
	Type         string `json:"type"`
	DefaultValue string `json:"defaultValue"`
}

type DockerConfigGeneratorInput

type DockerConfigGeneratorInput struct {
	SourceType                   DockerConfigSourceType `json:"sourceType"`
	GitCredentialID              *uint                  `json:"gitCredentialID,omitempty"`
	RepositoryURL                *string                `json:"repositoryUrl,omitempty"`
	RepositoryBranch             *string                `json:"repositoryBranch,omitempty"`
	CodePath                     *string                `json:"codePath,omitempty"`
	SourceCodeCompressedFileName *string                `json:"sourceCodeCompressedFileName,omitempty"`
	CustomDockerFile             *string                `json:"customDockerFile,omitempty"`
}

type DockerConfigGeneratorOutput

type DockerConfigGeneratorOutput struct {
	DetectedServiceName *string                 `json:"detectedServiceName,omitempty"`
	DockerFile          *string                 `json:"dockerFile,omitempty"`
	DockerBuildArgs     []*DockerConfigBuildArg `json:"dockerBuildArgs,omitempty"`
}

type DockerConfigSourceType

type DockerConfigSourceType string
const (
	DockerConfigSourceTypeGit        DockerConfigSourceType = "git"
	DockerConfigSourceTypeSourceCode DockerConfigSourceType = "sourceCode"
	DockerConfigSourceTypeCustom     DockerConfigSourceType = "custom"
)

func (DockerConfigSourceType) IsValid

func (e DockerConfigSourceType) IsValid() bool

func (DockerConfigSourceType) MarshalGQL

func (e DockerConfigSourceType) MarshalGQL(w io.Writer)

func (DockerConfigSourceType) String

func (e DockerConfigSourceType) String() string

func (*DockerConfigSourceType) UnmarshalGQL

func (e *DockerConfigSourceType) UnmarshalGQL(v interface{}) error

type DockerProxyConfig

type DockerProxyConfig struct {
	Enabled    bool                   `json:"enabled"`
	Permission *DockerProxyPermission `json:"permission"`
}

type DockerProxyConfigInput

type DockerProxyConfigInput struct {
	Enabled    bool                        `json:"enabled"`
	Permission *DockerProxyPermissionInput `json:"permission"`
}

type DockerProxyPermission

type DockerProxyPermission struct {
	Ping         DockerProxyPermissionType `json:"ping"`
	Version      DockerProxyPermissionType `json:"version"`
	Info         DockerProxyPermissionType `json:"info"`
	Events       DockerProxyPermissionType `json:"events"`
	Auth         DockerProxyPermissionType `json:"auth"`
	Secrets      DockerProxyPermissionType `json:"secrets"`
	Build        DockerProxyPermissionType `json:"build"`
	Commit       DockerProxyPermissionType `json:"commit"`
	Configs      DockerProxyPermissionType `json:"configs"`
	Containers   DockerProxyPermissionType `json:"containers"`
	Distribution DockerProxyPermissionType `json:"distribution"`
	Exec         DockerProxyPermissionType `json:"exec"`
	Grpc         DockerProxyPermissionType `json:"grpc"`
	Images       DockerProxyPermissionType `json:"images"`
	Networks     DockerProxyPermissionType `json:"networks"`
	Nodes        DockerProxyPermissionType `json:"nodes"`
	Plugins      DockerProxyPermissionType `json:"plugins"`
	Services     DockerProxyPermissionType `json:"services"`
	Session      DockerProxyPermissionType `json:"session"`
	Swarm        DockerProxyPermissionType `json:"swarm"`
	System       DockerProxyPermissionType `json:"system"`
	Tasks        DockerProxyPermissionType `json:"tasks"`
	Volumes      DockerProxyPermissionType `json:"volumes"`
}

type DockerProxyPermissionInput

type DockerProxyPermissionInput struct {
	Ping         DockerProxyPermissionType `json:"ping"`
	Version      DockerProxyPermissionType `json:"version"`
	Info         DockerProxyPermissionType `json:"info"`
	Events       DockerProxyPermissionType `json:"events"`
	Auth         DockerProxyPermissionType `json:"auth"`
	Secrets      DockerProxyPermissionType `json:"secrets"`
	Build        DockerProxyPermissionType `json:"build"`
	Commit       DockerProxyPermissionType `json:"commit"`
	Configs      DockerProxyPermissionType `json:"configs"`
	Containers   DockerProxyPermissionType `json:"containers"`
	Distribution DockerProxyPermissionType `json:"distribution"`
	Exec         DockerProxyPermissionType `json:"exec"`
	Grpc         DockerProxyPermissionType `json:"grpc"`
	Images       DockerProxyPermissionType `json:"images"`
	Networks     DockerProxyPermissionType `json:"networks"`
	Nodes        DockerProxyPermissionType `json:"nodes"`
	Plugins      DockerProxyPermissionType `json:"plugins"`
	Services     DockerProxyPermissionType `json:"services"`
	Session      DockerProxyPermissionType `json:"session"`
	Swarm        DockerProxyPermissionType `json:"swarm"`
	System       DockerProxyPermissionType `json:"system"`
	Tasks        DockerProxyPermissionType `json:"tasks"`
	Volumes      DockerProxyPermissionType `json:"volumes"`
}

type DockerProxyPermissionType

type DockerProxyPermissionType string
const (
	DockerProxyPermissionTypeNone      DockerProxyPermissionType = "none"
	DockerProxyPermissionTypeRead      DockerProxyPermissionType = "read"
	DockerProxyPermissionTypeReadWrite DockerProxyPermissionType = "read_write"
)

func (DockerProxyPermissionType) IsValid

func (e DockerProxyPermissionType) IsValid() bool

func (DockerProxyPermissionType) MarshalGQL

func (e DockerProxyPermissionType) MarshalGQL(w io.Writer)

func (DockerProxyPermissionType) String

func (e DockerProxyPermissionType) String() string

func (*DockerProxyPermissionType) UnmarshalGQL

func (e *DockerProxyPermissionType) UnmarshalGQL(v interface{}) error

type Domain

type Domain struct {
	ID            uint            `json:"id"`
	Name          string          `json:"name"`
	SslStatus     DomainSSLStatus `json:"sslStatus"`
	SslFullChain  string          `json:"sslFullChain"`
	SslPrivateKey string          `json:"sslPrivateKey"`
	SslIssuedAt   time.Time       `json:"sslIssuedAt"`
	SslIssuer     string          `json:"sslIssuer"`
	SslAutoRenew  bool            `json:"sslAutoRenew"`
	IngressRules  []*IngressRule  `json:"ingressRules"`
	RedirectRules []*RedirectRule `json:"redirectRules"`
}

type DomainInput

type DomainInput struct {
	Name string `json:"name"`
}

type DomainSSLStatus

type DomainSSLStatus string
const (
	DomainSSLStatusNone    DomainSSLStatus = "none"
	DomainSSLStatusPending DomainSSLStatus = "pending"
	DomainSSLStatusIssued  DomainSSLStatus = "issued"
	DomainSSLStatusFailed  DomainSSLStatus = "failed"
)

func (DomainSSLStatus) IsValid

func (e DomainSSLStatus) IsValid() bool

func (DomainSSLStatus) MarshalGQL

func (e DomainSSLStatus) MarshalGQL(w io.Writer)

func (DomainSSLStatus) String

func (e DomainSSLStatus) String() string

func (*DomainSSLStatus) UnmarshalGQL

func (e *DomainSSLStatus) UnmarshalGQL(v interface{}) error

type EnvironmentVariable

type EnvironmentVariable struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type EnvironmentVariableInput

type EnvironmentVariableInput struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type FileInfo

type FileInfo struct {
	Name    string    `json:"name"`
	ModTime time.Time `json:"modTime"`
}

type GitBranchesQueryInput

type GitBranchesQueryInput struct {
	GitCredentialID uint   `json:"gitCredentialId"`
	RepositoryURL   string `json:"repositoryUrl"`
}

type GitCredential

type GitCredential struct {
	ID           uint          `json:"id"`
	Type         GitType       `json:"type"`
	Name         string        `json:"name"`
	Username     string        `json:"username"`
	SSHPublicKey string        `json:"sshPublicKey"`
	Deployments  []*Deployment `json:"deployments"`
}

type GitCredentialInput

type GitCredentialInput struct {
	Name          string  `json:"name"`
	Type          GitType `json:"type"`
	Username      string  `json:"username"`
	Password      string  `json:"password"`
	SSHPrivateKey string  `json:"sshPrivateKey"`
}

type GitCredentialRepositoryAccessInput

type GitCredentialRepositoryAccessInput struct {
	GitCredentialID uint   `json:"gitCredentialId"`
	RepositoryURL   string `json:"repositoryUrl"`
}

type GitType

type GitType string
const (
	GitTypeHTTP GitType = "http"
	GitTypeSSH  GitType = "ssh"
)

func (GitType) IsValid

func (e GitType) IsValid() bool

func (GitType) MarshalGQL

func (e GitType) MarshalGQL(w io.Writer)

func (GitType) String

func (e GitType) String() string

func (*GitType) UnmarshalGQL

func (e *GitType) UnmarshalGQL(v interface{}) error

type HealthStatus

type HealthStatus string
const (
	HealthStatusHealthy   HealthStatus = "healthy"
	HealthStatusUnhealthy HealthStatus = "unhealthy"
	HealthStatusUnknown   HealthStatus = "unknown"
)

func (HealthStatus) IsValid

func (e HealthStatus) IsValid() bool

func (HealthStatus) MarshalGQL

func (e HealthStatus) MarshalGQL(w io.Writer)

func (HealthStatus) String

func (e HealthStatus) String() string

func (*HealthStatus) UnmarshalGQL

func (e *HealthStatus) UnmarshalGQL(v interface{}) error

type ImageRegistryCredential

type ImageRegistryCredential struct {
	ID          uint          `json:"id"`
	URL         string        `json:"url"`
	Username    string        `json:"username"`
	Password    string        `json:"password"`
	Deployments []*Deployment `json:"deployments"`
}

type ImageRegistryCredentialInput

type ImageRegistryCredentialInput struct {
	URL      string `json:"url"`
	Username string `json:"username"`
	Password string `json:"password"`
}

type IngressRule

type IngressRule struct {
	ID                             uint                          `json:"id"`
	TargetType                     IngressRuleTargetType         `json:"targetType"`
	DomainID                       *uint                         `json:"domainId,omitempty"`
	Domain                         *Domain                       `json:"domain,omitempty"`
	Protocol                       ProtocolType                  `json:"protocol"`
	Port                           uint                          `json:"port"`
	ApplicationID                  string                        `json:"applicationId"`
	Application                    *Application                  `json:"application"`
	ExternalService                string                        `json:"externalService"`
	TargetPort                     uint                          `json:"targetPort"`
	HTTPSRedirect                  bool                          `json:"httpsRedirect"`
	AuthenticationType             IngressRuleAuthenticationType `json:"authenticationType"`
	BasicAuthAccessControlListID   *uint                         `json:"basicAuthAccessControlListID,omitempty"`
	BasicAuthAccessControlListName string                        `json:"basicAuthAccessControlListName"`
	Status                         IngressRuleStatus             `json:"status"`
	CreatedAt                      time.Time                     `json:"createdAt"`
	UpdatedAt                      time.Time                     `json:"updatedAt"`
}

type IngressRuleAuthenticationType

type IngressRuleAuthenticationType string
const (
	IngressRuleAuthenticationTypeNone  IngressRuleAuthenticationType = "none"
	IngressRuleAuthenticationTypeBasic IngressRuleAuthenticationType = "basic"
)

func (IngressRuleAuthenticationType) IsValid

func (e IngressRuleAuthenticationType) IsValid() bool

func (IngressRuleAuthenticationType) MarshalGQL

func (e IngressRuleAuthenticationType) MarshalGQL(w io.Writer)

func (IngressRuleAuthenticationType) String

func (*IngressRuleAuthenticationType) UnmarshalGQL

func (e *IngressRuleAuthenticationType) UnmarshalGQL(v interface{}) error

type IngressRuleInput

type IngressRuleInput struct {
	DomainID        *uint                 `json:"domainId,omitempty"`
	TargetType      IngressRuleTargetType `json:"targetType"`
	ApplicationID   string                `json:"applicationId"`
	ExternalService string                `json:"externalService"`
	Protocol        ProtocolType          `json:"protocol"`
	Port            uint                  `json:"port"`
	TargetPort      uint                  `json:"targetPort"`
}

type IngressRuleStatus

type IngressRuleStatus string
const (
	IngressRuleStatusPending  IngressRuleStatus = "pending"
	IngressRuleStatusApplied  IngressRuleStatus = "applied"
	IngressRuleStatusDeleting IngressRuleStatus = "deleting"
	IngressRuleStatusFailed   IngressRuleStatus = "failed"
)

func (IngressRuleStatus) IsValid

func (e IngressRuleStatus) IsValid() bool

func (IngressRuleStatus) MarshalGQL

func (e IngressRuleStatus) MarshalGQL(w io.Writer)

func (IngressRuleStatus) String

func (e IngressRuleStatus) String() string

func (*IngressRuleStatus) UnmarshalGQL

func (e *IngressRuleStatus) UnmarshalGQL(v interface{}) error

type IngressRuleTargetType

type IngressRuleTargetType string
const (
	IngressRuleTargetTypeApplication     IngressRuleTargetType = "application"
	IngressRuleTargetTypeExternalService IngressRuleTargetType = "externalService"
)

func (IngressRuleTargetType) IsValid

func (e IngressRuleTargetType) IsValid() bool

func (IngressRuleTargetType) MarshalGQL

func (e IngressRuleTargetType) MarshalGQL(w io.Writer)

func (IngressRuleTargetType) String

func (e IngressRuleTargetType) String() string

func (*IngressRuleTargetType) UnmarshalGQL

func (e *IngressRuleTargetType) UnmarshalGQL(v interface{}) error

type IngressRuleValidationInput

type IngressRuleValidationInput struct {
	DomainID *uint        `json:"domainId,omitempty"`
	Protocol ProtocolType `json:"protocol"`
	Port     uint         `json:"port"`
}

type Mutation

type Mutation struct {
}

type NFSConfig

type NFSConfig struct {
	Host    string `json:"host"`
	Path    string `json:"path"`
	Version int    `json:"version"`
}

type NFSConfigInput

type NFSConfigInput struct {
	Host    string `json:"host"`
	Path    string `json:"path"`
	Version int    `json:"version"`
}

type NetworkInterface

type NetworkInterface struct {
	Name string `json:"name"`
	IP   string `json:"ip"`
}

type NewServerInput

type NewServerInput struct {
	IP      string `json:"ip"`
	SSHPort int    `json:"ssh_port"`
	User    string `json:"user"`
}

type PasswordUpdateInput

type PasswordUpdateInput struct {
	OldPassword string `json:"oldPassword"`
	NewPassword string `json:"newPassword"`
}

type PersistentVolume

type PersistentVolume struct {
	ID                       uint                       `json:"id"`
	Name                     string                     `json:"name"`
	Type                     PersistentVolumeType       `json:"type"`
	NfsConfig                *NFSConfig                 `json:"nfsConfig"`
	CifsConfig               *CIFSConfig                `json:"cifsConfig"`
	PersistentVolumeBindings []*PersistentVolumeBinding `json:"persistentVolumeBindings"`
	Backups                  []*PersistentVolumeBackup  `json:"backups"`
	Restores                 []*PersistentVolumeRestore `json:"restores"`
}

type PersistentVolumeBackup

type PersistentVolumeBackup struct {
	ID          uint                         `json:"id"`
	Type        PersistentVolumeBackupType   `json:"type"`
	Status      PersistentVolumeBackupStatus `json:"status"`
	SizeMb      float64                      `json:"sizeMb"`
	CreatedAt   time.Time                    `json:"createdAt"`
	CompletedAt time.Time                    `json:"completedAt"`
}

type PersistentVolumeBackupInput

type PersistentVolumeBackupInput struct {
	PersistentVolumeID uint                       `json:"persistentVolumeId"`
	Type               PersistentVolumeBackupType `json:"type"`
}

type PersistentVolumeBackupStatus

type PersistentVolumeBackupStatus string
const (
	PersistentVolumeBackupStatusPending PersistentVolumeBackupStatus = "pending"
	PersistentVolumeBackupStatusFailed  PersistentVolumeBackupStatus = "failed"
	PersistentVolumeBackupStatusSuccess PersistentVolumeBackupStatus = "success"
)

func (PersistentVolumeBackupStatus) IsValid

func (e PersistentVolumeBackupStatus) IsValid() bool

func (PersistentVolumeBackupStatus) MarshalGQL

func (e PersistentVolumeBackupStatus) MarshalGQL(w io.Writer)

func (PersistentVolumeBackupStatus) String

func (*PersistentVolumeBackupStatus) UnmarshalGQL

func (e *PersistentVolumeBackupStatus) UnmarshalGQL(v interface{}) error

type PersistentVolumeBackupType

type PersistentVolumeBackupType string
const (
	PersistentVolumeBackupTypeLocal PersistentVolumeBackupType = "local"
	PersistentVolumeBackupTypeS3    PersistentVolumeBackupType = "s3"
)

func (PersistentVolumeBackupType) IsValid

func (e PersistentVolumeBackupType) IsValid() bool

func (PersistentVolumeBackupType) MarshalGQL

func (e PersistentVolumeBackupType) MarshalGQL(w io.Writer)

func (PersistentVolumeBackupType) String

func (*PersistentVolumeBackupType) UnmarshalGQL

func (e *PersistentVolumeBackupType) UnmarshalGQL(v interface{}) error

type PersistentVolumeBinding

type PersistentVolumeBinding struct {
	ID                 uint              `json:"id"`
	PersistentVolumeID uint              `json:"persistentVolumeID"`
	PersistentVolume   *PersistentVolume `json:"persistentVolume"`
	ApplicationID      string            `json:"applicationID"`
	Application        *Application      `json:"application"`
	MountingPath       string            `json:"mountingPath"`
}

type PersistentVolumeBindingInput

type PersistentVolumeBindingInput struct {
	PersistentVolumeID uint   `json:"persistentVolumeID"`
	MountingPath       string `json:"mountingPath"`
}

type PersistentVolumeInput

type PersistentVolumeInput struct {
	Name       string               `json:"name"`
	Type       PersistentVolumeType `json:"type"`
	NfsConfig  *NFSConfigInput      `json:"nfsConfig"`
	CifsConfig *CIFSConfigInput     `json:"cifsConfig"`
}

type PersistentVolumeRestore

type PersistentVolumeRestore struct {
	ID          uint                          `json:"id"`
	Type        PersistentVolumeRestoreType   `json:"type"`
	Status      PersistentVolumeRestoreStatus `json:"status"`
	CreatedAt   time.Time                     `json:"createdAt"`
	CompletedAt time.Time                     `json:"completedAt"`
}

type PersistentVolumeRestoreInput

type PersistentVolumeRestoreInput struct {
	PersistentVolumeID uint                        `json:"persistentVolumeId"`
	Type               PersistentVolumeRestoreType `json:"type"`
}

type PersistentVolumeRestoreStatus

type PersistentVolumeRestoreStatus string
const (
	PersistentVolumeRestoreStatusPending PersistentVolumeRestoreStatus = "pending"
	PersistentVolumeRestoreStatusFailed  PersistentVolumeRestoreStatus = "failed"
	PersistentVolumeRestoreStatusSuccess PersistentVolumeRestoreStatus = "success"
)

func (PersistentVolumeRestoreStatus) IsValid

func (e PersistentVolumeRestoreStatus) IsValid() bool

func (PersistentVolumeRestoreStatus) MarshalGQL

func (e PersistentVolumeRestoreStatus) MarshalGQL(w io.Writer)

func (PersistentVolumeRestoreStatus) String

func (*PersistentVolumeRestoreStatus) UnmarshalGQL

func (e *PersistentVolumeRestoreStatus) UnmarshalGQL(v interface{}) error

type PersistentVolumeRestoreType

type PersistentVolumeRestoreType string
const (
	PersistentVolumeRestoreTypeLocal PersistentVolumeRestoreType = "local"
)

func (PersistentVolumeRestoreType) IsValid

func (e PersistentVolumeRestoreType) IsValid() bool

func (PersistentVolumeRestoreType) MarshalGQL

func (e PersistentVolumeRestoreType) MarshalGQL(w io.Writer)

func (PersistentVolumeRestoreType) String

func (*PersistentVolumeRestoreType) UnmarshalGQL

func (e *PersistentVolumeRestoreType) UnmarshalGQL(v interface{}) error

type PersistentVolumeType

type PersistentVolumeType string
const (
	PersistentVolumeTypeLocal PersistentVolumeType = "local"
	PersistentVolumeTypeNfs   PersistentVolumeType = "nfs"
	PersistentVolumeTypeCifs  PersistentVolumeType = "cifs"
)

func (PersistentVolumeType) IsValid

func (e PersistentVolumeType) IsValid() bool

func (PersistentVolumeType) MarshalGQL

func (e PersistentVolumeType) MarshalGQL(w io.Writer)

func (PersistentVolumeType) String

func (e PersistentVolumeType) String() string

func (*PersistentVolumeType) UnmarshalGQL

func (e *PersistentVolumeType) UnmarshalGQL(v interface{}) error

type ProtocolType

type ProtocolType string
const (
	ProtocolTypeHTTP  ProtocolType = "http"
	ProtocolTypeHTTPS ProtocolType = "https"
	ProtocolTypeTCP   ProtocolType = "tcp"
	ProtocolTypeUDP   ProtocolType = "udp"
)

func (ProtocolType) IsValid

func (e ProtocolType) IsValid() bool

func (ProtocolType) MarshalGQL

func (e ProtocolType) MarshalGQL(w io.Writer)

func (ProtocolType) String

func (e ProtocolType) String() string

func (*ProtocolType) UnmarshalGQL

func (e *ProtocolType) UnmarshalGQL(v interface{}) error

type ProxyType

type ProxyType string
const (
	ProxyTypeBackup ProxyType = "backup"
	ProxyTypeActive ProxyType = "active"
)

func (ProxyType) IsValid

func (e ProxyType) IsValid() bool

func (ProxyType) MarshalGQL

func (e ProxyType) MarshalGQL(w io.Writer)

func (ProxyType) String

func (e ProxyType) String() string

func (*ProxyType) UnmarshalGQL

func (e *ProxyType) UnmarshalGQL(v interface{}) error

type Query

type Query struct {
}

type RealtimeInfo

type RealtimeInfo struct {
	InfoFound       bool           `json:"InfoFound"`
	DesiredReplicas int            `json:"DesiredReplicas"`
	RunningReplicas int            `json:"RunningReplicas"`
	DeploymentMode  DeploymentMode `json:"DeploymentMode"`
	HealthStatus    HealthStatus   `json:"HealthStatus"`
}

type RedirectRule

type RedirectRule struct {
	ID          uint               `json:"id"`
	DomainID    uint               `json:"domainId"`
	Domain      *Domain            `json:"domain"`
	Protocol    ProtocolType       `json:"protocol"`
	RedirectURL string             `json:"redirectURL"`
	Status      RedirectRuleStatus `json:"status"`
	CreatedAt   time.Time          `json:"createdAt"`
	UpdatedAt   time.Time          `json:"updatedAt"`
}

type RedirectRuleInput

type RedirectRuleInput struct {
	DomainID    uint         `json:"domainId"`
	Protocol    ProtocolType `json:"protocol"`
	RedirectURL string       `json:"redirectURL"`
}

type RedirectRuleStatus

type RedirectRuleStatus string
const (
	RedirectRuleStatusPending  RedirectRuleStatus = "pending"
	RedirectRuleStatusApplied  RedirectRuleStatus = "applied"
	RedirectRuleStatusFailed   RedirectRuleStatus = "failed"
	RedirectRuleStatusDeleting RedirectRuleStatus = "deleting"
)

func (RedirectRuleStatus) IsValid

func (e RedirectRuleStatus) IsValid() bool

func (RedirectRuleStatus) MarshalGQL

func (e RedirectRuleStatus) MarshalGQL(w io.Writer)

func (RedirectRuleStatus) String

func (e RedirectRuleStatus) String() string

func (*RedirectRuleStatus) UnmarshalGQL

func (e *RedirectRuleStatus) UnmarshalGQL(v interface{}) error

type RequestTotpEnable

type RequestTotpEnable struct {
	TotpSecret          string `json:"totpSecret"`
	TotpProvisioningURI string `json:"totpProvisioningUri"`
}

type ReservedResource

type ReservedResource struct {
	MemoryMb int `json:"memoryMb"`
}

type ReservedResourceInput

type ReservedResourceInput struct {
	MemoryMb int `json:"memoryMb"`
}

type ResourceLimit

type ResourceLimit struct {
	MemoryMb int `json:"memoryMb"`
}

type ResourceLimitInput

type ResourceLimitInput struct {
	MemoryMb int `json:"memoryMb"`
}

type RuntimeLog

type RuntimeLog struct {
	Content   string    `json:"content"`
	CreatedAt time.Time `json:"createdAt"`
}

type RuntimeLogTimeframe

type RuntimeLogTimeframe string
const (
	RuntimeLogTimeframeLive        RuntimeLogTimeframe = "live"
	RuntimeLogTimeframeLast1Hour   RuntimeLogTimeframe = "last_1_hour"
	RuntimeLogTimeframeLast3Hours  RuntimeLogTimeframe = "last_3_hours"
	RuntimeLogTimeframeLast6Hours  RuntimeLogTimeframe = "last_6_hours"
	RuntimeLogTimeframeLast12Hours RuntimeLogTimeframe = "last_12_hours"
	RuntimeLogTimeframeLast24Hours RuntimeLogTimeframe = "last_24_hours"
	RuntimeLogTimeframeLifetime    RuntimeLogTimeframe = "lifetime"
)

func (RuntimeLogTimeframe) IsValid

func (e RuntimeLogTimeframe) IsValid() bool

func (RuntimeLogTimeframe) MarshalGQL

func (e RuntimeLogTimeframe) MarshalGQL(w io.Writer)

func (RuntimeLogTimeframe) String

func (e RuntimeLogTimeframe) String() string

func (*RuntimeLogTimeframe) UnmarshalGQL

func (e *RuntimeLogTimeframe) UnmarshalGQL(v interface{}) error

type Server

type Server struct {
	ID                   uint         `json:"id"`
	IP                   string       `json:"ip"`
	Hostname             string       `json:"hostname"`
	User                 string       `json:"user"`
	SSHPort              int          `json:"ssh_port"`
	SwarmMode            SwarmMode    `json:"swarmMode"`
	SwarmNodeStatus      string       `json:"swarmNodeStatus"`
	ScheduleDeployments  bool         `json:"scheduleDeployments"`
	MaintenanceMode      bool         `json:"maintenanceMode"`
	DockerUnixSocketPath string       `json:"dockerUnixSocketPath"`
	ProxyEnabled         bool         `json:"proxyEnabled"`
	ProxyType            ProxyType    `json:"proxyType"`
	Status               ServerStatus `json:"status"`
	Logs                 []*ServerLog `json:"logs"`
}

type ServerDiskUsage

type ServerDiskUsage struct {
	Path       string    `json:"path"`
	MountPoint string    `json:"mount_point"`
	TotalGb    float64   `json:"total_gb"`
	UsedGb     float64   `json:"used_gb"`
	Timestamp  time.Time `json:"timestamp"`
}

type ServerDisksUsage

type ServerDisksUsage struct {
	Disks     []*ServerDiskUsage `json:"disks"`
	Timestamp time.Time          `json:"timestamp"`
}

type ServerLog

type ServerLog struct {
	ID        uint      `json:"id"`
	Title     string    `json:"title"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
}

type ServerResourceAnalytics

type ServerResourceAnalytics struct {
	CPUUsagePercent int       `json:"cpu_usage_percent"`
	MemoryTotalGb   float64   `json:"memory_total_gb"`
	MemoryUsedGb    float64   `json:"memory_used_gb"`
	MemoryCachedGb  float64   `json:"memory_cached_gb"`
	NetworkSentKb   uint64    `json:"network_sent_kb"`
	NetworkRecvKb   uint64    `json:"network_recv_kb"`
	NetworkSentKbps uint64    `json:"network_sent_kbps"`
	NetworkRecvKbps uint64    `json:"network_recv_kbps"`
	Timestamp       time.Time `json:"timestamp"`
}

type ServerResourceAnalyticsTimeframe

type ServerResourceAnalyticsTimeframe string
const (
	ServerResourceAnalyticsTimeframeLast1Hour   ServerResourceAnalyticsTimeframe = "last_1_hour"
	ServerResourceAnalyticsTimeframeLast3Hours  ServerResourceAnalyticsTimeframe = "last_3_hours"
	ServerResourceAnalyticsTimeframeLast6Hours  ServerResourceAnalyticsTimeframe = "last_6_hours"
	ServerResourceAnalyticsTimeframeLast12Hours ServerResourceAnalyticsTimeframe = "last_12_hours"
	ServerResourceAnalyticsTimeframeLast24Hours ServerResourceAnalyticsTimeframe = "last_24_hours"
	ServerResourceAnalyticsTimeframeLast7Days   ServerResourceAnalyticsTimeframe = "last_7_days"
	ServerResourceAnalyticsTimeframeLast30Days  ServerResourceAnalyticsTimeframe = "last_30_days"
)

func (ServerResourceAnalyticsTimeframe) IsValid

func (ServerResourceAnalyticsTimeframe) MarshalGQL

func (e ServerResourceAnalyticsTimeframe) MarshalGQL(w io.Writer)

func (ServerResourceAnalyticsTimeframe) String

func (*ServerResourceAnalyticsTimeframe) UnmarshalGQL

func (e *ServerResourceAnalyticsTimeframe) UnmarshalGQL(v interface{}) error

type ServerSetupInput

type ServerSetupInput struct {
	ID                   uint      `json:"id"`
	DockerUnixSocketPath string    `json:"dockerUnixSocketPath"`
	AdvertiseIP          string    `json:"advertiseIP"`
	SwarmMode            SwarmMode `json:"swarmMode"`
}

type ServerStatus

type ServerStatus string
const (
	ServerStatusNeedsSetup ServerStatus = "needs_setup"
	ServerStatusPreparing  ServerStatus = "preparing"
	ServerStatusOnline     ServerStatus = "online"
	ServerStatusOffline    ServerStatus = "offline"
)

func (ServerStatus) IsValid

func (e ServerStatus) IsValid() bool

func (ServerStatus) MarshalGQL

func (e ServerStatus) MarshalGQL(w io.Writer)

func (ServerStatus) String

func (e ServerStatus) String() string

func (*ServerStatus) UnmarshalGQL

func (e *ServerStatus) UnmarshalGQL(v interface{}) error

type StackInput

type StackInput struct {
	Content   string               `json:"content"`
	Variables []*StackVariableType `json:"variables"`
}

type StackVariableType

type StackVariableType struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type StackVerifyResult

type StackVerifyResult struct {
	Success                 bool     `json:"success"`
	Message                 string   `json:"message"`
	Error                   string   `json:"error"`
	ValidVolumes            []string `json:"validVolumes"`
	InvalidVolumes          []string `json:"invalidVolumes"`
	ValidServices           []string `json:"validServices"`
	InvalidServices         []string `json:"invalidServices"`
	ValidPreferredServers   []string `json:"validPreferredServers"`
	InvalidPreferredServers []string `json:"invalidPreferredServers"`
}

type Subscription

type Subscription struct {
}

type SwarmMode

type SwarmMode string
const (
	SwarmModeManager SwarmMode = "manager"
	SwarmModeWorker  SwarmMode = "worker"
)

func (SwarmMode) IsValid

func (e SwarmMode) IsValid() bool

func (SwarmMode) MarshalGQL

func (e SwarmMode) MarshalGQL(w io.Writer)

func (SwarmMode) String

func (e SwarmMode) String() string

func (*SwarmMode) UnmarshalGQL

func (e *SwarmMode) UnmarshalGQL(v interface{}) error

type UpstreamType

type UpstreamType string
const (
	UpstreamTypeGit        UpstreamType = "git"
	UpstreamTypeSourceCode UpstreamType = "sourceCode"
	UpstreamTypeImage      UpstreamType = "image"
)

func (UpstreamType) IsValid

func (e UpstreamType) IsValid() bool

func (UpstreamType) MarshalGQL

func (e UpstreamType) MarshalGQL(w io.Writer)

func (UpstreamType) String

func (e UpstreamType) String() string

func (*UpstreamType) UnmarshalGQL

func (e *UpstreamType) UnmarshalGQL(v interface{}) error

type User

type User struct {
	ID          uint   `json:"id"`
	Username    string `json:"username"`
	TotpEnabled bool   `json:"totpEnabled"`
}

type UserInput

type UserInput struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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