runtime

package
v0.0.80 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ContainerKind_name = map[int32]string{
		0: "CONTAINER_KIND_UNSPECIFIED",
		1: "PRIMARY",
		2: "SUPPORT",
	}
	ContainerKind_value = map[string]int32{
		"CONTAINER_KIND_UNSPECIFIED": 0,
		"PRIMARY":                    1,
		"SUPPORT":                    2,
	}
)

Enum value maps for ContainerKind.

View Source
var (
	SetContainerField_ValueSource_name = map[int32]string{
		0: "VALUE_SOURCE_UNKNOWN",
		1: "RUNTIME_CONFIG",
		2: "RESOURCE_CONFIG",
		3: "RESOURCE_CONFIG_SERVICE_ENDPOINT",
	}
	SetContainerField_ValueSource_value = map[string]int32{
		"VALUE_SOURCE_UNKNOWN":             0,
		"RUNTIME_CONFIG":                   1,
		"RESOURCE_CONFIG":                  2,
		"RESOURCE_CONFIG_SERVICE_ENDPOINT": 3,
	}
)

Enum value maps for SetContainerField_ValueSource.

View Source
var File_schema_runtime_config_proto protoreflect.FileDescriptor
View Source
var File_schema_runtime_deployable_proto protoreflect.FileDescriptor
View Source
var File_schema_runtime_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BuildVCS

type BuildVCS struct {
	Revision    string `protobuf:"bytes,1,opt,name=revision,proto3" json:"revision,omitempty"`
	CommitTime  string `protobuf:"bytes,2,opt,name=commit_time,json=commitTime,proto3" json:"commit_time,omitempty"`
	Uncommitted bool   `protobuf:"varint,3,opt,name=uncommitted,proto3" json:"uncommitted,omitempty"`
	// contains filtered or unexported fields
}

func (*BuildVCS) Descriptor deprecated

func (*BuildVCS) Descriptor() ([]byte, []int)

Deprecated: Use BuildVCS.ProtoReflect.Descriptor instead.

func (*BuildVCS) GetCommitTime

func (x *BuildVCS) GetCommitTime() string

func (*BuildVCS) GetRevision

func (x *BuildVCS) GetRevision() string

func (*BuildVCS) GetUncommitted

func (x *BuildVCS) GetUncommitted() bool

func (*BuildVCS) ProtoMessage

func (*BuildVCS) ProtoMessage()

func (*BuildVCS) ProtoReflect

func (x *BuildVCS) ProtoReflect() protoreflect.Message

func (*BuildVCS) Reset

func (x *BuildVCS) Reset()

func (*BuildVCS) String

func (x *BuildVCS) String() string

type ContainerKind

type ContainerKind int32
const (
	ContainerKind_CONTAINER_KIND_UNSPECIFIED ContainerKind = 0
	ContainerKind_PRIMARY                    ContainerKind = 1
	ContainerKind_SUPPORT                    ContainerKind = 2
)

func (ContainerKind) Descriptor

func (ContainerKind) Enum

func (x ContainerKind) Enum() *ContainerKind

func (ContainerKind) EnumDescriptor deprecated

func (ContainerKind) EnumDescriptor() ([]byte, []int)

Deprecated: Use ContainerKind.Descriptor instead.

func (ContainerKind) Number

func (ContainerKind) String

func (x ContainerKind) String() string

func (ContainerKind) Type

type ContainerReference

