projectv2

package
v0.2.110 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvatarRules

type AvatarRules struct {
	MaxSizeInKB int64                  `json:"maxSizeInKB"`
	MimeTypes   []string               `json:"mimeTypes"`
	Properties  *AvatarRulesProperties `json:"properties,omitempty"`
}

func (*AvatarRules) Validate

func (o *AvatarRules) Validate() error

type AvatarRulesProperties

type AvatarRulesProperties struct {
	ImageDimensions *AvatarRulesPropertiesImageDimensions `json:"imageDimensions,omitempty"`
}

func (*AvatarRulesProperties) Validate

func (o *AvatarRulesProperties) Validate() error

type AvatarRulesPropertiesImageDimensions

type AvatarRulesPropertiesImageDimensions struct {
	Max *AvatarRulesPropertiesImageDimensionsMax `json:"max,omitempty"`
	Min *AvatarRulesPropertiesImageDimensionsMin `json:"min,omitempty"`
}

func (*AvatarRulesPropertiesImageDimensions) Validate

type AvatarRulesPropertiesImageDimensionsMax

type AvatarRulesPropertiesImageDimensionsMax struct {
	Height *int64 `json:"height,omitempty"`
	Width  *int64 `json:"width,omitempty"`
}

func (*AvatarRulesPropertiesImageDimensionsMax) Validate

type AvatarRulesPropertiesImageDimensionsMin

type AvatarRulesPropertiesImageDimensionsMin struct {
	Height *int64 `json:"height,omitempty"`
	Width  *int64 `json:"width,omitempty"`
}

func (*AvatarRulesPropertiesImageDimensionsMin) Validate

type DeprecatedProjectReadinessStatus

type DeprecatedProjectReadinessStatus string

deprecated by property status

const DeprecatedProjectReadinessStatusCreating DeprecatedProjectReadinessStatus = "creating"
const DeprecatedProjectReadinessStatusReady DeprecatedProjectReadinessStatus = "ready"
const DeprecatedProjectReadinessStatusUnready DeprecatedProjectReadinessStatus = "unready"

func (DeprecatedProjectReadinessStatus) Validate

type DeprecatedServerReadinessStatus

type DeprecatedServerReadinessStatus string

deprecated by property status

const DeprecatedServerReadinessStatusCreating DeprecatedServerReadinessStatus = "creating"
const DeprecatedServerReadinessStatusReady DeprecatedServerReadinessStatus = "ready"
const DeprecatedServerReadinessStatusUnready DeprecatedServerReadinessStatus = "unready"

func (DeprecatedServerReadinessStatus) Validate

type DisableReason

type DisableReason string
const DisableReasonIllegalContent DisableReason = "illegalContent"
const DisableReasonMaliciousCode DisableReason = "maliciousCode"
const DisableReasonMaliciousConduct DisableReason = "maliciousConduct"
const DisableReasonSuspended DisableReason = "suspended"

func (DisableReason) Validate

func (e DisableReason) Validate() error

type FilesystemDirectoryListing

type FilesystemDirectoryListing struct {
	AbsolutePath string                       `json:"absolutePath"`
	IsDirectory  *bool                        `json:"isDirectory,omitempty"`
	IsExecutable *bool                        `json:"isExecutable,omitempty"`
	IsFile       *bool                        `json:"isFile,omitempty"`
	IsSymlink    *bool                        `json:"isSymlink,omitempty"`
	Items        []FilesystemDirectoryListing `json:"items,omitempty"`
	Name         string                       `json:"name"`
	Size         int64                        `json:"size"`
	Target       *string                      `json:"target,omitempty"`
}

func (*FilesystemDirectoryListing) Validate

func (o *FilesystemDirectoryListing) Validate() error

type FilesystemUsagesDisk

type FilesystemUsagesDisk struct {
	Path       *string `json:"path,omitempty"`
	TotalBytes *int64  `json:"totalBytes,omitempty"`
	UsedBytes  *int64  `json:"usedBytes,omitempty"`
}

func (*FilesystemUsagesDisk) Validate

func (o *FilesystemUsagesDisk) Validate() error

type FsApiJwt

type FsApiJwt struct {
	Jwt string `json:"jwt"`
}

func (*FsApiJwt) Validate

func (o *FsApiJwt) Validate() error

type HardwareSpec

type HardwareSpec struct {
	Cpu     *string `json:"cpu,omitempty"`
	Mem     *string `json:"mem,omitempty"`
	Memory  *string `json:"memory,omitempty"`
	Storage string  `json:"storage"`
}

func (*HardwareSpec) Validate

func (o *HardwareSpec) Validate() error

type MachineType

type MachineType struct {
	Cpu    string `json:"cpu"`
	Memory string `json:"memory"`
	Name   string `json:"name"`
}

func (*MachineType) Validate

func (o *MachineType) Validate() error

type Project

