Documentation
¶
Index ¶
- type AvatarRules
- type AvatarRulesProperties
- type AvatarRulesPropertiesImageDimensions
- type AvatarRulesPropertiesImageDimensionsMax
- type AvatarRulesPropertiesImageDimensionsMin
- type DeprecatedProjectReadinessStatus
- type DeprecatedServerReadinessStatus
- type DisableReason
- type FilesystemDirectoryListing
- type FilesystemUsagesDisk
- type FsApiJwt
- type HardwareSpec
- type MachineType
- type Project
- type ProjectFeature
- type ProjectSpec
- type ProjectStatus
- type Server
- type ServerDisableReason
- type ServerStatus
- type VisitorSpec
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 ¶
func (o *AvatarRulesPropertiesImageDimensions) Validate() error
type AvatarRulesPropertiesImageDimensionsMax ¶
type AvatarRulesPropertiesImageDimensionsMax struct {
Height *int64 `json:"height,omitempty"`
Width *int64 `json:"width,omitempty"`
}
func (*AvatarRulesPropertiesImageDimensionsMax) Validate ¶
func (o *AvatarRulesPropertiesImageDimensionsMax) Validate() error
type AvatarRulesPropertiesImageDimensionsMin ¶
type AvatarRulesPropertiesImageDimensionsMin struct {
Height *int64 `json:"height,omitempty"`
Width *int64 `json:"width,omitempty"`
}
func (*AvatarRulesPropertiesImageDimensionsMin) Validate ¶
func (o *AvatarRulesPropertiesImageDimensionsMin) Validate() error
type DeprecatedProjectReadinessStatus ¶
type DeprecatedProjectReadinessStatus string
deprecated by property status
const DeprecatedProjectReadinessStatusCreating DeprecatedProjectReadinessStatus = "creating"
const DeprecatedProjectReadinessStatusReady DeprecatedProjectReadinessStatus = "ready"
const DeprecatedProjectReadinessStatusUnready DeprecatedProjectReadinessStatus = "unready"
func (DeprecatedProjectReadinessStatus) Validate ¶
func (e DeprecatedProjectReadinessStatus) Validate() error
type DeprecatedServerReadinessStatus ¶
type DeprecatedServerReadinessStatus string
deprecated by property status
const DeprecatedServerReadinessStatusCreating DeprecatedServerReadinessStatus = "creating"
const DeprecatedServerReadinessStatusReady DeprecatedServerReadinessStatus = "ready"
const DeprecatedServerReadinessStatusUnready DeprecatedServerReadinessStatus = "unready"
func (DeprecatedServerReadinessStatus) Validate ¶
func (e DeprecatedServerReadinessStatus) Validate() error
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 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"`
}
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"`
}
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 ¶
func (*VisitorSpec) Validate ¶
func (o *VisitorSpec) Validate() error
Source Files
¶
- avatarrules.go
- avatarrules_properties.go
- avatarrules_properties_imagedimensions.go
- avatarrules_properties_imagedimensions_max.go
- avatarrules_properties_imagedimensions_min.go
- deprecatedprojectreadinessstatus.go
- deprecatedserverreadinessstatus.go
- disablereason.go
- filesystemdirectorylisting.go
- filesystemusagesdisk.go
- fsapijwt.go
- hardwarespec.go
- machinetype.go
- project.go
- project_spec.go
- projectfeature.go
- projectstatus.go
- server.go
- serverdisablereason.go
- serverstatus.go
- visitorspec.go
Click to show internal directories.
Click to hide internal directories.