config

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_config_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type GKEConfig

type GKEConfig struct {

	// Cloud project the application should be deployed to. If empty, the
	// project value will be extracted from the active gcloud configuration
	// on the deploying machine.
	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// Cloud account that should be used to deploy the application. If empty,
	// the account value will be extracted from the active gcloud
	// configuration on the deploying machine.
	Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
	// List of unique regions to deploy the application to. Service Weaver will manage the
	// clusters in the given regions.
	//
	// If empty, Service Weaver will pick regions automatically.
	//
	// For a list of Google Cloud regions, see:
	//
	//	https://cloud.google.com/compute/docs/regions-zones
	Regions        []string                    `protobuf:"bytes,3,rep,name=regions,proto3" json:"regions,omitempty"`
	PublicListener []*GKEConfig_PublicListener `protobuf:"bytes,4,rep,name=public_listener,json=publicListener,proto3" json:"public_listener,omitempty"`
	// Address of the manager local to a Service Weaver process. This field is typically
	// filled by the manager, before starting a Service Weaver process.
	ManagerAddr string `protobuf:"bytes,5,opt,name=manager_addr,json=managerAddr,proto3" json:"manager_addr,omitempty"`
	// The URL of the container used to deploy the application (e.g.,
	// us-docker.pkg.dev/my-project/serviceweaver-repo/todo:tag4df65e28), or the
	// empty string if containers are not being used.
	Container  string             `protobuf:"bytes,6,opt,name=container,proto3" json:"container,omitempty"`
	Deployment *protos.Deployment `protobuf:"bytes,7,opt,name=deployment,proto3" json:"deployment,omitempty"`
	// contains filtered or unexported fields
}

GKEConfig holds configuration information for one execution of a Service Weaver application on GKE. Fields are populated from a combination of user specified configuration and Service Weaver provided information specific to a particular execution.

func (*GKEConfig) Descriptor deprecated

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

Deprecated: Use GKEConfig.ProtoReflect.Descriptor instead.

func (*GKEConfig) GetAccount

func (x *GKEConfig) GetAccount() string

func (*GKEConfig) GetContainer

func (x *GKEConfig) GetContainer() string

func (*GKEConfig) GetDeployment

func (x *GKEConfig) GetDeployment() *protos.Deployment

func (*GKEConfig) GetManagerAddr

func (x *GKEConfig) GetManagerAddr() string

func (*GKEConfig) GetProject

func (x *GKEConfig) GetProject() string

func (*GKEConfig) GetPublicListener

func (x *GKEConfig) GetPublicListener() []*GKEConfig_PublicListener

func (*GKEConfig) GetRegions

func (x *GKEConfig) GetRegions() []string

func (*GKEConfig) ProtoMessage

func (*GKEConfig) ProtoMessage()

func (*GKEConfig) ProtoReflect

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

func (*GKEConfig) Reset

func (x *GKEConfig) Reset()

func (*GKEConfig) String

func (x *GKEConfig) String() string

type GKEConfig_PublicListener

type GKEConfig_PublicListener struct {

	// Name of the listener. Must match the name the listener is created
	// with in the application binary (i.e., via a call to Listener()).
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Hostname under which the listener will be accessible.
	//
	// The hostname is used for routing ingress traffic to the listener.
	// It is an error to leave this field empty.
	Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"`
	// contains filtered or unexported fields
}

Publicly accessible HTTP listeners for the application.

Service Weaver applications create HTTP listeners dynamically, i.e., via calls to Listener(). Only listeners listed here will be configured to receive ingress traffic; all other listeners will be configured only for VPC-internal access.

func (*GKEConfig_PublicListener) Descriptor deprecated

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

Deprecated: Use GKEConfig_PublicListener.ProtoReflect.Descriptor instead.

func (*GKEConfig_PublicListener) GetHostname

func (x *GKEConfig_PublicListener) GetHostname() string

func (*GKEConfig_PublicListener) GetName

func (x *GKEConfig_PublicListener) GetName() string

func (*GKEConfig_PublicListener) ProtoMessage

func (*GKEConfig_PublicListener) ProtoMessage()

func (*GKEConfig_PublicListener) ProtoReflect

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

func (*GKEConfig_PublicListener) Reset

func (x *GKEConfig_PublicListener) Reset()

func (*GKEConfig_PublicListener) String

func (x *GKEConfig_PublicListener) String() string

Jump to

Keyboard shortcuts

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