core_v1alpha

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigSpecEntrypointId     = entity.Id("dev.miren.core/component.config_spec.entrypoint")
	ConfigSpecServicesId       = entity.Id("dev.miren.core/component.config_spec.services")
	ConfigSpecStartDirectoryId = entity.Id("dev.miren.core/component.config_spec.start_directory")
	ConfigSpecVariablesId      = entity.Id("dev.miren.core/component.config_spec.variables")
)
View Source
const (
	ConfigSpecServicesCommandId     = entity.Id("dev.miren.core/component.config_spec.services.command")
	ConfigSpecServicesConcurrencyId = entity.Id("dev.miren.core/component.config_spec.services.concurrency")
	ConfigSpecServicesDisksId       = entity.Id("dev.miren.core/component.config_spec.services.disks")
	ConfigSpecServicesEnvId         = entity.Id("dev.miren.core/component.config_spec.services.env")
	ConfigSpecServicesImageId       = entity.Id("dev.miren.core/component.config_spec.services.image")
	ConfigSpecServicesNameId        = entity.Id("dev.miren.core/component.config_spec.services.name")
	ConfigSpecServicesPortId        = entity.Id("dev.miren.core/component.config_spec.services.port")
	ConfigSpecServicesPortNameId    = entity.Id("dev.miren.core/component.config_spec.services.port_name")
	ConfigSpecServicesPortTypeId    = entity.Id("dev.miren.core/component.config_spec.services.port_type")
)
View Source
const (
	ConfigSpecServicesConcurrencyModeId                = entity.Id("dev.miren.core/component.config_spec.services.concurrency.mode")
	ConfigSpecServicesConcurrencyNumInstancesId        = entity.Id("dev.miren.core/component.config_spec.services.concurrency.num_instances")
	ConfigSpecServicesConcurrencyRequestsPerInstanceId = entity.Id("dev.miren.core/component.config_spec.services.concurrency.requests_per_instance")
	ConfigSpecServicesConcurrencyScaleDownDelayId      = entity.Id("dev.miren.core/component.config_spec.services.concurrency.scale_down_delay")
	ConfigSpecServicesConcurrencyShutdownTimeoutId     = entity.Id("dev.miren.core/component.config_spec.services.concurrency.shutdown_timeout")
)
View Source
const (
	ConfigSpecServicesDisksFilesystemId   = entity.Id("dev.miren.core/component.config_spec.services.disks.filesystem")
	ConfigSpecServicesDisksLeaseTimeoutId = entity.Id("dev.miren.core/component.config_spec.services.disks.lease_timeout")
	ConfigSpecServicesDisksMountPathId    = entity.Id("dev.miren.core/component.config_spec.services.disks.mount_path")
	ConfigSpecServicesDisksNameId         = entity.Id("dev.miren.core/component.config_spec.services.disks.name")
	ConfigSpecServicesDisksReadOnlyId     = entity.Id("dev.miren.core/component.config_spec.services.disks.read_only")
	ConfigSpecServicesDisksSizeGbId       = entity.Id("dev.miren.core/component.config_spec.services.disks.size_gb")
)
View Source
const (
	ConfigSpecServicesEnvKeyId       = entity.Id("dev.miren.core/component.config_spec.services.env.key")
	ConfigSpecServicesEnvOriginId    = entity.Id("dev.miren.core/component.config_spec.services.env.origin")
	ConfigSpecServicesEnvSensitiveId = entity.Id("dev.miren.core/component.config_spec.services.env.sensitive")
	ConfigSpecServicesEnvSourceId    = entity.Id("dev.miren.core/component.config_spec.services.env.source")
	ConfigSpecServicesEnvValueId     = entity.Id("dev.miren.core/component.config_spec.services.env.value")
)
View Source
const (
	ConfigSpecVariablesKeyId       = entity.Id("dev.miren.core/component.config_spec.variables.key")
	ConfigSpecVariablesOriginId    = entity.Id("dev.miren.core/component.config_spec.variables.origin")
	ConfigSpecVariablesSensitiveId = entity.Id("dev.miren.core/component.config_spec.variables.sensitive")
	ConfigSpecVariablesSourceId    = entity.Id("dev.miren.core/component.config_spec.variables.source")
	ConfigSpecVariablesValueId     = entity.Id("dev.miren.core/component.config_spec.variables.value")
)
View Source
const (
	AppActiveVersionId = entity.Id("dev.miren.core/app.active_version")
	AppInitialConfigId = entity.Id("dev.miren.core/app.initial_config")
	AppProjectId       = entity.Id("dev.miren.core/app.project")
)
View Source
const (
	AppVersionAdminTokenId     = entity.Id("dev.miren.core/app_version.admin_token")
	AppVersionAppId            = entity.Id("dev.miren.core/app_version.app")
	AppVersionArtifactId       = entity.Id("dev.miren.core/app_version.artifact")
	AppVersionConfigId         = entity.Id("dev.miren.core/app_version.config")
	AppVersionConfigVersionId  = entity.Id("dev.miren.core/app_version.config_version")
	AppVersionImageUrlId       = entity.Id("dev.miren.core/app_version.image_url")
	AppVersionManifestId       = entity.Id("dev.miren.core/app_version.manifest")
	AppVersionManifestDigestId = entity.Id("dev.miren.core/app_version.manifest_digest")
	AppVersionVersionId        = entity.Id("dev.miren.core/app_version.version")
)
View Source
const (
	ConfigCommandsId       = entity.Id("dev.miren.core/config.commands")
	ConfigEntrypointId     = entity.Id("dev.miren.core/config.entrypoint")
	ConfigPortId           = entity.Id("dev.miren.core/config.port")
	ConfigServicesId       = entity.Id("dev.miren.core/config.services")
	ConfigStartDirectoryId = entity.Id("dev.miren.core/config.start_directory")
	ConfigVariableId       = entity.Id("dev.miren.core/config.variable")
)
View Source
const (
	CommandsCommandId = entity.Id("dev.miren.core/commands.command")
	CommandsServiceId = entity.Id("dev.miren.core/commands.service")
)
View Source
const (
	ServicesDisksId              = entity.Id("dev.miren.core/services.disks")
	ServicesEnvId                = entity.Id("dev.miren.core/services.env")
	ServicesImageId              = entity.Id("dev.miren.core/services.image")
	ServicesNameId               = entity.Id("dev.miren.core/services.name")
	ServicesPortId               = entity.Id("dev.miren.core/services.port")
	ServicesPortNameId           = entity.Id("dev.miren.core/services.port_name")
	ServicesPortTypeId           = entity.Id("dev.miren.core/services.port_type")
	ServicesServiceConcurrencyId = entity.Id("dev.miren.core/services.service_concurrency")
)
View Source
const (
	DisksFilesystemId   = entity.Id("dev.miren.core/disks.filesystem")
	DisksLeaseTimeoutId = entity.Id("dev.miren.core/disks.lease_timeout")
	DisksMountPathId    = entity.Id("dev.miren.core/disks.mount_path")
	DisksNameId         = entity.Id("dev.miren.core/disks.name")
	DisksReadOnlyId     = entity.Id("dev.miren.core/disks.read_only")
	DisksSizeGbId       = entity.Id("dev.miren.core/disks.size_gb")
)
View Source
const (
	EnvKeyId       = entity.Id("dev.miren.core/env.key")
	EnvOriginId    = entity.Id("dev.miren.core/env.origin")
	EnvSensitiveId = entity.Id("dev.miren.core/env.sensitive")
	EnvSourceId    = entity.Id("dev.miren.core/env.source")
	EnvValueId     = entity.Id("dev.miren.core/env.value")
)
View Source
const (
	ServiceConcurrencyModeId                = entity.Id("dev.miren.core/service_concurrency.mode")
	ServiceConcurrencyNumInstancesId        = entity.Id("dev.miren.core/service_concurrency.num_instances")
	ServiceConcurrencyRequestsPerInstanceId = entity.Id("dev.miren.core/service_concurrency.requests_per_instance")
	ServiceConcurrencyScaleDownDelayId      = entity.Id("dev.miren.core/service_concurrency.scale_down_delay")
	ServiceConcurrencyShutdownTimeoutId     = entity.Id("dev.miren.core/service_concurrency.shutdown_timeout")
)
View Source
const (
	VariableKeyId       = entity.Id("dev.miren.core/variable.key")
	VariableOriginId    = entity.Id("dev.miren.core/variable.origin")
	VariableSensitiveId = entity.Id("dev.miren.core/variable.sensitive")
	VariableSourceId    = entity.Id("dev.miren.core/variable.source")
	VariableValueId     = entity.Id("dev.miren.core/variable.value")
)
View Source
const (
	ArtifactAppId            = entity.Id("dev.miren.core/artifact.app")
	ArtifactManifestId       = entity.Id("dev.miren.core/artifact.manifest")
	ArtifactManifestDigestId = entity.Id("dev.miren.core/artifact.manifest_digest")
	ArtifactStatusId         = entity.Id("dev.miren.core/artifact.status")
	ArtifactStatusActiveId   = entity.Id("dev.miren.core/status.active")
	ArtifactStatusArchivedId = entity.Id("dev.miren.core/status.archived")
)
View Source
const (
	ConfigVersionAppId  = entity.Id("dev.miren.core/config_version.app")
	ConfigVersionSpecId = entity.Id("dev.miren.core/config_version.spec")
)
View Source
const (
	DeploymentAppNameId            = entity.Id("dev.miren.core/deployment.app_name")
	DeploymentAppVersionId         = entity.Id("dev.miren.core/deployment.app_version")
	DeploymentBuildLogsId          = entity.Id("dev.miren.core/deployment.build_logs")
	DeploymentClusterIdId          = entity.Id("dev.miren.core/deployment.cluster_id")
	DeploymentCompletedAtId        = entity.Id("dev.miren.core/deployment.completed_at")
	DeploymentDeployedById         = entity.Id("dev.miren.core/deployment.deployed_by")
	DeploymentErrorMessageId       = entity.Id("dev.miren.core/deployment.error_message")
	DeploymentGitInfoId            = entity.Id("dev.miren.core/deployment.git_info")
	DeploymentPhaseId              = entity.Id("dev.miren.core/deployment.phase")
	DeploymentSourceDeploymentIdId = entity.Id("dev.miren.core/deployment.source_deployment_id")
	DeploymentStatusId             = entity.Id("dev.miren.core/deployment.status")
)
View Source
const (
	DeployedByTimestampId = entity.Id("dev.miren.core/deployed_by.timestamp")
	DeployedByUserEmailId = entity.Id("dev.miren.core/deployed_by.user_email")
	DeployedByUserIdId    = entity.Id("dev.miren.core/deployed_by.user_id")
	DeployedByUserNameId  = entity.Id("dev.miren.core/deployed_by.user_name")
)
View Source
const (
	GitInfoAuthorId            = entity.Id("dev.miren.core/git_info.author")
	GitInfoBranchId            = entity.Id("dev.miren.core/git_info.branch")
	GitInfoCommitAuthorEmailId = entity.Id("dev.miren.core/git_info.commit_author_email")
	GitInfoCommitTimestampId   = entity.Id("dev.miren.core/git_info.commit_timestamp")
	GitInfoIsDirtyId           = entity.Id("dev.miren.core/git_info.is_dirty")
	GitInfoMessageId           = entity.Id("dev.miren.core/git_info.message")
	GitInfoRepositoryId        = entity.Id("dev.miren.core/git_info.repository")
	GitInfoShaId               = entity.Id("dev.miren.core/git_info.sha")
	GitInfoWorkingTreeHashId   = entity.Id("dev.miren.core/git_info.working_tree_hash")
)
View Source
const (
	MetadataLabelsId  = entity.Id("dev.miren.core/metadata.labels")
	MetadataNameId    = entity.Id("dev.miren.core/metadata.name")
	MetadataProjectId = entity.Id("dev.miren.core/metadata.project")
)
View Source
const (
	ProjectOwnerId = entity.Id("dev.miren.core/project.owner")
)

