methods

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: BSD-3-Clause Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ResourcePathVariable   common.PathVariable = "resources"
	TypePathVariable       common.PathVariable = "type"
	RepositoryPathVariable common.PathVariable = "repositories"
)

Variables

This section is empty.

Functions

func GetBasicTNSKey

func GetBasicTNSKey(branch, commit, projectId, appId, resourceId string, resourceType common.PathVariable) (*common.TnsPath, error)

func GetEmptyTNSKey

func GetEmptyTNSKey(branch, commit, projectId, appId string, resourceType common.PathVariable) (*common.TnsPath, error)

func GetTNSAssetPath

func GetTNSAssetPath(projectId, resourceId, branch string) (*common.TnsPath, error)

func HttpPath

func HttpPath(fqdn string, resourceType common.PathVariable) (*common.TnsPath, error)

func IndexPath added in v1.2.0

func IndexPath(projectId, appId, name string) *common.TnsPath

IndexPath is the by-name index location project/<id>[/application/<app>]/<name>. It carries no resource-type segment, so it is identical across resource kinds (databases, storages) — hence it lives here rather than in each spec.

func IndexValue

func IndexValue(branch, projectId, appId, resourceId string, resourceType common.PathVariable) (*common.TnsPath, error)

func NameIndex added in v1.2.0

func NameIndex(id string, resourceType common.PathVariable) *common.TnsPath

NameIndex is the id-keyed name index <resourceType>/<id>: a two-segment path mapping a resource id to its authored name. Generic across resource kinds — the resource type is the only variable — so the per-resource spec (e.g. library) delegates here.

func ProjectPrefix

func ProjectPrefix(projectId, branch, commit string) *common.TnsPath

func ReversedFqdnBasicPath added in v1.2.0

func ReversedFqdnBasicPath(fqdn string, resourceType common.PathVariable) (*common.TnsPath, error)

ReversedFqdnBasicPath is the domain basic-index path <resourceType>/<reversed fqdn segments> — the fqdn split on "." and reversed, prefixed by the resource type. It shares HttpPath's reversal but drops the "http" segment; the domain spec's BasicPath delegates here.

func ServicePath

func ServicePath(projectId, appId, serviceId, command string) (*common.TnsPath, error)

func WasmModulePath

func WasmModulePath(projectId, appId, name string, resourceType common.PathVariable) (*common.TnsPath, error)

func WasmModulePathFromModule

func WasmModulePathFromModule(projectId, appId, moduleType string, name string) (*common.TnsPath, error)

func WebSocketHashPath added in v1.2.0

func WebSocketHashPath(projectId, appId string) (*common.TnsPath, error)

WebSocketHashPath is the per-(project,app) websocket bucket path: it hashes project+app and defers to WebSocketPath. Generic across callers — the messaging spec delegates here.

func WebSocketPath added in v1.2.0

func WebSocketPath(hash string) (*common.TnsPath, error)

WebSocketPath is the websocket bucket path p2p/pubsub/<hash>.

Types

type RepositoryPath

type RepositoryPath struct {
	// contains filtered or unexported fields
}

func GetRepositoryPath

func GetRepositoryPath(gitProvider, repoId, projectId string) (*RepositoryPath, error)

func (*RepositoryPath) AllResources

func (r *RepositoryPath) AllResources() *common.TnsPath

func (*RepositoryPath) Resource

func (r *RepositoryPath) Resource(resourceId string) *common.TnsPath

func (*RepositoryPath) Type

func (r *RepositoryPath) Type() *common.TnsPath

Jump to

Keyboard shortcuts

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