proto

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package proto contains protos for the kubernetes runtime.

Index

Constants

View Source
const (
	Default_KubernetesHandlerParameters_DockerHostUrl         = string("unix:///var/run/docker.sock")
	Default_KubernetesHandlerParameters_ServiceType           = KubernetesHandlerParameters_SERVICE_TYPE_NODE_PORT
	Default_KubernetesHandlerParameters_CreateUniqueNamespace = bool(false)
)

Default values for KubernetesHandlerParameters fields.

View Source
const (
	Default_KubernetesComponentParameters_WaitForDeployment           = bool(true)
	Default_KubernetesComponentParameters_WaitForDeploymentTimeoutSec = int64(600)
	Default_KubernetesComponentParameters_WaitForService              = bool(true)
	Default_KubernetesComponentParameters_WaitForServiceTimeoutSec    = int64(300)
)

Default values for KubernetesComponentParameters fields.

View Source
const (
	Default_DockerBuildParameters_DockerfilePath = string("Dockerfile")
)

Default values for DockerBuildParameters fields.

Variables

View Source
var (
	KubernetesHandlerParameters_ServiceType_name = map[int32]string{
		0: "SERVICE_TYPE_UNSPECIFIED",
		1: "SERVICE_TYPE_NODE_PORT",
		2: "SERVICE_TYPE_LOAD_BALANCER",
	}
	KubernetesHandlerParameters_ServiceType_value = map[string]int32{
		"SERVICE_TYPE_UNSPECIFIED":   0,
		"SERVICE_TYPE_NODE_PORT":     1,
		"SERVICE_TYPE_LOAD_BALANCER": 2,
	}
)

Enum value maps for KubernetesHandlerParameters_ServiceType.

View Source
var File_runtime_parameters_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DockerBuildParameters

type DockerBuildParameters struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

func (*DockerBuildParameters) ClearBuildImage

func (x *DockerBuildParameters) ClearBuildImage()

func (*DockerBuildParameters) ClearContextPath

func (x *DockerBuildParameters) ClearContextPath()

func (*DockerBuildParameters) ClearDockerfilePath

func (x *DockerBuildParameters) ClearDockerfilePath()

func (*DockerBuildParameters) ClearLoadToKind

func (x *DockerBuildParameters) ClearLoadToKind()

func (*DockerBuildParameters) GetBuildImage

func (x *DockerBuildParameters) GetBuildImage() bool

func (*DockerBuildParameters) GetContextPath

func (x *DockerBuildParameters) GetContextPath() string

func (*DockerBuildParameters) GetDockerfilePath

func (x *DockerBuildParameters) GetDockerfilePath() string

func (*DockerBuildParameters) GetLoadToKind

func (x *DockerBuildParameters) GetLoadToKind() bool

func (*DockerBuildParameters) HasBuildImage

func (x *DockerBuildParameters) HasBuildImage() bool

func (*DockerBuildParameters) HasContextPath

func (x *DockerBuildParameters) HasContextPath() bool

func (*DockerBuildParameters) HasDockerfilePath

func (x *DockerBuildParameters) HasDockerfilePath() bool

func (*DockerBuildParameters) HasLoadToKind

func (x *DockerBuildParameters) HasLoadToKind() bool

func (*DockerBuildParameters) ProtoMessage

func (*DockerBuildParameters) ProtoMessage()

func (*DockerBuildParameters) ProtoReflect

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

func (*DockerBuildParameters) Reset

func (x *DockerBuildParameters) Reset()

func (*DockerBuildParameters) SetBuildImage

func (x *DockerBuildParameters) SetBuildImage(v bool)

func (*DockerBuildParameters) SetContextPath

func (x *DockerBuildParameters) SetContextPath(v string)

func (*DockerBuildParameters) SetDockerfilePath

func (x *DockerBuildParameters) SetDockerfilePath(v string)

func (*DockerBuildParameters) SetLoadToKind

func (x *DockerBuildParameters) SetLoadToKind(v bool)

func (*DockerBuildParameters) String

func (x *DockerBuildParameters) String() string

type DockerBuildParameters_builder

type DockerBuildParameters_builder struct {

	// The directory containing the service source code. Only files under this
	// directory can be used during the Docker build process.
	// Relative path from the Component txtpb file.
	ContextPath *string
	// The Dockerfile to use for the Docker build process.
	// Relative path from the context_path.
	DockerfilePath *string
	BuildImage     *bool
	LoadToKind     *bool
	// contains filtered or unexported fields
}

func (DockerBuildParameters_builder) Build

type KubernetesComponentParameters

type KubernetesComponentParameters struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

func (*KubernetesComponentParameters) ClearDeploymentPath