Variables

View Source
var (
	KindApp           = entity.Id("dev.miren.core/kind.app")
	KindAppVersion    = entity.Id("dev.miren.core/kind.app_version")
	KindArtifact      = entity.Id("dev.miren.core/kind.artifact")
	KindConfigVersion = entity.Id("dev.miren.core/kind.config_version")
	KindDeployment    = entity.Id("dev.miren.core/kind.deployment")
	KindMetadata      = entity.Id("dev.miren.core/kind.metadata")
	KindProject       = entity.Id("dev.miren.core/kind.project")
	Schema            = entity.Id("dev.miren.core/schema.v1alpha")
)

Functions

func MigrateAppVersionConcurrency

func MigrateAppVersionConcurrency(ctx context.Context, log *slog.Logger, eac *entityserver_v1alpha.EntityAccessClient) error

MigrateAppVersionConcurrency backfills missing service_concurrency config for all app versions using the same defaults applied at build time.

Types

type App

type App struct {
	ID            entity.Id `json:"id"`
	ActiveVersion entity.Id `cbor:"active_version,omitempty" json:"active_version,omitempty"`
	InitialConfig entity.Id `cbor:"initial_config,omitempty" json:"initial_config,omitempty"`
	Project       entity.Id `cbor:"project,omitempty" json:"project,omitempty"`
}