type ContainerReference struct {
	UniqueId       string        `protobuf:"bytes,1,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"`
	HumanReference string        `protobuf:"bytes,2,opt,name=HumanReference,proto3" json:"HumanReference,omitempty"`
	Kind           ContainerKind `protobuf:"varint,3,opt,name=Kind,proto3,enum=foundation.schema.runtime.ContainerKind" json:"Kind,omitempty"`
	Opaque         *anypb.Any    `protobuf:"bytes,4,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// contains filtered or unexported fields
}

func (*ContainerReference) Descriptor deprecated

func (*ContainerReference) Descriptor() ([]byte, []int)

Deprecated: Use ContainerReference.ProtoReflect.Descriptor instead.

func (*ContainerReference) GetHumanReference

func (x *ContainerReference) GetHumanReference() string

func (*ContainerReference) GetKind

func (x *ContainerReference) GetKind() ContainerKind

func (*ContainerReference) GetOpaque

func (x *ContainerReference) GetOpaque() *anypb.Any

func (*ContainerReference) GetUniqueId

func (x *ContainerReference) GetUniqueId() string

func (*ContainerReference) ProtoMessage

func (*ContainerReference) ProtoMessage()

func (*ContainerReference) ProtoReflect

func (x *ContainerReference) ProtoReflect() protoreflect.Message

func (*ContainerReference) Reset

func (x *ContainerReference) Reset()

func (*ContainerReference) String

func (x *ContainerReference) String() string

type ContainerUnitWaitStatus

type ContainerUnitWaitStatus struct {
	Reference   *ContainerReference `protobuf:"bytes,1,opt,name=reference,proto3" json:"reference,omitempty"`
	Name        string              `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	StatusLabel string              `protobuf:"bytes,3,opt,name=status_label,json=statusLabel,proto3" json:"status_label,omitempty"`
	Status      *Diagnostics        `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*ContainerUnitWaitStatus) Descriptor deprecated

func (*ContainerUnitWaitStatus) Descriptor() ([]byte, []int)

Deprecated: Use ContainerUnitWaitStatus.ProtoReflect.Descriptor instead.

func (*ContainerUnitWaitStatus) GetName

func (x *ContainerUnitWaitStatus) GetName() string

func (*ContainerUnitWaitStatus) GetReference

func (x *ContainerUnitWaitStatus) GetReference() *ContainerReference

func (*ContainerUnitWaitStatus) GetStatus

func (x *ContainerUnitWaitStatus) GetStatus() *Diagnostics

func (*ContainerUnitWaitStatus) GetStatusLabel

func (x *ContainerUnitWaitStatus) GetStatusLabel() string

func (*ContainerUnitWaitStatus) ProtoMessage

func (*ContainerUnitWaitStatus) ProtoMessage()

func (*ContainerUnitWaitStatus) ProtoReflect

func (x *ContainerUnitWaitStatus) ProtoReflect() protoreflect.Message

func (*ContainerUnitWaitStatus) Reset

func (x *ContainerUnitWaitStatus) Reset()

func (*ContainerUnitWaitStatus) String

func (x *ContainerUnitWaitStatus) String() string

type ContainerWaitStatus

type ContainerWaitStatus struct {
	Containers   []*ContainerUnitWaitStatus `protobuf:"bytes,1,rep,name=containers,proto3" json:"containers,omitempty"`
	Initializers []*ContainerUnitWaitStatus `protobuf:"bytes,2,rep,name=initializers,proto3" json:"initializers,omitempty"`
	// contains filtered or unexported fields
}

func (*ContainerWaitStatus) Descriptor deprecated

func (*ContainerWaitStatus) Descriptor() ([]byte, []int)

Deprecated: Use ContainerWaitStatus.ProtoReflect.Descriptor instead.

func (*ContainerWaitStatus) GetContainers

func (x *ContainerWaitStatus) GetContainers() []*ContainerUnitWaitStatus

func (*ContainerWaitStatus) GetInitializers

func (x *ContainerWaitStatus) GetInitializers() []*ContainerUnitWaitStatus

func (*ContainerWaitStatus) ProtoMessage

func (*ContainerWaitStatus) ProtoMessage()

func (*ContainerWaitStatus) ProtoReflect

func (x *ContainerWaitStatus) ProtoReflect() protoreflect.Message

func (*ContainerWaitStatus) Reset

func (x *ContainerWaitStatus) Reset()

func (*ContainerWaitStatus) String

func (x *ContainerWaitStatus) String() string

func (*ContainerWaitStatus) WaitStatus

func (cw *ContainerWaitStatus) WaitStatus() string

type Deployable

type Deployable struct {
	PackageName     string `protobuf:"bytes,1,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"`
	Id              string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Name            string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	DeployableClass string `protobuf:"bytes,4,opt,name=deployable_class,json=deployableClass,proto3" json:"deployable_class,omitempty"`
	// contains filtered or unexported fields
}

func (*Deployable) Descriptor deprecated

func (*Deployable) Descriptor() ([]byte, []int)

Deprecated: Use Deployable.ProtoReflect.Descriptor instead.

func (*Deployable) GetDeployableClass

func (x *Deployable) GetDeployableClass() string

func (*Deployable) GetId

func (x *Deployable) GetId() string

func (*Deployable) GetName

func (x *Deployable) GetName() string

func (*Deployable) GetPackageName

func (x *Deployable) GetPackageName() string

func (*Deployable) ProtoMessage

func (*Deployable) ProtoMessage()

func (*Deployable) ProtoReflect

func (x *Deployable) ProtoReflect() protoreflect.Message

func (*Deployable) Reset

func (x *Deployable) Reset()

func (*Deployable) String

func (x *Deployable) String() string

type Diagnostics

type Diagnostics struct {
	Running          bool                   `protobuf:"varint,1,opt,name=running,proto3" json:"running,omitempty"`
	Started          *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=started,proto3" json:"started,omitempty"`
	Waiting          bool                   `protobuf:"varint,3,opt,name=waiting,proto3" json:"waiting,omitempty"`
	WaitingReason    string                 `protobuf:"bytes,4,opt,name=waiting_reason,json=waitingReason,proto3" json:"waiting_reason,omitempty"`
	Crashed          bool                   `protobuf:"varint,5,opt,name=crashed,proto3" json:"crashed,omitempty"`
	Terminated       bool                   `protobuf:"varint,6,opt,name=terminated,proto3" json:"terminated,omitempty"`
	TerminatedReason string                 `protobuf:"bytes,7,opt,name=terminated_reason,json=terminatedReason,proto3" json:"terminated_reason,omitempty"`
	ExitCode         int32                  `protobuf:"varint,8,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
	RestartCount     int32                  `protobuf:"varint,9,opt,name=restart_count,json=restartCount,proto3" json:"restart_count,omitempty"`
	// contains filtered or unexported fields
}

func (*Diagnostics) Descriptor deprecated

func (*Diagnostics) Descriptor() ([]byte, []int)

Deprecated: Use Diagnostics.ProtoReflect.Descriptor instead.

func (*Diagnostics) Failed

func (d *Diagnostics) Failed() bool

func (*Diagnostics) GetCrashed

func (x *Diagnostics) GetCrashed() bool

func (*Diagnostics) GetExitCode

func (x *Diagnostics) GetExitCode() int32

func (*Diagnostics) GetRestartCount

func (x *Diagnostics) GetRestartCount() int32

func (*Diagnostics) GetRunning

func (x *Diagnostics) GetRunning() bool

func (*Diagnostics) GetStarted

func (x *Diagnostics) GetStarted() *timestamppb.Timestamp

func (*Diagnostics) GetTerminated

func (x *Diagnostics) GetTerminated() bool

func (*Diagnostics) GetTerminatedReason

func (x *Diagnostics) GetTerminatedReason() string

func (*Diagnostics) GetWaiting

func (x *Diagnostics) GetWaiting() bool

func (*Diagnostics) GetWaitingReason

func (x *Diagnostics) GetWaitingReason() string

func (*Diagnostics) ProtoMessage

func (*Diagnostics) ProtoMessage()

func (*Diagnostics) ProtoReflect

func (x *Diagnostics) ProtoReflect() protoreflect.Message

func (*Diagnostics) Reset

func (x *Diagnostics) Reset()

func (*Diagnostics) String

func (x *Diagnostics) String() string

type RuntimeConfig

type RuntimeConfig struct {
	Environment *RuntimeConfig_Environment `protobuf:"bytes,1,opt,name=environment,proto3" json:"environment,omitempty"`
	Current     *Server                    `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
	// References to other servers that this server depends on.
	StackEntry []*Server `protobuf:"bytes,3,rep,name=stack_entry,json=stackEntry,proto3" json:"stack_entry,omitempty"`
	// contains filtered or unexported fields
}