func (x *KubernetesComponentParameters) ClearDeploymentPath()

func (*KubernetesComponentParameters) ClearDocker

func (x *KubernetesComponentParameters) ClearDocker()

func (*KubernetesComponentParameters) ClearServicePath

func (x *KubernetesComponentParameters) ClearServicePath()

func (*KubernetesComponentParameters) ClearWaitForDeployment

func (x *KubernetesComponentParameters) ClearWaitForDeployment()

func (*KubernetesComponentParameters) ClearWaitForDeploymentTimeoutSec

func (x *KubernetesComponentParameters) ClearWaitForDeploymentTimeoutSec()

func (*KubernetesComponentParameters) ClearWaitForService

func (x *KubernetesComponentParameters) ClearWaitForService()

func (*KubernetesComponentParameters) ClearWaitForServiceTimeoutSec

func (x *KubernetesComponentParameters) ClearWaitForServiceTimeoutSec()

func (*KubernetesComponentParameters) GetDeploymentPath

func (x *KubernetesComponentParameters) GetDeploymentPath() string

func (*KubernetesComponentParameters) GetDocker

func (*KubernetesComponentParameters) GetInterfaceByPortName

func (x *KubernetesComponentParameters) GetInterfaceByPortName() map[string]*proto.Interface

func (*KubernetesComponentParameters) GetServicePath

func (x *KubernetesComponentParameters) GetServicePath() string

func (*KubernetesComponentParameters) GetVars

func (x *KubernetesComponentParameters) GetVars() map[string]string

func (*KubernetesComponentParameters) GetWaitForDeployment

func (x *KubernetesComponentParameters) GetWaitForDeployment() bool

func (*KubernetesComponentParameters) GetWaitForDeploymentTimeoutSec

func (x *KubernetesComponentParameters) GetWaitForDeploymentTimeoutSec() int64

func (*KubernetesComponentParameters) GetWaitForService

func (x *KubernetesComponentParameters) GetWaitForService() bool

func (*KubernetesComponentParameters) GetWaitForServiceTimeoutSec

func (x *KubernetesComponentParameters) GetWaitForServiceTimeoutSec() int64

func (*KubernetesComponentParameters) HasDeploymentPath

func (x *KubernetesComponentParameters) HasDeploymentPath() bool

func (*KubernetesComponentParameters) HasDocker

func (x *KubernetesComponentParameters) HasDocker() bool

func (*KubernetesComponentParameters) HasServicePath

func (x *KubernetesComponentParameters) HasServicePath() bool

func (*KubernetesComponentParameters) HasWaitForDeployment

func (x *KubernetesComponentParameters) HasWaitForDeployment() bool

func (*KubernetesComponentParameters) HasWaitForDeploymentTimeoutSec

func (x *KubernetesComponentParameters) HasWaitForDeploymentTimeoutSec() bool

func (*KubernetesComponentParameters) HasWaitForService

func (x *KubernetesComponentParameters) HasWaitForService() bool

func (*KubernetesComponentParameters) HasWaitForServiceTimeoutSec

func (x *KubernetesComponentParameters) HasWaitForServiceTimeoutSec() bool

func (*KubernetesComponentParameters) ProtoMessage

func (*KubernetesComponentParameters) ProtoMessage()

func (*KubernetesComponentParameters) ProtoReflect

func (*KubernetesComponentParameters) Reset

func (x *KubernetesComponentParameters) Reset()

func (*KubernetesComponentParameters) SetDeploymentPath

func (x *KubernetesComponentParameters) SetDeploymentPath(v string)

func (*KubernetesComponentParameters) SetDocker

func (*KubernetesComponentParameters) SetInterfaceByPortName

func (x *KubernetesComponentParameters) SetInterfaceByPortName(v map[string]*proto.Interface)

func (*KubernetesComponentParameters) SetServicePath

func (x *KubernetesComponentParameters) SetServicePath(v string)

func (*KubernetesComponentParameters) SetVars

func (x *KubernetesComponentParameters) SetVars(v map[string]string)

func (*KubernetesComponentParameters) SetWaitForDeployment

func (x *KubernetesComponentParameters) SetWaitForDeployment(v bool)

func (*KubernetesComponentParameters) SetWaitForDeploymentTimeoutSec

func (x *KubernetesComponentParameters) SetWaitForDeploymentTimeoutSec(v int64)

func (*KubernetesComponentParameters) SetWaitForService

func (x *KubernetesComponentParameters) SetWaitForService(v bool)

func (*KubernetesComponentParameters) SetWaitForServiceTimeoutSec

func (x *KubernetesComponentParameters) SetWaitForServiceTimeoutSec(v int64)

func (*KubernetesComponentParameters) String

type KubernetesComponentParameters_builder