func (*App) Decode

func (o *App) Decode(e entity.AttrGetter)

func (*App) Empty

func (o *App) Empty() bool

func (*App) Encode

func (o *App) Encode() (attrs []entity.Attr)

func (*App) EntityId

func (o *App) EntityId() entity.Id

func (*App) InitSchema

func (o *App) InitSchema(sb *schema.SchemaBuilder)

func (*App) Is

func (o *App) Is(e entity.AttrGetter) bool

func (*App) Kind

func (o *App) Kind() entity.Id

func (*App) ShortKind

func (o *App) ShortKind() string

type AppVersion

type AppVersion struct {
	ID             entity.Id `json:"id"`
	AdminToken     string    `cbor:"admin_token,omitempty" json:"admin_token,omitempty"`
	App            entity.Id `cbor:"app,omitempty" json:"app,omitempty"`
	Artifact       entity.Id `cbor:"artifact,omitempty" json:"artifact,omitempty"`
	Config         Config    `cbor:"config,omitempty" json:"config,omitempty"`
	ConfigVersion  entity.Id `cbor:"config_version,omitempty" json:"config_version,omitempty"`
	ImageUrl       string    `cbor:"image_url,omitempty" json:"image_url,omitempty"`
	Manifest       string    `cbor:"manifest,omitempty" json:"manifest,omitempty"`
	ManifestDigest string    `cbor:"manifest_digest,omitempty" json:"manifest_digest,omitempty"`
	Version        string    `cbor:"version,omitempty" json:"version,omitempty"`
}