The runtime configuration is generated from the deployment plan. It is injected into the server at runtime. Because RuntimeConfig is serialized as JSON, the field names have great significance and should be changed with care.

func (*RuntimeConfig) Descriptor deprecated

func (*RuntimeConfig) Descriptor() ([]byte, []int)

Deprecated: Use RuntimeConfig.ProtoReflect.Descriptor instead.

func (*RuntimeConfig) GetCurrent

func (x *RuntimeConfig) GetCurrent() *Server

func (*RuntimeConfig) GetEnvironment

func (x *RuntimeConfig) GetEnvironment() *RuntimeConfig_Environment

func (*RuntimeConfig) GetStackEntry

func (x *RuntimeConfig) GetStackEntry() []*Server

func (*RuntimeConfig) ProtoMessage

func (*RuntimeConfig) ProtoMessage()

func (*RuntimeConfig) ProtoReflect

func (x *RuntimeConfig) ProtoReflect() protoreflect.Message

func (*RuntimeConfig) Reset

func (x *RuntimeConfig) Reset()

func (*RuntimeConfig) String

func (x *RuntimeConfig) String() string

type RuntimeConfig_Environment

type RuntimeConfig_Environment struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Empty if ephemeral is true.
	Purpose string `protobuf:"bytes,2,opt,name=purpose,proto3" json:"purpose,omitempty"`
	// Typically only set for tests. Signals that this environment is single-use and not meant to be user serviceable.
	Ephemeral bool `protobuf:"varint,3,opt,name=ephemeral,proto3" json:"ephemeral,omitempty"`
	// contains filtered or unexported fields
}