type KubernetesComponentParameters_builder struct {
	DeploymentPath *string
	ServicePath    *string
	Docker         *DockerBuildParameters
	Vars           map[string]string
	// When true, wait for the replica count to be expected value. The replica
	// count represents the number of pods that should be in a healthy "running"
	// state.
	// Defaults to true if unset.
	WaitForDeployment *bool
	// The waiting timeout for the deployment to be in state "running" during
	// Start(). Only used if wait_for_deployment is true.
	// Defaults to 10 minutes if unset.
	WaitForDeploymentTimeoutSec *int64
	// When true, wait for the service to return an IP address during Start().
	// Defaults to true if unset.
	WaitForService *bool
	// Timeout for waiting for the service to return an IP address during Start.
	// Only used if wait_for_service is true.
	// Defaults to 5 minutes if unset.
	WaitForServiceTimeoutSec *int64
	InterfaceByPortName      map[string]*proto.Interface
	// contains filtered or unexported fields
}

func (KubernetesComponentParameters_builder) Build

type KubernetesHandlerParameters

type KubernetesHandlerParameters struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

func (*KubernetesHandlerParameters) ClearCreateUniqueNamespace

func (x *KubernetesHandlerParameters) ClearCreateUniqueNamespace()

func (*KubernetesHandlerParameters) ClearDockerCertPath

func (x *KubernetesHandlerParameters) ClearDockerCertPath()

func (*KubernetesHandlerParameters) ClearDockerHostUrl

func (x *KubernetesHandlerParameters) ClearDockerHostUrl()

func (*KubernetesHandlerParameters) ClearImageRepositoryAddress

func (x *KubernetesHandlerParameters) ClearImageRepositoryAddress()

func (*KubernetesHandlerParameters) ClearKubeconfigPath

func (x *KubernetesHandlerParameters) ClearKubeconfigPath()

func (*KubernetesHandlerParameters) ClearNamespaceOrPrefix

func (x *KubernetesHandlerParameters) ClearNamespaceOrPrefix()

func (*KubernetesHandlerParameters) ClearServiceType

func (x *KubernetesHandlerParameters) ClearServiceType()

func (*KubernetesHandlerParameters) GetCreateUniqueNamespace

func (x *KubernetesHandlerParameters) GetCreateUniqueNamespace() bool

func (*KubernetesHandlerParameters) GetDockerCertPath

func (x *KubernetesHandlerParameters) GetDockerCertPath() string

func (*KubernetesHandlerParameters) GetDockerHostUrl

func (x *KubernetesHandlerParameters) GetDockerHostUrl() string

func (*KubernetesHandlerParameters) GetImageRepositoryAddress

func (x *KubernetesHandlerParameters) GetImageRepositoryAddress() string

func (*KubernetesHandlerParameters) GetKubeconfigPath

func (x *KubernetesHandlerParameters) GetKubeconfigPath() string

func (*KubernetesHandlerParameters) GetNamespaceOrPrefix

func (x *KubernetesHandlerParameters) GetNamespaceOrPrefix() string

func (*KubernetesHandlerParameters) GetServiceType

func (*KubernetesHandlerParameters) HasCreateUniqueNamespace

func (x *KubernetesHandlerParameters) HasCreateUniqueNamespace() bool

func (*KubernetesHandlerParameters) HasDockerCertPath

func (x *KubernetesHandlerParameters) HasDockerCertPath() bool

func (*KubernetesHandlerParameters) HasDockerHostUrl

func (x *KubernetesHandlerParameters) HasDockerHostUrl() bool

func (*KubernetesHandlerParameters) HasImageRepositoryAddress

func (x *KubernetesHandlerParameters) HasImageRepositoryAddress() bool

func (*KubernetesHandlerParameters) HasKubeconfigPath

func (x *KubernetesHandlerParameters) HasKubeconfigPath() bool

func (*KubernetesHandlerParameters) HasNamespaceOrPrefix

func (x *KubernetesHandlerParameters) HasNamespaceOrPrefix() bool

func (*KubernetesHandlerParameters) HasServiceType

func (x *KubernetesHandlerParameters) HasServiceType() bool

func (*KubernetesHandlerParameters) ProtoMessage

func (*KubernetesHandlerParameters) ProtoMessage()

func (*KubernetesHandlerParameters) ProtoReflect

func (*KubernetesHandlerParameters) Reset

func (x *KubernetesHandlerParameters) Reset()

func (*KubernetesHandlerParameters) SetCreateUniqueNamespace

func (x *KubernetesHandlerParameters) SetCreateUniqueNamespace(v bool)

func (*KubernetesHandlerParameters) SetDockerCertPath