func (*AppVersion) Decode

func (o *AppVersion) Decode(e entity.AttrGetter)

func (*AppVersion) Empty

func (o *AppVersion) Empty() bool

func (*AppVersion) Encode

func (o *AppVersion) Encode() (attrs []entity.Attr)

func (*AppVersion) EntityId

func (o *AppVersion) EntityId() entity.Id

func (*AppVersion) InitSchema

func (o *AppVersion) InitSchema(sb *schema.SchemaBuilder)

func (*AppVersion) Is

func (o *AppVersion) Is(e entity.AttrGetter) bool

func (*AppVersion) Kind

func (o *AppVersion) Kind() entity.Id

func (*AppVersion) ShortKind

func (o *AppVersion) ShortKind() string

type Artifact

type Artifact struct {
	ID             entity.Id      `json:"id"`
	App            entity.Id      `cbor:"app,omitempty" json:"app,omitempty"`
	Manifest       string         `cbor:"manifest,omitempty" json:"manifest,omitempty"`
	ManifestDigest string         `cbor:"manifest_digest,omitempty" json:"manifest_digest,omitempty"`
	Status         ArtifactStatus `cbor:"status,omitempty" json:"status,omitempty"`
}

func (*Artifact) Decode

func (o *Artifact) Decode(e entity.AttrGetter)

func (*Artifact) Empty

func (o *Artifact) Empty() bool

func (*Artifact) Encode

func (o *Artifact) Encode() (attrs []entity.Attr)

func (*Artifact) EntityId

func (o *Artifact) EntityId() entity.Id

func (*Artifact) InitSchema

func (o *Artifact) InitSchema(sb *schema.SchemaBuilder)

func (*Artifact) Is

func (o *Artifact) Is(e entity.AttrGetter) bool

func (*Artifact) Kind

func (o *Artifact) Kind() entity.Id

func (*Artifact) ShortKind

func (o *Artifact) ShortKind() string

type ArtifactStatus added in v0.3.0

type ArtifactStatus string
const (
	ACTIVE   ArtifactStatus = "status.active"
	ARCHIVED ArtifactStatus = "status.archived"
)

type Commands

type Commands struct {
	Command string `cbor:"command,omitempty" json:"command,omitempty"`
	Service string `cbor:"service,omitempty" json:"service,omitempty"`
}

func (*Commands) Decode

func (o *Commands) Decode(e entity.AttrGetter)

func (*Commands) Empty

func (o *Commands) Empty() bool

func (*Commands) Encode

func (o *Commands) Encode() (attrs []entity.Attr)

func (*Commands) InitSchema

func (o *Commands) InitSchema(sb *schema.SchemaBuilder)

type Config

type Config struct {
	Commands       []Commands `cbor:"commands,omitempty" json:"commands,omitempty"`
	Entrypoint     string     `cbor:"entrypoint,omitempty" json:"entrypoint,omitempty"`
	Port           int64      `cbor:"port,omitempty" json:"port,omitempty"`
	Services       []Services `cbor:"services,omitempty" json:"services,omitempty"`
	StartDirectory string     `cbor:"start_directory,omitempty" json:"start_directory,omitempty"`
	Variable       []Variable `cbor:"variable,omitempty" json:"variable,omitempty"`
}

func (*Config) Decode

func (o *Config) Decode(e entity.AttrGetter)

func (*Config) Empty

func (o *Config) Empty() bool

func (*Config) Encode

func (o *Config) Encode() (attrs []entity.Attr)

func (*Config) InitSchema

func (o *Config) InitSchema(sb *schema.SchemaBuilder)

type ConfigSpec added in v0.4.0

type ConfigSpec struct {
	Entrypoint     string                `cbor:"entrypoint,omitempty" json:"entrypoint,omitempty"`
	Services       []ConfigSpecServices  `cbor:"services,omitempty" json:"services,omitempty"`
	StartDirectory string                `cbor:"start_directory,omitempty" json:"start_directory,omitempty"`
	Variables      []ConfigSpecVariables `cbor:"variables,omitempty" json:"variables,omitempty"`
}

