Documentation ¶
Index ¶
- Variables
- func Deploy(ctx context.Context, configFilename string) error
- func NewBabysitter(ctx context.Context, app *protos.AppConfig, config *BabysitterConfig, ...) (*babysitter, error)
- func ToolVersion() (string, bool, error)
- type BabysitterConfig
- func (*BabysitterConfig) Descriptor() ([]byte, []int)deprecated
- func (x *BabysitterConfig) GetDeploymentId() string
- func (x *BabysitterConfig) GetGroups() map[string]string
- func (x *BabysitterConfig) GetListeners() map[string]int32
- func (x *BabysitterConfig) GetNamespace() string
- func (*BabysitterConfig) ProtoMessage()
- func (x *BabysitterConfig) ProtoReflect() protoreflect.Message
- func (x *BabysitterConfig) Reset()
- func (x *BabysitterConfig) String() string
- type BabysitterOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var File_internal_impl_kube_proto protoreflect.FileDescriptor
Functions ¶
func Deploy ¶
Deploy generates a Kubernetes YAML file and corresponding Docker image to deploy the Service Weaver application specified by the provided kube.yaml config file.
func NewBabysitter ¶
func NewBabysitter(ctx context.Context, app *protos.AppConfig, config *BabysitterConfig, components []string, opts BabysitterOptions) (*babysitter, error)
func ToolVersion ¶
ToolVersion returns the version of the running tool binary, along with an indication whether the tool was built manually, i.e., not via go install.
Types ¶
type BabysitterConfig ¶
type BabysitterConfig struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Kubernetes namespace DeploymentId string `protobuf:"bytes,2,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"` // globally unique deployment id Listeners map[string]int32 `` // a map from listener name to port /* 160-byte string literal not displayed */ Groups map[string]string `` // a map from component name to group name /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
BabysitterConfig contains configuration passed to a babysitter.
func (*BabysitterConfig) Descriptor
deprecated
func (*BabysitterConfig) Descriptor() ([]byte, []int)
Deprecated: Use BabysitterConfig.ProtoReflect.Descriptor instead.
func (*BabysitterConfig) GetDeploymentId ¶
func (x *BabysitterConfig) GetDeploymentId() string
func (*BabysitterConfig) GetGroups ¶
func (x *BabysitterConfig) GetGroups() map[string]string
func (*BabysitterConfig) GetListeners ¶
func (x *BabysitterConfig) GetListeners() map[string]int32
func (*BabysitterConfig) GetNamespace ¶
func (x *BabysitterConfig) GetNamespace() string
func (*BabysitterConfig) ProtoMessage ¶
func (*BabysitterConfig) ProtoMessage()
func (*BabysitterConfig) ProtoReflect ¶
func (x *BabysitterConfig) ProtoReflect() protoreflect.Message
func (*BabysitterConfig) Reset ¶
func (x *BabysitterConfig) Reset()
func (*BabysitterConfig) String ¶
func (x *BabysitterConfig) String() string
type BabysitterOptions ¶
type BabysitterOptions struct { HandleLogEntry func(context.Context, *protos.LogEntry) error HandleTraceSpans func(context.Context, []trace.ReadOnlySpan) error HandleMetrics func(context.Context, []*metrics.MetricSnapshot) error }
BabysitterOptions configure a babysitter. See tool.Plugins for details.
Click to show internal directories.
Click to hide internal directories.