web

package
v0.0.73 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 54 Imported by: 0

Documentation

Index

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 GetExternalModuleForDeps

func GetExternalModuleForDeps(server planning.Server) []build.Workspace

func MuxFromFS

func MuxFromFS(ctx context.Context, fsys fs.FS, d schema.Digest, ts time.Time, spa bool) (*mux.Router, error)

func Register

func Register()

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 StartDevServer(ctx context.Context, env cfg.Context, pkg schema.PackageName, mainPort, webPort int) (string, error)

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.

func WebBuilder

func WebBuilder(loc pkggraph.Location) build.Spec

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) Descriptor() ([]byte, []int)

Deprecated: Use Backend.ProtoReflect.Descriptor instead.

func (*Backend) GetEndpointOwner

func (x *Backend) GetEndpointOwner() string

func (*Backend) GetServiceName

func (x *Backend) GetServiceName() string

func (*Backend) ProtoMessage

func (*Backend) ProtoMessage()

func (*Backend) ProtoReflect

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

func (*Backend) Reset

func (x *Backend) Reset()

func (*Backend) String

func (x *Backend) String() string

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

Jump to

Keyboard shortcuts

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