func (*ConfigSpec) Decode added in v0.4.0

func (o *ConfigSpec) Decode(e entity.AttrGetter)

func (*ConfigSpec) Empty added in v0.4.0

func (o *ConfigSpec) Empty() bool

func (*ConfigSpec) Encode added in v0.4.0

func (o *ConfigSpec) Encode() (attrs []entity.Attr)

func (*ConfigSpec) InitSchema added in v0.4.0

func (o *ConfigSpec) InitSchema(sb *schema.SchemaBuilder)

type ConfigSpecServices added in v0.4.0

type ConfigSpecServices struct {
	Command     string                        `cbor:"command,omitempty" json:"command,omitempty"`
	Concurrency ConfigSpecServicesConcurrency `cbor:"concurrency,omitempty" json:"concurrency,omitempty"`
	Disks       []ConfigSpecServicesDisks     `cbor:"disks,omitempty" json:"disks,omitempty"`
	Env         []ConfigSpecServicesEnv       `cbor:"env,omitempty" json:"env,omitempty"`
	Image       string                        `cbor:"image,omitempty" json:"image,omitempty"`
	Name        string                        `cbor:"name,omitempty" json:"name,omitempty"`
	Port        int64                         `cbor:"port,omitempty" json:"port,omitempty"`
	PortName    string                        `cbor:"port_name,omitempty" json:"port_name,omitempty"`
	PortType    string                        `cbor:"port_type,omitempty" json:"port_type,omitempty"`
}

func (*ConfigSpecServices) Decode added in v0.4.0

func (o *ConfigSpecServices) Decode(e entity.AttrGetter)

func (*ConfigSpecServices) Empty added in v0.4.0

func (o *ConfigSpecServices) Empty() bool

func (*ConfigSpecServices) Encode added in v0.4.0

func (o *ConfigSpecServices) Encode() (attrs []entity.Attr)

func (*ConfigSpecServices) InitSchema added in v0.4.0

func (o *ConfigSpecServices) InitSchema(sb *schema.SchemaBuilder)

type ConfigSpecServicesConcurrency added in v0.4.0

type ConfigSpecServicesConcurrency struct {
	Mode                string `cbor:"mode,omitempty" json:"mode,omitempty"`
	NumInstances        int64  `cbor:"num_instances,omitempty" json:"num_instances,omitempty"`
	RequestsPerInstance int64  `cbor:"requests_per_instance,omitempty" json:"requests_per_instance,omitempty"`
	ScaleDownDelay      string `cbor:"scale_down_delay,omitempty" json:"scale_down_delay,omitempty"`
	ShutdownTimeout     string `cbor:"shutdown_timeout,omitempty" json:"shutdown_timeout,omitempty"`
}

func (*ConfigSpecServicesConcurrency) Decode added in v0.4.0

func (*ConfigSpecServicesConcurrency) Empty added in v0.4.0

func (*ConfigSpecServicesConcurrency) Encode added in v0.4.0

func (o *ConfigSpecServicesConcurrency) Encode() (attrs []entity.Attr)

func (*ConfigSpecServicesConcurrency) InitSchema added in v0.4.0

type ConfigSpecServicesDisks added in v0.4.0

type ConfigSpecServicesDisks struct {
	Filesystem   string `cbor:"filesystem,omitempty" json:"filesystem,omitempty"`
	LeaseTimeout string `cbor:"lease_timeout,omitempty" json:"lease_timeout,omitempty"`
	MountPath    string `cbor:"mount_path,omitempty" json:"mount_path,omitempty"`
	Name         string `cbor:"name,omitempty" json:"name,omitempty"`
	ReadOnly     bool   `cbor:"read_only,omitempty" json:"read_only,omitempty"`
	SizeGb       int64  `cbor:"size_gb,omitempty" json:"size_gb,omitempty"`
}

func (*ConfigSpecServicesDisks) Decode added in v0.4.0

func (*ConfigSpecServicesDisks) Empty added in v0.4.0

func (o *ConfigSpecServicesDisks) Empty() bool

func (*ConfigSpecServicesDisks) Encode added in v0.4.0

func (o *ConfigSpecServicesDisks) Encode() (attrs []entity.Attr)

func (*ConfigSpecServicesDisks) InitSchema added in v0.4.0

func (o *ConfigSpecServicesDisks) InitSchema(sb *schema.SchemaBuilder)

type ConfigSpecServicesEnv added in v0.4.0