func (*RuntimeConfig_Environment) Descriptor deprecated

func (*RuntimeConfig_Environment) Descriptor() ([]byte, []int)

Deprecated: Use RuntimeConfig_Environment.ProtoReflect.Descriptor instead.

func (*RuntimeConfig_Environment) GetEphemeral

func (x *RuntimeConfig_Environment) GetEphemeral() bool

func (*RuntimeConfig_Environment) GetName

func (x *RuntimeConfig_Environment) GetName() string

func (*RuntimeConfig_Environment) GetPurpose

func (x *RuntimeConfig_Environment) GetPurpose() string

func (*RuntimeConfig_Environment) ProtoMessage

func (*RuntimeConfig_Environment) ProtoMessage()

func (*RuntimeConfig_Environment) ProtoReflect

func (*RuntimeConfig_Environment) Reset

func (x *RuntimeConfig_Environment) Reset()

func (*RuntimeConfig_Environment) String

func (x *RuntimeConfig_Environment) String() string

type Server

type Server struct {
	PackageName string            `protobuf:"bytes,1,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"`
	ModuleName  string            `protobuf:"bytes,2,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"`
	Port        []*Server_Port    `protobuf:"bytes,3,rep,name=port,proto3" json:"port,omitempty"`
	Service     []*Server_Service `protobuf:"bytes,4,rep,name=service,proto3" json:"service,omitempty"`
	ImageRef    string            `protobuf:"bytes,5,opt,name=image_ref,json=imageRef,proto3" json:"image_ref,omitempty"` // Only set for current.
	// contains filtered or unexported fields
}

func (*Server) Descriptor deprecated

func (*Server) Descriptor() ([]byte, []int)

Deprecated: Use Server.ProtoReflect.Descriptor instead.

func (*Server) GetImageRef

func (x *Server) GetImageRef() string

func (*Server) GetModuleName

func (x *Server) GetModuleName() string

func (*Server) GetPackageName

func (x *Server) GetPackageName() string

func (*Server) GetPort

func (x *Server) GetPort() []*Server_Port

func (*Server) GetService

func (x *Server) GetService() []*Server_Service

func (*Server) ProtoMessage

func (*Server) ProtoMessage()

func (*Server) ProtoReflect

func (x *Server) ProtoReflect() protoreflect.Message

func (*Server) Reset

func (x *Server) Reset()

func (*Server) String

func (x *Server) String() string

type Server_Port

