Documentation
¶
Index ¶
- Constants
- func GetBasicTNSKey(branch, commit, projectId, appId, resourceId string, ...) (*common.TnsPath, error)
- func GetEmptyTNSKey(branch, commit, projectId, appId string, resourceType common.PathVariable) (*common.TnsPath, error)
- func GetTNSAssetPath(projectId, resourceId, branch string) (*common.TnsPath, error)
- func HttpPath(fqdn string, resourceType common.PathVariable) (*common.TnsPath, error)
- func IndexPath(projectId, appId, name string) *common.TnsPath
- func IndexValue(branch, projectId, appId, resourceId string, resourceType common.PathVariable) (*common.TnsPath, error)
- func NameIndex(id string, resourceType common.PathVariable) *common.TnsPath
- func ProjectPrefix(projectId, branch, commit string) *common.TnsPath
- func ReversedFqdnBasicPath(fqdn string, resourceType common.PathVariable) (*common.TnsPath, error)
- func ServicePath(projectId, appId, serviceId, command string) (*common.TnsPath, error)
- func WasmModulePath(projectId, appId, name string, resourceType common.PathVariable) (*common.TnsPath, error)
- func WasmModulePathFromModule(projectId, appId, moduleType string, name string) (*common.TnsPath, error)
- func WebSocketHashPath(projectId, appId string) (*common.TnsPath, error)
- func WebSocketPath(hash string) (*common.TnsPath, error)
- type RepositoryPath
Constants ¶
const ( ResourcePathVariable common.PathVariable = "resources" TypePathVariable common.PathVariable = "type" RepositoryPathVariable common.PathVariable = "repositories" )
Variables ¶
This section is empty.
Functions ¶
func GetBasicTNSKey ¶
func GetEmptyTNSKey ¶
func GetTNSAssetPath ¶
func IndexPath ¶ added in v1.2.0
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 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 ReversedFqdnBasicPath ¶ added in v1.2.0
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 WasmModulePath ¶
func WebSocketHashPath ¶ added in v1.2.0
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.
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