type ConfigSpecServicesEnv struct {
	Key       string `cbor:"key,omitempty" json:"key,omitempty"`
	Origin    string `cbor:"origin,omitempty" json:"origin,omitempty"`
	Sensitive bool   `cbor:"sensitive,omitempty" json:"sensitive,omitempty"`
	Source    string `cbor:"source,omitempty" json:"source,omitempty"`
	Value     string `cbor:"value,omitempty" json:"value,omitempty"`
}

func (*ConfigSpecServicesEnv) Decode added in v0.4.0

func (*ConfigSpecServicesEnv) Empty added in v0.4.0

func (o *ConfigSpecServicesEnv) Empty() bool

func (*ConfigSpecServicesEnv) Encode added in v0.4.0

func (o *ConfigSpecServicesEnv) Encode() (attrs []entity.Attr)

func (*ConfigSpecServicesEnv) InitSchema added in v0.4.0

func (o *ConfigSpecServicesEnv) InitSchema(sb *schema.SchemaBuilder)

type ConfigSpecVariables added in v0.4.0

type ConfigSpecVariables struct {
	Key       string `cbor:"key,omitempty" json:"key,omitempty"`
	Origin    string `cbor:"origin,omitempty" json:"origin,omitempty"`
	Sensitive bool   `cbor:"sensitive,omitempty" json:"sensitive,omitempty"`
	Source    string `cbor:"source,omitempty" json:"source,omitempty"`
	Value     string `cbor:"value,omitempty" json:"value,omitempty"`
}

func (*ConfigSpecVariables) Decode added in v0.4.0

func (o *ConfigSpecVariables) Decode(e entity.AttrGetter)

func (*ConfigSpecVariables) Empty added in v0.4.0

func (o *ConfigSpecVariables) Empty() bool

func (*ConfigSpecVariables) Encode added in v0.4.0

func (o *ConfigSpecVariables) Encode() (attrs []entity.Attr)

func (*ConfigSpecVariables) InitSchema added in v0.4.0

func (o *ConfigSpecVariables) InitSchema(sb *schema.SchemaBuilder)

type ConfigVersion added in v0.4.0

type ConfigVersion struct {
	ID   entity.Id  `json:"id"`
	App  entity.Id  `cbor:"app,omitempty" json:"app,omitempty"`
	Spec ConfigSpec `cbor:"spec,omitempty" json:"spec,omitempty"`
}

func (*ConfigVersion) Decode added in v0.4.0

func (o *ConfigVersion) Decode(e entity.AttrGetter)

func (*ConfigVersion) Empty added in v0.4.0

func (o *ConfigVersion) Empty() bool

func (*ConfigVersion) Encode added in v0.4.0

func (o *ConfigVersion) Encode() (attrs []entity.Attr)

func (*ConfigVersion) EntityId added in v0.4.0

func (o *ConfigVersion) EntityId() entity.Id

func (*ConfigVersion) InitSchema added in v0.4.0

func (o *ConfigVersion) InitSchema(sb *schema.SchemaBuilder)

func (*ConfigVersion) Is added in v0.4.0

func (*ConfigVersion) Kind added in v0.4.0

func (o *ConfigVersion) Kind() entity.Id

func (*ConfigVersion) ShortKind added in v0.4.0

func (o *ConfigVersion) ShortKind() string

type DeployedBy

type DeployedBy struct {
	Timestamp string `cbor:"timestamp,omitempty" json:"timestamp,omitempty"`
	UserEmail string `cbor:"user_email,omitempty" json:"user_email,omitempty"`
	UserId    string `cbor:"user_id,omitempty" json:"user_id,omitempty"`
	UserName  string `cbor:"user_name,omitempty" json:"user_name,omitempty"`
}

func (*DeployedBy) Decode

func (o *DeployedBy) Decode(e entity.AttrGetter)

func (*DeployedBy) Empty

func (o *DeployedBy) Empty() bool

func (*DeployedBy) Encode

func (o *DeployedBy) Encode() (attrs []entity.Attr)

func (*DeployedBy) InitSchema

func (o *DeployedBy) InitSchema(sb *schema.SchemaBuilder)

type Deployment

type Deployment struct {
	ID                 entity.Id  `json:"id"`
	AppName            string     `cbor:"app_name,omitempty" json:"app_name,omitempty"`
	AppVersion         string     `cbor:"app_version,omitempty" json:"app_version,omitempty"`
	BuildLogs          string     `cbor:"build_logs,omitempty" json:"build_logs,omitempty"`
	ClusterId          string     `cbor:"cluster_id,omitempty" json:"cluster_id,omitempty"`
	CompletedAt        string     `cbor:"completed_at,omitempty" json:"completed_at,omitempty"`
	DeployedBy         DeployedBy `cbor:"deployed_by,omitempty" json:"deployed_by,omitempty"`
	ErrorMessage       string     `cbor:"error_message,omitempty" json:"error_message,omitempty"`
	GitInfo            GitInfo    `cbor:"git_info,omitempty" json:"git_info,omitempty"`
	Phase              string     `cbor:"phase,omitempty" json:"phase,omitempty"`
	SourceDeploymentId string     `cbor:"source_deployment_id,omitempty" json:"source_deployment_id,omitempty"`
	Status             string     `cbor:"status,omitempty" json:"status,omitempty"`
}