func (x *KubernetesHandlerParameters) SetDockerCertPath(v string)

func (*KubernetesHandlerParameters) SetDockerHostUrl

func (x *KubernetesHandlerParameters) SetDockerHostUrl(v string)

func (*KubernetesHandlerParameters) SetImageRepositoryAddress

func (x *KubernetesHandlerParameters) SetImageRepositoryAddress(v string)

func (*KubernetesHandlerParameters) SetKubeconfigPath

func (x *KubernetesHandlerParameters) SetKubeconfigPath(v string)

func (*KubernetesHandlerParameters) SetNamespaceOrPrefix

func (x *KubernetesHandlerParameters) SetNamespaceOrPrefix(v string)

func (*KubernetesHandlerParameters) SetServiceType

func (*KubernetesHandlerParameters) String

func (x *KubernetesHandlerParameters) String() string

type KubernetesHandlerParameters_ServiceType

type KubernetesHandlerParameters_ServiceType int32

The service.spec.type field in the Kubernetes Service object. If unset, defaults to NodePort to support local 'kind' clusters that do not have a load balancer controller (like MetalLB).

const (
	KubernetesHandlerParameters_SERVICE_TYPE_UNSPECIFIED   KubernetesHandlerParameters_ServiceType = 0
	KubernetesHandlerParameters_SERVICE_TYPE_NODE_PORT     KubernetesHandlerParameters_ServiceType = 1
	KubernetesHandlerParameters_SERVICE_TYPE_LOAD_BALANCER KubernetesHandlerParameters_ServiceType = 2
)

func (KubernetesHandlerParameters_ServiceType) Descriptor

func (KubernetesHandlerParameters_ServiceType) Enum

func (KubernetesHandlerParameters_ServiceType) Number

func (KubernetesHandlerParameters_ServiceType) String

func (KubernetesHandlerParameters_ServiceType) Type

type KubernetesHandlerParameters_builder

type KubernetesHandlerParameters_builder struct {
	KubeconfigPath *string
	// This is the default Linux value for reference.
	DockerHostUrl  *string
	DockerCertPath *string
	ServiceType    *KubernetesHandlerParameters_ServiceType
	// The address of the container registry to push images to (e.g.,
	// "docker.io/my-repo").
	// If set, the Docker image will be pushed to this address instead of being
	// loaded into a kind cluster.
	// However, if the image name already includes a repository address, this
	// field will be ignored.
	ImageRepositoryAddress *string
	// The namespace to use for the Kubernetes objects.
	// If create_unique_namespace is true, this field will be the prefix for the
	// unique namespace.
	// If create_unique_namespace is false, this field will be used as the
	// namespace for all Kubernetes objects.
	// If unset and create_unique_namespace is false, the `default` namespace
	// will be used.
	NamespaceOrPrefix *string
	// When true, Monax will create a namespace with the prefix `monax-` plus a
	// random 8 character UUID. When false, Monax will use the `default`
	// namespace.
	CreateUniqueNamespace *bool
	// contains filtered or unexported fields
}

func (KubernetesHandlerParameters_builder) Build

type KubernetesRuntimeParameters

type KubernetesRuntimeParameters struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

func (*KubernetesRuntimeParameters) ClearKubernetes

func (x *KubernetesRuntimeParameters) ClearKubernetes()

func (*KubernetesRuntimeParameters) ClearName

func (x *KubernetesRuntimeParameters) ClearName()

func (*KubernetesRuntimeParameters) GetKubernetes

func (*KubernetesRuntimeParameters) GetName

func (x *KubernetesRuntimeParameters) GetName() string

func (*KubernetesRuntimeParameters) HasKubernetes

func (x *KubernetesRuntimeParameters) HasKubernetes() bool

func (*KubernetesRuntimeParameters) HasName

func (x *KubernetesRuntimeParameters) HasName() bool

func (*KubernetesRuntimeParameters) ProtoMessage

func (*KubernetesRuntimeParameters) ProtoMessage()

func (*KubernetesRuntimeParameters) ProtoReflect

func (*KubernetesRuntimeParameters) Reset

func (x *KubernetesRuntimeParameters) Reset()

func (*KubernetesRuntimeParameters) SetKubernetes

func (*KubernetesRuntimeParameters) SetName

func (x *KubernetesRuntimeParameters) SetName(v string)

func (*KubernetesRuntimeParameters) String

func (x *KubernetesRuntimeParameters) String() string

type KubernetesRuntimeParameters_builder

type KubernetesRuntimeParameters_builder struct {
	Name       *string
	Kubernetes *KubernetesHandlerParameters
	// contains filtered or unexported fields
}

func (KubernetesRuntimeParameters_builder) Build

Jump to

Keyboard shortcuts

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