Documentation ¶
Index ¶
- Variables
- func GetExternalModuleForDeps(server planning.Server) []build.Workspace
- func MuxFromFS(ctx context.Context, fsys fs.FS, d schema.Digest, ts time.Time, spa bool) (*mux.Router, error)
- func Register()
- func ServeFS(image compute.Computable[oci.Image], spa bool) compute.Computable[*mux.Router]
- func StartDevServer(ctx context.Context, env cfg.Context, pkg schema.PackageName, ...) (string, error)
- func ViteProductionBuild(ctx context.Context, loc pkggraph.Location, env cfg.Context, ...) (oci.NamedImage, error)
- func WebBuilder(loc pkggraph.Location) build.Spec
- type Backend
- type OpGenHttpBackend
- func (*OpGenHttpBackend) Descriptor() ([]byte, []int)deprecated
- func (x *OpGenHttpBackend) GetBackend() []*OpGenHttpBackend_Backend
- func (x *OpGenHttpBackend) GetNode() *schema.Node
- func (*OpGenHttpBackend) ProtoMessage()
- func (x *OpGenHttpBackend) ProtoReflect() protoreflect.Message
- func (x *OpGenHttpBackend) Reset()
- func (x *OpGenHttpBackend) String() string
- type OpGenHttpBackend_Backend
- func (*OpGenHttpBackend_Backend) Descriptor() ([]byte, []int)deprecated
- func (x *OpGenHttpBackend_Backend) GetEndpointOwner() string
- func (x *OpGenHttpBackend_Backend) GetIngressName() string
- func (x *OpGenHttpBackend_Backend) GetInstanceName() string
- func (x *OpGenHttpBackend_Backend) GetManager() string
- func (x *OpGenHttpBackend_Backend) GetServiceName() string
- func (*OpGenHttpBackend_Backend) ProtoMessage()
- func (x *OpGenHttpBackend_Backend) ProtoReflect() protoreflect.Message
- func (x *OpGenHttpBackend_Backend) Reset()
- func (x *OpGenHttpBackend_Backend) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_internal_languages_web_op_proto protoreflect.FileDescriptor
View Source
var File_internal_languages_web_types_proto protoreflect.FileDescriptor
Functions ¶
func ServeFS ¶
func ServeFS(image compute.Computable[oci.Image], spa bool) compute.Computable[*mux.Router]
ServeFS returns a Computable[*mux.Router]. If `spa` is true (i.e. single page app), and an index.html is present, it is served on all paths (except the ones for which) real files exist.
func StartDevServer ¶
func ViteProductionBuild ¶
func ViteProductionBuild(ctx context.Context, loc pkggraph.Location, env cfg.Context, description, baseOutput, basePath string, externalModules []build.Workspace, extraFiles ...*memfs.FS) (oci.NamedImage, error)
Returns a Computable[v1.Image] with the results of the compilation.
Types ¶
type Backend ¶
type Backend struct { EndpointOwner string `protobuf:"bytes,1,opt,name=endpoint_owner,json=endpointOwner,proto3" json:"endpoint_owner,omitempty"` ServiceName string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // contains filtered or unexported fields }
func (*Backend) Descriptor
deprecated
func (*Backend) GetEndpointOwner ¶
func (*Backend) GetServiceName ¶
func (*Backend) ProtoMessage ¶
func (*Backend) ProtoMessage()
func (*Backend) ProtoReflect ¶
func (x *Backend) ProtoReflect() protoreflect.Message
type OpGenHttpBackend ¶
type OpGenHttpBackend struct { Node *schema.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` Backend []*OpGenHttpBackend_Backend `protobuf:"bytes,2,rep,name=backend,proto3" json:"backend,omitempty"` // contains filtered or unexported fields }
func (*OpGenHttpBackend) Descriptor
deprecated
func (*OpGenHttpBackend) Descriptor() ([]byte, []int)
Deprecated: Use OpGenHttpBackend.ProtoReflect.Descriptor instead.
func (*OpGenHttpBackend) GetBackend ¶
func (x *OpGenHttpBackend) GetBackend() []*OpGenHttpBackend_Backend
func (*OpGenHttpBackend) GetNode ¶
func (x *OpGenHttpBackend) GetNode() *schema.Node
func (*OpGenHttpBackend) ProtoMessage ¶
func (*OpGenHttpBackend) ProtoMessage()
func (*OpGenHttpBackend) ProtoReflect ¶
func (x *OpGenHttpBackend) ProtoReflect() protoreflect.Message
func (*OpGenHttpBackend) Reset ¶
func (x *OpGenHttpBackend) Reset()
func (*OpGenHttpBackend) String ¶
func (x *OpGenHttpBackend) String() string
type OpGenHttpBackend_Backend ¶
type OpGenHttpBackend_Backend struct { InstanceName string `protobuf:"bytes,1,opt,name=instance_name,json=instanceName,proto3" json:"instance_name,omitempty"` EndpointOwner string `protobuf:"bytes,2,opt,name=endpoint_owner,json=endpointOwner,proto3" json:"endpoint_owner,omitempty"` ServiceName string `protobuf:"bytes,3,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` IngressName string `protobuf:"bytes,4,opt,name=ingress_name,json=ingressName,proto3" json:"ingress_name,omitempty"` Manager string `protobuf:"bytes,5,opt,name=manager,proto3" json:"manager,omitempty"` // contains filtered or unexported fields }
func (*OpGenHttpBackend_Backend) Descriptor
deprecated
func (*OpGenHttpBackend_Backend) Descriptor() ([]byte, []int)
Deprecated: Use OpGenHttpBackend_Backend.ProtoReflect.Descriptor instead.
func (*OpGenHttpBackend_Backend) GetEndpointOwner ¶
func (x *OpGenHttpBackend_Backend) GetEndpointOwner() string
func (*OpGenHttpBackend_Backend) GetIngressName ¶
func (x *OpGenHttpBackend_Backend) GetIngressName() string
func (*OpGenHttpBackend_Backend) GetInstanceName ¶
func (x *OpGenHttpBackend_Backend) GetInstanceName() string
func (*OpGenHttpBackend_Backend) GetManager ¶
func (x *OpGenHttpBackend_Backend) GetManager() string
func (*OpGenHttpBackend_Backend) GetServiceName ¶
func (x *OpGenHttpBackend_Backend) GetServiceName() string
func (*OpGenHttpBackend_Backend) ProtoMessage ¶
func (*OpGenHttpBackend_Backend) ProtoMessage()
func (*OpGenHttpBackend_Backend) ProtoReflect ¶
func (x *OpGenHttpBackend_Backend) ProtoReflect() protoreflect.Message
func (*OpGenHttpBackend_Backend) Reset ¶
func (x *OpGenHttpBackend_Backend) Reset()
func (*OpGenHttpBackend_Backend) String ¶
func (x *OpGenHttpBackend_Backend) String() string
Click to show internal directories.
Click to hide internal directories.