func (*Deployment) Decode

func (o *Deployment) Decode(e entity.AttrGetter)

func (*Deployment) Empty

func (o *Deployment) Empty() bool

func (*Deployment) Encode

func (o *Deployment) Encode() (attrs []entity.Attr)

func (*Deployment) EntityId

func (o *Deployment) EntityId() entity.Id

func (*Deployment) InitSchema

func (o *Deployment) InitSchema(sb *schema.SchemaBuilder)

func (*Deployment) Is

func (o *Deployment) Is(e entity.AttrGetter) bool

func (*Deployment) Kind

func (o *Deployment) Kind() entity.Id

func (*Deployment) ShortKind

func (o *Deployment) ShortKind() string

type Disks

type Disks struct {
	Filesystem   string `cbor:"filesystem,omitempty" json:"filesystem,omitempty"`
	LeaseTimeout string `cbor:"lease_timeout,omitempty" json:"lease_timeout,omitempty"`
	MountPath    string `cbor:"mount_path,omitempty" json:"mount_path,omitempty"`
	Name         string `cbor:"name,omitempty" json:"name,omitempty"`
	ReadOnly     bool   `cbor:"read_only,omitempty" json:"read_only,omitempty"`
	SizeGb       int64  `cbor:"size_gb,omitempty" json:"size_gb,omitempty"`
}

func (*Disks) Decode

func (o *Disks) Decode(e entity.AttrGetter)

func (*Disks) Empty

func (o *Disks) Empty() bool

func (*Disks) Encode

func (o *Disks) Encode() (attrs []entity.Attr)

func (*Disks) InitSchema

func (o *Disks) InitSchema(sb *schema.SchemaBuilder)

type Env

type Env struct {
	Key       string `cbor:"key,omitempty" json:"key,omitempty"`
	Origin    string `cbor:"origin,omitempty" json:"origin,omitempty"`
	Sensitive bool   `cbor:"sensitive,omitempty" json:"sensitive,omitempty"`
	Source    string `cbor:"source,omitempty" json:"source,omitempty"`
	Value     string `cbor:"value,omitempty" json:"value,omitempty"`
}

func (*Env) Decode

func (o *Env) Decode(e entity.AttrGetter)

func (*Env) Empty

func (o *Env) Empty() bool

func (*Env) Encode

func (o *Env) Encode() (attrs []entity.Attr)

func (*Env) InitSchema

func (o *Env) InitSchema(sb *schema.SchemaBuilder)

type GitInfo

type GitInfo struct {
	Author            string `cbor:"author,omitempty" json:"author,omitempty"`
	Branch            string `cbor:"branch,omitempty" json:"branch,omitempty"`
	CommitAuthorEmail string `cbor:"commit_author_email,omitempty" json:"commit_author_email,omitempty"`
	CommitTimestamp   string `cbor:"commit_timestamp,omitempty" json:"commit_timestamp,omitempty"`
	IsDirty           bool   `cbor:"is_dirty,omitempty" json:"is_dirty,omitempty"`
	Message           string `cbor:"message,omitempty" json:"message,omitempty"`
	Repository        string `cbor:"repository,omitempty" json:"repository,omitempty"`
	Sha               string `cbor:"sha,omitempty" json:"sha,omitempty"`
	WorkingTreeHash   string `cbor:"working_tree_hash,omitempty" json:"working_tree_hash,omitempty"`
}

func (*GitInfo) Decode

func (o *GitInfo) Decode(e entity.AttrGetter)

func (*GitInfo) Empty

func (o *GitInfo) Empty() bool

func (*GitInfo) Encode

func (o *GitInfo) Encode() (attrs []entity.Attr)

func (*GitInfo) InitSchema

func (o *GitInfo) InitSchema(sb *schema.SchemaBuilder)

type Metadata

type Metadata struct {
	ID      entity.Id    `json:"id"`
	Labels  types.Labels `cbor:"labels,omitempty" json:"labels,omitempty"`
	Name    string       `cbor:"name,omitempty" json:"name,omitempty"`
	Project entity.Id    `cbor:"project,omitempty" json:"project,omitempty"`
}

func MD

func MD(ea entity.AttrGetter) Metadata

func (*Metadata) Decode

func (o *Metadata) Decode(e entity.AttrGetter)