type Server_Port struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Port int32  `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

func (*Server_Port) Descriptor deprecated

func (*Server_Port) Descriptor() ([]byte, []int)

Deprecated: Use Server_Port.ProtoReflect.Descriptor instead.

func (*Server_Port) GetName

func (x *Server_Port) GetName() string

func (*Server_Port) GetPort

func (x *Server_Port) GetPort() int32

func (*Server_Port) ProtoMessage

func (*Server_Port) ProtoMessage()

func (*Server_Port) ProtoReflect

func (x *Server_Port) ProtoReflect() protoreflect.Message

func (*Server_Port) Reset

func (x *Server_Port) Reset()

func (*Server_Port) String

func (x *Server_Port) String() string

type Server_Service

type Server_Service struct {
	Owner    string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`       // Package name.
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`         // Scoped to package name.
	Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // E.g. hostname:port.
	// contains filtered or unexported fields
}

func (*Server_Service) Descriptor deprecated

func (*Server_Service) Descriptor() ([]byte, []int)

Deprecated: Use Server_Service.ProtoReflect.Descriptor instead.

func (*Server_Service) GetEndpoint

func (x *Server_Service) GetEndpoint() string

func (*Server_Service) GetName

func (x *Server_Service) GetName() string

func (*Server_Service) GetOwner

func (x *Server_Service) GetOwner() string

func (*Server_Service) ProtoMessage

func (*Server_Service) ProtoMessage()

func (*Server_Service) ProtoReflect

func (x *Server_Service) ProtoReflect() protoreflect.Message

func (*Server_Service) Reset

func (x *Server_Service) Reset()

func (*Server_Service) String

func (x *Server_Service) String() string

type SetContainerField

type SetContainerField struct {
	SetArg []*SetContainerField_SetValue `protobuf:"bytes,1,rep,name=set_arg,json=setArg,proto3" json:"set_arg,omitempty"`
	SetEnv []*SetContainerField_SetValue `protobuf:"bytes,2,rep,name=set_env,json=setEnv,proto3" json:"set_env,omitempty"`
	// contains filtered or unexported fields
}

func (*SetContainerField) Descriptor deprecated

func (*SetContainerField) Descriptor() ([]byte, []int)

Deprecated: Use SetContainerField.ProtoReflect.Descriptor instead.

func (*SetContainerField) GetSetArg

func (*SetContainerField) GetSetEnv

func (*SetContainerField) ProtoMessage

func (*SetContainerField) ProtoMessage()

func (*SetContainerField) ProtoReflect

func (x *SetContainerField) ProtoReflect() protoreflect.Message

func (*SetContainerField) Reset

func (x *SetContainerField) Reset()

func (*SetContainerField) String

func (x *SetContainerField) String() string

type SetContainerField_SetValue

type SetContainerField_SetValue struct {
	ContainerName string                        `protobuf:"bytes,1,opt,name=container_name,json=containerName,proto3" json:"container_name,omitempty"` // If empty, set all containers.
	Key           string                        `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`                                          // The target argument or environment variable.
	Value         SetContainerField_ValueSource `protobuf:"varint,3,opt,name=value,proto3,enum=foundation.schema.runtime.SetContainerField_ValueSource" json:"value,omitempty"`
	ServiceRef    *schema.ServiceRef            `protobuf:"bytes,4,opt,name=service_ref,json=serviceRef,proto3" json:"service_ref,omitempty"` // Only valid if RESOURCE_CONFIG_SERVICE_ENDPOINT is set.
	// contains filtered or unexported fields
}

func (*SetContainerField_SetValue) Descriptor deprecated

func (*SetContainerField_SetValue) Descriptor() ([]byte, []int)

Deprecated: Use SetContainerField_SetValue.ProtoReflect.Descriptor instead.

func (*SetContainerField_SetValue) GetContainerName

func (x *SetContainerField_SetValue) GetContainerName() string

func (*SetContainerField_SetValue) GetKey

func (x *SetContainerField_SetValue) GetKey() string

func (*SetContainerField_SetValue) GetServiceRef added in v0.0.76

func (x *SetContainerField_SetValue) GetServiceRef() *schema.ServiceRef

func (*SetContainerField_SetValue) GetValue

func (*SetContainerField_SetValue) ProtoMessage

func (*SetContainerField_SetValue) ProtoMessage()

func (*SetContainerField_SetValue) ProtoReflect

func (*SetContainerField_SetValue) Reset

func (x *SetContainerField_SetValue) Reset()

func (*SetContainerField_SetValue) String

func (x *SetContainerField_SetValue) String() string

type SetContainerField_ValueSource

type SetContainerField_ValueSource int32
const (
	SetContainerField_VALUE_SOURCE_UNKNOWN             SetContainerField_ValueSource = 0
	SetContainerField_RUNTIME_CONFIG                   SetContainerField_ValueSource = 1
	SetContainerField_RESOURCE_CONFIG                  SetContainerField_ValueSource = 2
	SetContainerField_RESOURCE_CONFIG_SERVICE_ENDPOINT SetContainerField_ValueSource = 3
)

func (SetContainerField_ValueSource) Descriptor

func (SetContainerField_ValueSource) Enum

func (SetContainerField_ValueSource) EnumDescriptor deprecated

func (SetContainerField_ValueSource) EnumDescriptor() ([]byte, []int)

Deprecated: Use SetContainerField_ValueSource.Descriptor instead.

func (SetContainerField_ValueSource) Number

func (SetContainerField_ValueSource) String

func (SetContainerField_ValueSource) Type

Jump to

Keyboard shortcuts

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