type Project struct {
	BackupStorageUsageInBytes      int64                            `json:"backupStorageUsageInBytes"`
	BackupStorageUsageInBytesSetAt time.Time                        `json:"backupStorageUsageInBytesSetAt"`
	ClusterDomain                  *string                          `json:"clusterDomain,omitempty"`
	ClusterID                      *string                          `json:"clusterID,omitempty"`
	ClusterId                      *string                          `json:"clusterId,omitempty"`
	CreatedAt                      time.Time                        `json:"createdAt"`
	CustomerId                     string                           `json:"customerId"`
	Description                    string                           `json:"description"`
	Directories                    map[string]string                `json:"directories"`
	DisableReason                  *DisableReason                   `json:"disableReason,omitempty"`
	DisabledAt                     *time.Time                       `json:"disabledAt,omitempty"`
	Enabled                        bool                             `json:"enabled"`
	Features                       []ProjectFeature                 `json:"features,omitempty"`
	Id                             string                           `json:"id"`
	ImageRefId                     *string                          `json:"imageRefId,omitempty"`
	IsReady                        bool                             `json:"isReady"`
	ProjectHostingId               *string                          `json:"projectHostingId,omitempty"`
	Readiness                      DeprecatedProjectReadinessStatus `json:"readiness"`
	ServerId                       *string                          `json:"serverId,omitempty"`
	ServerShortId                  *string                          `json:"serverShortId,omitempty"`
	ShortId                        string                           `json:"shortId"`
	Spec                           *ProjectSpec                     `json:"spec,omitempty"`
	StatisticsBaseDomain           *string                          `json:"statisticsBaseDomain,omitempty"`
	Status                         ProjectStatus                    `json:"status"`
	StatusSetAt                    time.Time                        `json:"statusSetAt"`
	SupportedFeatures              []ProjectFeature                 `json:"supportedFeatures"`
	WebStorageUsageInBytes         int64                            `json:"webStorageUsageInBytes"`
	WebStorageUsageInBytesSetAt    time.Time                        `json:"webStorageUsageInBytesSetAt"`
}

func (*Project) Validate

func (o *Project) Validate() error

type ProjectFeature added in v0.2.74

type ProjectFeature string
const ProjectFeatureContainer ProjectFeature = "container"
const ProjectFeatureNode ProjectFeature = "node"
const ProjectFeatureRedis ProjectFeature = "redis"

func (ProjectFeature) Validate added in v0.2.74

func (e ProjectFeature) Validate() error

type ProjectSpec

type ProjectSpec struct {
	AlternativeVisitorSpec  *VisitorSpec
	AlternativeHardwareSpec *HardwareSpec
}

func (*ProjectSpec) MarshalJSON

func (a *ProjectSpec) MarshalJSON() ([]byte, error)

func (*ProjectSpec) UnmarshalJSON

func (a *ProjectSpec) UnmarshalJSON(input []byte) error

func (*ProjectSpec) Validate

func (a *ProjectSpec) Validate() error

type ProjectStatus

type ProjectStatus string
const ProjectStatusDisabled ProjectStatus = "disabled"
const ProjectStatusError ProjectStatus = "error"
const ProjectStatusMigratingVolume ProjectStatus = "migratingVolume"
const ProjectStatusPending ProjectStatus = "pending"
const ProjectStatusPreparingForVolumeMigration ProjectStatus = "preparingForVolumeMigration"
const ProjectStatusReady ProjectStatus = "ready"

func (ProjectStatus) Validate

func (e ProjectStatus) Validate() error

type Server

type Server struct {
	ClusterName          string                          `json:"clusterName"`
	CreatedAt            time.Time                       `json:"createdAt"`
	CustomerId           string                          `json:"customerId"`
	Description          string                          `json:"description"`
	DisabledReason       *ServerDisableReason            `json:"disabledReason,omitempty"`
	Id                   string                          `json:"id"`
	ImageRefId           *string                         `json:"imageRefId,omitempty"`
	IsReady              bool                            `json:"isReady"`
	MachineType          MachineType                     `json:"machineType"`
	Readiness            DeprecatedServerReadinessStatus `json:"readiness"`
	ShortId              string                          `json:"shortId"`
	StatisticsBaseDomain *string                         `json:"statisticsBaseDomain,omitempty"`
	Status               ServerStatus                    `json:"status"`
	Storage              string                          `json:"storage"`
}

func (*Server) Validate

func (o *Server) Validate() error

type ServerDisableReason

type ServerDisableReason string
const ServerDisableReasonSuspended ServerDisableReason = "suspended"

func (ServerDisableReason) Validate

func (e ServerDisableReason) Validate() error

type ServerStatus

type ServerStatus string
const ServerStatusPending ServerStatus = "pending"
const ServerStatusReady ServerStatus = "ready"
const ServerStatusSuspended ServerStatus = "suspended"
const ServerStatusUnready ServerStatus = "unready"

func (ServerStatus) Validate

func (e ServerStatus) Validate() error

type VisitorSpec

type VisitorSpec struct {
	Storage  string `json:"storage"`
	Visitors int64  `json:"visitors"`
}

func (*VisitorSpec) Validate

func (o *VisitorSpec) Validate() error

Jump to

Keyboard shortcuts

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