func (*Metadata) Empty

func (o *Metadata) Empty() bool

func (*Metadata) Encode

func (o *Metadata) Encode() (attrs []entity.Attr)

func (*Metadata) EntityId

func (o *Metadata) EntityId() entity.Id

func (*Metadata) InitSchema

func (o *Metadata) InitSchema(sb *schema.SchemaBuilder)

func (*Metadata) Is

func (o *Metadata) Is(e entity.AttrGetter) bool

func (*Metadata) Kind

func (o *Metadata) Kind() entity.Id

func (*Metadata) ShortKind

func (o *Metadata) ShortKind() string

type Project

type Project struct {
	ID    entity.Id `json:"id"`
	Owner string    `cbor:"owner,omitempty" json:"owner,omitempty"`
}

func (*Project) Decode

func (o *Project) Decode(e entity.AttrGetter)

func (*Project) Empty

func (o *Project) Empty() bool

func (*Project) Encode

func (o *Project) Encode() (attrs []entity.Attr)

func (*Project) EntityId

func (o *Project) EntityId() entity.Id

func (*Project) InitSchema

func (o *Project) InitSchema(sb *schema.SchemaBuilder)

func (*Project) Is

func (o *Project) Is(e entity.AttrGetter) bool

func (*Project) Kind

func (o *Project) Kind() entity.Id

func (*Project) ShortKind

func (o *Project) ShortKind() string

type ServiceConcurrency

type ServiceConcurrency struct {
	Mode                string `cbor:"mode,omitempty" json:"mode,omitempty"`
	NumInstances        int64  `cbor:"num_instances,omitempty" json:"num_instances,omitempty"`
	RequestsPerInstance int64  `cbor:"requests_per_instance,omitempty" json:"requests_per_instance,omitempty"`
	ScaleDownDelay      string `cbor:"scale_down_delay,omitempty" json:"scale_down_delay,omitempty"`
	ShutdownTimeout     string `cbor:"shutdown_timeout,omitempty" json:"shutdown_timeout,omitempty"`
}

func GetServiceConcurrency

func GetServiceConcurrency(ver *AppVersion, serviceName string) (ServiceConcurrency, error)

GetServiceConcurrency returns the concurrency configuration for a named service. Returns an error if the service is not found - all service configs should be hydrated with defaults during app version creation.

func (*ServiceConcurrency) Decode

func (o *ServiceConcurrency) Decode(e entity.AttrGetter)

func (*ServiceConcurrency) Empty

func (o *ServiceConcurrency) Empty() bool

func (*ServiceConcurrency) Encode

func (o *ServiceConcurrency) Encode() (attrs []entity.Attr)

func (*ServiceConcurrency) InitSchema

func (o *ServiceConcurrency) InitSchema(sb *schema.SchemaBuilder)

type Services

type Services struct {
	Disks              []Disks            `cbor:"disks,omitempty" json:"disks,omitempty"`
	Env                []Env              `cbor:"env,omitempty" json:"env,omitempty"`
	Image              string             `cbor:"image,omitempty" json:"image,omitempty"`
	Name               string             `cbor:"name,omitempty" json:"name,omitempty"`
	Port               int64              `cbor:"port,omitempty" json:"port,omitempty"`
	PortName           string             `cbor:"port_name,omitempty" json:"port_name,omitempty"`
	PortType           string             `cbor:"port_type,omitempty" json:"port_type,omitempty"`
	ServiceConcurrency ServiceConcurrency `cbor:"service_concurrency,omitempty" json:"service_concurrency,omitempty"`
}

func (*Services) Decode

func (o *Services) Decode(e entity.AttrGetter)

func (*Services) Empty

func (o *Services) Empty() bool

func (*Services) Encode

func (o *Services) Encode() (attrs []entity.Attr)

func (*Services) InitSchema

func (o *Services) InitSchema(sb *schema.SchemaBuilder)

type Variable

type Variable struct {
	Key       string `cbor:"key,omitempty" json:"key,omitempty"`
	Origin    string `cbor:"origin,omitempty" json:"origin,omitempty"`
	Sensitive bool   `cbor:"sensitive,omitempty" json:"sensitive,omitempty"`
	Source    string `cbor:"source,omitempty" json:"source,omitempty"`
	Value     string `cbor:"value,omitempty" json:"value,omitempty"`
}

func (*Variable) Decode

func (o *Variable) Decode(e entity.AttrGetter)

func (*Variable) Empty

func (o *Variable) Empty() bool

func (*Variable) Encode

func (o *Variable) Encode() (attrs []entity.Attr)

func (*Variable) InitSchema

func (o *Variable) InitSchema(sb *schema.SchemaBuilder)

Jump to

Keyboard shortcuts

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